sqllogictest
Artifact Content
Not logged in

Artifact 397fa2c205bb9135ba9033e35971692734356a0a:


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(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT - - COUNT( * ) * + + 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-0
SELECT - - COUNT ( * ) * + + 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query II rowsort
SELECT + col2 + col0, 93 AS col2 FROM tab1
----
144
93
147
93
159
93

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - 0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 92 * + 62 + - 1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c914813afa429f611b48b5cac063e4f4

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = - 52 * + + ( - + 15 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT ALL + CAST( NULL AS SIGNED ) / - - ( - col2 ) + - + 74 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + CAST ( NULL AS INTEGER ) / - - ( - col2 ) + - + 74 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - - col2 ), - 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL + CAST( NULL AS SIGNED ) + + ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - ( - - 55 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - ( - - 55 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - MAX( ALL + + col1 ) * 38 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1783

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - MAX ( ALL + + col1 ) * 38 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1783

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL + COUNT( + + col1 ) + - 96 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + COUNT ( + + col1 ) + - 96 FROM tab1 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-14
SELECT DISTINCT col0 AS col1, - col2 DIV + 74 AS col2 FROM tab1
----
51
-1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-14
SELECT DISTINCT col0 AS col1, - col2 / + 74 AS col2 FROM tab1
----
51
-1
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT - CAST( + col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + ( - 34 ) AS col2 FROM tab1
----
17
51
57

query I rowsort
SELECT - col1 + + 78 FROM tab1
----
31
64
73

query I rowsort
SELECT 37 + + col0 AS col0 FROM tab0
----
124
134
52

query I rowsort
SELECT ALL 43 * - + col0 AS col2 FROM tab2
----
-1978
-2752
-3225

query I rowsort
SELECT ( + - col2 ) + - ( col0 ) AS col2 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-21
SELECT * FROM tab2 WHERE + col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-21
SELECT * FROM tab2 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * + col0 + + + col2 - + col1 col0 FROM tab0 AS cor0
----
-1316
-1357
-259

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + - 94
----

query II rowsort
SELECT 65 * - + 92 AS col2, - col2 FROM tab0
----
-5980
-10
-5980
-47
-5980
-99

query I rowsort
SELECT DISTINCT + 52 - col2 AS col2 FROM tab0
----
-47
42
5

onlyif mysql # DIV for integer division: 
query II rowsort label-29
SELECT DISTINCT + + col1 DIV - 97, + col2 col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-29
SELECT DISTINCT + + col1 / - 97, + col2 col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query II rowsort
SELECT - col2 * - 82 AS col2, + 76 AS col1 FROM tab0 AS cor0
----
3854
76
8118
76
820
76

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT MAX( ALL + + 36 ) * - - ( MIN( ALL 20 ) ) FROM tab1 AS cor0
----
720

skipif mysql # not compatible
query I rowsort label-31
SELECT MAX ( ALL + + 36 ) * - - ( MIN ( ALL 20 ) ) FROM tab1 AS cor0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL + - SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL + - SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
185

query II rowsort
SELECT + col1 AS col1, - col1 * 39 + - col1 + ( col2 ) + + + 82 + - col2 - - col0 FROM tab0
----
1
139
21
-671
81
-3143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT DISTINCT + col1 * + col2 / CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT + col1 * + col2 / CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 30 * - col2 AS col0 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT + - ( - + ( + col1 ) ) FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT + MIN( ALL + 23 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT + MIN ( ALL + 23 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col0 * - - col1 * col0 AS col1 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT + ( + 9 ) DIV + 69 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-40
SELECT + ( + 9 ) / + 69 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-41
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 65 + - + col1 FROM tab0 AS cor0
----
-16
44
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT + - col2 DIV - col0 * - - CAST( + 74 AS SIGNED ) + - + col0 - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1242
-3184
-4019

skipif mysql # not compatible
query I rowsort label-43
SELECT + - col2 / - col0 * - - CAST ( + 74 AS INTEGER ) + - + col0 - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1242
-3184
-4019

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL - 38 + + col1 DIV - 89 AS col1 FROM tab2 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL - 38 + + col1 / - 89 AS col1 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL MAX( + - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL MAX ( + - 97 ) FROM tab1 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT col0 + col0 DIV ( - + 56 ) AS col2 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-46
SELECT col0 + col0 / ( - + 56 ) AS col2 FROM tab0 AS cor0
----
15
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - 33 + + + COUNT( ALL 45 ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-47
SELECT - 33 + + + COUNT ( ALL 45 ) AS col0 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + 61 + - - col1 + - - col2 * col2 / 86 + - 17 IS NOT NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL MAX( DISTINCT - - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL MAX ( DISTINCT - - col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 4 IS NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE ( col0 ) <= 6 * - + 96 * col2 * - ( col1 ) + - + col2
----
14
47
5

query I rowsort
SELECT DISTINCT + 36 FROM tab0 WHERE 55 NOT BETWEEN - - col0 AND NULL
----
36

query II rowsort
SELECT DISTINCT col1 AS col2, col2 + + col0 * + - col2 * + + 74 AS col0 FROM tab1
----
14
-362208
47
-457844
5
-371051

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL - SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT + - 36 * - COUNT( * ) FROM tab0 cor0
----
108

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + - 36 * - COUNT ( * ) FROM tab0 cor0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT ALL + col0 DIV + ( - 75 ) AS col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + col0 / + ( - 75 ) AS col2 FROM tab2 cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT - 70 * - 14 + ( - + SUM( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 WHERE col1 / + 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - 70 * - 14 + ( - + SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE col1 / + 6 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0 WHERE - 58 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 15, col2 + - - 15 * - col2 )
----

query I rowsort
SELECT col0 * - col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT + CAST( + 7 AS SIGNED ) FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-64
SELECT + CAST ( + 7 AS INTEGER ) FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ALL COUNT( DISTINCT 75 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL COUNT ( DISTINCT 75 ) FROM tab0
----
1

query I rowsort
SELECT - 17 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-67
SELECT DISTINCT 23, + col0 DIV col1 AS col2 FROM tab2
----
23
0
23
1

skipif mysql # not compatible
query II rowsort label-67
SELECT DISTINCT 23, + col0 / col1 AS col2 FROM tab2
----
23
0
23
1

query I rowsort
SELECT - - 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT ALL MAX( ALL - 79 ) + - - SUM( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-69
SELECT ALL MAX ( ALL - 79 ) + - - SUM ( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
106

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = - col2 * - col0
----

query I rowsort
SELECT ALL - 62 + - col2 AS col2 FROM tab2 AS cor0
----
-102
-120
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT - - 12 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-72
SELECT - - 12 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT 70 + - col2 - 72 * + col1 FROM tab0
----
-101
-1452
-5809

query I rowsort
SELECT 88 + - col2 FROM tab1
----
-8
20
29

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col0, 34 AS col1 FROM tab2
----
23
34
40
34
58
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-77
SELECT + col0 * + - col1 * CAST( NULL AS SIGNED ) + + col1 AS col2, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-77
SELECT + col0 * + - col1 * CAST ( NULL AS INTEGER ) + + col1 AS col2, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT + ( + + col1 ) DIV col1 + - 72 FROM tab1
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-79
SELECT + ( + + col1 ) / col1 + - 72 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT - 30 + + 53 FROM tab2
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT + COUNT( * ) + - - 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-81
SELECT + COUNT ( * ) + - - 1 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL + + SUM( DISTINCT - 47 ) FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + + SUM ( DISTINCT - 47 ) FROM tab2 AS cor0
----
-47

query II rowsort
SELECT ALL 33, + 27 AS col2 FROM tab2 cor0
----
33
27
33
27
33
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) * - col0 IN ( col0, - col0 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-86
SELECT DISTINCT - 73 - - CAST( - COUNT( * ) AS SIGNED ) - - COUNT( ALL - 8 ) col1, + MAX( DISTINCT + col2 ) + + 13 AS col2 FROM tab2 cor0 WHERE NOT - 21 IS NOT NULL
----
-73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-86
SELECT DISTINCT - 73 - - CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( ALL - 8 ) col1, + MAX ( DISTINCT + col2 ) + + 13 AS col2 FROM tab2 cor0 WHERE NOT - 21 IS NOT NULL
----
-73
NULL

query I rowsort
SELECT + 69 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT + ( - - MIN( ALL 33 ) ) * 64 FROM tab1 AS cor0
----
2112

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT + ( - - MIN ( ALL 33 ) ) * 64 FROM tab1 AS cor0
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT 85 * - 10 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-853

skipif mysql # not compatible
query I rowsort label-89
SELECT 85 * - 10 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT MAX( - col0 ) * + - 25 AS col1 FROM tab1
----
1275

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT MAX ( - col0 ) * + - 25 AS col1 FROM tab1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT + MAX( - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + MAX ( - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT + col0 * - - col2 + + col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT + 30 * 31 AS col0 FROM tab0
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT ALL + 84, COUNT( * ) + + COUNT( * ) AS col0 FROM tab1
----
84
6

skipif mysql # not compatible
query II rowsort label-94
SELECT ALL + 84, COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
84
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT DISTINCT + - ( - 45 ) * - - CAST( - col1 AS SIGNED ) + - + 65 AS col1 FROM tab0 WHERE 2 + + col0 IS NOT NULL
----
-1010
-110
-3710

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + - ( - 45 ) * - - CAST ( - col1 AS INTEGER ) + - + 65 AS col1 FROM tab0 WHERE 2 + + col0 IS NOT NULL
----
-1010
-110
-3710

query II rowsort
SELECT ALL 95 AS col2, - 37 FROM tab0
----
95
-37
95
-37
95
-37

query I rowsort
SELECT - col2 * 30 FROM tab1 cor0 WHERE + col2 * col2 - + col1 NOT BETWEEN + - col2 * + col0 + col1 - - col1 * + col0 AND col0
----
-1770
-2040
-2880

query I rowsort
SELECT ALL 63 + + col0 AS col1 FROM tab1 AS cor0
----
114
148
154

query I rowsort
SELECT + col0 * - - 15 FROM tab1 AS cor0
----
1275
1365
765

query II rowsort
SELECT 4 + + + col1 AS col0, + col1 FROM tab1
----
18
14
51
47
9
5

query II rowsort
SELECT + 29 + + col2 + - col1 + 94, 99 AS col2 FROM tab0 AS cor0
----
112
99
221
99
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT - + COUNT( * ) + + 52 AS col1 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-102
SELECT - + COUNT ( * ) + + 52 AS col1 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT - 53 * - 80 * 43 FROM tab0 AS cor0
----
182320

query I rowsort
SELECT DISTINCT + 14 + - col0 AS col2 FROM tab2 AS cor0
----
-32
-50
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT 96 + + - COUNT( col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-105
SELECT 96 + + - COUNT ( col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - col0, - col2 * col0, - + 72, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT ALL + CAST( 0 AS SIGNED ) DIV - col1 - + - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + CAST ( 0 AS INTEGER ) / - col1 - + - col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 NOT IN ( 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col0 ) - - 75 AS col1 FROM tab1
----
126
160
166

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

query I rowsort
SELECT ALL - - col1 * 67 FROM tab0 AS cor0
----
1407
5427
67

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT - col1 DIV + - 30 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-112
SELECT - col1 / + - 30 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT DISTINCT COUNT( * ) DIV + + 42 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT COUNT ( * ) / + + 42 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ( + - MAX( - + ( 37 ) ) ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-115
SELECT ( + - MAX ( - + ( 37 ) ) ) FROM tab1 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > - col1 * + col2
----

query I rowsort
SELECT + 55 * - ( 2 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT - + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-119
SELECT - + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 * + 1 * + 7 NOT BETWEEN col1 - - 83 AND + + col2 + - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - COUNT( + - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-121
SELECT - COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - + col2, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT + - ( + + 9 ) * + + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 51 + + ( ( col0 ) ) + 78 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT + 71 * - ( - SUM( ALL ( + + 29 ) ) ) FROM tab0 AS cor0
----
6177

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + 71 * - ( - SUM ( ALL ( + + 29 ) ) ) FROM tab0 AS cor0
----
6177

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - - COUNT( + + 3 ) * + COUNT( col2 ) * + ( - SUM( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-126
SELECT - - COUNT ( + + 3 ) * + COUNT ( col2 ) * + ( - SUM ( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
-1089

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

query II rowsort
SELECT + 85 * + - col1 AS col1, + 0 + - 97 AS col0 FROM tab2
----
-4335
-97
-5695
-97
-6545
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT ( + 40 ) DIV - - 18 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-129
SELECT ( + 40 ) / - - 18 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - 52 * 68 * COUNT( * ) FROM tab0
----
-10608

skipif mysql # not compatible
query I rowsort label-130
SELECT - 52 * 68 * COUNT ( * ) FROM tab0
----
-10608

query I rowsort
SELECT ALL - col2 * - col1 * col1 AS col1 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT + COUNT( DISTINCT col0 ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-132
SELECT + COUNT ( DISTINCT col0 ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-133
SELECT - 79 * - + CAST( NULL AS DECIMAL ), 6 + + ( - col0 ) DIV + - col1 AS col0 FROM tab1
----
NULL
23
NULL
7
NULL
9

skipif mysql # not compatible
query II rowsort label-133
SELECT - 79 * - + CAST ( NULL AS REAL ), 6 + + ( - col0 ) / + - col1 AS col0 FROM tab1
----
NULL
23
NULL
7
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT COUNT( - col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT COUNT ( - col0 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL COUNT( * ) + + 48 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL COUNT ( * ) + + 48 FROM tab0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + + col1 ) NOT BETWEEN ( col1 ) * - + 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - - 30 * + + COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - - 30 * + + COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL - COUNT( * ) + + SUM( DISTINCT + - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL - COUNT ( * ) + + SUM ( DISTINCT + - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + 99 + - 6
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT + + col1 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT + + col1 / + + col0 AS col2 FROM tab0 AS cor0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 * col2 / + + col2 IN ( - + col2 + + + col2 - + - col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-142
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 * col2 / + + col2 IN ( - + col2 + + + col2 - + - col0 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + + 72 - - COUNT( * ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-143
SELECT + + 72 - - COUNT ( * ) FROM tab2 cor0
----
75

query I rowsort
SELECT + 99 * - col2 * - - col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-69876
-86151
-950698

query I rowsort
SELECT DISTINCT - - col0 * + - 93 - + col1 + col2 AS col1 FROM tab1 AS cor0
----
-4661
-7851
-8442

query I rowsort
SELECT DISTINCT col1 - 89 FROM tab0 AS cor0
----
-68
-8
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT 8 DIV ( - 21 ) + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-147
SELECT 8 / ( - 21 ) + col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col2 + + + 75 FROM tab0
----
-24
28
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-149
SELECT + col2 + - + col1 AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
21
NULL
54
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-149
SELECT + col2 + - + col1 AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
21
NULL
54
NULL
82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT + ( + 41 ) FROM tab1 WHERE - CAST( + + 95 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-150
SELECT + ( + 41 ) FROM tab1 WHERE - CAST ( + + 95 AS INTEGER ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ( ( + COUNT( * ) ) ) + 79 AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-151
SELECT ( ( + COUNT ( * ) ) ) + 79 AS col0 FROM tab2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT ALL col2 DIV + 15 - + 61 AS col2 FROM tab2
----
-58
-59
-60

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL col2 / + 15 - + 61 AS col2 FROM tab2
----
-58
-59
-60

query I rowsort
SELECT ALL - col2 * - 50 * col1 FROM tab1
----
14750
159800
67200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-154
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND CAST( col1 AS SIGNED ) * 27
----

skipif mysql # not compatible
query III rowsort label-154
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND CAST ( col1 AS INTEGER ) * 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-155
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST( col1 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-155
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST ( col1 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT + MIN( ALL col0 ) * 74 FROM tab2
----
3404

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + MIN ( ALL col0 ) * 74 FROM tab2
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-157
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL - - MAX( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-158
SELECT ALL - - MAX ( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-5

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

query II rowsort
SELECT col0 AS col1, 60 + - + col1 FROM tab0
----
15
-21
87
39
97
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= col2
----

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

query I rowsort
SELECT - col0 * - ( + + col2 ) + - 50 AS col0 FROM tab2 AS cor0
----
1008
2510
4300

query I rowsort
SELECT 54 + - 62 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT + col2 * + + col1 + - 86 FROM tab0
----
124
13
3721

query I rowsort
SELECT col1 + - ( col0 ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT MAX( + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT MAX ( + + col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT ALL col0 * - col2 * + col0 * - col0 FROM tab0
----
158625
6585030
90354627

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + col0 ) NOT BETWEEN - + 57 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1, - 70 col2 FROM tab1 AS cor0
----
-14
-70
-47
-70
-5
-70

query I rowsort
SELECT DISTINCT - 8 + - col2 FROM tab1 AS cor0
----
-104
-67
-76

query I rowsort
SELECT - + col0 * + + col0 - - - col0 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT - + ( - - MIN( ALL + - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-173
SELECT - + ( - - MIN ( ALL + - col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col0 + + + 72 * + col1 FROM tab0 AS cor0
----
-25
1425
5817

query I rowsort
SELECT DISTINCT + 39 - - + col1 FROM tab1 AS cor0
----
44
53
86

query I rowsort
SELECT ALL - ( - col2 ) * + col1 + - col1 + col0 * - + col1 + + col0 + + + col0 * - col0 + + + col0 AS col1 FROM tab2 AS cor0
----
-3248
-5893
-6681

query II rowsort
SELECT + col1 AS col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-178
SELECT CAST( NULL AS SIGNED ) - col2, 94 AS col1 FROM tab2 AS cor0
----
NULL
94
NULL
94
NULL
94

skipif mysql # not compatible
query II rowsort label-178
SELECT CAST ( NULL AS INTEGER ) - col2, 94 AS col1 FROM tab2 AS cor0
----
NULL
94
NULL
94
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + 29 * - SUM( DISTINCT + 47 ) + 99 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-1264

skipif mysql # not compatible
query I rowsort label-179
SELECT + 29 * - SUM ( DISTINCT + 47 ) + 99 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - + ( 62 ) + - ( - 90 ) + - COUNT( * ) * - - SUM( ALL - col0 ) col2 FROM tab1 AS cor0
----
709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT - + ( 62 ) + - ( - 90 ) + - COUNT ( * ) * - - SUM ( ALL - col0 ) col2 FROM tab1 AS cor0
----
709

onlyif mysql # aggregate syntax: 
query II rowsort label-181
SELECT ALL SUM( DISTINCT + 20 ) * - COUNT( * ) + + SUM( - 8 ), 95 col2 FROM tab1 AS cor0
----
-84
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-181
SELECT ALL SUM ( DISTINCT + 20 ) * - COUNT ( * ) + + SUM ( - 8 ), 95 col2 FROM tab1 AS cor0
----
-84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 75 + + 7 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT + 59 * - - ( + - ( + 91 ) ) AS col2 FROM tab1
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT COUNT( * ) * + 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT COUNT ( * ) * + 93 FROM tab0
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( - col1 ) FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 <= + col0
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NULL BETWEEN + col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL + SUM( col1 ) FROM tab1 WHERE - col1 - col0 - + - 69 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + SUM ( col1 ) FROM tab1 WHERE - col1 - col0 - + - 69 + col2 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 * - col2 * + ( col0 ) + + col0 col1 FROM tab2 AS cor0
----
152325
37076
89664

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - - 11 + - 15 FROM tab0 cor0 WHERE NOT ( NULL ) <= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT DISTINCT - col1 DIV + - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT - col1 / + - col2 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 24 NOT BETWEEN NULL AND + 91 - - - col2 * 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL + CAST( + 89 AS SIGNED ) + - - col1 + - + 12 FROM tab1 AS cor0
----
124
82
91

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + CAST ( + 89 AS INTEGER ) + - - col1 + - + 12 FROM tab1 AS cor0
----
124
82
91

query I rowsort
SELECT + col1 * + - col0 + - - col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL - 31 + + col0 + + 63 - + ( - col1 ) * - 56 + + ( - + col0 ) * + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
-5124
-8670
-9144

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 31 + + col0 + + 63 - + ( - col1 ) * - 56 + + ( - + col0 ) * + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
-5124
-8670
-9144

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT - MIN( + ( - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT - MIN ( + ( - col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT DISTINCT COUNT( * ) DIV + + 17 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT COUNT ( * ) / + + 17 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL - SUM( - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - SUM ( - col0 ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT 71 + - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-204
SELECT 71 + - COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT - col1 + + col0 * + 55 * + col0 AS col0 FROM tab2
----
116329
225203
309308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT - - CAST( + + 97 AS SIGNED ) + + - col1 * + - ( - ( - ( - - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
196
307
3904

skipif mysql # not compatible
query I rowsort label-206
SELECT - - CAST ( + + 97 AS INTEGER ) + + - col1 * + - ( - ( - ( - - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
196
307
3904

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < + - col0 * col1 * + - col0 * + 97 * + - col2
----

query II rowsort
SELECT + 14 AS col2, ( + col0 ) * - 5 + - col0 FROM tab0 AS cor0
----
14
-522
14
-582
14
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT + MAX( ALL - col2 ) * ( 18 ) AS col2 FROM tab2
----
-414

skipif mysql # not compatible
query I rowsort label-209
SELECT + MAX ( ALL - col2 ) * ( 18 ) AS col2 FROM tab2
----
-414

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * - 59 * + ( + col2 ) col2 FROM tab1 AS cor0
----
-236708
-272816
-385152

query I rowsort
SELECT + ( - 46 ) FROM tab0 AS cor0 WHERE NOT NULL <= 54 - - col0 * + + col1
----

query II rowsort
SELECT col1, + col0 + + col0 AS col1 FROM tab1 cor0
----
14
102
47
182
5
170

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

query I rowsort
SELECT + col0 * 6 AS col2 FROM tab1 cor0
----
306
510
546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-218
SELECT CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-219
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) AND + 94 + col0 + - - col2
----

skipif mysql # not compatible
query III rowsort label-219
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) AND + 94 + col0 + - - col2
----

query I rowsort
SELECT ALL 16 * col2 AS col1 FROM tab2
----
368
640
928

query I rowsort
SELECT DISTINCT - 16 * - 92 AS col1 FROM tab2
----
1472

query I rowsort
SELECT 13 + + col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-223
SELECT DISTINCT col0 * - col0 + CAST( ( + ( col0 ) ) AS DECIMAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT col0 * - col0 + CAST ( ( + ( col0 ) ) AS REAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL ( + SUM( DISTINCT + col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL ( + SUM ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL ( + - ( + COUNT( DISTINCT + col0 ) ) ) * + MIN( + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL ( + - ( + COUNT ( DISTINCT + col0 ) ) ) * + MIN ( + col1 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT 55 * + - 37 + ( + - col1 ) <> col2 + - col1
----

query II rowsort
SELECT ALL - ( 82 ) * 98 * + col0 * - col0, + col2 AS col2 FROM tab0 AS cor0
----
1808100
47
60824484
10
75610724
99

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT col2 DIV - col1 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT col2 / - col1 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT col0 - + + ( + col0 ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( - ( + CAST( + - col1 AS SIGNED ) ) * - col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-229
SELECT col0 - + + ( + col0 ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( - ( + CAST ( + - col1 AS INTEGER ) ) * - col1 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 28 col2 FROM tab1 cor0
----
1652
1904
2688

query II rowsort
SELECT col1 AS col2, 17 * col2 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
1
1683
21
170
81
799

query I rowsort
SELECT + ( - col2 ) + col2 + col1 + + col2 * - 82 AS col0 FROM tab0 AS cor0
----
-3773
-799
-8117

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT + 34 DIV - col2 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT + 34 / - col2 FROM tab0 AS cor0
----
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT DISTINCT - col2 DIV col1 + + col1 * + + col2 AS col2 FROM tab0 AS cor0
----
0
210
3807

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - col2 / col1 + + col1 * + + col2 AS col2 FROM tab0 AS cor0
----
0
210
3807

onlyif mysql # DIV for integer division: 
query II rowsort label-235
SELECT col0 + - col0 DIV - col2 + 91, + 98 - col0 + 33 * + 19 AS col1 FROM tab0 AS cor0
----
106
710
186
638
188
628

skipif mysql # not compatible
query II rowsort label-235
SELECT col0 + - col0 / - col2 + 91, + 98 - col0 + 33 * + 19 AS col1 FROM tab0 AS cor0
----
106
710
186
638
188
628

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + MAX( - - col0 ) + + COUNT( 28 ) * MIN( ALL + 6 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-236
SELECT + MAX ( - - col0 ) + + COUNT ( 28 ) * MIN ( ALL + 6 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT col0 * - + col2 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-639
-936
-9699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT AVG ( ALL + 33 ) col0, - 23 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT - CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-239
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT 92 + - - col2 FROM tab1
----
151
160
188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + - 52
----

query II rowsort
SELECT - col2 + - 18, + col1 AS col1 FROM tab2
----
-41
51
-58
77
-76
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - 68 + + ( - 24 ) AND NULL
----

query I rowsort
SELECT - col1 - + + col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT - col2 AS col2, + col2 AS col2 FROM tab1 AS cor0 WHERE + col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT - 12 - - col1 AS col1 FROM tab1 WHERE + col1 IS NULL
----

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

query I rowsort
SELECT + ( + 44 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL - + COUNT( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - + COUNT ( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col0 * + 78 FROM tab2 AS cor0
----
3588
4992
5850

query I rowsort
SELECT + + col2 AS col1 FROM tab0 cor0 WHERE NOT + 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 WHERE NOT NULL >= col1 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL MIN( - - 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL MIN ( - - 15 ) FROM tab0
----
15

query I rowsort
SELECT ALL ( + 22 ) FROM tab1
----
22
22
22

query I rowsort
SELECT + 63 * col2 * - ( - - col0 ) - - + col1 + + 98 AS col1 FROM tab2 WHERE NOT ( - 94 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT DISTINCT COUNT( * ) AS col1, 19 AS col1 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-259
SELECT DISTINCT COUNT ( * ) AS col1, 19 AS col1 FROM tab0
----
3
19

query II rowsort
SELECT - col1 AS col1, col1 * col2 AS col2 FROM tab2
----
-51
1173
-67
3886
-77
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab1 WHERE - 41 / + ( + 67 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL 60 * - + MAX( 73 ) AS col2 FROM tab0
----
-4380

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL 60 * - + MAX ( 73 ) AS col2 FROM tab0
----
-4380

query I rowsort
SELECT DISTINCT + - col1 * + + col2 * - 80 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL 47 * + + 92 AS col2 FROM tab0 AS cor0
----
4324
4324
4324

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL - 18 AS col2, - col1 AS col2 FROM tab0 cor0
----
-18
-1
-18
-21
-18
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 / - 15 - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT ( + 33 ) DIV + col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-270
SELECT ( + 33 ) / + col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT MIN( + - 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-271
SELECT MIN ( + - 54 ) FROM tab0
----
-54

query I rowsort
SELECT 27 * + 92 AS col1 FROM tab2 AS cor0 WHERE col1 * - col1 + - col2 - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col1 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 / + col0 col1, + 20 * - 61 + + + ( + - ( - - 23 ) ) AS col2 FROM tab1 cor0
----
NULL
-1243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-276
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 / + col0 col1, + 20 * - 61 + + + ( + - ( - - 23 ) ) AS col2 FROM tab1 cor0
----
NULL
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - - MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-277
SELECT - - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL 90 + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= + 6
----
90

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL 90 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= + 6
----
90

query I rowsort
SELECT - col2 * + 40 - - col2 * - + col1 AS col0 FROM tab0 cor0
----
-4059
-5687
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL 79 - COUNT( * ) + + 61 AS col1 FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 79 - COUNT ( * ) + + 61 AS col1 FROM tab2
----
137

query I rowsort
SELECT 53 + + col2 FROM tab2
----
111
76
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT 33 * + col1 AS col1 FROM tab0
----
2673
33
693

query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT DISTINCT COUNT( ALL + 83 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT COUNT ( ALL + 83 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = - + col0
----
51
85
91

query I rowsort
SELECT - - 12 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL COUNT( * ) * - + ( + COUNT( - + col0 ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL COUNT ( * ) * - + ( + COUNT ( - + col0 ) ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-289
SELECT - + col2 * 17 * + 41 FROM tab1 AS cor0 WHERE NOT + CAST( - - 65 AS DECIMAL ) + + col0 / - - col2 - col1 + + - col0 / - col2 IS NULL
----
-41123
-47396
-66912

skipif mysql # not compatible
query I rowsort label-289
SELECT - + col2 * 17 * + 41 FROM tab1 AS cor0 WHERE NOT + CAST ( - - 65 AS REAL ) + + col0 / - - col2 - col1 + + - col0 / - col2 IS NULL
----
-41123
-47396
-66912

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT - COUNT( + 39 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-290
SELECT - COUNT ( + 39 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT + + 99 * col1 DIV 81 AS col0 FROM tab0 AS cor0
----
1
25
99

skipif mysql # not compatible
query I rowsort label-291
SELECT + + 99 * col1 / 81 AS col0 FROM tab0 AS cor0
----
1
25
99

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT 87 AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
87
0

skipif mysql # not compatible
query II rowsort label-292
SELECT 87 AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + - MAX( ALL + 12 ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-293
SELECT + - MAX ( ALL + 12 ) AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 29 ) * - 76 col0 FROM tab1
----
-2204
-2204
-2204

query II rowsort
SELECT col1 AS col2, 28 FROM tab2
----
51
28
67
28
77
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - 22 + - 53 + + + col1 AS col2 FROM tab2 WHERE NOT NULL > - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-300
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - 39 + col0 AS col2 FROM tab0 AS cor0
----
-24
48
58

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

query II rowsort
SELECT ALL + 13, + col1 AS col0 FROM tab2
----
13
51
13
67
13
77

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL OR NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - ( - col0 ) AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL + 43 * - - col2 FROM tab0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + + 78 + + + 70 * + + COUNT( * ) + + 2 FROM tab0 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-307
SELECT + + 78 + + + 70 * + + COUNT ( * ) + + 2 FROM tab0 AS cor0
----
290

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

query I rowsort
SELECT - col1 + + + col0 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE 48 / - - col0 IS NULL
----

query I rowsort
SELECT + + 9 + + + ( + 48 ) FROM tab1 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 67 * + col2 + - - col1 + + col1, col2 * - ( + - 75 ) col1 FROM tab0 AS cor0
----
-2987
3525
-628
750
-6631
7425

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT COUNT( * ) - + + 96 - - 3 AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT COUNT ( * ) - + + 96 - - 3 AS col2 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT + MAX( + + 68 ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-315
SELECT + MAX ( + + 68 ) AS col0 FROM tab0
----
68

query I rowsort
SELECT ALL - 82 * - col1 * - - 37 AS col2 FROM tab2
----
154734
203278
233618

query I rowsort
SELECT ALL ( - + ( + col1 ) ) - + 96 FROM tab2
----
-147
-163
-173

query I rowsort
SELECT ALL - ( + + col2 ) * + 67 * + 40 FROM tab0
----
-125960
-265320
-26800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT CAST( 18 AS SIGNED ) - + 67 + 75 AS col0 FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-319
SELECT CAST ( 18 AS INTEGER ) - + 67 + 75 AS col0 FROM tab0
----
26
26
26

query I rowsort
SELECT - col1 - + - 89 FROM tab1 cor0
----
42
75
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT + 95 DIV MAX( - + col0 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + 95 / MAX ( - + col0 ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT + - 31 * - col1 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT SUM( DISTINCT - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT SUM ( DISTINCT - + col0 ) FROM tab2
----
-185

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IN ( 35 )
----

query I rowsort
SELECT ALL + - col2 * - ( col1 ) FROM tab1 AS cor0 WHERE ( NULL < - + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL + SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL + SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
199

query II rowsort
SELECT DISTINCT + + col0 AS col1, + 84 FROM tab1 AS cor0
----
51
84
85
84
91
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL - - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT DISTINCT - col2 DIV + - ( + - col0 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT - col2 / + - ( + - col0 ) FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - + 62 <= + - 60 + - - 83 + - - col2
----

query II rowsort
SELECT ALL - + col2 + + 48 * - col1 * + col0 / - - col1, 37 AS col1 FROM tab1 AS cor0 WHERE NOT + 84 + 32 + col2 + 17 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT + col1 DIV + 56 AS col2 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT col2 DIV 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-334
SELECT col2 / 97 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT 47 DIV 11 DIV - col1 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-336
SELECT 47 / 11 / - col1 * - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * 82 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT - col0 DIV - 20 AS col1 FROM tab1
----
2
4
4

skipif mysql # not compatible
query I rowsort label-338
SELECT - col0 / - 20 AS col1 FROM tab1
----
2
4
4

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + col0
----

query I rowsort
SELECT 95 * col1 AS col1 FROM tab2
----
4845
6365
7315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + ( + col2 ) col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 12 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + 99 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT - ( 56 ) DIV + - col2 * - 34 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-345
SELECT - ( 56 ) / + - col2 * - 34 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT + - COUNT( * ) DIV - 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT + - COUNT ( * ) / - 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + ( SUM( + + col0 ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-348
SELECT + ( SUM ( + + col0 ) ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT - 91 + + col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
2469
4259
967

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - col0 ) ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - 30 ) FROM tab1 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL - 18 + col1 + - col0 * - - col1 FROM tab1 AS cor0
----
-4248
-438
-718

query I rowsort
SELECT ALL - col2 + - 73 AS col1 FROM tab2 AS cor0
----
-113
-131
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-355
SELECT ALL + 34 * + - 57 * - col0 DIV - col0 - - - col2 + col0 AS col1, + col1 * + col1 AS col1 FROM tab1
----
-1912
25
-1915
2209
-1983
196

skipif mysql # not compatible
query II rowsort label-355
SELECT ALL + 34 * + - 57 * - col0 / - col0 - - - col2 + col0 AS col1, + col1 * + col1 AS col1 FROM tab1
----
-1912
25
-1915
2209
-1983
196

query II rowsort
SELECT DISTINCT col1 AS col1, - ( - col1 ) FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT DISTINCT - - COUNT( * ) * - MAX( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT - - COUNT ( * ) * - MAX ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT 70 DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-359
SELECT 70 / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - 83 * + - 68 + - 62 FROM tab1 cor0
----
5582
5582
5582

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT DISTINCT - SUM( + 87 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - SUM ( + 87 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
99

query I rowsort
SELECT ALL + - 84 * + col1 + - col0 + ( - + col0 ) + + ( col1 ) + + 63 FROM tab0 AS cor0
----
-1854
-214
-6690

query II rowsort
SELECT DISTINCT - 24 * - ( - + col1 ) AS col1, + 49 FROM tab2 AS cor0
----
-1224
49
-1608
49
-1848
49

query I rowsort
SELECT 64 + - col0 AS col0 FROM tab1 AS cor0
----
-21
-27
13

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT ALL - COUNT( + - col2 ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL - COUNT ( + - col2 ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT IN ( 21 * col2, + col2 ) )
----

query I rowsort
SELECT col0 + - 54 FROM tab1
----
-3
31
37

onlyif mysql # DIV for integer division: 
query III rowsort label-369
SELECT ALL - col0 DIV - ( - + 9 ), 21 AS col2, + 30 AS col1 FROM tab2
----
9 values hashing to bb51f72938765b4a26ddcc0e9b838de1

skipif mysql # not compatible
query III rowsort label-369
SELECT ALL - col0 / - ( - + 9 ), 21 AS col2, + 30 AS col1 FROM tab2
----
9 values hashing to bb51f72938765b4a26ddcc0e9b838de1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-370
SELECT 85 DIV + ( - MIN( 69 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-370
SELECT 85 / + ( - MIN ( 69 ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT - 55 * COUNT( * ) * + + 20 - + COUNT( * ) AS col0, 94 col1 FROM tab0 WHERE ( + col1 + col0 IS NULL )
----
0
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-371
SELECT - 55 * COUNT ( * ) * + + 20 - + COUNT ( * ) AS col0, 94 col1 FROM tab0 WHERE ( + col1 + col0 IS NULL )
----
0
94

onlyif mysql # DIV for integer division: 
query II rowsort label-372
SELECT ALL ( - col2 ) DIV col0 AS col1, col0 * col0 + + - 57 AS col1 FROM tab2
----
0
2059
0
4039
0
5568

skipif mysql # not compatible
query II rowsort label-372
SELECT ALL ( - col2 ) / col0 AS col1, col0 * col0 + + - 57 AS col1 FROM tab2
----
0
2059
0
4039
0
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT - 37 + + - 67 * + + COUNT( * ) + - 39 AS col2 FROM tab1
----
-277

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - 37 + + - 67 * + + COUNT ( * ) + - 39 AS col2 FROM tab1
----
-277

query I rowsort
SELECT ALL - col2 + + + col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL col2 * - col1 + col1 + + 46 AS col0 FROM tab1 AS cor0
----
-1284
-244
-3103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - 96, col2 FROM tab0 AS cor0
----
96
10
96
47
96
99

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

query I rowsort
SELECT ALL - col0 / 99 + + col0 / col2 FROM tab0 WHERE 51 > ( NULL )
----

query I rowsort
SELECT col1 * - 69 + + col2 * col0 FROM tab2
----
-2461
-273
-2753

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 47 / + col1 FROM tab1 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - col1 / CAST( NULL AS SIGNED ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - col1 / CAST ( NULL AS INTEGER ) > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 84 * 89 AS col1 FROM tab2
----
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 6 col0 FROM tab1
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT COUNT( * ) + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-388
SELECT COUNT ( * ) + 53 FROM tab2
----
56

query III rowsort
SELECT * FROM tab0 WHERE NOT - 21 > col0 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 77 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 36 FROM tab2 WHERE NULL BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT 18 + col2 >= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-394
SELECT + CAST( - col0 AS SIGNED ) DIV - col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-394
SELECT + CAST ( - col0 AS INTEGER ) / - col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT - 77 DIV ( + MAX( DISTINCT - col1 ) ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-395
SELECT - 77 / ( + MAX ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT ALL col0 DIV + col0 AS col0 FROM tab2
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE - col0 BETWEEN NULL AND - 66 * col1
----
0

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE - col0 BETWEEN NULL AND - 66 * col1
----
0

query I rowsort
SELECT ALL + 40 + - col1 AS col0 FROM tab1
----
-7
26
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT MAX( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-399
SELECT MAX ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2
----
58

query I rowsort
SELECT ALL - col2 - - col2 * - col2 FROM tab1
----
-3540
-4692
-9312

query I rowsort
SELECT DISTINCT + ( + 36 ) + 51 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL MAX( - 69 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL MAX ( - 69 ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( + ( + ( col2 ) ) ) BETWEEN 12 AND ( col0 + + ( + 26 ) )
----
3

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( + ( + ( col2 ) ) ) BETWEEN 12 AND ( col0 + + ( + 26 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT - col1 DIV - col1 col2 FROM tab0 AS cor0
----
1
1
1

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 12 + col1 * + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT col0 DIV + 37 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT col0 / + 37 AS col1 FROM tab0
----
0
2

query I rowsort
SELECT 98 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

query I rowsort
SELECT ALL - col0 + 36 FROM tab2 cor0
----
-10
-28
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT SUM( ALL - CAST( 68 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-410
SELECT SUM ( ALL - CAST ( 68 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-204

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( - col1 * col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * 65 - col1 ) > - col2
----

query I rowsort
SELECT ALL ( + + 63 ) * col1 + - col2 FROM tab2
----
3190
4163
4811

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT 13 * SUM( ALL - col2 ) AS col1 FROM tab1
----
-2899

skipif mysql # not compatible
query I rowsort label-414
SELECT 13 * SUM ( ALL - col2 ) AS col1 FROM tab1
----
-2899

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT COUNT( * ) FROM tab2 WHERE 7 + 74 IN ( 8 * 27 )
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT COUNT ( * ) FROM tab2 WHERE 7 + 74 IN ( 8 * 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + 2 * col2 BETWEEN - col0 + 10 * - col0 AND 30 * 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + 57 AS col1 FROM tab1
----
-11
-2
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT + 8 DIV - 82 + col1 + 59 DIV col2 AS col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-419
SELECT + 8 / - 82 + col1 + 59 / col2 AS col1 FROM tab2 AS cor0
----
53
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + SUM( DISTINCT col0 ) / 60 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND 66
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT + SUM ( DISTINCT col0 ) / 60 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND 66
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 73 + - col2 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1417
3269
368

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 41 <> NULL
----

query I rowsort
SELECT ALL col2 + + - col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT 58 FROM tab2 WHERE 62 * - 55 IS NOT NULL
----
58
58
58

query I rowsort
SELECT col1 + + col1 FROM tab1 WHERE - + col2 + col0 * 32 IN ( 69 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE 60 IN ( 82 * col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) > NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT MAX( col1 ) + + COUNT( * ) DIV 88 col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-430
SELECT DISTINCT MAX ( col1 ) + + COUNT ( * ) / 88 col0 FROM tab2
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-431
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-431
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab1 AS cor0 WHERE NOT + 61 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) * - 6 FROM tab0 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-434
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) * - 6 FROM tab0 AS cor0 WHERE NULL > col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-435
SELECT col1 * - CAST( NULL AS DECIMAL ) + 96 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 86 IS NULL
----

query I rowsort
SELECT ALL + 64 + - col0 * + - col0 AS col1 FROM tab0 cor0
----
289
7633
9473

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT col1 * CAST( NULL AS SIGNED ) col0, - 48 AS col1 FROM tab0
----
NULL
-48
NULL
-48
NULL
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-438
SELECT col1 * CAST ( NULL AS INTEGER ) col0, - 48 AS col1 FROM tab0
----
NULL
-48
NULL
-48
NULL
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-439
SELECT - ( - col1 ) AS col1, col2 - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-439
SELECT - ( - col1 ) AS col1, col2 - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 + col0 ) <> NULL
----

query I rowsort
SELECT + 99 * - 84 AS col0 FROM tab0
----
-8316
-8316
-8316

query I rowsort
SELECT DISTINCT + 26 FROM tab0 WHERE NULL BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= - col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 45 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 45 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL + + col0 DIV + - col0 FROM tab0 cor0
----
-1
-1
-1

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

query I rowsort
SELECT - col0 + - + 41 AS col2 FROM tab2 AS cor0
----
-105
-116
-87

query I rowsort
SELECT - + 55 + col2 AS col0 FROM tab2 AS cor0
----
-15
-32
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 + col2 col1 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT - ( - col2 ) FROM tab2 AS cor0 WHERE col2 * + - 50 + + col0 IS NULL
----

query I rowsort
SELECT + ( + ( + + 50 ) ) + col2 FROM tab0 cor0
----
149
60
97

query II rowsort
SELECT - col0, col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab1 WHERE ( + 23 BETWEEN - - col2 AND col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-455
SELECT * FROM tab0 WHERE ( NOT ( ( col1 ) / CAST( col2 + + col2 AS SIGNED ) NOT BETWEEN ( 39 ) AND - ( - col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-455
SELECT * FROM tab0 WHERE ( NOT ( ( col1 ) / CAST ( col2 + + col2 AS INTEGER ) NOT BETWEEN ( 39 ) AND - ( - col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT COUNT( * ) * - COUNT( DISTINCT + 22 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT COUNT ( * ) * - COUNT ( DISTINCT + 22 ) FROM tab0
----
-3

query I rowsort
SELECT - col0 * + ( - col0 ) * - col2 AS col0 FROM tab0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 col1, + col0 FROM tab0 AS cor0
----
82
15
82
87
82
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT ALL + - CAST( NULL AS SIGNED ) * + col2 * + col2 * + - col0 + col1 * + col0 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + ( + 2 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( col2 ) + - col1 * col0 ) = ( - 18 + + 82 )
----

query I rowsort
SELECT col0 + + 35 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 94 * col1 * - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 / - 4 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT ALL - COUNT( * ) DIV 71 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-467
SELECT ALL - COUNT ( * ) / 71 col2 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 77 + - + col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 90 IS NULL )
----
-1292
-174
-1904

query I rowsort
SELECT + + 27 * ( + col1 ) FROM tab0 cor0
----
2187
27
567

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT ALL - 97 * - col1 + + - col2 - + col0 DIV - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
2019
7810

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - 97 * - col1 + + - col2 - + col0 / - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
2019
7810

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT MAX( DISTINCT + 12 ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-474
SELECT MAX ( DISTINCT + 12 ) AS col1 FROM tab0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-475
SELECT + col1 AS col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-475
SELECT + col1 AS col1, CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-476
SELECT ALL - + col1, - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-476
SELECT ALL - + col1, - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT ALL + + col1 * + CAST( - + 63 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + ( - col2 ) + + + col2 NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + + col1 * + CAST ( - + 63 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + ( - col2 ) + + + col2 NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-482
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * - col0 ) = CAST( - col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-482
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * - col0 ) = CAST ( - col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL COUNT( * ) * 89 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL COUNT ( * ) * 89 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL col0 + - 41 + + - col2 * col2 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT + + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-485
SELECT + + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - ( + col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-486
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - ( + col0 ) )
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 19 / - col2 * + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 - + + 56 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 + col0 AS col1 FROM tab1
----
-4749
-4871
-6029

query I rowsort
SELECT - 9 AS col1 FROM tab1 WHERE + 17 <> NULL
----

query I rowsort
SELECT + 81 + + ( - col0 ) + - col2 AS col2 FROM tab1
----
-63
-66
-78

query I rowsort
SELECT - 47 + + - col0 FROM tab1
----
-132
-138
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT 5 + + COUNT( * ) * 27 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-493
SELECT 5 + + COUNT ( * ) * 27 FROM tab0
----
86

query I rowsort
SELECT + col2 + - 5 FROM tab2
----
18
35
53

query I rowsort
SELECT ALL - col0 * 68 AS col2 FROM tab0 AS cor0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT 1 AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-496
SELECT 1 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col1 * col0 FROM tab1
----
51
714
85
425
91
4277

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT MAX( ALL - col0 ), MIN( + col0 ) AS col1 FROM tab1
----
-51
51

skipif mysql # not compatible
query II rowsort label-498
SELECT MAX ( ALL - col0 ), MIN ( + col0 ) AS col1 FROM tab1
----
-51
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-499
SELECT DISTINCT MIN( ALL - col2 ) DIV + 9 + - 99 + COUNT( * ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT MIN ( ALL - col2 ) / + 9 + - 99 + COUNT ( * ) AS col1 FROM tab2
----
-102

query I rowsort
SELECT ALL col2 * + 58 FROM tab0
----
2726
5742
580

query I rowsort
SELECT col1 - + 39 AS col2 FROM tab1
----
-25
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE + 20 NOT IN ( - col1, - 70 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 20 NOT IN ( - col1, - 70 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-503
SELECT + + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-504
SELECT DISTINCT - - col1 AS col0, CAST( 20 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
20
21
20
81
20

skipif mysql # not compatible
query II rowsort label-504
SELECT DISTINCT - - col1 AS col0, CAST ( 20 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
20
21
20
81
20

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT - + col2 * + - 56 AS col0 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT + - 51 * - 19 FROM tab0 cor0
----
969
969
969

query II rowsort
SELECT + col2 * - col0 AS col0, 28 AS col0 FROM tab0
----
-705
28
-870
28
-9603
28

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > 84 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT + + 61 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT 13 / col0 / + col1 + col1 > col1 * 76 - - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT + + 61 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT 13 / col0 / + col1 + col1 > col1 * 76 - - col1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE - 71 IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + 84 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT + - col1 * + + ( + CAST( + 58 AS SIGNED ) ) + + col1 AS col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + - col1 * + + ( + CAST ( + 58 AS INTEGER ) ) + + col1 AS col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

query I rowsort
SELECT DISTINCT + 51 + + col2 AS col1 FROM tab2 AS cor0
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT COUNT( * ) + - - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT COUNT ( * ) + - - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query I rowsort
SELECT + 78 + - 6 * + col1 + - col1 + + 24 FROM tab1
----
-227
4
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-518
SELECT DISTINCT - col0, - col1, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL < col2
----

skipif mysql # not compatible
query III rowsort label-518
SELECT DISTINCT - col0, - col1, + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT 2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2
2
2

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

query I rowsort
SELECT 46 + col2 - + col1 FROM tab1 AS cor0
----
100
128
67

query I rowsort
SELECT + ( - col0 ) + + ( 83 ) FROM tab1 cor0
----
-2
-8
32

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

query I rowsort
SELECT ALL - - 47 * 29 FROM tab2 AS cor0
----
1363
1363
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL 43 + - COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL 43 + - COUNT ( * ) FROM tab2
----
40

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( - + col0 / 51 ) NOT BETWEEN NULL AND col0 * col0
----

query II rowsort
SELECT DISTINCT + 21 * - + 32, col1 FROM tab0
----
-672
1
-672
21
-672
81

query I rowsort
SELECT col1 * - 95 FROM tab0
----
-1995
-7695
-95

query I rowsort
SELECT ALL col1 * - 28 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT ALL - col1 * - 26 FROM tab0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * 94 * + + 86 col0, - col0 + 30 * 35 AS col1 FROM tab0
----
-121260
1035
-703308
963
-784148
953

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT + MAX( ALL - + 50 ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-533
SELECT + MAX ( ALL - + 50 ) AS col0 FROM tab1
----
-50

query II rowsort
SELECT - 71 AS col2, - col1 FROM tab2 AS cor0
----
-71
-51
-71
-67
-71
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT + 35 AS col1, - COUNT( * ) * - 74 FROM tab0 AS cor0
----
35
222

skipif mysql # not compatible
query II rowsort label-535
SELECT + 35 AS col1, - COUNT ( * ) * - 74 FROM tab0 AS cor0
----
35
222

query I rowsort
SELECT - 7 * + 61 FROM tab1 AS cor0
----
-427
-427
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT - SUM( ALL + 65 ) FROM tab0 AS cor0 WHERE NOT ( - col1 * - + col2 * - col2 + - + col0 + + + col0 ) = col2
----
-195

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - SUM ( ALL + 65 ) FROM tab0 AS cor0 WHERE NOT ( - col1 * - + col2 * - col2 + - + col0 + + + col0 ) = col2
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0 * + 95 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT ALL 92 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL 92 / - col2 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT col2 * col0 * col0 - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * + + col2 col0 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL + MIN( ALL + col2 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + MIN ( ALL + col2 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col0 * + col2 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 + - 68 / + + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT col1 DIV + 73 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-545
SELECT col1 / + 73 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + MIN( ALL - col2 ) * + 66 FROM tab2
----
-3828

skipif mysql # not compatible
query I rowsort label-546
SELECT + MIN ( ALL - col2 ) * + 66 FROM tab2
----
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT ALL 37 DIV + + col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-547
SELECT ALL 37 / + + col1 col1 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-549
SELECT + COUNT( * ), 78 AS col2 FROM tab2
----
3
78

skipif mysql # not compatible
query II rowsort label-549
SELECT + COUNT ( * ), 78 AS col2 FROM tab2
----
3
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 70 NOT BETWEEN - 65 * + col2 AND - - col1
----

query I rowsort
SELECT + ( - AVG ( col1 ) ) FROM tab1 WHERE NULL NOT BETWEEN - col0 AND + col2 * + - 80 + col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-552
SELECT + CAST( MAX( - ( + col2 ) ) AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-552
SELECT + CAST ( MAX ( - ( + col2 ) ) AS INTEGER ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL - ( - COUNT( * ) ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-553
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + 49 + - col1 FROM tab1 AS cor0
----
-54
-63
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT + SUM( col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + SUM ( col2 ) FROM tab1 cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL - col1 + - 56 - + 71 FROM tab2 AS cor0
----
-178
-194
-204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0, - 81 * + - col1 - col2 - + + col2 col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col1 ) + - + col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT COUNT( * ) - + - 34 AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-560
SELECT COUNT ( * ) - + - 34 AS col2 FROM tab1 AS cor0
----
37

query I rowsort
SELECT col0 + col0 * + + col1 FROM tab0
----
1230
1914
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT + - 18 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT + - 18 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * col1 + + + 56 AS col0 FROM tab0
----
-1159
-1771
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT CAST( NULL AS SIGNED ) + + col2 + + 68 - 72 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT CAST ( NULL AS INTEGER ) + + col2 + + 68 - 72 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 + 6 AS col1 FROM tab2
----
42
42
42

query I rowsort
SELECT col1 + col2 + + col2 AS col2 FROM tab0
----
175
199
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 53, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT - ( MIN( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-569
SELECT - ( MIN ( + col1 ) ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL - ( - 61 ) AS col2, col2 AS col0 FROM tab1
----
61
59
61
68
61
96

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

query I rowsort
SELECT ALL + + 99 FROM tab0 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - - SUM( DISTINCT - - 74 ) AS col0 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-573
SELECT - - SUM ( DISTINCT - - 74 ) AS col0 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT - 26 AS col2, MAX( DISTINCT - col0 ) / - 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 80
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-574
SELECT - 26 AS col2, MAX ( DISTINCT - col0 ) / - 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 80
----
-26
NULL

query I rowsort
SELECT + 76 * + col2 FROM tab2 AS cor0
----
1748
3040
4408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 68
----

query I rowsort
SELECT - 56 + col0 * - 76 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <= + col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT col1 * ( + CAST( - 29 AS SIGNED ) ) * + col2 - - col0 col0 FROM tab2 AS cor0
----
-112619
-33971
-89256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-580
SELECT col1 * ( + CAST ( - 29 AS INTEGER ) ) * + col2 - - col0 col0 FROM tab2 AS cor0
----
-112619
-33971
-89256

query I rowsort
SELECT + - col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - - 34 + + 80 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 64 FROM tab2 WHERE col0 = - + col1 OR NOT NULL IS NOT NULL
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT - col1 * + ( - col1 ) DIV - + col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - col1 * + ( - col1 ) / - + col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-585
SELECT - MAX( DISTINCT - col1 ) * + + COUNT( ALL - 59 ) + + COUNT( * ) - COUNT( * ) * 94 * - - CAST( NULL AS DECIMAL ) + 80 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT - MAX ( DISTINCT - col1 ) * + + COUNT ( ALL - 59 ) + + COUNT ( * ) - COUNT ( * ) * 94 * - - CAST ( NULL AS REAL ) + 80 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 + col1 - + col1 / ( col0 ) < + 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL + 12 + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
63
79
89

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + 12 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
63
79
89

query I rowsort
SELECT ALL + col0 * col2 + - 71 + + + col2 + - col0 * + + col0 * - 22 + 67 + - col2 AS col1 FROM tab0 AS cor0
----
167384
216597
5651

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-589
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 33 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 33 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 97 + - - col1 FROM tab1 cor0
----
102
111
144

query I rowsort
SELECT DISTINCT - 90 + 96 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT MAX( + col0 ) + + CAST( + + 29 AS SIGNED ) * + COUNT( + col1 ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-593
SELECT MAX ( + col0 ) + + CAST ( + + 29 AS INTEGER ) * + COUNT ( + col1 ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT DISTINCT - ( + 17 ) * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + MIN( DISTINCT 48 ) + - MIN( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-595
SELECT + MIN ( DISTINCT 48 ) + - MIN ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + + 76 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-596
SELECT + + 76 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + COUNT( * ) + - ( + SUM( + ( col1 ) ) ) * + - 6 FROM tab1 AS cor0
----
399

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + COUNT ( * ) + - ( + SUM ( + ( col1 ) ) ) * + - 6 FROM tab1 AS cor0
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT MIN( col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-598
SELECT MIN ( col2 ) AS col1 FROM tab2 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col1, 57 AS col1 FROM tab2 AS cor0
----
15
57
15
57
15
57

query I rowsort
SELECT ALL + + col1 + - - col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 NOT BETWEEN NULL AND - col2 + + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT + col0 / CAST( NULL AS SIGNED ) * 68 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT - ( - - col1 ) - + col1 + 59 + + col1 DIV 67 AS col1 FROM tab1
----
-35
31
49

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - ( - - col1 ) - + col1 + 59 + + col1 / 67 AS col1 FROM tab1
----
-35
31
49

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT DISTINCT 38 + - 88 DIV + col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT 38 + - 88 / + col1 FROM tab2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT DISTINCT col0 DIV - + 70 - - col0 FROM tab0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT col0 / - + 70 - - col0 FROM tab0
----
15
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / - col2 FROM tab0
----
NULL
NULL
NULL

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

query II rowsort
SELECT col1 * col1, - col1 AS col1 FROM tab2
----
2601
-51
4489
-67
5929
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT + col0 * CAST( NULL AS SIGNED ) + 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT MIN( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-609
SELECT MIN ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + MAX( ALL - 73 ) - + 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-119

skipif mysql # not compatible
query I rowsort label-610
SELECT + MAX ( ALL - 73 ) - + 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 >= + col0 - + col1 * + + col2
----

query II rowsort
SELECT ALL col2 AS col0, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - - COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - - COUNT ( col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT - + col1 * - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-615
SELECT - + col1 * - col1 / + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - SUM( - 49 ) FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-616
SELECT - SUM ( - 49 ) FROM tab0 AS cor0
----
147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= ( + col0 ) * + 36 * + 93
----

query I rowsort
SELECT DISTINCT - + col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT + ( 30 ) * - - 31 AS col0, col1 + col1 * - ( + col1 ) FROM tab2 AS cor0
----
930
-2550
930
-4422
930
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + 64 - MIN( ALL + 34 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col0 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + 64 - MIN ( ALL + 34 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col0 * col0 )
----
NULL

query I rowsort
SELECT + col0 * col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL SUM( ALL 30 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL SUM ( ALL 30 ) FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT + col2 DIV - col1 col0 FROM tab1
----
-1
-11
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL 28 + COUNT( * ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL 28 + COUNT ( * ) AS col0 FROM tab1
----
31

query I rowsort
SELECT ALL + col1 + - 8 * + - col1 * + + 63 AS col0 FROM tab0
----
10605
40905
505

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT + 88 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + 88 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
91

query II rowsort
SELECT + 34, col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 AS col1, + 80 * - + col0, - 97 col0 FROM tab1
----
9 values hashing to d9f32c73e455ec121e449053775ea54e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col2 * col2 * + - col2 * col1 FROM tab2
----
-13072504
-4928000
-620517

query I rowsort
SELECT ALL col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

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

query I rowsort
SELECT - 54 + - col2 AS col2 FROM tab1 AS cor0
----
-113
-122
-150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 > + col0
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT ALL col2 DIV + 12 + - col2 FROM tab1 AS cor0
----
-55
-63
-88

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL col2 / + 12 + - col2 FROM tab1 AS cor0
----
-55
-63
-88

query I rowsort
SELECT DISTINCT - 16 + - - col2 AS col2 FROM tab0 AS cor0
----
-6
31
83

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL COUNT( * ) - + - COUNT( * ) + + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL COUNT ( * ) - + - COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL MIN( + ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL MIN ( + ( - col1 ) ) FROM tab2
----
-77

query II rowsort
SELECT DISTINCT col1, 61 AS col0 FROM tab2
----
51
61
67
61
77
61

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT COUNT( col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-640
SELECT COUNT ( col0 ) col1 FROM tab0
----
3

query II rowsort
SELECT + col0 * 65, + col0 FROM tab1
----
3315
51
5525
85
5915
91

query I rowsort
SELECT DISTINCT - ( - - col1 ) * + col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col0 / + - 99 FROM tab2 WHERE NOT 81 < NULL
----

query I rowsort
SELECT DISTINCT 48 * + + col1 * col1 FROM tab2
----
124848
215472
284592

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT + COUNT( * ), 77 AS col2 FROM tab2 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-645
SELECT + COUNT ( * ), 77 AS col2 FROM tab2 AS cor0
----
3
77

query I rowsort
SELECT + - 47 FROM tab0 AS cor0 WHERE - col1 + + 60 IS NULL AND NOT + col2 BETWEEN - col2 AND col0 + + - col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 56 + ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT ALL ( CAST( col1 AS SIGNED ) ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - + col1 * - 17 * + col1 FROM tab0 AS cor0
----
111537
17
7497

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 75 + - - col0 + + col2, + col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - - col2 IS NOT NULL
----

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

query I rowsort
SELECT ALL ( 99 ) + + - col0 AS col2 FROM tab1 AS cor0
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( * ) + 7 AS col1 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( * ) + 7 AS col1 FROM tab0 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT COUNT( * ) * - + MIN( - + 25 ) + + COUNT( * ) * 31 AS col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-655
SELECT COUNT ( * ) * - + MIN ( - + 25 ) + + COUNT ( * ) * 31 AS col1 FROM tab0 AS cor0
----
168

query I rowsort
SELECT - - 61 * - - col0 + - - 72 * - col0 AS col2 FROM tab1 AS cor0
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - - 42 + - MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-657
SELECT - - 42 + - MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - ( - - col0 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT - CAST( COUNT( - ( - - CAST( + col1 AS SIGNED ) ) ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - CAST ( COUNT ( - ( - - CAST ( + col1 AS INTEGER ) ) ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT - col1 + + ( + col0 ) * - col1 FROM tab0
----
-1296
-1848
-98

query II rowsort
SELECT ALL col1 AS col1, 46 AS col2 FROM tab1
----
14
46
47
46
5
46

query I rowsort
SELECT + col1 / col0 * - 47 * - col1 FROM tab2 WHERE + col0 / + 25 BETWEEN - 20 AND - 50
----

query II rowsort
SELECT ALL - col0 AS col2, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT * FROM tab1 WHERE - col1 + 73 + - + 89 NOT BETWEEN 47 / + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 3 + col0 AS col0 FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT SUM( DISTINCT col0 ) + 51 FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-667
SELECT SUM ( DISTINCT col0 ) + 51 FROM tab0
----
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-668
SELECT - - COUNT( ALL + col2 ) - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 80 * - 47 * col0 IS NULL OR NOT ( col2 - - CAST( - col2 AS SIGNED ) ) > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT - - COUNT ( ALL + col2 ) - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 80 * - 47 * col0 IS NULL OR NOT ( col2 - - CAST ( - col2 AS INTEGER ) ) > - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - 29 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-669
SELECT - 29 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-87

query II rowsort
SELECT DISTINCT - col1 + + 15 + - 38 * + - col2 AS col0, col1 FROM tab1 AS cor0
----
2252
5
2552
47
3649
14

query I rowsort
SELECT - ( 12 ) * - + col2 AS col1 FROM tab0 cor0
----
1188
120
564

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

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 83 IN ( + col0 * + 66, + col2 )
----
37
44
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT - COUNT( ALL 12 ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-675
SELECT - COUNT ( ALL 12 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-676
SELECT ( - MIN( + + col1 ) ), ( - MIN( col0 ) ) AS col2, MAX( ALL + ( col2 ) ) AS col0 FROM tab0
----
-1
-15
99

skipif mysql # not compatible
query III rowsort label-676
SELECT ( - MIN ( + + col1 ) ), ( - MIN ( col0 ) ) AS col2, MAX ( ALL + ( col2 ) ) AS col0 FROM tab0
----
-1
-15
99

query I rowsort
SELECT DISTINCT - col0 * + - 99 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col0 AND - 35
----

query I rowsort
SELECT 79 * + 84 FROM tab0
----
6636
6636
6636

query I rowsort
SELECT DISTINCT 12 * + + col1 FROM tab1
----
168
564
60

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( - - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - col0 col2 FROM tab0
----
-10
-87
-47
-15
-99
-97

query II rowsort
SELECT col1, col0 AS col1 FROM tab0 cor0
----
1
97
21
87
81
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT - MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-685
SELECT - MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT MAX( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT MAX ( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL + col2 / - + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + + 63 IS NULL
----

query I rowsort
SELECT ALL - 94 + + col1 + + col2 FROM tab0 AS cor0
----
-63
34
6

query II rowsort
SELECT ALL + col1, col2 + col1 * - col1 - - 31 * + col2 FROM tab1 AS cor0
----
14
2876
47
-33
5
1863

query I rowsort
SELECT DISTINCT - + 54 + - col2 + + + col0 AS col0 FROM tab1 AS cor0
----
-28
-31
-99

query I rowsort
SELECT ALL - 17 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-693
SELECT * FROM tab1 AS cor0 WHERE col0 + - col2 * - ( - 19 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-693
SELECT * FROM tab1 AS cor0 WHERE col0 + - col2 * - ( - 19 ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-694
SELECT DISTINCT col1 DIV - col0 + - - col2 * - + col2 + + + col1, + col0 AS col1 FROM tab1
----
-3476
85
-4577
91
-9202
51

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT col1 / - col0 + - - col2 * - + col2 + + + col1, + col0 AS col1 FROM tab1
----
-3476
85
-4577
91
-9202
51

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + 5 * - + col2 >= col2
----

query III rowsort
SELECT * FROM tab2 WHERE 2 BETWEEN - + 86 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT + col2 * col1 + + CAST( NULL AS SIGNED ) + - - 53 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL SUM( - - 35 ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL SUM ( - - 35 ) FROM tab0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT COUNT( + + col1 ) + + - 2 * - COUNT( DISTINCT 50 ) DIV + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-699
SELECT COUNT ( + + col1 ) + + - 2 * - COUNT ( DISTINCT 50 ) / + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1, tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL <= + 4 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT - - COUNT( * ) DIV + 83 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT - - COUNT ( * ) / + 83 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-704
SELECT - 31 FROM tab1 WHERE + - col2 NOT IN ( + col2 + 12, - col1, col0 + - - col2 / - + 25, - CAST( NULL AS DECIMAL ) - + 85, - - col1 )
----

skipif mysql # not compatible
query I rowsort label-704
SELECT - 31 FROM tab1 WHERE + - col2 NOT IN ( + col2 + 12, - col1, col0 + - - col2 / - + 25, - CAST ( NULL AS REAL ) - + 85, - - col1 )
----

query I rowsort
SELECT ALL 35 - 22 AS col1 FROM tab2
----
13
13
13

query II rowsort
SELECT DISTINCT + 98, 28 AS col2 FROM tab1
----
98
28

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL MIN( - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL MIN ( - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 2, - ( - ( + 93 ) ) col1 FROM tab0 AS cor0
----
2
93
2
93
2
93

query II rowsort
SELECT DISTINCT col1 AS col2, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL - + 5 AS col0, - col0 + col0 + + 42 + ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-5
104
-5
139
-5
238

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - - col0 * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 85 + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT 20 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT 20 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + - 40 + + - ( + col2 ) col1 FROM tab0 WHERE NOT col0 + col0 IS NULL
----
-149
-60
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - 9 + COUNT( * ) FROM tab2 WHERE - col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - 9 + COUNT ( * ) FROM tab2 WHERE - col0 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 78 * + ( - + 53 ) FROM tab1 AS cor0
----
-4134
-4134
-4134

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT ( - col2 / - + col0 IS NULL )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 64 ) * - col1 col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL - SUM( DISTINCT + 22 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - SUM ( DISTINCT + 22 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT col1 + + 41 AS col2 FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( + ( - - col1 ), - col0 ) )
----

query I rowsort
SELECT + col0 * + + col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT + 93 IN ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 / + col2 + - - ( + col1 ) + + + col1 * 20 AS col1 FROM tab1 AS cor0 WHERE col1 <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL + + MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL + + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL - + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - SUM( DISTINCT - col0 ) + - ( SUM( - col1 ) ) FROM tab0 AS cor0
----
302

skipif mysql # not compatible
query I rowsort label-727
SELECT - SUM ( DISTINCT - col0 ) + - ( SUM ( - col1 ) ) FROM tab0 AS cor0
----
302

query I rowsort
SELECT DISTINCT - col2 + 66 AS col2 FROM tab2 AS cor0
----
26
43
8

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL + 63 + - - COUNT( * ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + 63 + - - COUNT ( * ) AS col2 FROM tab1 cor0
----
66

query II rowsort
SELECT col2, 75 FROM tab0
----
10
75
47
75
99
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-732
SELECT ALL - CAST( NULL AS DECIMAL ) + - ( 42 ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT col2 AS col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab0 WHERE 92 IS NULL
----

query I rowsort
SELECT ALL ( 37 ) AS col0 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL MAX( ALL + - 41 ) AS col1 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL MAX ( ALL + - 41 ) AS col1 FROM tab1
----
-41

query I rowsort
SELECT ALL + 62 + - col1 AS col1 FROM tab1 AS cor0
----
15
48
57

query I rowsort
SELECT 22 - - 36 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 * + 20 * - col2 * - 70 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - 22 AS col0 FROM tab1 AS cor0
----
25
257
943

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-741
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-741
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT SUM( - 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT SUM ( - 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-743
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-743
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + CAST ( NULL AS REAL )
----

query I rowsort
SELECT - ( - - col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL MAX( ALL - 72 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL MAX ( ALL - 72 ) AS col2 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT - COUNT( * ) * + 50 + - MAX( ALL col2 ) col0 FROM tab2 AS cor0
----
-208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-746
SELECT DISTINCT - COUNT ( * ) * + 50 + - MAX ( ALL col2 ) col0 FROM tab2 AS cor0
----
-208

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 17 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL 81 * - 47 - ( - - ( - - col2 ) ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-3806
-3806
-3806

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL 81 * - 47 - ( - - ( - - col2 ) ) / - col2 AS col0 FROM tab0 AS cor0
----
-3806
-3806
-3806

query II rowsort
SELECT ALL + col0 * 31 * col1 AS col0, + 91 FROM tab2 AS cor0
----
152768
91
155775
91
72726
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-751
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-751
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL = col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT - col2 DIV - 70 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-753
SELECT - col2 / - 70 FROM tab1 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT col0 DIV col1 + + + col2 - - - col0 + - 33 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-42
-55
15

skipif mysql # not compatible
query I rowsort label-754
SELECT col0 / col1 + + + col2 - - - col0 + - 33 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-42
-55
15

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + - 48 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) * - col1 col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT CAST( - 81 AS SIGNED ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT CAST ( - 81 AS INTEGER ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT COUNT( * ) * - + COUNT( * ) col2, 45 AS col1 FROM tab1
----
-9
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-760
SELECT COUNT ( * ) * - + COUNT ( * ) col2, 45 AS col1 FROM tab1
----
-9
45

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - MAX( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-761
SELECT - MAX ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT ALL + col1 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + col1 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
0
21
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-763
SELECT ALL - - col2 + - - col0 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-763
SELECT ALL - - col2 + - - col0 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE + ( - - ( - col1 ) ) + - 24 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col1 NOT IN ( 23, - ( + col2 ) - + 87 * 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col0 ) + 30 AS col1 FROM tab1 AS cor0
----
115
121
81

query I rowsort
SELECT col2 * 66 + 40 - - col2 AS col1 FROM tab1
----
3993
4596
6472

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 43 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + - 62 AS col0 FROM tab1
----
-3
34
6

query I rowsort
SELECT DISTINCT 55 - 89 AS col1 FROM tab1
----
-34

query I rowsort
SELECT col1 + ( + + 17 ) + - 86 FROM tab2
----
-18
-2
8

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND + - col0 * 95 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT COUNT( * ) + + + MIN( - + col0 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT COUNT ( * ) + + + MIN ( - + col0 ) FROM tab1
----
-88

query I rowsort
SELECT + ( + 50 ) FROM tab2
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-776
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 44 * - + CAST( NULL AS SIGNED ) * - col2 AND + + col0
----

skipif mysql # not compatible
query III rowsort label-776
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 44 * - + CAST ( NULL AS INTEGER ) * - col2 AND + + col0
----

query II rowsort
SELECT ALL + col0 * + col0 AS col0, col2 + + col1 FROM tab2 AS cor0
----
2116
74
4096
117
5625
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT - col1 * + col0 + + col2 * + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-107328
-257325
-26680

query I rowsort
SELECT + + 94 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT COUNT( - 60 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT COUNT ( - 60 ) AS col1 FROM tab2
----
3

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT 89 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - + col2 * + col0 * - + 87 - 98 + + col1 * - - 66 AS col0 FROM tab0 WHERE NOT NULL < + 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

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

query I rowsort
SELECT + 30 * col0 FROM tab2 WHERE NOT NULL >= + col0 * + 90
----

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

query III rowsort
SELECT + 78 * col2 AS col1, + 79 * + col1 * + col1, 18 AS col0 FROM tab1 AS cor0
----
9 values hashing to b6b416683b84ba85ea770b5a54434c4f

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 63 BETWEEN + 11 AND + 88 / + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT ALL + - COUNT( - ( + 20 ) ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + - COUNT ( - ( + 20 ) ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 18 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - 29 + + col1 AS col2 FROM tab2 AS cor0
----
22
38
48

query I rowsort
SELECT - 32 + - 30 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT + 37 + - 32 * 49 * col2 + - 22 + + 93 * + - col2 FROM tab0 AS cor0
----
-164424
-16595
-78052

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - 47 * - col1 FROM tab2 AS cor0
----
2351
3074
3555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT - 68 * CAST( NULL AS SIGNED ) * - - col1 + - col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - - col2 * + ( - col2 ) col2 FROM tab2 AS cor0
----
-1640
-3422
-552

query I rowsort
SELECT - col2 * + + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col0 - - + 75 AS col0 FROM tab1 AS cor0
----
126
160
166

query I rowsort
SELECT ALL col1 - - + col2 * + col0 AS col0 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <> + 94
----

query I rowsort
SELECT ALL 53 * + 9 * col2 AS col1 FROM tab0
----
22419
47223
4770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT + CAST( NULL AS SIGNED ) - + col2 + + col1 * 94 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + + col1 + + col1 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT ALL + + 62 DIV COUNT( ALL + - 0 ) AS col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL + + 62 / COUNT ( ALL + - 0 ) AS col0 FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL + + 64 + COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + + 64 + COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
64

query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query II rowsort label-809
SELECT + 77 DIV 27 AS col0, 74 - - 76 AS col0 FROM tab0 AS cor0
----
2
150
2
150
2
150

skipif mysql # not compatible
query II rowsort label-809
SELECT + 77 / 27 AS col0, 74 - - 76 AS col0 FROM tab0 AS cor0
----
2
150
2
150
2
150

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - MIN( 19 ) FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - MIN ( 19 ) FROM tab2 cor0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT + + col1 * 98 FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 71 IN ( col2, - col2 * - col0 * 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 83 * col2 AS col0 FROM tab0 AS cor0
----
3901
8217
830

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL + + COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + + COUNT ( col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * + col2 * + 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * + col2 * + 99 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-818
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 + - CAST( - col0 AS SIGNED ) + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-818
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 + - CAST ( - col0 AS INTEGER ) + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 13 * + ( + 93 ) + + 82 ) <> ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 28 col0 FROM tab1 WHERE NOT NULL = - + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL SUM( - + 38 ) AS col2 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL SUM ( - + 38 ) AS col2 FROM tab1
----
-114

query I rowsort
SELECT + 91 * + 65 * - col1 AS col1 FROM tab1
----
-278005
-29575
-82810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT SUM( ALL - + 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-824
SELECT SUM ( ALL - + 39 ) FROM tab2
----
-117

query I rowsort
SELECT ( 52 ) AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT 88 FROM tab1 cor0 WHERE NULL IS NULL
----
88
88
88

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT MAX( DISTINCT col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT DISTINCT MAX ( DISTINCT col2 ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT + col1 + col1 DIV + + col2 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + col1 + col1 / + + col2 FROM tab0 AS cor0
----
1
23
82

query I rowsort
SELECT ALL + col0 + col2 * - - 45 * + - 15 FROM tab2 AS cor0
----
-15479
-26936
-39075

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT COUNT( - + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-831
SELECT DISTINCT COUNT ( - + col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - - ( 47 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
47

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query II rowsort label-834
SELECT DISTINCT - ( - + col1 ) * - 60, col0 DIV + 27 AS col0 FROM tab1
----
-2820
3
-300
3
-840
1

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT - ( - + col1 ) * - 60, col0 / + 27 AS col0 FROM tab1
----
-2820
3
-300
3
-840
1

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT + SUM( - col1 ) * + 31 FROM tab2 AS cor0
----
-6045

skipif mysql # not compatible
query I rowsort label-835
SELECT + SUM ( - col1 ) * + 31 FROM tab2 AS cor0
----
-6045

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-836
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + col0 * col0 + + col2 + col2 + + 90 + - col2 * + 43 * col0 FROM tab0 AS cor0
----
-29731
-29906
-403232

query II rowsort
SELECT + + col0 * - + col0 + col0 + col1 + - col1, 18 AS col1 FROM tab2 AS cor0
----
-2070
18
-4032
18
-5550
18

query I rowsort
SELECT ALL - col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-842
SELECT + ( + 7 ) + COUNT( * ) col2, - COUNT( * ) - - - 40 + + CAST( - 49 AS SIGNED ) col2 FROM tab0
----
10
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-842
SELECT + ( + 7 ) + COUNT ( * ) col2, - COUNT ( * ) - - - 40 + + CAST ( - 49 AS INTEGER ) col2 FROM tab0
----
10
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - - col0 * 55 AS col1, - col1 AS col0 FROM tab0
----
4698
-21
5238
-1
810
-81

skipif mysql # not compatible
query II rowsort label-843
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col0 * 55 AS col1, - col1 AS col0 FROM tab0
----
4698
-21
5238
-1
810
-81

query I rowsort
SELECT - col2 + 40 + col0 + - - 84 * - 81 AS col2 FROM tab2
----
-6740
-6741
-6747

query I rowsort
SELECT ALL 17 * ( - ( - + col1 ) ) AS col0 FROM tab2
----
1139
1309
867

query I rowsort
SELECT ALL + 28 * + col1 AS col0 FROM tab2
----
1428
1876
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + 96 + + - COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-847
SELECT + 96 + + - COUNT ( * ) AS col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT + COUNT( * ) * + - 54 AS col1 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-848
SELECT + COUNT ( * ) * + - 54 AS col1 FROM tab1
----
-162

query II rowsort
SELECT ALL + col2 AS col1, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT + col1 DIV + 44 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + col1 / + 44 FROM tab1
----
0
1

query I rowsort
SELECT ALL - - col2 * + ( + + col2 ) * + - 85 FROM tab1 cor0
----
-295885
-393040
-783360

query I rowsort
SELECT col0 + - 53 AS col2 FROM tab1
----
-2
32
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 43 ) IN ( + ( - 13 ) + + col0 )
----

query I rowsort
SELECT col2 * col2 + - col2 * + col1 FROM tab0
----
-110
-1598
9702

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 4 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - 87 * 95 + 26 * + 86 < col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL = - col1 / + 82
----

query I rowsort
SELECT DISTINCT 0 FROM tab2 WHERE NOT 74 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT MAX( DISTINCT 38 ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-859
SELECT MAX ( DISTINCT 38 ) AS col2 FROM tab0
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-861
SELECT col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-861
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( 25 / + col1 )
----

query I rowsort
SELECT col0 * - col2 + col2 AS col2 FROM tab2
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 9 * - col1 col0 FROM tab2
----
-436
-545
-653

query I rowsort
SELECT 44 * col1 - - col2 FROM tab0
----
143
3611
934

query I rowsort
SELECT 72 * + 76 FROM tab2
----
5472
5472
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT 36 * + 41 + COUNT( * ) FROM tab0
----
1479

skipif mysql # not compatible
query I rowsort label-868
SELECT 36 * + 41 + COUNT ( * ) FROM tab0
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT ( - COUNT( DISTINCT - 68 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT ( - COUNT ( DISTINCT - 68 ) ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col0 NOT IN ( - ( 60 ) )
----
3

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col0 NOT IN ( - ( 60 ) )
----
3

query III rowsort
SELECT * FROM tab0 WHERE 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT ALL col2 * - col0 + - col0 DIV + col1 AS col0 FROM tab2
----
-1058
-2560
-4351

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL col2 * - col0 + - col0 / + col1 AS col0 FROM tab2
----
-1058
-2560
-4351

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 81 NOT IN ( - 37 * + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - MIN( ALL - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-874
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 55 FROM tab1 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL + COUNT( - col0 ) FROM tab2 WHERE ( - ( 53 ) + 61 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + COUNT ( - col0 ) FROM tab2 WHERE ( - ( 53 ) + 61 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL > col0
----

query I rowsort
SELECT + col1 * + col1 + + 26 FROM tab2
----
2627
4515
5955

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 4 ) AND 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT DISTINCT MAX( - 89 ) * + COUNT( * ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT MAX ( - 89 ) * + COUNT ( * ) FROM tab2
----
-267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 27 col1 FROM tab1 AS cor0
----
32
41
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 92 * - 41 + + ( 85 + col0 ) )
----

query I rowsort
SELECT DISTINCT 36 + col1 * - col0 FROM tab0 AS cor0
----
-1179
-1791
-61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + + col1 col0 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 53 NOT BETWEEN NULL AND - ( 58 ) / + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT ( ( col1 ) - col0 ) <> col0 * col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-887
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT ( ( col1 ) - col0 ) <> col0 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT 38 + ( - COUNT( * ) ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-888
SELECT 38 + ( - COUNT ( * ) ) AS col1 FROM tab0
----
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 66 + + 78 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) + + col2 * 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-891
SELECT ALL * FROM tab0 AS cor0 WHERE 57 + + ( - col1 ) BETWEEN ( col2 ) AND col1 * col0 + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-891
SELECT ALL * FROM tab0 AS cor0 WHERE 57 + + ( - col1 ) BETWEEN ( col2 ) AND col1 * col0 + col0 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT - COUNT( ALL col2 ) * 6 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-893
SELECT - COUNT ( ALL col2 ) * 6 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT + col2 DIV + 4 AS col1 FROM tab2 AS cor0
----
10
14
5

skipif mysql # not compatible
query I rowsort label-895
SELECT + col2 / + 4 AS col1 FROM tab2 AS cor0
----
10
14
5

query I rowsort
SELECT + col0 / 21 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT ALL - + SUM( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT ( + col0 ) - - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL COUNT( ALL + 91 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 8
----
0

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL COUNT ( ALL + 91 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 8
----
0

query I rowsort
SELECT ALL + - 24 + - col2 FROM tab1 AS cor0
----
-120
-83
-92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - ( CAST( NULL AS SIGNED ) ) + + col2 FROM tab0 AS cor0 WHERE NULL > ( col1 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 32 * 37 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT DISTINCT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - - 93 col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-906
SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - - 93 col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-907
SELECT ALL COUNT( - 7 ) DIV 56 - 1 col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-907
SELECT ALL COUNT ( - 7 ) / 56 - 1 col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 + + + 81 + + col0 * - col0 AS col2 FROM tab0
----
-63
-7467
-9327

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 74 * col0 FROM tab0
----
1110
6438
7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-913
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT + 49 * - - CAST( NULL AS SIGNED ) * MIN( DISTINCT - 58 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT + 49 * - - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 58 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 AS cor0 WHERE NOT + col2 * col2 BETWEEN - 8 + + col0 AND ( + col1 )
----
-77
-77
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col1 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT col1 * + - ( ( col2 ) ) - - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-209
-3806
-98

skipif mysql # not compatible
query I rowsort label-917
SELECT col1 * + - ( ( col2 ) ) - - col1 / col1 AS col2 FROM tab0 AS cor0
----
-209
-3806
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( col1 ) <= col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT - 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + 78 * + 26 FROM tab2
----
2028
2028
2028

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL + - 57 DIV + 75 * 51 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + - 57 / + 75 * 51 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + + MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-923
SELECT + + MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + - ( + col2 ) * - 5 * + col1 AS col2 FROM tab1 AS cor0
----
1475
15980
6720

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE 25 > 90 OR NULL BETWEEN NULL AND + 15 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT ALL + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + 66 * - 12 AS col2 FROM tab2 AS cor0
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT + col1 DIV + - 56 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-928
SELECT + col1 / + - 56 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-929
SELECT - 17 + + 88 + - ( + - col1 ) DIV CAST( col0 AS SIGNED ) DIV + col2 FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-929
SELECT - 17 + + 88 + - ( + - col1 ) / CAST ( col0 AS INTEGER ) / + col2 FROM tab2
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND col1 < ( + col0 )
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL MIN( DISTINCT - + 12 ) col1 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-931
SELECT ALL MIN ( DISTINCT - + 12 ) col1 FROM tab0
----
-12

query II rowsort
SELECT - col1 + - 15 AS col1, + 2 AS col1 FROM tab2
----
-66
2
-82
2
-92
2

query I rowsort
SELECT + 57 + col2 FROM tab1 WHERE NOT ( 23 + - col0 + - col0 ) IS NOT NULL AND ( 78 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT 13 DIV + 10 + - - col1 * + col2 * + ( col2 ) AS col2 FROM tab2
----
123201
225389
26980

skipif mysql # not compatible
query I rowsort label-934
SELECT 13 / + 10 + - - col1 * + col2 * + ( col2 ) AS col2 FROM tab2
----
123201
225389
26980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT ( - CAST( NULL AS SIGNED ) ) + - 38 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT 53 + + 68 + + ( + + 6 ) + - 46 * col0 AS col2 FROM tab1
----
-2219
-3783
-4059

query III rowsort
SELECT * FROM tab2 WHERE 28 >= col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 9 ) col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL IN ( - col2 * + 38 + + 57 ) )
----

query II rowsort
SELECT + col0 AS col0, + 85 + - col2 + col0 * col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + 25 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 25 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT MAX( DISTINCT + 70 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-943
SELECT MAX ( DISTINCT + 70 ) AS col0 FROM tab2
----
70

query I rowsort
SELECT - col2 - - - 91 AS col0 FROM tab1 AS cor0
----
-150
-159
-187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 > ( - - col0 * + col1 + + 17 + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + col0 BETWEEN NULL AND - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT MIN( 9 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT MIN ( 9 ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab1 AS cor0 WHERE + col2 + + col0 < - + col2 + + 64
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 80 * + col2 / + col1 NOT IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-951
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( + col1 + + col1 + - CAST( NULL AS SIGNED ) * col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-951
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( + col1 + + col1 + - CAST ( NULL AS INTEGER ) * col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT SUM( ALL ( - 35 ) ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-952
SELECT SUM ( ALL ( - 35 ) ) FROM tab0 AS cor0
----
-105

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 32
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE 1 NOT IN ( col2 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT + MAX( DISTINCT col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-955
SELECT + MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
47

query II rowsort
SELECT ALL + col2, - ( + 87 ) AS col0 FROM tab1
----
59
-87
68
-87
96
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT - CAST( 68 AS SIGNED ) * - 62 FROM tab0, tab1 AS cor0
----
9 values hashing to e637c30057d561fdd85953a511357ff0

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( 68 AS INTEGER ) * - 62 FROM tab0, tab1 AS cor0
----
9 values hashing to e637c30057d561fdd85953a511357ff0

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 + + 23 NOT BETWEEN NULL AND - - col2
----

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

query I rowsort
SELECT DISTINCT 2 * - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 - + 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 25 ) AS col0 FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL - SUM( - 22 ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - SUM ( - 22 ) AS col0 FROM tab0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-965
SELECT + ( 71 ) AS col0, + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-965
SELECT + ( 71 ) AS col0, + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
71
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( - 47 + + 66 * + col0 * - + col2 ) NOT BETWEEN - col2 AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * - col2 col1 FROM tab2 cor0
----
-391
-680
-986

query I rowsort
SELECT DISTINCT - + col1 * col1 + + 30 AS col0 FROM tab2 cor0
----
-2571
-4459
-5899

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT - COUNT( * ) * + - MIN( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE ( - + col0 IS NOT NULL )
----
-288

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - COUNT ( * ) * + - MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE ( - + col0 IS NOT NULL )
----
-288

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

query I rowsort
SELECT DISTINCT + - 69 + + 37 AS col0 FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL 42 + - 80 * - - MIN( col2 ) * 92 FROM tab0
----
-73558

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL 42 + - 80 * - - MIN ( col2 ) * 92 FROM tab0
----
-73558

query II rowsort
SELECT DISTINCT + 0, + 18 AS col0 FROM tab2
----
0
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col2 IN ( + - col0 / 41 * col2 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * col0 + - 21 col2 FROM tab0
----
1314
7722
8612

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + ( + ( - - 96 ) ) + col2 * + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT CAST( - + col1 AS SIGNED ) * + - ( + - col2 ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-980
SELECT CAST ( - + col1 AS INTEGER ) * + - ( + - col2 ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 52 + col2 IN ( col2, ( + col2 ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-982
SELECT + MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 53 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - + col2 + ( - col2 ) col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT - + 95 + - col0 FROM tab2 AS cor0
----
-141
-159
-170

query I rowsort
SELECT ALL col0 + col0 * + - col1 FROM tab1
----
-340
-4186
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT - col2 DIV - 1 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-988
SELECT - col2 / - 1 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT col2 + - + col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT - - COUNT( * ) DIV 52 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT - - COUNT ( * ) / 52 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT SUM( ALL - - 87 ) AS col1, 80 + 15 * COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
261
125

skipif mysql # not compatible
query II rowsort label-991
SELECT SUM ( ALL - - 87 ) AS col1, 80 + 15 * COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
261
125

query II rowsort
SELECT col2, + col0 * + col0 FROM tab0
----
10
7569
47
225
99
9409

query II rowsort
SELECT ALL + col2 AS col1, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT 14 * COUNT( * ) AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-994
SELECT 14 * COUNT ( * ) AS col1 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT - MAX( DISTINCT - 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - MAX ( DISTINCT - 23 ) FROM tab1
----
23

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( + - ( + + col1 ) )
----

query II rowsort
SELECT col0, + 48 FROM tab2 AS cor0
----
46
48
64
48
75
48

query II rowsort
SELECT + 20, + col2 FROM tab1 AS cor0
----
20
59
20
68
20
96

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

query II rowsort
SELECT - col0, - col2 * + - 4 AS col0 FROM tab1 AS cor0
----
-51
384
-85
236
-91
272

query I rowsort
SELECT ALL col1 + 24 FROM tab0 AS cor0
----
105
25
45

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL + + SUM( col1 ) + + + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + + SUM ( col1 ) + + + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
198

query II rowsort
SELECT DISTINCT col1, + col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
14
-1293
47
-3105
5
-210

query I rowsort
SELECT - - col1 FROM tab1 WHERE ( NOT + 43 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( * ) + - 71 + 1 * + 15 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( * ) + - 71 + 1 * + 15 FROM tab1
----
-53

query I rowsort
SELECT ALL + 59 * - 25 + + col1 AS col0 FROM tab0
----
-1394
-1454
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT COUNT( * ) * - - MIN( DISTINCT - col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT COUNT ( * ) * - - MIN ( DISTINCT - col0 ) FROM tab0
----
-291

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 36 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + ( + col0 ) + + ( - + 29 ) AS col1 FROM tab2
----
17
35
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1012
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1012
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( CAST ( NULL AS INTEGER ) IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL + + col1 DIV - 47 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + + col1 / - 47 AS col1 FROM tab0 cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT ALL + col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT DISTINCT - col1, 49 AS col2 FROM tab2 AS cor0 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT - MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT - MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT MAX( + col1 ), - 5 AS col0 FROM tab2
----
77
-5

skipif mysql # not compatible
query II rowsort label-1018
SELECT MAX ( + col1 ), - 5 AS col0 FROM tab2
----
77
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT ALL + COUNT( - col1 ) AS col0, 27 col1 FROM tab0
----
3
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1019
SELECT ALL + COUNT ( - col1 ) AS col0, 27 col1 FROM tab0
----
3
27

query I rowsort
SELECT ALL + 39 * 54 AS col1 FROM tab2
----
2106
2106
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT + col2 DIV - ( + 51 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1021
SELECT + col2 / - ( + 51 ) FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT + COUNT( * ) * - MAX( - 45 ) AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 45 ) AS col0 FROM tab2
----
135

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - + col1 < + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 37 AS col0 FROM tab2 AS cor0
----
37
37
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ( - - 58 ) + - - COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1026
SELECT ( - - 58 ) + - - COUNT ( * ) FROM tab2
----
61

query I rowsort
SELECT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT col1 + + col0 * - CAST( col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) - col0 * col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - 78 + - col0 FROM tab2 AS cor0
----
-124
-142
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT + 23 + + COUNT( * ) col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1030
SELECT DISTINCT + 23 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
26

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1032
SELECT col0 / + ( - 87 ) + CAST( NULL AS DECIMAL ) - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT col0 / + ( - 87 ) + CAST ( NULL AS REAL ) - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + ( - col0 ) * - - 3 * - 23 FROM tab0 AS cor0
----
1035
6003
6693

query I rowsort
SELECT ALL col0 + - 78 AS col1 FROM tab0 AS cor0
----
-63
19
9

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( - 63 ) <= NULL
----

query II rowsort
SELECT - 94, ( - - col0 ) AS col1 FROM tab0 cor0
----
-94
15
-94
87
-94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + MIN( - ( + 49 ) ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-1038
SELECT + MIN ( - ( + 49 ) ) FROM tab1
----
-49

query II rowsort
SELECT 55 AS col0, col0 + + 86 * col2 * - 48 * - + col0 FROM tab0
----
55
2910255
55
3591447
55
39641281

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT DISTINCT 35 + - + 73 + + + col0 DIV col1 + + 13 AS col0 FROM tab2
----
-24
-25

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT 35 + - + 73 + + + col0 / col1 + + 13 AS col0 FROM tab2
----
-24
-25

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( - col2 * + + 94 )
----

query I rowsort
SELECT ALL col1 - 63 FROM tab1
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL col1 * + 82 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - ( + MIN( - - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - ( + MIN ( - - col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT + CAST( - col0 AS SIGNED ) / - col2 * CAST( NULL AS SIGNED ) + 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT 9 * + col2 * col0 + + col2 + + ( col0 ), + 47 AS col0 FROM tab2 AS cor0
----
23144
47
39283
47
9591
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 16 BETWEEN col2 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - ( 34 ) * + col1 + col1, - 33 / + 28 + + - col1 + + 65, - + col2 + - col1 - + col1 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT - SUM( - + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT - SUM ( - + col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + 50 * + - col0 AS col1 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1052
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 * + col1 - - col1 * - col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 * + col1 - - col1 * - col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query III rowsort label-1053
SELECT * FROM tab0 AS cor0 WHERE NOT + 24 <= - - col2 DIV 72 * + - col1 * - col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1053
SELECT * FROM tab0 AS cor0 WHERE NOT + 24 <= - - col2 / 72 * + - col1 * - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL COUNT( * ) * - 44 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL COUNT ( * ) * - 44 FROM tab1
----
-132

query I rowsort
SELECT DISTINCT + - 59 AS col2 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL - col0 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - col0 / + 93 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1058
SELECT ALL CAST( NULL AS DECIMAL ) + + + col0 FROM tab0 AS cor0 WHERE - col0 * 56 / col2 * + col0 * - col1 * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL CAST ( NULL AS REAL ) + + + col0 FROM tab0 AS cor0 WHERE - col0 * 56 / col2 * + col0 * - col1 * col1 IS NULL
----

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

query I rowsort
SELECT ALL + - 14 + col0 + - + 58 AS col2 FROM tab2 AS cor0
----
-26
-8
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= - col2
----

query I rowsort
SELECT - col1 + + - 32 + + 35 AS col1 FROM tab2 AS cor0
----
-48
-64
-74

query I rowsort
SELECT ALL 36 * col2 + 3 FROM tab0 cor0
----
1695
3567
363

query I rowsort
SELECT ( + + col1 ) * - 94 AS col2 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT ( 50 ) * - 98 FROM tab0
----
-4900
-4900
-4900

query I rowsort
SELECT ALL - col0 * - col0 + + 45 FROM tab0 AS cor0
----
270
7614
9454

query I rowsort
SELECT ALL + ( - + ( col1 ) ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL + + COUNT( * ) + + - 51 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + + COUNT ( * ) + + - 51 FROM tab0 AS cor0
----
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab2 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col2 NOT BETWEEN + + 9 - + - col2 * - - ( - + ( + - col0 ) ) + - - col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab0 WHERE + 54 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT 24 * + COUNT( ALL - 55 ) + 53 AS col0 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-1074
SELECT 24 * + COUNT ( ALL - 55 ) + 53 AS col0 FROM tab1
----
125

query I rowsort
SELECT ALL + col0 - + 95 FROM tab2
----
-20
-31
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT ALL CAST( - 52 AS SIGNED ) FROM tab1
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL CAST ( - 52 AS INTEGER ) FROM tab1
----
-52
-52
-52

query I rowsort
SELECT ALL - 90 AS col2 FROM tab0 WHERE NULL IS NULL
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT DISTINCT - 68 FROM tab2 WHERE NOT 98 / - - col0 * + CAST( + col1 AS SIGNED ) + + col0 - + col2 IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT - 68 FROM tab2 WHERE NOT 98 / - - col0 * + CAST ( + col1 AS INTEGER ) + + col0 - + col2 IS NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT 76 * - - COUNT( * ) AS col2 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-1079
SELECT 76 * - - COUNT ( * ) AS col2 FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + + COUNT( DISTINCT + 56 ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1080
SELECT + + COUNT ( DISTINCT + 56 ) AS col0 FROM tab1 cor0
----
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 54 IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT ALL + - col2 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT DISTINCT - col1 * + + ( - CAST( + col2 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1083
SELECT DISTINCT - col1 * + + ( - CAST ( + col2 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT + col2 * - 94 AS col1 FROM tab1 AS cor0
----
-5546
-6392
-9024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1086
SELECT ALL - - 47 * + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - 33 + - col0 FROM tab2 cor0
----
-108
-79
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT COUNT( * ) DIV + COUNT( * ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1089
SELECT COUNT ( * ) / + COUNT ( * ) col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT 67 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1090
SELECT 67 / + col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL col2 DIV - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL col2 / - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT MIN( ALL - col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT MIN ( ALL - col1 ) col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - 71 * - 38 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1094
SELECT - 54 * + CAST( NULL AS DECIMAL ) + - + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT - 54 * + CAST ( NULL AS REAL ) + - + 32 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 38 + + + 53 AS col1 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT + 81 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT + MAX( - 3 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1097
SELECT + MAX ( - 3 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT 28, col0 FROM tab0 AS cor0
----
28
15
28
87
28
97

query I rowsort
SELECT DISTINCT - col2 + + + col0 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - 96 + + col2 AS col2 FROM tab2 AS cor0
----
-38
-56
-73

query I rowsort
SELECT DISTINCT col0 - col1 * - - 15 AS col1 FROM tab0
----
-1200
-228
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT 58 - ( + COUNT( * ) ) col1 FROM tab1
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT 58 - ( + COUNT ( * ) ) col1 FROM tab1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT 97 * - CAST( + - CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
-2037
-7857
-97

skipif mysql # not compatible
query I rowsort label-1103
SELECT 97 * - CAST ( + - CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT DISTINCT + + SUM( DISTINCT col0 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
227
3

skipif mysql # not compatible
query II rowsort label-1104
SELECT DISTINCT + + SUM ( DISTINCT col0 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
227
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT - - 60 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1105
SELECT - - 60 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1106
SELECT ALL * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) * - 91 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1106
SELECT ALL * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) * - 91 IS NOT NULL
----

query I rowsort
SELECT ALL - 64 * + col0 AS col2 FROM tab1 AS cor0
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT 84 / + col2 IS NULL
----
46
64
75

query I rowsort
SELECT col1 * - 1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - col2 FROM tab2 AS cor0 WHERE NOT 48 * + + col2 * + ( col1 ) IS NULL
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * - 53 NOT IN ( + CAST( - col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1112
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * - 53 NOT IN ( + CAST ( - col0 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 + + 69 AS col2 FROM tab2 AS cor0
----
-1104
-3011
-3817

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT - COUNT( + 9 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT - COUNT ( + 9 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT ALL col0 * + + CAST( NULL AS SIGNED ) / + 73 FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - COUNT( - 17 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - COUNT ( - 17 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL col0 * - - ( + - col2 ) * col1 - + + 42 FROM tab2
----
-197162
-291492
-54000

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 * - col0 - col2 AS col0 FROM tab2
----
23
-2369
40
-4968
58
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT 3 + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1119
SELECT 3 + + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1120
SELECT + ( - + col0 ) + - col1 * - CAST( ( + col0 ) AS SIGNED ) AS col1, + 76 + - 43 AS col2 FROM tab0
----
0
33
1200
33
1740
33

skipif mysql # not compatible
query II rowsort label-1120
SELECT + ( - + col0 ) + - col1 * - CAST ( ( + col0 ) AS INTEGER ) AS col1, + 76 + - 43 AS col2 FROM tab0
----
0
33
1200
33
1740
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 36 + + COUNT( * ) + - ( + COUNT( + - ( - 67 ) ) ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1121
SELECT 36 + + COUNT ( * ) + - ( + COUNT ( + - ( - 67 ) ) ) AS col1 FROM tab2
----
36

query I rowsort
SELECT + ( + - col1 ) + - - 60 AS col1 FROM tab0
----
-21
39
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
63

query I rowsort
SELECT ALL - 75 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT ALL + col2 DIV - - col2 * col1 DIV - col1 AS col2 FROM tab1
----
-1
-1
-1

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 59 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 72 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT ALL - + COUNT( * ) + ( - 8 ) + + CAST( + + ( - + COUNT( * ) ) AS SIGNED ) + + ( + 80 ) * - 48 * + 9 FROM tab2 AS cor0
----
-34574

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL - + COUNT ( * ) + ( - 8 ) + + CAST ( + + ( - + COUNT ( * ) ) AS INTEGER ) + + ( + 80 ) * - 48 * + 9 FROM tab2 AS cor0
----
-34574

query I rowsort
SELECT ALL 50 - - ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
144
60
78

query I rowsort
SELECT ALL + ( ( col0 ) ) - - 81 AS col2 FROM tab0 AS cor0
----
168
178
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1132
SELECT ALL - 69, + COUNT( * ) AS col0 FROM tab0
----
-69
3

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL - 69, + COUNT ( * ) AS col0 FROM tab0
----
-69
3

query II rowsort
SELECT - col2 AS col1, col1 * col0 FROM tab2
----
-23
2346
-40
4928
-58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + MAX( 43 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-1134
SELECT + MAX ( 43 ) AS col2 FROM tab0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT col2 * - - CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1135
SELECT col2 * - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col1 * - 1 AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT - COUNT( * ) * - 66 + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1139
SELECT - COUNT ( * ) * - 66 + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT - 7 + - MIN( ALL - 99 ) + + 70 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
162

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 7 + - MIN ( ALL - 99 ) + + 70 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT ALL - 43 + - col2 + - col0 DIV 67 AS col2 FROM tab2 cor0
----
-102
-66
-83

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - 43 + - col2 + - col0 / 67 AS col2 FROM tab2 cor0
----
-102
-66
-83

query I rowsort
SELECT ALL + - col2 + - 68 FROM tab0 AS cor0
----
-115
-167
-78

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 5 + + col1 - + 81 IS NOT NULL
----

query II rowsort
SELECT - 31 + - 50 + + col2 * - 94, col1 + - 59 AS col2 FROM tab1 AS cor0
----
-5627
-54
-6473
-12
-9105
-45

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT COUNT( * ) + 4 AS col2 FROM tab0 WHERE NULL <= + - col0
----
4

skipif mysql # not compatible
query I rowsort label-1146
SELECT COUNT ( * ) + 4 AS col2 FROM tab0 WHERE NULL <= + - col0
----
4

query I rowsort
SELECT ALL + 75 * - col2 FROM tab1
----
-4425
-5100
-7200

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col1 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1150
SELECT DISTINCT + 14 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + 14 + + + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1151
SELECT - col0 - - col2 - - col0, + ( CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-1151
SELECT - col0 - - col2 - - col0, + ( CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - col1 * - col1 - + 96 FROM tab2
----
2505
4393
5833

query I rowsort
SELECT 42 * - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74766ebeccd3f43e8baa7949942b3e39

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 + + 1 AS col0 FROM tab1 AS cor0 WHERE + 89 + - + col2 IS NOT NULL
----
15
48
6

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE + 99 + col1 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT 61 * MAX( ALL + 13 ) FROM tab2 cor0
----
793

skipif mysql # not compatible
query I rowsort label-1158
SELECT 61 * MAX ( ALL + 13 ) FROM tab2 cor0
----
793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT DISTINCT - COUNT( * ) DIV + 79 * 89 + - + 81 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - COUNT ( * ) / + 79 * 89 + - + 81 AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT col1 * - - CAST( NULL AS SIGNED ) + + 94 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT ALL + 30 DIV - - 39 + + + ( - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 30 / - - 39 + + + ( - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 45 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1164
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 54 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT 3 * 80 AS col0 FROM tab2
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT - COUNT( DISTINCT col1 ) * + CAST( - - COUNT( * ) AS SIGNED ) + + COUNT( + 23 ) col0 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1166
SELECT - COUNT ( DISTINCT col1 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) + + COUNT ( + 23 ) col0 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + 47 * col2 * + - ( col2 ) AS col1 FROM tab2
----
-158108
-24863
-75200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 70 col1 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL - CAST( NULL AS SIGNED ) / - ( - + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - CAST ( NULL AS INTEGER ) / - ( - + COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT MAX( - 38 ) AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT MAX ( - 38 ) AS col1 FROM tab1 AS cor0
----
-38

query II rowsort
SELECT DISTINCT 44 * col2, + col0 AS col1 FROM tab2 AS cor0
----
1012
46
1760
64
2552
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT + col2 DIV 64 * + col0 AS col1 FROM tab1
----
0
51
91

skipif mysql # not compatible
query I rowsort label-1172
SELECT + col2 / 64 * + col0 AS col1 FROM tab1
----
0
51
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1173
SELECT DISTINCT - + col1 * - col1 + + 91 col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
532
NULL
6652
NULL
92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1173
SELECT DISTINCT - + col1 * - col1 + + 91 col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
532
NULL
6652
NULL
92
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT 69 DIV + col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1174
SELECT 69 / + col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL MAX( + + 46 ) + + 98 AS col2 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL MAX ( + + 46 ) + + 98 AS col2 FROM tab2 AS cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT DISTINCT + 37 + - + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-22
-31
-59

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + 37 + - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-22
-31
-59

query I rowsort
SELECT DISTINCT 66 + - col2 * - 77 * - - col1 FROM tab1 AS cor0
----
103554
22781
246158

query II rowsort
SELECT DISTINCT - col2, - col1 * + + ( 98 ) + - + col1 * + 98 * - col2 AS col0 FROM tab2 AS cor0
----
-23
109956
-40
294294
-58
374262

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - col0 IS NOT NULL
----

query I rowsort
SELECT + 7 + - + 78 FROM tab0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 16
----

query II rowsort
SELECT col0 + - col0 AS col2, col2 FROM tab0
----
0
10
0
47
0
99

query II rowsort
SELECT + 73 + - + col1 * + + col1 * - col2 AS col1, ( - col2 ) FROM tab1
----
150285
-68
1548
-59
18889
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT 95 + + COUNT( * ) AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1184
SELECT 95 + + COUNT ( * ) AS col0 FROM tab0
----
98

query I rowsort
SELECT ALL ( 74 ) * + col2 FROM tab0
----
3478
7326
740

query I rowsort
SELECT col1 + - - col2 + + ( col0 ) FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1187
SELECT - 53 + + - col1 AS col1, col0 * - col1 * CAST( - 34 AS SIGNED ) * - col1 + CAST( NULL AS SIGNED ) * + 62 * ( + + 93 ) AS col1 FROM tab0
----
-134
NULL
-54
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-1187
SELECT - 53 + + - col1 AS col1, col0 * - col1 * CAST ( - 34 AS INTEGER ) * - col1 + CAST ( NULL AS INTEGER ) * + 62 * ( + + 93 ) AS col1 FROM tab0
----
-134
NULL
-54
NULL
-74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1188
SELECT - col0 + + CAST( + col1 AS SIGNED ) + - - 36 + - - 59 * - - col0 FROM tab1
----
3008
4971
5361

skipif mysql # not compatible
query I rowsort label-1188
SELECT - col0 + + CAST ( + col1 AS INTEGER ) + - - 36 + - - 59 * - - col0 FROM tab1
----
3008
4971
5361

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + + 24 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1190
SELECT DISTINCT - - 79 + - - CAST( NULL AS SIGNED ) AS col0, 10 AS col0 FROM tab2 cor0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1190
SELECT DISTINCT - - 79 + - - CAST ( NULL AS INTEGER ) AS col0, 10 AS col0 FROM tab2 cor0
----
NULL
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE - 21 / - + 79 NOT IN ( col2, - col2, - + col2 * - + col0 + 53 + 55 * - col1 * - col0 / + - CAST( col1 AS SIGNED ) )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE - 21 / - + 79 NOT IN ( col2, - col2, - + col2 * - + col0 + 53 + 55 * - col1 * - col0 / + - CAST ( col1 AS INTEGER ) )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 91 >= - + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 * + - 11 - - + col1, col2 FROM tab2
----
-202
23
-363
40
-571
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1194
SELECT ALL CAST( NULL AS SIGNED ) - + col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT SUM( - + 88 ) - COUNT( * ) + 84 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT SUM ( - + 88 ) - COUNT ( * ) + 84 FROM tab2
----
-183

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 8 + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + 99 * - 2 * COUNT( * ) * COUNT( * ) col0 FROM tab2 AS cor0
----
-1782

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1197
SELECT ALL + 99 * - 2 * COUNT ( * ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT + col0 * col0 * + col2 + + col2 * - col1 * + 1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 58 * - col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT ALL - ( + 51 ) * + - col1 AS col0 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT MIN( ALL col2 ) * COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT MIN ( ALL col2 ) * COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT + ( - MIN( ALL 81 ) ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1203
SELECT + ( - MIN ( ALL 81 ) ) FROM tab1
----
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT + MIN( ALL + col1 ) AS col0, COUNT( * ) FROM tab1
----
5
3

skipif mysql # not compatible
query II rowsort label-1205
SELECT + MIN ( ALL + col1 ) AS col0, COUNT ( * ) FROM tab1
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT MIN( ALL + 82 ) FROM tab2 WHERE NULL IN ( - col1 * - col1 - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT MIN ( ALL + 82 ) FROM tab2 WHERE NULL IN ( - col1 * - col1 - + col0 )
----
NULL

query II rowsort
SELECT ALL 15, col1 AS col2 FROM tab1
----
15
14
15
47
15
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT + + 88 AS col0, + MAX( DISTINCT - 64 ) FROM tab2 AS cor0
----
88
-64

skipif mysql # not compatible
query II rowsort label-1209
SELECT + + 88 AS col0, + MAX ( DISTINCT - 64 ) FROM tab2 AS cor0
----
88
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1210
SELECT - CAST( NULL AS SIGNED ) / + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - - 58 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col1 ) * col1 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col0, + col0 AS col0 FROM tab0 AS cor0 WHERE 61 NOT IN ( col1 * + col1 )
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ALL 38 DIV - col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
703
870
9603

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 38 / - col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
703
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT ALL col2 + 26 DIV + 17 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL col2 + 26 / + 17 AS col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1217
SELECT COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col2 * col0 >= NULL
----

query I rowsort
SELECT + - ( + col1 ) AS col1 FROM tab1 cor0 WHERE + col1 NOT BETWEEN + ( col0 ) AND NULL
----
-14
-47
-5

query II rowsort
SELECT ALL 19 AS col0, + col2 FROM tab0
----
19
10
19
47
19
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL - SUM( DISTINCT - - 56 ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - SUM ( DISTINCT - - 56 ) AS col0 FROM tab1
----
-56

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT - 65 + + + COUNT( * ) AS col0 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - 65 + + + COUNT ( * ) AS col0 FROM tab0
----
-62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1226
SELECT ALL + ( - + COUNT( * ) ) - - CAST( + AVG ( DISTINCT + + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + ( - + COUNT ( * ) ) - - CAST ( + AVG ( DISTINCT + + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col2 + + 43 AS col2 FROM tab2 AS cor0
----
101
66
83

query I rowsort
SELECT col0 + + ( - - 8 ) AS col2 FROM tab0
----
105
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL - 29 + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-20

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - 29 + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT + 29 DIV - ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 29 / - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT COUNT( * ) * + COUNT( + CAST( - 13 AS SIGNED ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT COUNT ( * ) * + COUNT ( + CAST ( - 13 AS INTEGER ) ) FROM tab0 AS cor0
----
9

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

query I rowsort
SELECT ALL col1 * + 14 AS col0 FROM tab2
----
1078
714
938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 2 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT DISTINCT + COUNT( * ) DIV - 66 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT + COUNT ( * ) / - 66 AS col0 FROM tab2
----
0

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

query I rowsort
SELECT + col2 * - - 34 FROM tab0
----
1598
3366
340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 52 AS col1 FROM tab2
----
23
52
40
52
58
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1239
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 38 / - - 20 - - col1 * - - 66 * - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1239
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 38 / - - 20 - - col1 * - - 66 * - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT + - 79 FROM tab1 cor0 WHERE NOT + col0 < - col0
----
-79
-79
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1241
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 58 ) * - ( - col1 ) * - + col0 + + 76 BETWEEN + col0 * - col1 AND CAST( + - col1 AS DECIMAL ) * - 81 * - - 70 - 45 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1241
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 58 ) * - ( - col1 ) * - + col0 + + 76 BETWEEN + col0 * - col1 AND CAST ( + - col1 AS REAL ) * - 81 * - - 70 - 45 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL MIN( DISTINCT + col2 ) + COUNT( * ) FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL MIN ( DISTINCT + col2 ) + COUNT ( * ) FROM tab2 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL + 59 * + - COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + 59 * + - COUNT ( * ) FROM tab1
----
-177

query I rowsort
SELECT + 9 * + + 70 AS col0 FROM tab1
----
630
630
630

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT 82 AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-1245
SELECT 82 AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
82
3

query I rowsort
SELECT DISTINCT 46 * - ( + col1 ) AS col1 FROM tab2 cor0
----
-2346
-3082
-3542

query III rowsort
SELECT * FROM tab1 cor0 WHERE 64 BETWEEN NULL AND 53
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - col1 * - + col0 + - col2 IS NULL
----

query I rowsort
SELECT ALL + 88 - + col2 AS col2 FROM tab2 AS cor0
----
30
48
65

query I rowsort
SELECT + + col0 + - - 44 FROM tab1 AS cor0
----
129
135
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 52 NOT IN ( 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT + MIN( ALL 44 ) - 9 AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + MIN ( ALL 44 ) - 9 AS col0 FROM tab1
----
35

query I rowsort
SELECT col1 * col0 + + 0 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab1 WHERE col1 + + - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - + 19 AS col1 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT + 69 * - + 18 FROM tab2
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL SUM( DISTINCT - + col2 ) + + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL SUM ( DISTINCT - + col2 ) + + COUNT ( * ) FROM tab1
----
-220

query II rowsort
SELECT DISTINCT col0 * 9 AS col2, col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + - 2 AS col1 FROM tab2 AS cor0
----
21
38
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - 55
----

query I rowsort
SELECT DISTINCT + 9 FROM tab2 AS cor0 WHERE NOT col0 - + col2 * + col0 < + - 63
----

query II rowsort
SELECT + 19, 38 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + + ( + col0 ) AS col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, 0 + + + 11 AS col0 FROM tab1 AS cor0
----
14
11
47
11
5
11

query I rowsort
SELECT ( - - col0 ) * col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT 9 * + COUNT( * ) DIV 85 * - 61 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT 9 * + COUNT ( * ) / 85 * - 61 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + ( - 60 ) + COUNT( ALL col2 ) AS col1 FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-1268
SELECT + ( - 60 ) + COUNT ( ALL col2 ) AS col1 FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT - 52 DIV + COUNT( * ) AS col2 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 52 / + COUNT ( * ) AS col2 FROM tab0
----
-17

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL MIN( ALL + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL MIN ( ALL + + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT - + SUM( ALL 20 ) + - + COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - + SUM ( ALL 20 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + MIN( ALL 53 ) AS col2 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1273
SELECT + MIN ( ALL 53 ) AS col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL - col0 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT col2 * - col0 * - + 50 FROM tab1 AS cor0
----
244800
250750
309400

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL + MAX( + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + MAX ( + col2 ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT col1 * + 75 FROM tab1 AS cor0
----
1050
3525
375

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

query I rowsort
SELECT ALL + col0 * + ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL + + COUNT( * ) + - 50 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + + COUNT ( * ) + - 50 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT MIN( col1 ) + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT MIN ( col1 ) + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
14

query I rowsort
SELECT - - col0 * + col1 * - - 56 FROM tab0 AS cor0
----
102312
5432
68040

query I rowsort
SELECT + ( + + 79 ) FROM tab0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT 31 - CAST( + col2 AS SIGNED ) FROM tab2
----
-27
-9
8

skipif mysql # not compatible
query I rowsort label-1284
SELECT 31 - CAST ( + col2 AS INTEGER ) FROM tab2
----
-27
-9
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL + COUNT( * ) * + 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + COUNT ( * ) * + 65 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1286
SELECT * FROM tab0 WHERE NULL <> - + col1 / - CAST( NULL AS SIGNED ) + 99 + + col0 * - - col2
----

skipif mysql # not compatible
query III rowsort label-1286
SELECT * FROM tab0 WHERE NULL <> - + col1 / - CAST ( NULL AS INTEGER ) + 99 + + col0 * - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - col2 col2 FROM tab1
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 70 * + 9 NOT BETWEEN NULL AND - 57 * + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab0 WHERE NULL > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - 10 + - 13 DIV 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 10 + - 13 / 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL + + COUNT( DISTINCT 78 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + + COUNT ( DISTINCT 78 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT DISTINCT + + ( + + COUNT( * ) ), ( + COUNT( DISTINCT + + 17 ) ) * - 40 AS col1 FROM tab1 AS cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-1293
SELECT DISTINCT + + ( + + COUNT ( * ) ), ( + COUNT ( DISTINCT + + 17 ) ) * - 40 AS col1 FROM tab1 AS cor0
----
3
-40

query I rowsort
SELECT + + 53 FROM tab0 AS cor0 WHERE NOT col1 / + - col1 IS NULL
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1295
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) AS col1, - COUNT( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1295
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT ALL 89 AS col0 FROM tab1 WHERE 74 IS NOT NULL
----
89
89
89

query I rowsort
SELECT col1 * + 30 FROM tab1
----
1410
150
420

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 AS col0, - 44 col2 FROM tab2
----
97
-44
97
-44
97
-44

query II rowsort
SELECT ALL col0 AS col1, + 96 FROM tab0
----
15
96
87
96
97
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT - col1 + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-1301
SELECT - col1 + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT 71 + - col2 * 82 AS col1 FROM tab2
----
-1815
-3209
-4685

query I rowsort
SELECT - col1 * + + 71 * 54 + - col2 AS col1 FROM tab1
----
-180266
-19229
-53772

query I rowsort
SELECT + col2 + + - col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT - col0 - - col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - SUM( - 60 ) FROM tab2 WHERE NOT - 29 IN ( col0 )
----
180

skipif mysql # not compatible
query I rowsort label-1307
SELECT - SUM ( - 60 ) FROM tab2 WHERE NOT - 29 IN ( col0 )
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 39 ) + col0 col0 FROM tab0
----
-24
48
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 50 BETWEEN + col0 + + col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COUNT( * ) + + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( * ) + + 53 FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL + SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT + SUM( ALL + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + SUM ( ALL + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1314
SELECT DISTINCT 80 / - CAST( NULL AS DECIMAL ) - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT 80 / - CAST ( NULL AS REAL ) - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL - MIN( ALL - 88 ) + + 59 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - MIN ( ALL - 88 ) + + 59 FROM tab2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT MIN( - col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT + 26 DIV 84 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 26 / 84 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT col2 DIV - 42 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1318
SELECT col2 / - 42 FROM tab1
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT + 47 - + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + 47 - + COUNT ( * ) FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND col2 - - 35
----

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND col2 - - 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT - CAST( NULL AS SIGNED ) - ( + COUNT( * ) ) FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col2 > col0 + - 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT col1 DIV - 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT col1 / - 89 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT 96 * COUNT( * ) col1 FROM tab0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1326
SELECT 96 * COUNT ( * ) col1 FROM tab0
----
288

query I rowsort
SELECT 65 + - 27 FROM tab1
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 53 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL MIN( ALL - col1 ) DIV 30 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL MIN ( ALL - col1 ) / 30 AS col0 FROM tab1
----
-1

query I rowsort
SELECT - 6 + 40 AS col0 FROM tab0
----
34
34
34

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

query I rowsort
SELECT DISTINCT 51 * + col0 AS col2 FROM tab0
----
4437
4947
765

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

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT ( - 62 ) AS col2 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT 38 + + col0 FROM tab0
----
125
135
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 / col1 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1339
SELECT * FROM tab1 WHERE - col0 + + CAST( NULL AS SIGNED ) / 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1339
SELECT * FROM tab1 WHERE - col0 + + CAST ( NULL AS INTEGER ) / 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 61 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - COUNT( * ) FROM tab0 WHERE NOT 47 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1341
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 47 IS NULL
----
-3

query I rowsort
SELECT ALL + col1 + ( col2 ) FROM tab0 AS cor0 WHERE NOT col1 * + 9 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - COUNT( ALL ( + 9 ) ) * + 99 AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - COUNT ( ALL ( + 9 ) ) * + 99 AS col0 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT DISTINCT - 59 * 41 FROM tab0 AS cor0
----
-2419

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT + col1 - + col1 DIV - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 >= ( ( 17 ) * + 12 )
----
1
21
86

skipif mysql # not compatible
query I rowsort label-1345
SELECT + col1 - + col1 / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 >= ( ( 17 ) * + 12 )
----
1
21
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 42 >= - col1
----

query I rowsort
SELECT 38 * col2 AS col2 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-1348
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-1349
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL col0 DIV - col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
209
3806
98

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL col0 / - col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
209
3806
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT - 87 + - COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1351
SELECT - 87 + - COUNT ( * ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT - col2 + col1 * 0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 83 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

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

query I rowsort
SELECT ALL + - 88 * 19 FROM tab0 AS cor0
----
-1672
-1672
-1672

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 41 ) <= col1 * + col2
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1358
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * CAST( 74 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1358
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * CAST ( 74 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) < - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 * col0 BETWEEN ( NULL ) AND - col1 * - col0 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - ( 96 ) / 33 )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL - MIN( + 73 ) AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - MIN ( + 73 ) AS col2 FROM tab1
----
-73

query I rowsort
SELECT ALL + col0 + 49 FROM tab0
----
136
146
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL COUNT( * ) + + COUNT( DISTINCT + col0 ) * 73 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL COUNT ( * ) + + COUNT ( DISTINCT + col0 ) * 73 FROM tab2
----
222

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 1 AND col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IN ( - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1371
SELECT ALL + CAST( - + ( - 69 ) AS SIGNED ) * col0 FROM tab0
----
1035
6003
6693

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + CAST ( - + ( - 69 ) AS INTEGER ) * col0 FROM tab0
----
1035
6003
6693

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) NOT BETWEEN ( 85 ) AND 62 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 85 + - col2 + - col1 AS col1 FROM tab0
----
-15
-43
54

query II rowsort
SELECT ALL col2 AS col2, 28 + + col2 * + col1 FROM tab1
----
59
323
68
3224
96
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT - - MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1375
SELECT - - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( + ( + + col1 ) + col1 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT 14 + - COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( - col0 ) = ( NULL )
----
14

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT 14 + - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( - col0 ) = ( NULL )
----
14

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + ( col0 ) - 76 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 - - ( col0 ) AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT - 26 * + - COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - 26 * + - COUNT ( * ) FROM tab2
----
78

query III rowsort
SELECT * FROM tab2 WHERE 4 * col2 >= ( col1 - + col1 ) AND NOT NULL IN ( col0 / + col0 - col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1384
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( - 1 ) - col1 AND 31
----

skipif mysql # not compatible
query III rowsort label-1384
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( - 1 ) - col1 AND 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL ( + ( + - MAX( + - col2 ) ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL ( + ( + - MAX ( + - col2 ) ) ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1386
SELECT DISTINCT ( - 1 ) DIV - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT ( - 1 ) / - + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT + 17 DIV ( - 52 ) * + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT + 17 / ( - 52 ) * + col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 20 IS NULL
----

query II rowsort
SELECT + 23 * col0, col0 AS col2 FROM tab2 AS cor0
----
1058
46
1472
64
1725
75

query I rowsort
SELECT ALL 76 / - 25 + col2 * col1 FROM tab0 AS cor0 WHERE NOT - 70 * + col2 + + - col2 = NULL
----

query I rowsort
SELECT ALL - + 50 * col1 FROM tab2 AS cor0
----
-2550
-3350
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT MIN( DISTINCT + ( + 2 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-1392
SELECT MIN ( DISTINCT + ( + 2 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT DISTINCT col0 DIV + 30 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT col0 / + 30 FROM tab1
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT DISTINCT + COUNT( * ) + + 81 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + COUNT ( * ) + + 81 FROM tab0 cor0
----
84

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + col0 + - + col2 <= ( + col2 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + - col0 + 9 * + col0 AS col2 FROM tab0 AS cor0
----
120
696
776

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <= + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND ( - col1 - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT DISTINCT COUNT( * ) + + MIN( col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT COUNT ( * ) + + MIN ( col2 ) FROM tab2 AS cor0
----
26

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 32 - + - 97 + + col1 / + col0 * - 50 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col0 * + - 30 col2 FROM tab1
----
-1434
-2491
-2662

query I rowsort
SELECT col2 + 66 FROM tab0
----
113
165
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1406
SELECT * FROM tab0 WHERE ( CAST( col2 AS SIGNED ) * - + 90 / col0 + + col1 * col2 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-1406
SELECT * FROM tab0 WHERE ( CAST ( col2 AS INTEGER ) * - + 90 / col0 + + col1 * col2 IS NULL )
----

query I rowsort
SELECT col1 * - 83 + - col1 AS col2 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + COUNT( * ) * COUNT( + col0 ) + - 48 AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1408
SELECT + COUNT ( * ) * COUNT ( + col0 ) + - 48 AS col2 FROM tab0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT col1 DIV + - 5 + + ( + - 48 ) AS col1 FROM tab0
----
-48
-52
-64

skipif mysql # not compatible
query I rowsort label-1409
SELECT col1 / + - 5 + + ( + - 48 ) AS col1 FROM tab0
----
-48
-52
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1410
SELECT ALL CAST( + - col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL CAST ( + - col0 AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT MIN( - - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1411
SELECT MIN ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59

query II rowsort
SELECT + 23, col0 AS col2 FROM tab1 AS cor0
----
23
51
23
85
23
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1413
SELECT - SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 14 + col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1415
SELECT ALL + 76 * col1 FROM tab2 AS cor0 WHERE col0 / col1 IN ( col0 * - - 45 * - CAST( 31 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 76 * col1 FROM tab2 AS cor0 WHERE col0 / col1 IN ( col0 * - - 45 * - CAST ( 31 AS INTEGER ) )
----

query I rowsort
SELECT + 67 * 49 + col2 FROM tab1 WHERE + col0 IN ( - ( + 23 ) )
----

query I rowsort
SELECT + col2 - col2 * col2 * - col2 AS col0 FROM tab2
----
12190
195170
64040

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 65 - col2 AS col1 FROM tab0 AS cor0
----
-112
-164
-75

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 + + 8 * + 98 + + 23
----

query I rowsort
SELECT + 48 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> col2 * - col0 * + 12
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1423
SELECT + CAST( 26 AS SIGNED ) * + ( - CAST( 89 AS SIGNED ) ) AS col2, 54 col2 FROM tab0 AS cor0
----
-2314
54
-2314
54
-2314
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1423
SELECT + CAST ( 26 AS INTEGER ) * + ( - CAST ( 89 AS INTEGER ) ) AS col2, 54 col2 FROM tab0 AS cor0
----
-2314
54
-2314
54
-2314
54

query I rowsort
SELECT ALL 61 * + 29 FROM tab0
----
1769
1769
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL - ( + - 19 ) * + + 88 * COUNT( * ) AS col2 FROM tab0
----
5016

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - ( + - 19 ) * + + 88 * COUNT ( * ) AS col2 FROM tab0
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT col0 * CAST( - col2 AS SIGNED ) col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1426
SELECT col0 * CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 7 + - col2 * + col1 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - + col2 IS NOT NULL
----

query II rowsort
SELECT ALL 24 AS col0, 17 AS col1 FROM tab1
----
24
17
24
17
24
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL COUNT( * ), + 6 AS col1 FROM tab1
----
3
6

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL COUNT ( * ), + 6 AS col1 FROM tab1
----
3
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT ALL COUNT( ALL + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL COUNT ( ALL + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1433
SELECT + + 46 DIV + COUNT( * ) - + - 37 AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1433
SELECT + + 46 / + COUNT ( * ) - + - 37 AS col1 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1434
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 * + col0 col1, 56 * + + col2 FROM tab1
----
2346
5376
3910
3304
4186
3808

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 AND col2 * + col0 + - 36
----

query I rowsort
SELECT ALL - + 41 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT + 80 + + 66 + - 27 FROM tab2 AS cor0
----
119

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 10 / - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 32 + ( ( col1 ) - col1 ) col1 FROM tab2 AS cor0 WHERE - ( - col1 ) NOT BETWEEN + col1 - + col1 AND - - ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT ALL + + CAST( NULL AS SIGNED ) + + + col1 * + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE col1 / + col2 NOT IN ( - 85, - col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL MIN( col0 ) + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL MIN ( col0 ) + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 21 <= NULL
----

query I rowsort
SELECT DISTINCT 18 + col2 FROM tab2
----
41
58
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL - COUNT( ALL - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - COUNT ( ALL - + col1 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - ( + col2 ) * 40 FROM tab2 WHERE NOT NULL >= + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 75 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT - 48 * + 46 + - 57 * COUNT( * ) - 91 AS col2 FROM tab1 AS cor0
----
-2470

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - 48 * + 46 + - 57 * COUNT ( * ) - 91 AS col2 FROM tab1 AS cor0
----
-2470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT + + CAST( NULL AS SIGNED ) * + col0 + - col1 * - ( - col2 ) + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - col2 + + - 38 FROM tab0 AS cor0
----
-137
-48
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT - 44 * - 14 + - col0 DIV + col1 col0 FROM tab1 AS cor0
----
599
613
615

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1452
SELECT - 44 * - 14 + - col0 / + col1 col0 FROM tab1 AS cor0
----
599
613
615

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT ( - + MIN( DISTINCT + col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT ( - + MIN ( DISTINCT + col1 ) ) AS col0 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT - 35 DIV + ( - - 78 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT - 35 / + ( - - 78 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 39 * - ( + + col2 ) AS col1 FROM tab1 cor0
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT ALL + 90 AS col0, ( - col2 ) + + + col0 AS col2 FROM tab1 AS cor0
----
90
-45
90
23
90
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + MAX( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1458
SELECT + MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT + SUM( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 * - + 90 - + col0 AND col0 + - 21 + + ( + col0 ) / col2 * - col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 * - + 90 - + col0 AND col0 + - 21 + + ( + col0 ) / col2 * - col0 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ( SUM( + - 93 ) ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1462
SELECT ( SUM ( + - 93 ) ) FROM tab1 AS cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT ALL + col1 FROM tab1 cor0 WHERE NOT ( NULL ) < - - CAST( + - 37 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + col1 FROM tab1 cor0 WHERE NOT ( NULL ) < - - CAST ( + - 37 AS INTEGER )
----

query I rowsort
SELECT ( + col2 ) + col0 * - col2 + - col0 FROM tab1 AS cor0
----
-4851
-5041
-6211

query I rowsort
SELECT + - col0 * - 95 * col2 + - - col1 AS col2 FROM tab2 AS cor0
----
100561
243277
413317

query I rowsort
SELECT + 90 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col2, - col2 * + col1 * - + col2 AS col1 FROM tab1
----
59
17405
68
217328
96
129024

query I rowsort
SELECT 15 * + 30 AS col0 FROM tab2
----
450
450
450

query II rowsort
SELECT col2, 82 FROM tab2
----
23
82
40
82
58
82

query I rowsort
SELECT ( - 98 ) FROM tab1
----
-98
-98
-98

query I rowsort
SELECT 63 * 1 AS col2 FROM tab0
----
63
63
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - 88 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( col2 ) + - - col1 + - + col2 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT 6 * col0 FROM tab1 AS cor0
----
306
510
546

query I rowsort
SELECT DISTINCT col2 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1
13
197

query II rowsort
SELECT + col2 AS col1, + 53 * col1 AS col1 FROM tab2 cor0
----
23
2703
40
4081
58
3551

query I rowsort
SELECT ALL - col1 * + col0 * + 9 + ( - 73 ) FROM tab0 AS cor0
----
-11008
-16516
-946

query II rowsort
SELECT - 50, - col1 AS col2 FROM tab2 AS cor0
----
-50
-51
-50
-67
-50
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - 65 col1 FROM tab0 AS cor0
----
-146
-66
-86

query I rowsort
SELECT ALL - - 52 + + - 47 + col2 * - - col2 + + col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-1656
-1812
-3323

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT DISTINCT col0 + col0 - - col2 + col1 DIV - col0 * + + col2 * - 26 AS col0 FROM tab1 cor0
----
198
229
250

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT col0 + col0 - - col2 + col1 / - col0 * + + col2 * - 26 AS col0 FROM tab1 cor0
----
198
229
250

query II rowsort
SELECT DISTINCT + 34 * + ( + + 92 ) + - col2 AS col0, - 56 FROM tab0 AS cor0
----
3029
-56
3081
-56
3118
-56

query I rowsort
SELECT + ( 87 ) + + col1 AS col0 FROM tab0
----
108
168
88

query I rowsort
SELECT DISTINCT col2 + - 66 * col2 AS col1 FROM tab0 WHERE + - col2 IS NOT NULL
----
-3055
-6435
-650

query I rowsort
SELECT - 49 + + col1 AS col1 FROM tab0
----
-28
-48
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - + 56 + + + 31 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + + col1 )
----

query I rowsort
SELECT 53 + + col0 * col1 AS col1 FROM tab2
----
2399
4981
5078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL CAST( NULL AS SIGNED ) * - + 95 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL CAST ( NULL AS INTEGER ) * - + 95 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 61, + col2 AS col1 FROM tab0 WHERE NULL > + + col2
----

query I rowsort
SELECT - ( col2 ) + + ( + - col2 ) AS col0 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + + col1 / col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT - 8 * + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - 8 * + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN 39 + - col1 + + + col2 AND NULL
----

query I rowsort
SELECT ALL + + col2 * - 54 + 78 + 28 + - col2 FROM tab1 cor0
----
-3139
-3634
-5174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT + MAX( ALL + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + MAX ( ALL + - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1500
SELECT - - 44 AS col2, - col0 / + ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-1500
SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
44
NULL
44
NULL
44
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 85 AND - 21
----

query II rowsort
SELECT col2, col1 FROM tab0 AS cor0 WHERE NOT + 57 IS NOT NULL
----

query II rowsort
SELECT + col2 * - col0 AS col1, + 95 AS col0 FROM tab0
----
-705
95
-870
95
-9603
95

query II rowsort
SELECT 4, 50 * + - col2 AS col1 FROM tab2
----
4
-1150
4
-2000
4
-2900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1505
SELECT CAST( - 50 AS SIGNED ) DIV - ( - + COUNT( * ) ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-1505
SELECT CAST ( - 50 AS INTEGER ) / - ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - - MAX( + col0 ) * - MIN( col1 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1508
SELECT - - MAX ( + col0 ) * - MIN ( col1 ) col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + 47 * - + 17 AS col2 FROM tab2 AS cor0
----
-799
-799
-799

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

query I rowsort
SELECT - - col2 + + ( - col0 ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT 88 + - col2 AS col2 FROM tab0 AS cor0
----
-11
41
78

query III rowsort
SELECT DISTINCT + 86 - + + col0 AS col0, col1, - - 13 * 66 + - col0 FROM tab0 AS cor0
----
9 values hashing to 1e2448bcfc2cb350a802ce8b5083e0b4

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL - ( + COUNT( * ) ) + - + COUNT( DISTINCT 60 ) * ( - + 23 ) col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1514
SELECT ALL - ( + COUNT ( * ) ) + - + COUNT ( DISTINCT 60 ) * ( - + 23 ) col0 FROM tab0 AS cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT DISTINCT + - 8 DIV - - 28 - + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT + - 8 / - - 28 - + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + 33 + + - col2 FROM tab0 AS cor0
----
-132
-43
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT 72 - + - ( - MIN( - 99 ) ) + + - 16 AS col1 FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT 72 - + - ( - MIN ( - 99 ) ) + + - 16 AS col1 FROM tab1
----
155

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT DISTINCT CAST( - + 48 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT CAST ( - + 48 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL 30 * - - col1 + - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-2340
-250
472

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - ( col0 ) + - col1 + - - 43
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col1 BETWEEN - col2 AND - 19 / + + ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 45 * - col1 AS col0 FROM tab1
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1525
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT + col1 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT ALL - col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-100
-2209
-9801

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL 59 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL 59 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
177

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + + 68 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - ( - col2 ) NOT BETWEEN - + 69 * - + col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - ( - col2 ) NOT BETWEEN - + 69 * - + col2 AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL MAX( - 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL MAX ( - 77 ) FROM tab0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT DISTINCT 66 AS col2, COUNT( * ) FROM tab2
----
66
3

skipif mysql # not compatible
query II rowsort label-1534
SELECT DISTINCT 66 AS col2, COUNT ( * ) FROM tab2
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT + COUNT( DISTINCT + 9 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + COUNT ( DISTINCT + 9 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1536
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * col2 >= col2 + + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - MIN( + - 57 ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1540
SELECT - MIN ( + - 57 ) AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1541
SELECT COUNT( * ) - CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT 4 + - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1542
SELECT 4 + - COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT + ( + col1 ) + + - col0 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT col0 + + col1 * + col1 FROM tab0
----
528
6576
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1545
SELECT * FROM tab2 WHERE ( col0 ) * + col0 * - ( + col2 ) + + ( - + col0 ) + - - CAST( + col1 AS SIGNED ) - - col0 * 10 * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1545
SELECT * FROM tab2 WHERE ( col0 ) * + col0 * - ( + col2 ) + + ( - + col0 ) + - - CAST ( + col1 AS INTEGER ) - - col0 * 10 * + col1 IS NULL
----

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 WHERE - + 27 NOT BETWEEN + col2 AND col2
----
59
68
96

query II rowsort
SELECT ALL - 24, + 63 AS col2 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT + COUNT( * ) * 14 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-1548
SELECT + COUNT ( * ) * 14 AS col1 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT - 99 * - 92 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1549
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT - 99 * - 92 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT + + MAX( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + + MAX ( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1552
SELECT ALL + col0 * - + ( ( - - ( + CAST( NULL AS DECIMAL ) ) ) ), col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL + col0 * - + ( ( - - ( + CAST ( NULL AS REAL ) ) ) ), col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 59 * - 58 AS col1 FROM tab2 AS cor0
----
-3422
-3422
-3422

query I rowsort
SELECT DISTINCT + + col1 * + col1 + - col2 FROM tab1 cor0
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT - ( SUM( + 51 ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1555
SELECT DISTINCT - ( SUM ( + 51 ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT ALL - 81 DIV 37 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL - 81 / 37 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT + col0 DIV - ( + col2 ) AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1557
SELECT + col0 / - ( + col2 ) AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT COUNT( * ) * - 35 AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-1558
SELECT COUNT ( * ) * - 35 AS col1 FROM tab2
----
-105

query I rowsort
SELECT col2 * 42 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2478
2856
4032

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1560
SELECT DISTINCT * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1560
SELECT DISTINCT * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 2 + - - col2 + col2 AS col1 FROM tab2 cor0
----
118
48
82

query I rowsort
SELECT + 79 + - + col2 FROM tab1 cor0
----
-17
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT col2 + + col2 DIV - 31 FROM tab0 AS cor0
----
10
46
96

skipif mysql # not compatible
query I rowsort label-1563
SELECT col2 + + col2 / - 31 FROM tab0 AS cor0
----
10
46
96

query I rowsort
SELECT ALL - - ( - col1 ) * + - col0 + + - col2 + col1 * - 46 AS col2 FROM tab1 AS cor0
----
-26
136
2047

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 32 * + col2 col0 FROM tab1 cor0
----
1888
2176
3072

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

query I rowsort
SELECT DISTINCT - 27 + col1 AS col0 FROM tab0 AS cor0
----
-26
-6
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL - 68 - + + COUNT( * ) col0 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1569
SELECT ALL - 68 - + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT DISTINCT 33 + - + col0 * + CAST( + - ( + - 70 ) AS SIGNED ) AS col1 FROM tab1
----
-3537
-5917
-6337

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT 33 + - + col0 * + CAST ( + - ( + - 70 ) AS INTEGER ) AS col1 FROM tab1
----
-3537
-5917
-6337

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL COUNT( * ) * - - 63 - - + SUM( DISTINCT + 68 ) AS col0 FROM tab0
----
257

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL COUNT ( * ) * - - 63 - - + SUM ( DISTINCT + 68 ) AS col0 FROM tab0
----
257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + 90 * + - col1 col1 FROM tab0
----
145800
1800
37800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 - - - col0 AND NULL
----

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

query II rowsort
SELECT - - 0 AS col0, - ( - - col2 ) FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL - 37 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - 37 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - 29 IS NULL
----
-10
-47
-99

query II rowsort
SELECT col0 * ( - 79 ) AS col2, col0 AS col2 FROM tab1 cor0
----
-4029
51
-6715
85
-7189
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + + MIN( - 38 ) * + + ( + 76 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2891

skipif mysql # not compatible
query I rowsort label-1584
SELECT + + MIN ( - 38 ) * + + ( + 76 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2891

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT ALL 24 DIV + col1 FROM tab0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 24 / + col1 FROM tab0
----
0
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - 57 + + - COUNT( * ) AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-1586
SELECT - 57 + + - COUNT ( * ) AS col0 FROM tab0
----
-60

query II rowsort
SELECT DISTINCT col1, + 45 FROM tab0
----
1
45
21
45
81
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 24 + + + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 24 + + + COUNT ( * ) FROM tab0
----
-21

query I rowsort
SELECT DISTINCT + ( - - 66 ) + ( + + col1 ) AS col2 FROM tab2
----
117
133
143

query I rowsort
SELECT DISTINCT - col0 + - 74 FROM tab2
----
-120
-138
-149

query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - - col1 + - 41 FROM tab0 AS cor0
----
-20
-40
40

query I rowsort
SELECT + 91 - ( + 68 ) AS col0 FROM tab0
----
23
23
23

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

query I rowsort
SELECT - col1 - + 84 + 99 AS col0 FROM tab1
----
-32
1
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT MAX( 59 ) - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT MAX ( 59 ) - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 49 + + col0 AS col1 FROM tab1 AS cor0
----
2
36
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 + - + col1 col1 FROM tab2 AS cor0
----
-110
-126
-136

query I rowsort
SELECT DISTINCT col1 - col2 - + - ( + col2 ) FROM tab2 AS cor0
----
51
67
77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT + SUM( DISTINCT 6 ) DIV + 98 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT + SUM ( DISTINCT 6 ) / + 98 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 / col2 AS col2 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT ( - 87 ) AS col0 FROM tab1
----
-87
-87
-87

query II rowsort
SELECT + 35 AS col2, - ( col2 ) * - col1 + col0 FROM tab2
----
35
1219
35
3144
35
3961

query I rowsort
SELECT col1 * - - col0 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + + + col1 BETWEEN - + 9 * 1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 92 AS col1, col1 col1 FROM tab0 AS cor0
----
92
1
92
21
92
81

query I rowsort
SELECT - - 65 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-34
18
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + - 76 * + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - - col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT DISTINCT CAST( - AVG ( ALL - - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT CAST ( - AVG ( ALL - - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT 41 + + + col0 AS col2, - col0 FROM tab1 AS cor0
----
126
-85
132
-91
92
-51

query II rowsort
SELECT + col0 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT SUM( ALL + - col2 ) col2 FROM tab1 WHERE NULL NOT BETWEEN 92 * col1 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1616
SELECT DISTINCT SUM ( ALL + - col2 ) col2 FROM tab1 WHERE NULL NOT BETWEEN 92 * col1 AND NULL
----
NULL

query I rowsort
SELECT - col1 * col1 * + - col0 FROM tab0
----
38367
97
98415

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 < - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 IS NULL
----

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

query II rowsort
SELECT ALL - + col0 AS col2, col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND col1 > + 12
----
-15
47
-87
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT 68 - COUNT( DISTINCT + + col1 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT 68 - COUNT ( DISTINCT + + col1 ) FROM tab1
----
65

query I rowsort
SELECT DISTINCT + col1 - + col1 * + 43 AS col2 FROM tab0
----
-3402
-42
-882

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1626
SELECT + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT + col2 * + + col2 * + 43 * 73 - 73 * + + col1 AS col0 FROM tab2 AS cor0
----
10554705
1656808
5016779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1629
SELECT DISTINCT + col0 / - ( - CAST( NULL AS SIGNED ) ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1629
SELECT DISTINCT + col0 / - ( - CAST ( NULL AS INTEGER ) ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + - MIN( ALL + 92 ) col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1630
SELECT + - MIN ( ALL + 92 ) col2 FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1631
SELECT - + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 * - + col0
----

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT ALL + 54 AS col2, 79 FROM tab0 WHERE + + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1635
SELECT * FROM tab2 WHERE NOT col1 + 95 > - CAST( - + col0 AS SIGNED ) - 66 + 76
----

skipif mysql # not compatible
query III rowsort label-1635
SELECT * FROM tab2 WHERE NOT col1 + 95 > - CAST ( - + col0 AS INTEGER ) - 66 + 76
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col2 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / col0 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ( - MAX( - - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1638
SELECT ( - MAX ( - - col2 ) ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1639
SELECT ALL - CAST( NULL AS SIGNED ) * col0, + ( col0 ) col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1639
SELECT ALL - CAST ( NULL AS INTEGER ) * col0, + ( col0 ) col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 >= + 39
----

query I rowsort
SELECT ALL - ( col0 ) FROM tab1 AS cor0 WHERE NOT - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT + COUNT( * ) - - 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-1642
SELECT + COUNT ( * ) - - 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

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

query I rowsort
SELECT + 42 AS col2 FROM tab1 WHERE NOT + col0 = + 99
----
42
42
42

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT - col0 + - col0 * - - ( - col1 ) + - 94 DIV + col1 AS col1 FROM tab2 AS cor0
----
2299
4863
4949

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - col0 + - col0 * - - ( - col1 ) + - 94 / + col1 AS col1 FROM tab2 AS cor0
----
2299
4863
4949

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT SUM( - col2 ) + COUNT( * ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1648
SELECT SUM ( - col2 ) + COUNT ( * ) FROM tab2
----
-118

query I rowsort
SELECT DISTINCT - + 55 + col2 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-15
-32
3

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 AND - - 12
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + 89 * - COUNT( * ) * + 46 FROM tab2
----
-12282

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + 89 * - COUNT ( * ) * + 46 FROM tab2
----
-12282

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT 22 DIV - 92 - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1654
SELECT 22 / - 92 - COUNT ( * ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 36 * - - col1 NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT + 3 + - col0 + + col0 + 85 AS col1 FROM tab2 cor0 WHERE col0 * col2 * - + col0 <= - + col0 + + + col1
----
88
88
88

query I rowsort
SELECT ALL - 56 + - col2 * col2 + 24 FROM tab1 AS cor0
----
-3513
-4656
-9248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= + 93
----

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - 52 - - COUNT( 49 ) col2 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT - 52 - - COUNT ( 49 ) col2 FROM tab1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) * - col0 col2 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT ALL 18 FROM tab1 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT SUM( - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT SUM ( - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
199

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + + MIN( + - 43 ) AS col0, - 4 AS col0 FROM tab0 AS cor0
----
-43
-4

skipif mysql # not compatible
query II rowsort label-1666
SELECT + + MIN ( + - 43 ) AS col0, - 4 AS col0 FROM tab0 AS cor0
----
-43
-4

query I rowsort
SELECT ALL - + col0 * col2 + - - 54 AS col2 FROM tab2 AS cor0
----
-1004
-2506
-4296

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1668
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN 78 AND CAST( - col0 AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-1668
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN 78 AND CAST ( - col0 AS INTEGER ) / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT ALL - 83 DIV + 30 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - 83 / + 30 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT MAX( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1671
SELECT MAX ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1672
SELECT ALL * FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1672
SELECT ALL * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT + CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT 37, - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
37
NULL
37
NULL
37
NULL

skipif mysql # not compatible
query II rowsort label-1674
SELECT 37, - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
37
NULL
37
NULL
37
NULL

query I rowsort
SELECT DISTINCT - + 75 FROM tab0 WHERE NOT col1 - - ( + + col0 ) * 15 IS NULL
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL + + MIN( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1676
SELECT ALL + + MIN ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL - - SUM( - 11 ) AS col1 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - - SUM ( - 11 ) AS col1 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT DISTINCT + col2 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + col2 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL 23 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT 41 DIV + + 33 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT 41 / + + 33 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 85 + + + col2 BETWEEN + col2 / - + 26 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT DISTINCT + 9 * + 57 + + - 32 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT + 9 * + 57 + + - 32 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 78 + + col2 AS col2 FROM tab1 AS cor0
----
222
225
237

query I rowsort
SELECT ALL - col0 * + + col0 + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT - col2 + + ( col1 ) FROM tab0 AS cor0 WHERE NULL = - 41 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL col2 + - 15 + + + col1 * col0 * col2 DIV + + col0 AS col2 FROM tab0 AS cor0
----
183
205
3839

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL col2 + - 15 + + + col1 * col0 * col2 / + + col0 AS col2 FROM tab0 AS cor0
----
183
205
3839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT DISTINCT + MAX( ALL - - col1 ) - - - SUM( + + col1 ) - COUNT( * ) * CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + MAX ( ALL - - col1 ) - - - SUM ( + + col1 ) - COUNT ( * ) * CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT ( - + SUM( ALL - 67 ) ) AS col2 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT ( - + SUM ( ALL - 67 ) ) AS col2 FROM tab1
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1691
SELECT ALL + COUNT( * ) DIV 77 DIV + COUNT( * ) FROM tab1 WHERE NOT - col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + COUNT ( * ) / 77 / + COUNT ( * ) FROM tab1 WHERE NOT - col1 + col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col0 + col2 IS NULL
----

query I rowsort
SELECT - 61 - + col2 FROM tab2
----
-101
-119
-84

query I rowsort
SELECT ALL + - 19 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
-19
-19
-19

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

query I rowsort
SELECT ALL - - ( + - ( col0 ) ) + ( - col0 ) * + 64 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1697
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL <= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1697
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL <= + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 63 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + - 32 AS col1 FROM tab2 AS cor0
----
-109
-83
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + col1 + + col0 + col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 76, - 19 col2 FROM tab2
----
76
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - - SUM( + - ( - + col1 ) ) AS col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-1702
SELECT - - SUM ( + - ( - + col1 ) ) AS col0 FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1703
SELECT - CAST( + COUNT( - 37 ) AS SIGNED ) * - COUNT( col2 ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT - CAST ( + COUNT ( - 37 ) AS INTEGER ) * - COUNT ( col2 ) col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 36 AS col1 FROM tab2 AS cor0 WHERE NOT 13 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + - COUNT( * ) * 89 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1705
SELECT + - COUNT ( * ) * 89 FROM tab0 AS cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1706
SELECT DISTINCT 70 * - 37 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 + col1 NOT IN ( 39 )
----

skipif mysql # not compatible
query II rowsort label-1706
SELECT DISTINCT 70 * - 37 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 + col1 NOT IN ( 39 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 85 * - ( + 12 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1709
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT - col0 * - + col2 + + - 26 col2 FROM tab1 AS cor0 WHERE NOT ( - CAST( col2 AS SIGNED ) ) IS NULL
----
4870
4989
6162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1711
SELECT - col0 * - + col2 + + - 26 col2 FROM tab1 AS cor0 WHERE NOT ( - CAST ( col2 AS INTEGER ) ) IS NULL
----
4870
4989
6162

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + - SUM( + 77 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT + - SUM ( + 77 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col0 <= - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) + - 54 FROM tab0 AS cor0
----
-33
-53
27

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) + - 54 FROM tab0 AS cor0
----
-33
-53
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - MAX( ALL 23 ) + + 37 AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-1716
SELECT - MAX ( ALL 23 ) + + 37 AS col1 FROM tab2 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * + col1 BETWEEN NULL AND - ( - - col0 ) * + + col1
----

query II rowsort
SELECT ALL - - col0 AS col1, col2 FROM tab2 WHERE NOT + col2 IS NULL
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT - col0 DIV + - 24 col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1719
SELECT - col0 / + - 24 col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 WHERE NOT + col0 * col0 IS NULL
----
-23
-40
-58

query II rowsort
SELECT - col2 AS col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL SUM( + - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL SUM ( + - col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 93 - + col0 col1 FROM tab2 AS cor0
----
-139
-157
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT 92 * - MIN( ALL 1 ) - + 40 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT 92 * - MIN ( ALL 1 ) - + 40 FROM tab1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT 94 + + ( + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
153
162
190

skipif mysql # not compatible
query I rowsort label-1726
SELECT 94 + + ( + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
153
162
190

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT ALL - - 31 DIV - 14 AS col1 FROM tab0 WHERE NOT + 11 < + + col1
----
-2

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - - 31 / - 14 AS col1 FROM tab0 WHERE NOT + 11 < + + col1
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col2 col1 FROM tab1
----
1475
1700
2400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + ( + SUM( DISTINCT + 35 ) ) col0 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1730
SELECT + ( + SUM ( DISTINCT + 35 ) ) col0 FROM tab0
----
35

query I rowsort
SELECT ALL 57 - - 65 + + col1 + + col2 FROM tab1
----
186
232
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 11 + 18 col1, + 82 AS col2 FROM tab0
----
29
82

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

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT ALL - - col1 * - - col0 + col1 * 60 DIV + col1 * + col1 DIV - col1 AS col2 FROM tab2 cor0
----
2286
4868
4965

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - - col1 * - - col0 + col1 * 60 / + col1 * + col1 / - col1 AS col2 FROM tab2 cor0
----
2286
4868
4965

query II rowsort
SELECT + + col1 AS col1, + 55 FROM tab2 cor0
----
51
55
67
55
77
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL COUNT( - ( col2 ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1737
SELECT ALL COUNT ( - ( col2 ) ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 83, 10 AS col1 FROM tab0
----
83
10
83
10
83
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 col2, + col0 * + col1 FROM tab2
----
-26
2346
-26
4928
-26
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 53 + + COUNT( * ) + + COUNT( * ) - + - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT NULL >= 51
----
-53

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 53 + + COUNT ( * ) + + COUNT ( * ) - + - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT NULL >= 51
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT ( - MIN( col1 ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT ( - MIN ( col1 ) ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + col1 * - 54 + + + 10 < NULL
----

query I rowsort
SELECT ALL col2 * - col0 + col2 + - col0 AS col1 FROM tab0
----
-673
-947
-9601

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> + 73
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 + col2 + + col2 / + col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( + 59 * - + col2 )
----

query II rowsort
SELECT ALL - col1 AS col2, + ( + + 66 ) + + - col0 AS col1 FROM tab2 cor0
----
-51
20
-67
-9
-77
2

query II rowsort
SELECT + col2, + 31 - - col0 AS col0 FROM tab2 AS cor0
----
23
77
40
95
58
106

query I rowsort
SELECT - - 43 * + 34 AS col1 FROM tab2 AS cor0
----
1462
1462
1462

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - 62 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT - 24 * + MAX( + + col1 ) DIV COUNT( - col2 ) + 80 + + + COUNT( * ) + - 37 FROM tab0
----
-602

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - 24 * + MAX ( + + col1 ) / COUNT ( - col2 ) + 80 + + + COUNT ( * ) + - 37 FROM tab0
----
-602

query I rowsort
SELECT ALL - - 0 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL ( + 17 ) + + COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL ( + 17 ) + + COUNT ( * ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT col2 * - - 18 AS col1 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 + + 43 AS col2 FROM tab1 AS cor0
----
134
134
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - + col0 * + 94, col0 col1 FROM tab0 AS cor0
----
-1395
15
-8091
87
-9021
97

query I rowsort
SELECT ALL + 79 + col2 * + - 7 - - + col1 FROM tab0 AS cor0
----
-169
-613
30

query I rowsort
SELECT ALL 4 - col1 + - + 79 + col0 AS col2 FROM tab2 AS cor0
----
-67
-80
-88

query I rowsort
SELECT 15 - - col1 FROM tab2
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL COUNT( * ) - 70 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL COUNT ( * ) - 70 FROM tab2
----
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE + 15 * - ( col1 ) * col2 - + - col2 NOT BETWEEN - 62 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - + 69 AS col0 FROM tab0
----
-22
-59
30

query I rowsort
SELECT col0 + - + col1 + col2 FROM tab2 WHERE ( NOT ( ( ( NOT - col0 > NULL ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 49 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT ALL - + CAST( - MAX( ALL col0 ) AS SIGNED ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - + CAST ( - MAX ( ALL col0 ) AS INTEGER ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1768
SELECT ALL - - CAST( 70 AS SIGNED ) - + + 40 * 76, + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2970
199

skipif mysql # not compatible
query II rowsort label-1768
SELECT ALL - - CAST ( 70 AS INTEGER ) - + + 40 * 76, + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2970
199

query II rowsort
SELECT DISTINCT + - col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1770
SELECT DISTINCT - col2 + - CAST( + col2 + + col1 * col1 AS SIGNED ) * - col1 FROM tab2
----
133801
304591
459573

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - col2 + - CAST ( + col2 + + col1 * col1 AS INTEGER ) * - col1 FROM tab2
----
133801
304591
459573

query I rowsort
SELECT 4 + 74 FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL 99 + SUM( + 29 + - 79 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 99 + SUM ( + 29 + - 79 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT col2 FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) >= + col1
----

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT col2 FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1774
SELECT * FROM tab1 WHERE NOT col0 * ( ( - CAST( NULL AS SIGNED ) ) / col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1774
SELECT * FROM tab1 WHERE NOT col0 * ( ( - CAST ( NULL AS INTEGER ) ) / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT - SUM( DISTINCT 75 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - SUM ( DISTINCT 75 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 + 1 FROM tab2
----
-45
-63
-74

query III rowsort
SELECT * FROM tab1 WHERE 65 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + col2 * 55 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + 95 * - 6 AS col1 FROM tab1 WHERE col2 * + 39 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT + CAST( + 1 AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( col2 * 76 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1781
SELECT + CAST ( + 1 AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( col2 * 76 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 + + col1 AS col1 FROM tab0
----
121
2290
9802

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col2 * 98 AND + 14 + - 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * col2 col2 FROM tab0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1785
SELECT COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 41 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL 50 * COUNT( * ) AS col2 FROM tab1 WHERE ( - col0 * col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL 50 * COUNT ( * ) AS col2 FROM tab1 WHERE ( - col0 * col1 ) <= NULL
----
0

query I rowsort
SELECT col1 - 33 AS col0 FROM tab0
----
-12
-32
48

query I rowsort
SELECT 24 * 79 FROM tab0
----
1896
1896
1896

query I rowsort
SELECT ALL + col1 * + col2 + 93 AS col2 FROM tab1
----
1437
3289
388

query I rowsort
SELECT + 78 * col0 FROM tab0 WHERE + 49 > ( col2 - col1 )
----
1170
6786

query I rowsort
SELECT ALL 61 + 61 AS col2 FROM tab0 AS cor0 WHERE NOT ( 4 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN 21 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + col1 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + col1 NOT BETWEEN - col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 32 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT + col2 + + ( + col1 ) AS col0 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 NOT BETWEEN ( 50 ) AND NULL
----

query I rowsort
SELECT - col0 * + ( + 58 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-5046
-5626
-870

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( + col0 ) ) > + 5 * + col2 + - col2 / 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND - col1 + col0
----
2

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND - col1 + col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT - 19 DIV col1 + + col1 AS col2 FROM tab1 AS cor0
----
13
2
47

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - 19 / col1 + + col1 AS col2 FROM tab1 AS cor0
----
13
2
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT ( + COUNT( * ) ) * - COUNT( DISTINCT - col1 - col1 ) FROM tab1 WHERE ( col0 ) >= 94
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT ( + COUNT ( * ) ) * - COUNT ( DISTINCT - col1 - col1 ) FROM tab1 WHERE ( col0 ) >= 94
----
0

query I rowsort
SELECT ALL 58 - + col0 FROM tab0
----
-29
-39
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - COUNT( * ) * - 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1804
SELECT - COUNT ( * ) * - 42 FROM tab0
----
126

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <> ( col2 * + col0 )
----

query I rowsort
SELECT 76 * - col1 FROM tab0
----
-1596
-6156
-76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) * - col1 IS NOT NULL OR ( - col0 / ( + col1 ) ) <> 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 57 ) FROM tab0 WHERE NOT ( 41 * - 56 ) NOT BETWEEN - 57 + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( ALL 43 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT COUNT ( ALL 43 ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 * + - col1 * + col0 AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL - col1 * + - 84 FROM tab0
----
1764
6804
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT + 41 DIV - + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + 41 / - + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT COUNT( * ) FROM tab1 cor0 WHERE + 22 < ( 84 + - 17 ) AND col0 * 53 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1813
SELECT COUNT ( * ) FROM tab1 cor0 WHERE + 22 < ( 84 + - 17 ) AND col0 * 53 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - COUNT( * ) * MAX( DISTINCT - col2 ) * 57 FROM tab1 cor0
----
10089

skipif mysql # not compatible
query I rowsort label-1814
SELECT - COUNT ( * ) * MAX ( DISTINCT - col2 ) * 57 FROM tab1 cor0
----
10089

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT MIN( + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1815
SELECT MIN ( + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT 63 * - SUM( col0 ) FROM tab2
----
-11655

skipif mysql # not compatible
query I rowsort label-1816
SELECT 63 * - SUM ( col0 ) FROM tab2
----
-11655

query I rowsort
SELECT 96 + 97 FROM tab2 WHERE NOT ( + + col2 * 50 ) IN ( + 73 )
----
193
193
193

query I rowsort
SELECT DISTINCT 31 * - + 56 * + 53 AS col0 FROM tab1
----
-92008

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1819
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + MIN( - - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1820
SELECT + MIN ( - - col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 60 )
----

query I rowsort
SELECT + - ( + col0 ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT + 54 + COUNT( * ) col1 FROM tab0 cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1823
SELECT + 54 + COUNT ( * ) col1 FROM tab0 cor0
----
57

query I rowsort
SELECT DISTINCT - - col1 + + col0 * - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1825
SELECT DISTINCT CAST( + col0 AS DECIMAL ) col1 FROM tab1 cor0 WHERE NULL NOT IN ( + 30 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1825
SELECT DISTINCT CAST ( + col0 AS REAL ) col1 FROM tab1 cor0 WHERE NULL NOT IN ( + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL 55 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
165

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL 55 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
165

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

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT - col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT - COUNT( + col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1830
SELECT - COUNT ( + col0 ) AS col0 FROM tab1
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL col1 DIV - col1 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL col1 / - col1 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
67
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE col0 * 84 NOT BETWEEN 46 AND col1
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 30 BETWEEN + ( col0 ) * 95 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 49 FROM tab1 WHERE NOT - 41 BETWEEN + col2 AND NULL
----
49
49
49

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT BETWEEN - col0 AND col1 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT 88 * COUNT( ALL + 88 ) AS col0 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-1837
SELECT 88 * COUNT ( ALL + 88 ) AS col0 FROM tab1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT MIN( - col2 ) / MIN( DISTINCT + col1 / 95 ) AS col2 FROM tab2 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT MIN ( - col2 ) / MIN ( DISTINCT + col1 / 95 ) AS col2 FROM tab2 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + 16 + + + col0 * - col2 FROM tab2 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT MAX( + 95 ) - + 82 AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-1840
SELECT MAX ( + 95 ) - + 82 AS col0 FROM tab1 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > ( + col2 )
----

query I rowsort
SELECT + + col1 * + col0 + col2 AS col2 FROM tab1 cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - + COUNT( * ) + - COUNT( - - 35 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1843
SELECT - + COUNT ( * ) + - COUNT ( - - 35 ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - + 98 * + 59 + col1 AS col1 FROM tab2 AS cor0
----
-5705
-5715
-5731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT - - MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 + + 36 ) IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * col1 * - 11 - + col2 - + col2 AS col0 FROM tab2 AS cor0
----
-25852
-54288
-55391

query I rowsort
SELECT + - col2 * - col0 + + 13 * - col2 * 38 FROM tab1 cor0
----
-24131
-27404
-42528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( - col1 ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT COUNT( DISTINCT + 91 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT COUNT ( DISTINCT + 91 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 89 * + 70 FROM tab2
----
6230

query II rowsort
SELECT + col0 AS col0, - 57 FROM tab0 AS cor0
----
15
-57
87
-57
97
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT DISTINCT - col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1856
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - CAST( col0 AS DECIMAL ) + + + col0 )
----

skipif mysql # not compatible
query I rowsort label-1856
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - CAST ( col0 AS REAL ) + + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL - CAST( - ( - + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - CAST ( - ( - + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 - - 98 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1860
SELECT + + CAST( - ( - + 14 ) AS SIGNED ) AS col2, 45 FROM tab0 AS cor0
----
14
45
14
45
14
45

skipif mysql # not compatible
query II rowsort label-1860
SELECT + + CAST ( - ( - + 14 ) AS INTEGER ) AS col2, 45 FROM tab0 AS cor0
----
14
45
14
45
14
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1861
SELECT - 71 * + col1, 14 DIV + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-3621
0
-4757
0
-5467
0

skipif mysql # not compatible
query II rowsort label-1861
SELECT - 71 * + col1, 14 / + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-3621
0
-4757
0
-5467
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT - - AVG ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col2 * 46 FROM tab0 AS cor0 WHERE NOT 62 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT + 4 FROM tab1 AS cor0 WHERE ( - 19 / 78 + 98 = + - CAST( 68 AS SIGNED ) / ( 34 ) )
----

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 4 FROM tab1 AS cor0 WHERE ( - 19 / 78 + 98 = + - CAST ( 68 AS INTEGER ) / ( 34 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - - MIN( + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1865
SELECT - - MIN ( + - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 21 IN ( - 38 * - col2 + + ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 / col2 / + 3 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( ALL - 68 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( ALL - 68 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1869
SELECT 59 DIV - ( 12 ) FROM tab0 WHERE NOT + col1 IS NULL OR + - CAST( NULL AS DECIMAL ) * col2 IS NOT NULL
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1869
SELECT 59 / - ( 12 ) FROM tab0 WHERE NOT + col1 IS NULL OR + - CAST ( NULL AS REAL ) * col2 IS NOT NULL
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1870
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( CAST( + + 35 AS DECIMAL ) AS SIGNED ) * - 87 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1870
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( CAST ( + + 35 AS REAL ) AS INTEGER ) * - 87 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + col1 ) + + col1 + + col2 AS col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 4 + - 98 * col0 * - col0 col0 FROM tab2
----
207460
401568
551482

query I rowsort
SELECT ( + - col0 ) * - 10 + + col0 + + - col2 FROM tab2
----
483
664
767

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 AS col2 FROM tab2 cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT DISTINCT - 78, 7 - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( - col2 )
----
-78
7

skipif mysql # not compatible
query II rowsort label-1875
SELECT DISTINCT - 78, 7 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( - col2 )
----
-78
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT - - 74 * ( 70 ) * + 50 + - COUNT( * ) + ( 36 ) + + COUNT( * ) + 59 AS col1 FROM tab2 AS cor0
----
259095

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - - 74 * ( 70 ) * + 50 + - COUNT ( * ) + ( 36 ) + + COUNT ( * ) + 59 AS col1 FROM tab2 AS cor0
----
259095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE ( + 54 ) < + ( + 22 ) - + + col2 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE ( + 54 ) < + ( + 22 ) - + + col2 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + AVG ( - + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0, col1, + col2 / + 63 / - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + COUNT( * ) FROM tab2 WHERE + + col1 * + col2 NOT IN ( - - 52 )
----
3

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) FROM tab2 WHERE + + col1 * + col2 NOT IN ( - - 52 )
----
3

query I rowsort
SELECT ALL - ( + - 62 ) - col1 FROM tab1
----
15
48
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT col2 DIV + 50 - - col1 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-1881
SELECT col2 / + 50 - - col1 FROM tab2
----
51
68
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 94 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT - - COUNT( * ) * - 26 AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1883
SELECT - - COUNT ( * ) * - 26 AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT MIN( + ( - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT MIN ( + ( - col2 ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - - col2 / - col2 + - col0 * + col1 + + col1 NOT BETWEEN NULL AND - col1 + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - ( col2 )
----

query I rowsort
SELECT col1 * + 18 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL + COUNT( * ) * + 10 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + COUNT ( * ) * + 10 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 10 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 47 NOT BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + MIN( + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1892
SELECT + MIN ( + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT + COUNT( - 68 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT DISTINCT + COUNT ( - 68 ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT ( + + col2 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT CAST( - 2 AS SIGNED ) * - - 91 + col2 AS col2 FROM tab1 AS cor0
----
-114
-123
-86

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT CAST ( - 2 AS INTEGER ) * - - 91 + col2 AS col2 FROM tab1 AS cor0
----
-114
-123
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT ALL - CAST( - - col1 AS SIGNED ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1896
SELECT ALL - CAST ( - - col1 AS INTEGER ) col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 44 col0 FROM tab1
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT ALL - col2 + + col0 DIV - - col1 FROM tab0 cor0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - col2 + + col0 / - - col1 FROM tab0 cor0
----
-2
-47
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL 10 + + 42 * - 29 + 96 + COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
-1112

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL 10 + + 42 * - 29 + 96 + COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
-1112

query I rowsort
SELECT DISTINCT - 3 + col2 AS col1 FROM tab2 AS cor0
----
20
37
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL - + COUNT( DISTINCT + - 19 ) + - - 8 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - + COUNT ( DISTINCT + - 19 ) + - - 8 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL - SUM( - - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - SUM ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - 22 + + 23 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 + - + 98 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 + - + 98 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT ( + col2 ) DIV - + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1908
SELECT ( + col2 ) / - + col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT ALL + COUNT( ALL + - col1 ), 57 * + MAX( - ( - - col1 ) ) AS col1 FROM tab2
----
3
-2907

skipif mysql # not compatible
query II rowsort label-1909
SELECT ALL + COUNT ( ALL + - col1 ), 57 * + MAX ( - ( - - col1 ) ) AS col1 FROM tab2
----
3
-2907

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

query I rowsort
SELECT + ( + col1 ) + 74 FROM tab0 AS cor0
----
155
75
95

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL - COUNT( * ) + + + 45 * + COUNT( * ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - COUNT ( * ) + + + 45 * + COUNT ( * ) FROM tab1 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT + COUNT( * ) * ( 54 ) AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + COUNT ( * ) * ( 54 ) AS col2 FROM tab0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 * - col0 * - col1, 7 col2 FROM tab2
----
113344
7
115575
7
53958
7

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1917
SELECT CAST( NULL AS DECIMAL ) * MAX( + col2 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT 78 * + col0 * + col0 * - + col0 AS col2 FROM tab2 cor0
----
-20447232
-32906250
-7592208

query I rowsort
SELECT - 23 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18
-9
24

query I rowsort
SELECT - - col1 + 4 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( + 44 * - col2 >= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - - MIN( DISTINCT - - 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1921
SELECT - - MIN ( DISTINCT - - 84 ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL - 82 + + col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col0 - + 26 + col2 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) < - col1
----

query II rowsort
SELECT ALL - col0 AS col2, - ( - col2 ) FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL - ( + 68 ) FROM tab1 cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( ( 90 ) ) FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1928
SELECT DISTINCT MAX( ALL - ( 79 ) ), 7 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-79
2

skipif mysql # not compatible
query II rowsort label-1928
SELECT DISTINCT MAX ( ALL - ( 79 ) ), 7 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-79
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1929
SELECT - + 95 + + + ( COUNT( * ) ) + - 5 * + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT ( col1 - - 27 ) IN ( + 40, - col2 * + CAST( + 52 AS DECIMAL ), + - 80 + - col2 + + col0 + 65 )
----
-107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT - + 95 + + + ( COUNT ( * ) ) + - 5 * + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT ( col1 - - 27 ) IN ( + 40, - col2 * + CAST ( + 52 AS REAL ), + - 80 + - col2 + + col0 + 65 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL ( - MAX( + 69 ) ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL ( - MAX ( + 69 ) ) AS col0 FROM tab0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1931
SELECT DISTINCT 80 * 1 AS col2, CAST( 69 AS SIGNED ) FROM tab0
----
80
69

skipif mysql # not compatible
query II rowsort label-1931
SELECT DISTINCT 80 * 1 AS col2, CAST ( 69 AS INTEGER ) FROM tab0
----
80
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1932
SELECT * FROM tab2 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) >= ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1932
SELECT * FROM tab2 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) >= ( + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT ALL + CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL + COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT ALL + COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT col2 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT col2 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT + ( - col1 ) DIV + col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT + ( - col1 ) / + col0 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE - 79 * - - 76 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - 79 * - - 76 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( 49 ) + + + 17 + + - 42 >= - + 95
----
3

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( 49 ) + + + 17 + + - 42 >= - + 95
----
3

query I rowsort
SELECT ALL + 25 - - 15 * - col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-320
-575
-845

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-3906
-8901
-9930

query I rowsort
SELECT DISTINCT + 11 + - + 91 - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1520
3284
449

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 + col2 IN ( - col0 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT DISTINCT - ( 61 ) + + 76 DIV + col0 FROM tab0
----
-56
-61

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - ( 61 ) + + 76 / + col0 FROM tab0
----
-56
-61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + col0 - - col1 + - 10 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * + 39 * col0 * - + col0 AS col1, 82 AS col0 FROM tab1
----
-16624725
82
-21961212
82
-9738144
82

query I rowsort
SELECT ALL 53 * col0 AS col2 FROM tab0
----
4611
5141
795

query I rowsort
SELECT DISTINCT + col0 * 43 AS col0 FROM tab1
----
2193
3655
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT DISTINCT AVG ( DISTINCT col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 93 * + col2 > ( + + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL ( - + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT COUNT( * ) * 58 AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT COUNT ( * ) * 58 AS col1 FROM tab0
----
174

query I rowsort
SELECT + 73 * + 72 AS col2 FROM tab0
----
5256
5256
5256

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN 56 * - - col1 AND - 43 )
----

query I rowsort
SELECT DISTINCT ( + + col1 ) - - - col0 * - 24 AS col2 FROM tab2 AS cor0
----
1155
1613
1867

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1959
SELECT ALL * FROM tab0 WHERE NULL < CAST( - col0 AS SIGNED ) + + ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-1959
SELECT ALL * FROM tab0 WHERE NULL < CAST ( - col0 AS INTEGER ) + + ( - col0 )
----

query II rowsort
SELECT DISTINCT - + ( col1 ) AS col2, ( + + col1 ) FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT + - 79 FROM tab2 cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1962
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 - CAST( col1 AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-1962
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 - CAST ( col1 AS INTEGER ) * + col1
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT 83 DIV - - 89 AS col2, - 92 FROM tab2 AS cor0
----
0
-92

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT 83 / - - 89 AS col2, - 92 FROM tab2 AS cor0
----
0
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 10 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + + SUM( - + 13 ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1968
SELECT + + SUM ( - + 13 ) AS col0 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 89 * + 91 FROM tab2, tab0 AS cor0
----
9 values hashing to e9b18a7c6246db20cf628b331b5cb703

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT 91 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1971
SELECT 91 / - col2 FROM tab2
----
-1
-2
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL + ( - 11 ) AS col2 FROM tab0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1975
SELECT ALL + 81, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL + 81, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
81
NULL
81
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT + ( - MAX( - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + ( - MAX ( - col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL COUNT( * ) + + 82 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL COUNT ( * ) + + 82 FROM tab1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col0 * - 5 + col1 col2 FROM tab2 AS cor0
----
-46
281
-64
397
-75
442

query II rowsort
SELECT - + col1, + col1 AS col0 FROM tab0 AS cor0 WHERE 42 IS NOT NULL
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - ( + + SUM( + 75 ) ) * 9 FROM tab0 AS cor0
----
-2025

skipif mysql # not compatible
query I rowsort label-1980
SELECT - ( + + SUM ( + 75 ) ) * 9 FROM tab0 AS cor0
----
-2025

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

query I rowsort
SELECT ( col1 ) + 22 FROM tab0
----
103
23
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT ALL + 78 * col0 FROM tab2 AS cor0
----
3588
4992
5850

query I rowsort
SELECT DISTINCT col0 + - 39 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 + - - col0 FROM tab2 AS cor0
----
115
168
208

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + 51 AND - 10
----

query I rowsort
SELECT ALL - col2 - - col1 AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1991
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0, + CAST( col0 AS SIGNED ), + - ( + col0 ), - 78 )
----

skipif mysql # not compatible
query III rowsort label-1991
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0, + CAST ( col0 AS INTEGER ), + - ( + col0 ), - 78 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 65 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE - col2 >= NULL
----

query I rowsort
SELECT - 56 FROM tab1 WHERE col2 * col2 IS NOT NULL
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col1 * - - col1 col2 FROM tab1
----
182
20
2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT - + CAST( col2 AS SIGNED ) * 14 + + 9 + - 75 + - - ( CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1451
-185
-643

skipif mysql # not compatible
query I rowsort label-1996
SELECT - + CAST ( col2 AS INTEGER ) * 14 + + 9 + - 75 + - - ( CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1451
-185
-643

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT + + MAX( + 24 ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + + MAX ( + 24 ) AS col1 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - 56 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + SUM( 25 ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-2001
SELECT + SUM ( 25 ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT + ( + MAX( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2002
SELECT + ( + MAX ( + col0 ) ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - SUM( - + 7 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2003
SELECT - SUM ( - + 7 ) FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2004
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT - 70 * + ( col1 ) FROM tab2 AS cor0
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - + ( 55 ) * - COUNT( * ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2006
SELECT - + ( 55 ) * - COUNT ( * ) FROM tab2 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 31
----

query I rowsort
SELECT ALL + - col1 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + col1 * - + 16 FROM tab1 cor0
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ( + MAX( DISTINCT - + 48 ) ) AS col2 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2010
SELECT ( + MAX ( DISTINCT - + 48 ) ) AS col2 FROM tab0
----
-48

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 + + 98 AS col2, col0 * + col2 FROM tab2
----
144
1058
162
2560
173
4350

query I rowsort
SELECT 3 * + 0 * + + col2 + + col2 AS col0 FROM tab1
----
59
68
96

query II rowsort
SELECT - + col2 + + 59, + 20 - + - ( + col2 ) + - + 47 AS col1 FROM tab2 AS cor0
----
1
31
19
13
36
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * + col0 NOT IN ( - + col1, - col0 + - col2, + 10 )
----
3

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * + col0 NOT IN ( - + col1, - col0 + - col2, + 10 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL COUNT( * ) * - COUNT( * ) * - + MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - + MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-207

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + col0 * 55 FROM tab2
----
2530
3520
4125

query I rowsort
SELECT - 27 * - + 16 FROM tab1
----
432
432
432

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

query II rowsort
SELECT DISTINCT - col2 * - 4 + - 64 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
168
-58
28
-23
96
-40

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE 19 > NULL
----

query I rowsort
SELECT ALL + 79 * + col0 + col1 FROM tab0 cor0
----
1266
6894
7664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2025
SELECT DISTINCT - col2, - CAST( NULL AS SIGNED ) + - - 30 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2025
SELECT DISTINCT - col2, - CAST ( NULL AS INTEGER ) + - - 30 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2026
SELECT DISTINCT 34 / + col2 - - CAST( NULL AS SIGNED ) * - 59 AS col2, 82 * col2 AS col2 FROM tab1
----
NULL
4838
NULL
5576
NULL
7872

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT 34 / + col2 - - CAST ( NULL AS INTEGER ) * - 59 AS col2, 82 * col2 AS col2 FROM tab1
----
NULL
4838
NULL
5576
NULL
7872

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

query I rowsort
SELECT DISTINCT + 51 * - 86 + + - 63 FROM tab2
----
-4449

query I rowsort
SELECT DISTINCT - col0 - - ( + col2 ) + - col0 * - - 91 FROM tab1
----
-4596
-7761
-8304

query III rowsort
SELECT * FROM tab1 WHERE + 7 * 85 IS NULL
----

query I rowsort
SELECT 0 * 24 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + - col1 * col1 + + ( - col2 ) FROM tab1 WHERE NOT - col2 * + 12 - + - col2 + 3 * - col2 * + + col0 IS NULL
----
-2277
-292
-84

query I rowsort
SELECT - 16 * - + col1 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - - MIN( ALL + 15 ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - - MIN ( ALL + 15 ) AS col1 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 / 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 19 AS col2, col0 AS col1 FROM tab2
----
-19
46
-19
64
-19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL + MAX( - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + MAX ( - + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL ( - MAX( - 74 ) ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL ( - MAX ( - 74 ) ) FROM tab2 AS cor0
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + + COUNT( * ) * + 15 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2040
SELECT + + COUNT ( * ) * + 15 AS col2 FROM tab0 AS cor0
----
45

query II rowsort
SELECT DISTINCT 23 + + - 63 * - col1 AS col2, col0 FROM tab0 AS cor0
----
1346
87
5126
15
86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT + - col2 DIV - 95 - + + 14 col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2042
SELECT DISTINCT + - col2 / - 95 - + + 14 col0 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL + COUNT( - + 63 ) FROM tab0 WHERE ( NULL ) <> + - col0 * + 74 OR NOT NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL + COUNT ( - + 63 ) FROM tab0 WHERE ( NULL ) <> + - col0 * + 74 OR NOT NULL = - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE 14 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT + 85 + - SUM( + col0 ) FROM tab1
----
-142

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + 85 + - SUM ( + col0 ) FROM tab1
----
-142

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 + col1 AND 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT - col1 DIV + col0 FROM tab1 AS cor0 WHERE col1 >= + 34
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT - col1 / + col0 FROM tab1 AS cor0 WHERE col1 >= + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + COUNT( * ) + + + ( - 27 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2048
SELECT + COUNT ( * ) + + + ( - 27 ) FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT + + ( - COUNT( * ) ) DIV + COUNT( * ) + SUM( ALL 55 ) AS col2 FROM tab0 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-2049
SELECT + + ( - COUNT ( * ) ) / + COUNT ( * ) + SUM ( ALL 55 ) AS col2 FROM tab0 AS cor0
----
164

query I rowsort
SELECT DISTINCT + + 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
36

query I rowsort
SELECT ALL 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + col1 * + - col0 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab0 cor0 WHERE NOT ( - col1 * 6 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT - col1 DIV + + 32 + - col2 AS col2 FROM tab2 AS cor0
----
-24
-42
-60

skipif mysql # not compatible
query I rowsort label-2055
SELECT - col1 / + + 32 + - col2 AS col2 FROM tab2 AS cor0
----
-24
-42
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2057
SELECT ALL + - CAST( - col2 AS SIGNED ) - col2 * + col0 * + col1 AS col0, 15 AS col1 FROM tab1 AS cor0
----
-25016
15
-290768
15
-68448
15

skipif mysql # not compatible
query II rowsort label-2057
SELECT ALL + - CAST ( - col2 AS INTEGER ) - col2 * + col0 * + col1 AS col0, 15 AS col1 FROM tab1 AS cor0
----
-25016
15
-290768
15
-68448
15

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 37 NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT DISTINCT - 20 * + 21 + + + col2 + + + 42 * + - col0 * - - 51 + - + col2 DIV + - col2 AS col2 FROM tab1 AS cor0
----
-109565
-182430
-195273

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - 20 * + 21 + + + col2 + + + 42 * + - col0 * - - 51 + - + col2 / + - col2 AS col2 FROM tab1 AS cor0
----
-109565
-182430
-195273

query I rowsort
SELECT DISTINCT + col1 - + 77 * + - col2 * + - col1 FROM tab0 cor0
----
-16149
-293058
-7622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT - - 81 - + col1 AS col1, col2 FROM tab0 cor0
----
0
47
60
10
80
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2063
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) + - 10, 22 AS col2 FROM tab0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL + col1 * + CAST ( NULL AS REAL ) + - 10, 22 AS col2 FROM tab0
----
NULL
22
NULL
22
NULL
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 37 col2 FROM tab1
----
-51
37
-85
37
-91
37

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN 77 / - col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - COUNT( - ( - 66 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - COUNT ( - ( - 66 ) ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col0 * - 96 + - - col2 AND NULL
----

query I rowsort
SELECT col1 * ( - 42 ) AS col1 FROM tab0 AS cor0
----
-3402
-42
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT - 50 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT - 50 / + + col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col2 * col0 + 78 FROM tab1 WHERE - - col1 IS NOT NULL
----
-4818
-4937
-6110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT MAX( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT + CAST( + ( + col0 ) AS SIGNED ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT MAX ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT + CAST ( + ( + col0 ) AS INTEGER ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 51 * + + col1 FROM tab0 AS cor0
----
1071
4131
51

query I rowsort
SELECT DISTINCT + 95 + col1 AS col2 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT + CAST( col2 AS SIGNED ) * - + 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

skipif mysql # not compatible
query I rowsort label-2074
SELECT + CAST ( col2 AS INTEGER ) * - + 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 20 * - 72 * - col2 * - - col2 AS col1 FROM tab0 AS cor0
----
-14113440
-144000
-3180960

query I rowsort
SELECT + - 76 * - 17 * + 2 FROM tab2 AS cor0
----
2584
2584
2584

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 41 IS NULL
----

query I rowsort
SELECT ALL 7 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - MIN( DISTINCT + + col2 ) FROM tab0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - MIN ( DISTINCT + + col2 ) FROM tab0 WHERE NULL = NULL
----
NULL

query II rowsort
SELECT - + col0, col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 50 + - col0 AS col2 FROM tab1
----
-1
-35
-41

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT NULL < - + col0 / col2 ) )
----

query II rowsort
SELECT ALL - col1 + 16 + 83, col0 FROM tab2
----
22
64
32
75
48
46

query I rowsort
SELECT col2 + - col1 + + col1 * + col0 FROM tab1
----
4298
479
796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) * + - 49 * - col0 + - - col1 col1 FROM tab0 AS cor0
----
-34464
-42609
-470546

query I rowsort
SELECT ALL col2 - + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2088
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT col1 - - + ( - + 79 ) FROM tab1
----
-32
-65
-74

query I rowsort
SELECT ALL - col1 - - 92 * - col1 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ALL - col0 DIV - + col1 + + - col2 - - col0 FROM tab0 cor0
----
-32
81
95

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - col0 / - + col1 + + - col2 - - col0 FROM tab0 cor0
----
-32
81
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT + - COUNT( * ) col2, - 93 col0 FROM tab0 AS cor0
----
-3
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2092
SELECT + - COUNT ( * ) col2, - 93 col0 FROM tab0 AS cor0
----
-3
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2093
SELECT DISTINCT + 91 + - + CAST( NULL AS DECIMAL ) + + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR 81 NOT BETWEEN ( - - 73 ) AND 24 * - - col1 * - 54 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 91 + - + CAST ( NULL AS REAL ) + + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR 81 NOT BETWEEN ( - - 73 ) AND 24 * - - col1 * - 54 * + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + MIN( + 55 ) * COUNT( * ) AS col0 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-2094
SELECT + MIN ( + 55 ) * COUNT ( * ) AS col0 FROM tab0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - ( + MAX( DISTINCT - 29 ) ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - ( + MAX ( DISTINCT - 29 ) ) FROM tab1
----
29

query I rowsort
SELECT col0 * + - ( col0 ) FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - 22 * col0 * col2 AS col1 FROM tab1
----
-107712
-110330
-136136

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT + ( - + 93 ) * + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-279

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + ( - + 93 ) * + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-279

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2102
SELECT ALL + COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT - - 17 + - + ( + col0 ), + 76 AS col0 FROM tab1 cor0
----
-34
76
-68
76
-74
76

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE + 32 * - + col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col0 + + 87 AS col2 FROM tab0 AS cor0
----
-10
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT 38 + + 15 * - 50 * - COUNT( ALL ( + + col0 ) ) FROM tab2 AS cor0
----
2288

skipif mysql # not compatible
query I rowsort label-2106
SELECT 38 + + 15 * - 50 * - COUNT ( ALL ( + + col0 ) ) FROM tab2 AS cor0
----
2288

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL + 54 + + ( + MIN( + + col0 ) ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + 54 + + ( + MIN ( + + col0 ) ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT SUM( DISTINCT + + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2109
SELECT DISTINCT SUM ( DISTINCT + + col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT ( 6 ) * - 16 FROM tab2
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2111
SELECT COUNT( + + CAST( NULL AS DECIMAL ) ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2111
SELECT COUNT ( + + CAST ( NULL AS REAL ) ) col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col2 col1 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col2 * - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT ALL col0 / + + 83 + col1 FROM tab2 AS cor0 WHERE col1 * ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2116
SELECT ALL - col2 - + CAST( col1 AS SIGNED ) AS col0, col1 FROM tab1
----
-110
14
-115
47
-64
5

skipif mysql # not compatible
query II rowsort label-2116
SELECT ALL - col2 - + CAST ( col1 AS INTEGER ) AS col0, col1 FROM tab1
----
-110
14
-115
47
-64
5

query I rowsort
SELECT 30 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT DISTINCT + col0 DIV col2 * - 8 AS col1 FROM tab2 AS cor0
----
-16
-8

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + col0 / col2 * - 8 AS col1 FROM tab2 AS cor0
----
-16
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT ALL + 17, + col2 + - 59 AS col2 FROM tab1 WHERE + col0 NOT IN ( - 95 + + - col1, 89 + - ( + 4 ) * - col2 + 40 )
----
17
0
17
37
17
9

query I rowsort
SELECT ALL 22 + - ( - - col2 ) AS col1 FROM tab2 WHERE col1 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 30 + + + 1 + - col0 - col0
----

query I rowsort
SELECT - 18 * col1 AS col1 FROM tab1
----
-252
-846
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT + col0 DIV - - col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + col0 / - - col0 AS col2 FROM tab2
----
1

query I rowsort
SELECT - + col1 * + ( - - 71 ) FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + MIN( ALL col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2126
SELECT + MIN ( ALL col1 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 27 * - col1 * + 78 AS col1 FROM tab1 cor0
----
-10530
-29484
-98982

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL - COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 + - - col2 AS col1 FROM tab1 cor0
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - - 2 ) * - col2 + + col2 <> + - 99 / + col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 35 + 78 AS col1 FROM tab2
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - 41 + - + SUM( ALL - 62 ) FROM tab0
----
145

skipif mysql # not compatible
query I rowsort label-2135
SELECT - 41 + - + SUM ( ALL - 62 ) FROM tab0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT - 53 + + ( + COUNT( * ) ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - 53 + + ( + COUNT ( * ) ) FROM tab1
----
-50

query II rowsort
SELECT DISTINCT col0 AS col2, 20 AS col2 FROM tab0
----
15
20
87
20
97
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + col1 + + 10 * col2 NOT BETWEEN - - col0 AND + col0 / - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 56 * + col1 + - ( - - col0 ) col0 FROM tab2
----
2856
3752
4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT col0 * - ( - - ( 35 ) ) + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-2958
-3298
-510

skipif mysql # not compatible
query I rowsort label-2140
SELECT col0 * - ( - - ( 35 ) ) + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-2958
-3298
-510

query III rowsort
SELECT * FROM tab2 WHERE - - 59 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col2 - 84 FROM tab2 cor0
----
-60
-61
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - MIN( ALL + 5 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2143
SELECT - MIN ( ALL + 5 ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL + col0 + + + 12 + + 47 AS col0 FROM tab2 AS cor0
----
105
123
134

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col2 >= - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT + ( + COUNT( * ) ), 34 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
43

skipif mysql # not compatible
query II rowsort label-2146
SELECT + ( + COUNT ( * ) ), 34 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, + 7 / col2 AS col1 FROM tab0 WHERE NOT NULL > - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2149
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - col2 * + + col1 AS col2 FROM tab2
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 * + - 29 AS col0 FROM tab2 cor0
----
-1160
-1682
-667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT + + COUNT( * ) DIV + 20 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT + + COUNT ( * ) / + 20 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL COUNT( ALL + 58 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL COUNT ( ALL + 58 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL col2 * + 28 AS col0 FROM tab2
----
1120
1624
644

query I rowsort
SELECT ( + + 31 ) FROM tab2
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT + CAST( + 61 AS SIGNED ) AS col0 FROM tab2
----
61
61
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT DISTINCT - 18 DIV - 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - 18 / - 69 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT + MIN( DISTINCT + col2 ) - + 77 AS col1 FROM tab0 WHERE col1 BETWEEN NULL AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + MIN ( DISTINCT + col2 ) - + 77 AS col1 FROM tab0 WHERE col1 BETWEEN NULL AND - col1
----
NULL

query II rowsort
SELECT ALL - col1, - col1 * + col1 AS col2 FROM tab2
----
-51
-2601
-67
-4489
-77
-5929

query I rowsort
SELECT ALL - 33 + + - col0 - + col1 + - col0 FROM tab2 AS cor0
----
-176
-238
-250

query I rowsort
SELECT DISTINCT - - ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + - 20 * + + ( + - 70 ) + + col1 FROM tab1 cor0
----
1405
1414
1447

onlyif mysql # DIV for integer division: 
query II rowsort label-2164
SELECT - ( + + col1 ) DIV - - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

skipif mysql # not compatible
query II rowsort label-2164
SELECT - ( + + col1 ) / - - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT col2 DIV - - ( - col0 ) DIV - col2 DIV - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT col2 / - - ( - col0 ) / - col2 / - col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) + + COUNT( * ) + + 40 AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) + + COUNT ( * ) + + 40 AS col2 FROM tab2
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 + + 10 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - COUNT( * ) + + + 83 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - COUNT ( * ) + + + 83 FROM tab1
----
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - AVG ( - 96 ) FROM tab1 AS cor0 WHERE NULL <> + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL - 11 / ( CAST( NULL AS SIGNED ) ) + + + 69 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - 11 / ( CAST ( NULL AS INTEGER ) ) + + + 69 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - col1 AS col1, + 5 FROM tab2 cor0
----
-51
5
-67
5
-77
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( col2, - 41 * + col2 )
----

query II rowsort
SELECT + 23 AS col1, col0 AS col2 FROM tab0 AS cor0
----
23
15
23
87
23
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + 39 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT - 32 * - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 32 * - COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT DISTINCT SUM( - + col1 ) col1, COUNT( * ) + - SUM( col0 ) FROM tab2
----
-195
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2178
SELECT DISTINCT SUM ( - + col1 ) col1, COUNT ( * ) + - SUM ( col0 ) FROM tab2
----
-195
-182

query II rowsort
SELECT DISTINCT col2, + col0 * + col2 + col2 FROM tab1 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT + 99 - - col1 AS col0 FROM tab2
----
150
166
176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + COUNT( * ) + + 84 + - 65 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + COUNT ( * ) + + 84 + - 65 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - MAX( - + 50 ) col2 FROM tab0 AS cor0 WHERE NULL > - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT - MAX ( - + 50 ) col2 FROM tab0 AS cor0 WHERE NULL > - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + 79 + COUNT( * ) + - COUNT( * ) * - 91 AS col2 FROM tab1 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-2184
SELECT + 79 + COUNT ( * ) + - COUNT ( * ) * - 91 AS col2 FROM tab1 AS cor0
----
355

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - COUNT( * ) * - + COUNT( * ), 42 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
45

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - COUNT ( * ) * - + COUNT ( * ), 42 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 57 col2 FROM tab1
----
59
57
68
57
96
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - MAX( DISTINCT 79 ) AS col0 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - MAX ( DISTINCT 79 ) AS col0 FROM tab2
----
-79

query I rowsort
SELECT ALL - ( - + AVG ( DISTINCT - col2 ) ) AS col0 FROM tab2 cor0 WHERE NOT + 71 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 45 * - col2 AS col0 FROM tab1 AS cor0
----
2655
3060
4320

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 83 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL + - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT + 1 DIV 94 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT + 1 / 94 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + COUNT( DISTINCT 78 ) * - - MIN( ( - col2 ) ) + + - COUNT( * ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2195
SELECT + COUNT ( DISTINCT 78 ) * - - MIN ( ( - col2 ) ) + + - COUNT ( * ) FROM tab2
----
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 98 ) * - 59 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL - SUM( DISTINCT - - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - SUM ( DISTINCT - - col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT + 62 + - 5 DIV + - col0 FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 62 + - 5 / + - col0 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT - col2 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2201
SELECT ALL SUM( - - 39 ) + + MIN( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL SUM ( - - 39 ) + + MIN ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT - - col1 - + 30 DIV - 1 AS col1 FROM tab0 AS cor0
----
111
31
51

skipif mysql # not compatible
query I rowsort label-2202
SELECT - - col1 - + 30 / - 1 AS col1 FROM tab0 AS cor0
----
111
31
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 + + col0 - ( + 92 ) col0 FROM tab1 cor0
----
-13
-19
-53

query I rowsort
SELECT DISTINCT - 1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + 90 ) + + col2 - 40 FROM tab2 AS cor0
----
108
73
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2208
SELECT + col1 + col2 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT ALL 30, COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 - 73 + + 12 IS NOT NULL
----
30
0

skipif mysql # not compatible
query II rowsort label-2209
SELECT ALL 30, COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 - 73 + + 12 IS NOT NULL
----
30
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 <> - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, ( col1 ) FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT + col1 * - 25 * - 57 * + - col2 AS col2, + col1 AS col2 FROM tab0
----
-141075
1
-299250
21
-5424975
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 col0, col2 FROM tab1
----
-73
59
-73
68
-73
96

query II rowsort
SELECT ALL - 91, col1 FROM tab0
----
-91
1
-91
21
-91
81

query II rowsort
SELECT + col1, col1 + - + 50 + + - col2 AS col2 FROM tab1
----
14
-132
47
-71
5
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT CAST( 28 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
2268
28
588

skipif mysql # not compatible
query I rowsort label-2216
SELECT CAST ( 28 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT + 28 AS col1, SUM( DISTINCT + 14 ) AS col0 FROM tab2 AS cor0
----
28
14

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT + 28 AS col1, SUM ( DISTINCT + 14 ) AS col0 FROM tab2 AS cor0
----
28
14

query III rowsort
SELECT ALL * FROM tab0 WHERE + 43 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 71 <> ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT + SUM( ALL - 43 ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + SUM ( ALL - 43 ) FROM tab1 AS cor0
----
-129

query I rowsort
SELECT DISTINCT col1 * - 93 + - + 79 * col2 AS col0 FROM tab2 AS cor0
----
-10321
-10813
-6560

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-42

query I rowsort
SELECT 83 * + col0 + + + 60 AS col0 FROM tab1 AS cor0
----
4293
7115
7613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL + COUNT( col2 ) col1 FROM tab0 WHERE NOT NULL IN ( - 79 * col0 + - col0 + CAST( NULL AS SIGNED ), 85 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2225
SELECT ALL + COUNT ( col2 ) col1 FROM tab0 WHERE NOT NULL IN ( - 79 * col0 + - col0 + CAST ( NULL AS INTEGER ), 85 )
----
0

query II rowsort
SELECT - col2, + ( col1 ) + - 29 AS col1 FROM tab0
----
-10
-8
-47
52
-99
-28

query II rowsort
SELECT col0 * + + ( - - col1 ) AS col0, 94 * - col0 AS col0 FROM tab1
----
425
-7990
4277
-8554
714
-4794

query I rowsort
SELECT ALL + col2 * + 57 FROM tab0
----
2679
5643
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * col2 col0 FROM tab0
----
3149
6633
670

query II rowsort
SELECT ALL + - col1, - col0 AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - COUNT( DISTINCT + 84 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2231
SELECT - COUNT ( DISTINCT + 84 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 - 30 FROM tab0
----
-111
-31
-51

query I rowsort
SELECT DISTINCT 11 + col2 AS col0 FROM tab0 WHERE + ( - col1 ) <= - ( col1 )
----
110
21
58

query I rowsort
SELECT DISTINCT col1 + 17 * + col2 AS col0 FROM tab2
----
1053
442
757

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - MAX( col0 ) * + 41 AS col2 FROM tab1
----
-3731

skipif mysql # not compatible
query I rowsort label-2235
SELECT - MAX ( col0 ) * + 41 AS col2 FROM tab1
----
-3731

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

query I rowsort
SELECT + ( 78 ) * 33 FROM tab1
----
2574
2574
2574

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col2 + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT DISTINCT + 84 + + col1 DIV + 79 FROM tab0
----
84
85

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + 84 + + col1 / + 79 FROM tab0
----
84
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT MIN( + col0 ) + + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2240
SELECT MIN ( + col0 ) + + COUNT ( * ) FROM tab2
----
49

query I rowsort
SELECT + col1 * - col0 - 24 FROM tab0
----
-121
-1239
-1851

query I rowsort
SELECT DISTINCT + 32 * + col1 FROM tab1
----
1504
160
448

query I rowsort
SELECT ALL ( - 86 ) FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT 45 * col2 AS col1 FROM tab0
----
2115
4455
450

query I rowsort
SELECT ALL 1 * col1 FROM tab1
----
14
47
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT + 90 DIV - COUNT( * ) AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2247
SELECT + 90 / - COUNT ( * ) AS col2 FROM tab1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT - COUNT( * ) DIV 48 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT - COUNT ( * ) / 48 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 35 - col1 FROM tab2
----
-16
-32
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT + ( + col1 ) DIV 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT + ( + col1 ) / 82 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT ALL + ( - 87 ) DIV + col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + ( - 87 ) / + col2 AS col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + 24 + + COUNT( * ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2252
SELECT + 24 + + COUNT ( * ) AS col0 FROM tab0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT ALL 58 DIV SUM( col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL 58 / SUM ( col0 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2
----
48

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT CAST( 34 AS SIGNED ) * - col0 + col1 FROM tab0 AS cor0 WHERE NOT ( 82 ) BETWEEN NULL AND - col2
----
-2937
-3297
-429

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT CAST ( 34 AS INTEGER ) * - col0 + col1 FROM tab0 AS cor0 WHERE NOT ( 82 ) BETWEEN NULL AND - col2
----
-2937
-3297
-429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT + CAST( ( + 48 ) AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
2448
4080
4368

skipif mysql # not compatible
query I rowsort label-2259
SELECT + CAST ( ( + 48 ) AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
2448
4080
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL MIN( DISTINCT col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT COUNT( * ) - + 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-72

skipif mysql # not compatible
query I rowsort label-2261
SELECT COUNT ( * ) - + 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 63 = + 20
----

query I rowsort
SELECT DISTINCT + col1 * 37 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2265
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 58 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 95 IN ( - col1 )
----
-2726
-5742
-580

query I rowsort
SELECT - col2 * 48 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - 33 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT + MAX( + col2 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 = - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + MAX ( + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 = - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT 17 * col0 >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT 17 * col0 >= - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 63 + + ( col1 ) col2 FROM tab0 WHERE NOT ( + col1 * col2 ) IS NOT NULL
----

query I rowsort
SELECT col0 / col1 AS col0 FROM tab0 WHERE NULL > col1 - 11
----

query I rowsort
SELECT 95 + + - col2 AS col1 FROM tab1
----
-1
27
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= 38
----

query I rowsort
SELECT - col0 + + col0 + + col2 * + ( col1 ) AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT 5 + - col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT SUM( DISTINCT + 60 ) + COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2278
SELECT SUM ( DISTINCT + 60 ) + COUNT ( * ) FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2279
SELECT - CAST( + - col2 AS DECIMAL ) + + ( col0 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 + 18 FROM tab2 AS cor0 WHERE NULL NOT IN ( 68 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT + CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2281
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - + col2 + + 9 FROM tab1 AS cor0
----
-50
-59
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 69 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT + 33 * - col2 - + 62 DIV col1 + col2 FROM tab0 AS cor0
----
-1504
-322
-3230

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT + 33 * - col2 - + 62 / col1 + col2 FROM tab0 AS cor0
----
-1504
-322
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT col0 + + col2 * ( 3 ) FROM tab1 WHERE + CAST( - 25 AS SIGNED ) IS NOT NULL
----
262
295
339

skipif mysql # not compatible
query I rowsort label-2286
SELECT col0 + + col2 * ( 3 ) FROM tab1 WHERE + CAST ( - 25 AS INTEGER ) IS NOT NULL
----
262
295
339

query I rowsort
SELECT DISTINCT 57 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 81 )
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * col0 <= + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL 38 * COUNT( * ) AS col2 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL 38 * COUNT ( * ) AS col2 FROM tab2
----
114

query I rowsort
SELECT 71 - + + 95 AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL col0 * + + ( + col2 ) * col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ( 31 ) + 68 AS col1 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL + col1 + 29 FROM tab0 AS cor0
----
110
30
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( + - 87 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 38 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 + + - 59 AS col2 FROM tab2 cor0
----
-8
18
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * + 45 / col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 + - - col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT COUNT( * ) * + 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2299
SELECT COUNT ( * ) * + 38 FROM tab1 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT COUNT( ALL - col0 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND 60
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT COUNT ( ALL - col0 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + ( + - 75 ) * + SUM( - 49 ) - - COUNT( * ) * - 27 FROM tab2
----
10944

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + ( + - 75 ) * + SUM ( - 49 ) - - COUNT ( * ) * - 27 FROM tab2
----
10944

query I rowsort
SELECT DISTINCT + 1 * - col1 AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 35 * - col1 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT col1 * col2 * + 78 FROM tab2
----
240240
303108
91494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT DISTINCT - 74 DIV + COUNT( * ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - 74 / + COUNT ( * ) FROM tab0
----
-24

query I rowsort
SELECT - 22 * col0 + - ( col0 ) FROM tab0 cor0 WHERE NOT col1 * - ( - + 11 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - ( + ( 89 ) ) + col2 * - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col0 + + - col2 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col2 * col0 - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-10465
-5440
-5610

query I rowsort
SELECT DISTINCT - ( 78 ) FROM tab2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL CAST( NULL AS SIGNED ) / + col2 col1 FROM tab1 WHERE + col1 IS NOT NULL OR NULL >= - + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT ALL CAST ( NULL AS INTEGER ) / + col2 col1 FROM tab1 WHERE + col1 IS NOT NULL OR NULL >= - + col1
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 FROM tab0 AS cor0 WHERE NOT ( col2 - - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + + 7 AS col1 FROM tab2 AS cor0
----
53
71
82

query I rowsort
SELECT ALL + col0 + + - 17 + + + ( - col2 ) FROM tab1 AS cor0
----
-62
6
9

query I rowsort
SELECT ALL + 0 + - col2 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 98 IS NULL
----

query I rowsort
SELECT - col1 * + 78 FROM tab0 AS cor0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + COUNT( * ) * + 89 col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2318
SELECT + COUNT ( * ) * + 89 col2 FROM tab1 AS cor0
----
267

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 + + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - 74 * MIN( col2 ) AS col0 FROM tab1
----
-4366

skipif mysql # not compatible
query I rowsort label-2320
SELECT - 74 * MIN ( col2 ) AS col0 FROM tab1
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT + COUNT( - - 10 ) * - 57 * - - 71 AS col2 FROM tab1
----
-12141

skipif mysql # not compatible
query I rowsort label-2321
SELECT + COUNT ( - - 10 ) * - 57 * - - 71 AS col2 FROM tab1
----
-12141

query III rowsort
SELECT * FROM tab0 WHERE - + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 + 61 * - + 44 FROM tab0 AS cor0
----
-2587
-2597
-2669

onlyif mysql # DIV for integer division: 
query II rowsort label-2324
SELECT 40 DIV + col2, + col2 AS col2 FROM tab2
----
0
58
1
23
1
40

skipif mysql # not compatible
query II rowsort label-2324
SELECT 40 / + col2, + col2 AS col2 FROM tab2
----
0
58
1
23
1
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = col0 + + 15
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col0 NOT BETWEEN ( NULL ) AND ( + 9 + - 30 + - col2 ) )
----
51
14
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2328
SELECT ALL + ( ( - - 50 ) ) DIV + - 75 + - col2 AS col2, col2 + 53 AS col0 FROM tab1 cor0
----
-59
112
-68
121
-96
149

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL + ( ( - - 50 ) ) / + - 75 + - col2 AS col2, col2 + 53 AS col0 FROM tab1 cor0
----
-59
112
-68
121
-96
149

query I rowsort
SELECT + 18 - - + col1 + - 6 FROM tab1 AS cor0
----
17
26
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 + - - col0 * - col0 * + col1 * ( col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT DISTINCT col2 + - col1 FROM tab1 cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) * + 87 NOT BETWEEN + + col2 AND - 78 )
----

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT col2 + - col1 FROM tab1 cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) * + 87 NOT BETWEEN + + col2 AND - 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2333
SELECT * FROM tab0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) NOT IN ( - + col1 )
----

skipif mysql # not compatible
query III rowsort label-2333
SELECT * FROM tab0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) NOT IN ( - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 44 * + col1 + + + 55 NOT BETWEEN + col0 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + COUNT( - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + COUNT ( - + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2338
SELECT 86 / - + CAST( NULL AS SIGNED ) + - 86, + 95 * col0 FROM tab2 WHERE NOT 55 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2338
SELECT 86 / - + CAST ( NULL AS INTEGER ) + - 86, + 95 * col0 FROM tab2 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT ALL 32 * 35 AS col1 FROM tab2
----
1120
1120
1120

query I rowsort
SELECT + ( - 62 ) FROM tab1 WHERE NOT + - 76 - - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - SUM( col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT - SUM ( col1 ) col0 FROM tab1
----
-66

query II rowsort
SELECT - 0 * - ( + col2 ) AS col2, 10 FROM tab2 AS cor0
----
0
10
0
10
0
10

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2344
SELECT + + col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT + + col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT DISTINCT + + COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2345
SELECT DISTINCT + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT DISTINCT + col1 DIV + ( - col2 ) AS col1 FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT ALL ( CAST( - 74 AS SIGNED ) ) col2 FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2347
SELECT ALL ( CAST ( - 74 AS INTEGER ) ) col2 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2349
SELECT - - CAST( + 74 AS SIGNED ), + col0 FROM tab1 AS cor0
----
74
51
74
85
74
91

skipif mysql # not compatible
query II rowsort label-2349
SELECT - - CAST ( + 74 AS INTEGER ), + col0 FROM tab1 AS cor0
----
74
51
74
85
74
91

query I rowsort
SELECT DISTINCT + 53 * + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-3122
-3557
-5074

query I rowsort
SELECT ALL - col0 * col0 + - + 6 AS col1 FROM tab0 AS cor0
----
-231
-7575
-9415

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2352
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < - 10
----

skipif mysql # not compatible
query III rowsort label-2352
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - 10
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( - col2 ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL ( + MAX( ( + + ( - col0 ) ) ) ) + + + SUM( col1 ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL ( + MAX ( ( + + ( - col0 ) ) ) ) + + + SUM ( col1 ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + 91 + + col2 FROM tab1
----
150
159
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - COUNT( * ) + + + COUNT( * ) * - + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-2356
SELECT - COUNT ( * ) + + + COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + 62 <= + col2
----
87
21
10

query II rowsort
SELECT ALL 82 AS col0, - col2 FROM tab2
----
82
-23
82
-40
82
-58

query I rowsort
SELECT - col1 + - 81 + - 60 + - col0 * - col1 FROM tab2
----
2154
4710
4817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT - CAST( NULL AS SIGNED ) / + col2 + - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + COUNT ( - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2362
SELECT ALL + col0 + + ( - - col2 ) AS col2, 48 - + CAST( NULL AS DECIMAL ) FROM tab0
----
196
NULL
62
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2362
SELECT ALL + col0 + + ( - - col2 ) AS col2, 48 - + CAST ( NULL AS REAL ) FROM tab0
----
196
NULL
62
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT + + 13 DIV 55 AS col0 FROM tab2 WHERE - - col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT + + 13 / 55 AS col0 FROM tab2 WHERE - - col2 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT + SUM( ALL + col2 ) DIV + MAX( ALL + 54 ) + - 62 * + 68 FROM tab0
----
-4214

skipif mysql # not compatible
query I rowsort label-2364
SELECT + SUM ( ALL + col2 ) / + MAX ( ALL + 54 ) + - 62 * + 68 FROM tab0
----
-4214

query I rowsort
SELECT - - ( + ( - 22 ) ) * - + col0 AS col1 FROM tab0 AS cor0
----
1914
2134
330

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 61 + - + 54 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL + 29 + + - COUNT( + col1 ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + 29 + + - COUNT ( + col1 ) FROM tab0 cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL col2 - + 4 DIV col1 col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2368
SELECT ALL col2 - + 4 / col1 col1 FROM tab1
----
59
68
96

query I rowsort
SELECT 32 * 12 - + + col2 FROM tab2
----
326
344
361

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 56
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( + + col1, col2 + - col0 )
----

query I rowsort
SELECT DISTINCT 67 * 18 FROM tab2 AS cor0 WHERE NOT ( ( 94 ) ) + 91 IS NOT NULL
----

query I rowsort
SELECT - - 29 * - 86 FROM tab0 AS cor0
----
-2494
-2494
-2494

query I rowsort
SELECT DISTINCT + 80 * - 49 AS col1 FROM tab1 AS cor0
----
-3920

query III rowsort
SELECT ALL * FROM tab2 WHERE - 14 NOT BETWEEN ( - col1 ) AND col2 + - + col0 - - + 66 + col2 * col2
----

query I rowsort
SELECT ALL col1 * + 23 AS col2 FROM tab2
----
1173
1541
1771

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + 20 / + - ( + + 27 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 79 FROM tab2, tab2 cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + + MAX( - + col2 ) * - 88 AS col2 FROM tab0 AS cor0
----
880

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + + MAX ( - + col2 ) * - 88 AS col2 FROM tab0 AS cor0
----
880

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + col2 * + col1 + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2382
SELECT + ( - 36 ) / - CAST( NULL AS SIGNED ) AS col0, + CAST( + 11 AS SIGNED ) - COUNT( * ) AS col1 FROM tab2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2382
SELECT + ( - 36 ) / - CAST ( NULL AS INTEGER ) AS col0, + CAST ( + 11 AS INTEGER ) - COUNT ( * ) AS col1 FROM tab2
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT MAX( ALL - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2383
SELECT MAX ( ALL - col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT 21 * + 59 AS col1 FROM tab1
----
1239
1239
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + SUM( + + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2385
SELECT + SUM ( + + col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT col0 + - - 48 AS col0 FROM tab1
----
133
139
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 74, + col2 col1 FROM tab2
----
74
23
74
40
74
58

query I rowsort
SELECT ALL + - col1 + - 56 + - 66 AS col1 FROM tab2 AS cor0
----
-173
-189
-199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2389
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > - col2 * col2 * + + CAST( + - col2 AS SIGNED ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2389
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > - col2 * col2 * + + CAST ( + - col2 AS INTEGER ) + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT + 4 * - 72 DIV - COUNT( + + col2 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2390
SELECT + 4 * - 72 / - COUNT ( + + col2 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT DISTINCT - + col2 * col2 + CAST( NULL AS SIGNED ) / + - col0 * + col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2392
SELECT ALL col1 DIV col0 * 85 * - - col0 * + - col1 AS col0, col0 + + col2 + + col2 DIV 55 + - col1 FROM tab1
----
0
113
0
134
0
140

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL col1 / col0 * 85 * - - col0 * + - col1 AS col0, col0 + + col2 + + col2 / 55 + - col1 FROM tab1
----
0
113
0
134
0
140

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT COUNT( * ) * 47, 52 col2 FROM tab1
----
141
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2393
SELECT COUNT ( * ) * 47, 52 col2 FROM tab1
----
141
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col2 + + - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + - 47 + - SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2396
SELECT + - 47 + - SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT - - col2 + - - 67 + - - col1 * - - col2 - + col0 * - col1 FROM tab2 cor0
----
3609
8115
9036

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + COUNT( * ) - + MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + COUNT ( * ) - + MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT 54 - - ( - col0 ) FROM tab2
----
-10
-21
8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT - CAST( NULL AS SIGNED ) * + + 63 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL 78 * + COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 78 * + COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT + + 52 * col0 * 47 * col2 AS col0 FROM tab2 AS cor0
----
10631400
2585752
6256640

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 <= NULL
----

query II rowsort
SELECT col1, - 92 + col1 AS col0 FROM tab0
----
1
-91
21
-71
81
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT DISTINCT + - SUM( + - col0 ) + 73 FROM tab1 WHERE + col2 * col1 + - CAST( NULL AS SIGNED ) + + col2 <> + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT + - SUM ( + - col0 ) + 73 FROM tab1 WHERE + col2 * col1 + - CAST ( NULL AS INTEGER ) + + col2 <> + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2408
SELECT * FROM tab2 WHERE NOT - ( col2 ) + - CAST( + - col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2408
SELECT * FROM tab2 WHERE NOT - ( col2 ) + - CAST ( + - col2 AS INTEGER ) <> NULL
----

query II rowsort
SELECT ALL - col1, col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

query II rowsort
SELECT DISTINCT 45 * + - 82 AS col0, col0 AS col0 FROM tab1
----
-3690
51
-3690
85
-3690
91

query I rowsort
SELECT DISTINCT + + col2 + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT 36 * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT 36 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) * - CAST( 35 AS SIGNED ) * col0 + 12 + + 56 AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT ALL col2 * + + CAST( - - col0 AS SIGNED ) / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 + - 5 * + - col2 FROM tab0 AS cor0
----
137
250
592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col2 + - - 28 FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT ALL + 34 + + 23 AS col2 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT col1 FROM tab1 WHERE - + ( + 69 ) IS NULL
----

query I rowsort
SELECT + col2 + col2 + - col1 FROM tab0
----
-1
13
197

query I rowsort
SELECT col1 + - 9 FROM tab1
----
-4
38
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col2 col0 FROM tab0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT - SUM( ALL + - 48 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2426
SELECT - SUM ( ALL + - 48 ) FROM tab1
----
144

query I rowsort
SELECT DISTINCT 43 * 49 AS col2 FROM tab2
----
2107

query I rowsort
SELECT ALL col0 * + 37 AS col2 FROM tab2
----
1702
2368
2775

query II rowsort
SELECT col0, - col2 + - col2 FROM tab1 AS cor0
----
51
-192
85
-118
91
-136

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE - 61 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * 10 + col0 + - col0 + 62 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT MIN( + 14 ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT MIN ( + 14 ) AS col0 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL COUNT( ALL 77 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL COUNT ( ALL 77 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + ( col2 ) * + + 18 + + - col1 AS col0 FROM tab0 AS cor0
----
159
1781
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT MAX( DISTINCT - 2 ) * + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2435
SELECT MAX ( DISTINCT - 2 ) * + COUNT ( * ) FROM tab0 cor0
----
-6

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT - + ( + 92 ) * - col0 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL IN ( - - col2 * + + 78 + + + col2, col2, - col1 + - - col1, + col0 * col1 - + col1 * - col0 )
----

query I rowsort
SELECT + 88 * - col0 AS col0 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT + 49 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2442
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( - - col0 AS SIGNED ) ) + - col2 NOT BETWEEN - + col1 / + 70 + 82 + 9 + + + ( + - 18 ) * - col0 * 55 AND 20
----

skipif mysql # not compatible
query III rowsort label-2442
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( - - col0 AS INTEGER ) ) + - col2 NOT BETWEEN - + col1 / + 70 + 82 + 9 + + + ( + - 18 ) * - col0 * 55 AND 20
----

query II rowsort
SELECT col0 AS col2, + 96 AS col2 FROM tab0
----
15
96
87
96
97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT + + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2444
SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT - - col0 DIV + col2 - - col2 * - 14 * + col0 * + + col2 - + ( + - 91 ) + 56 col0 FROM tab0 AS cor0
----
-121645
-13309611
-463743

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2445
SELECT DISTINCT - - col0 / + col2 - - col2 * - 14 * + col0 * + + col2 - + ( + - 91 ) + 56 col0 FROM tab0 AS cor0
----
-121645
-13309611
-463743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 63 * ( + 53 ) + + col1 + - 43 AS col1 FROM tab0 cor0
----
3297
3317
3377

query II rowsort
SELECT + 1 AS col1, - col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 37 + + + 23 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL - 97 - 76 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT COUNT( * ) - + 29 * + 53 AS col0 FROM tab1
----
-1534

skipif mysql # not compatible
query I rowsort label-2452
SELECT COUNT ( * ) - + 29 * + 53 AS col0 FROM tab1
----
-1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT 94 + + col2 + - col0 + - + col1 * - col0 + + col1 - col0 * - col1 * - - col2 FROM tab0
----
20135
58527
9797

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT MAX( ALL + - col1 ) * MIN( - 81 ) + - + 37 AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-2455
SELECT MAX ( ALL + - col1 ) * MIN ( - 81 ) + - + 37 AS col1 FROM tab0
----
44

query II rowsort
SELECT + col1 * ( col2 ) AS col2, col2 FROM tab1 cor0
----
1344
96
295
59
3196
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col1 AND NOT col1 NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT - 42 * col1 * - 12, col0 AS col2 FROM tab0 AS cor0
----
10584
87
40824
15
504
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2459
SELECT - + col0 AS col2, - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-2459
SELECT - + col0 AS col2, - col1 / + col2 AS col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL COUNT( * ) AS col0, + SUM( ALL + col2 ) FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL COUNT ( * ) AS col0, + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
3
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT - + COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2461
SELECT - + COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 * - + 51 * - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT - - 21 + - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * 44 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - - 21 + - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * 44 IS NOT NULL
----
21

query I rowsort
SELECT ALL - AVG ( + col1 ) AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - 90 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2466
SELECT COUNT( * ) + + SUM( ALL + col1 ) * - 65 col2, COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-6692
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2466
SELECT COUNT ( * ) + + SUM ( ALL + col1 ) * - 65 col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-6692
NULL

query I rowsort
SELECT - col2 * + col0 * + + 58 + - col2 AS col1 FROM tab1
----
-284064
-290929
-358972

query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 ) + col2 IS NULL
----

query I rowsort
SELECT - 80 + col0 AS col2 FROM tab0
----
-65
17
7

query I rowsort
SELECT DISTINCT - + ( - col2 ) AS col0 FROM tab1 cor0
----
59
68
96

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

query I rowsort
SELECT ALL 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2473
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( + + col2 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2473
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( + + col2 AS REAL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - + col1, - col0 )
----

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

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE - 34 * + ( - - col1 ) * + - 61 + col2 NOT BETWEEN col1 - - col2 AND NULL
----

query II rowsort
SELECT + 89 AS col0, - col2 * + + col2 * - col2 + 63 * + col0 FROM tab0
----
89
104768
89
6481
89
976410

query I rowsort
SELECT + col2 * + + 70 AS col0 FROM tab2
----
1610
2800
4060

query I rowsort
SELECT ALL - col1 * - ( - - col0 ) AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2480
SELECT - CAST( + - col1 AS SIGNED ) * 28 DIV col0 * + + col1 FROM tab2
----
1581
1675
2541

skipif mysql # not compatible
query I rowsort label-2480
SELECT - CAST ( + - col1 AS INTEGER ) * 28 / col0 * + + col1 FROM tab2
----
1581
1675
2541

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT ALL COUNT( * ) * ( + MAX( - col1 ) ), 24 AS col0 FROM tab2
----
-153
24

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL COUNT ( * ) * ( + MAX ( - col1 ) ), 24 AS col0 FROM tab2
----
-153
24

query I rowsort
SELECT - 71 * - + col2 * + ( + col0 ) AS col2 FROM tab2
----
181760
308850
75118

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 95 * + 48
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) * - - 37 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2487
SELECT DISTINCT + 38 DIV + col0 AS col2, 42 + - 7 + col2 FROM tab1
----
0
103
0
131
0
94

skipif mysql # not compatible
query II rowsort label-2487
SELECT DISTINCT + 38 / + col0 AS col2, 42 + - 7 + col2 FROM tab1
----
0
103
0
131
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL - MAX( ALL - 93 ) FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL - MAX ( ALL - 93 ) FROM tab2 cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 + + 47 + + - col2 / - col1 IS NULL
----

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

query I rowsort
SELECT - 25 * col0 AS col2 FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT - 81 + + col1 AS col1 FROM tab0 AS cor0
----
-60
-80
0

query II rowsort
SELECT col2 AS col2, col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN 55 AND - + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT DISTINCT col1 * - 94 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT DISTINCT 5 DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT 5 / - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL 75 * + col1 AS col2 FROM tab1
----
1050
3525
375

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT + 23 DIV 98 * - 23 * + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 23 / 98 * - 23 * + col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT ALL - col0 DIV + - col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col0 / + - col1 FROM tab0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT - 90 DIV - col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 90 / - col0 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT ALL + 48 DIV - COUNT( * ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL + 48 / - COUNT ( * ) AS col0 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT ALL - COUNT( * ), + ( - 56 ) AS col0 FROM tab1
----
-3
-56

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL - COUNT ( * ), + ( - 56 ) AS col0 FROM tab1
----
-3
-56

query I rowsort
SELECT DISTINCT col0 + 43 AS col2 FROM tab0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + 32 + - + SUM( + col1 ) * - - 27 FROM tab0
----
-2749

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + 32 + - + SUM ( + col1 ) * - - 27 FROM tab0
----
-2749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT + col1 * + - CAST( - + col0 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + col1 * + - CAST ( - + col0 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

query II rowsort
SELECT ALL - col1 + - ( + col2 ) - col0 AS col0, - 40 AS col0 FROM tab0 AS cor0
----
-118
-40
-143
-40
-197
-40

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

query I rowsort
SELECT ALL col0 + + col2 + + col2 AS col2 FROM tab2 AS cor0
----
144
191
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT MIN( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2510
SELECT MIN ( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + 21 - - - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-25
-43
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT DISTINCT - - 37 * col1 - - 11 + CAST( NULL AS SIGNED ) + col2 / - 86 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - - 37 * col1 - - 11 + CAST ( NULL AS INTEGER ) + col2 / - 86 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 69 * + - col0 + col0 AS col1 FROM tab1 AS cor0
----
-3468
-5780
-6188

query I rowsort
SELECT - ( + col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( - + 4 ) col0 FROM tab1 AS cor0
----
55
89
95

query I rowsort
SELECT + 96 * 86 + + col1 FROM tab2 AS cor0 WHERE + 17 > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT SUM( col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-2518
SELECT SUM ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

query I rowsort
SELECT ALL - 50 FROM tab0 WHERE ( NOT + col0 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT + MIN( + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + MIN ( + + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2523
SELECT - MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2524
SELECT DISTINCT + ( + + CAST( - col0 AS DECIMAL ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2524
SELECT DISTINCT + ( + + CAST ( - col0 AS REAL ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 10 * + col0 AS col2 FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL SUM( - 45 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL SUM ( - 45 ) FROM tab1
----
-135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 / - 54 AND + col0 + 13
----

query I rowsort
SELECT - col1 * + - 99 FROM tab0 AS cor0
----
2079
8019
99

query I rowsort
SELECT ALL 8 + col0 * - col0 + 27 AS col0 FROM tab2 AS cor0
----
-2081
-4061
-5590

query II rowsort
SELECT - 16 AS col1, col1 * - col0 FROM tab0 AS cor0 WHERE NOT 82 + - - 69 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT + + 70 * + COUNT( * ) col0 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2531
SELECT DISTINCT + + 70 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + 83 * + COUNT( * ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 83 * + COUNT ( * ) FROM tab1 AS cor0
----
249

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 65 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + - - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - col2 * - 96 FROM tab1 AS cor0
----
5664
6528
9216

query I rowsort
SELECT ALL 64 * - ( - ( - col1 ) ) FROM tab0 cor0
----
-1344
-5184
-64

query II rowsort
SELECT DISTINCT + col0 + col0, - col2 AS col2 FROM tab0 AS cor0
----
174
-10
194
-99
30
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL - + col1 + col0 + - col2 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
166
2143
9897

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - + col1 + col0 + - col2 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
166
2143
9897

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT - CAST( NULL AS SIGNED ) + + - 13 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 + col1 + - col0 + + col1 FROM tab1
----
-16
71
73

query I rowsort
SELECT + 63 * - 28 + + col0 + - col1 FROM tab2
----
-1756
-1769
-1777

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 + + 89 BETWEEN NULL AND - + 38 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 + 44 FROM tab1
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT + 83 + + ( COUNT( * ) ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT + 83 + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL + col2 + 0 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + 92 - + COUNT( * ) AS col2 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-2549
SELECT + 92 - + COUNT ( * ) AS col2 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT DISTINCT + col2 - col0 * - col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

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

query I rowsort
SELECT 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2552
SELECT COUNT( * ) * + COUNT( * ) DIV - - CAST( + CAST( + COUNT( - col1 ) AS SIGNED ) AS SIGNED ) - - 54 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( * ) * + COUNT ( * ) / - - CAST ( + CAST ( + COUNT ( - col1 ) AS INTEGER ) AS INTEGER ) - - 54 FROM tab1
----
57

query I rowsort
SELECT - 79 + - + col2 + + 96 AS col2 FROM tab1 AS cor0
----
-42
-51
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL + col1 DIV + - ( + - col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + col1 / + - ( + - col0 ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT + 40 DIV + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + 40 / + COUNT ( * ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT ( + + 50 ) AS col0 FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT - CAST( - ( - - 46 ) AS SIGNED ) AS col2 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2558
SELECT - CAST ( - ( - - 46 ) AS INTEGER ) AS col2 FROM tab2
----
46
46
46

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

query I rowsort
SELECT col0 + - - col0 * - col0 + + col1 * col2 AS col1 FROM tab1 WHERE NOT NULL <> 15 * - + 5 - 28 + col2 - - 7 / 89
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 56 + + + col2 - + 85 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + ( - + COUNT( * ) ) FROM tab0 WHERE NOT + + 56 + + - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT + ( - + COUNT ( * ) ) FROM tab0 WHERE NOT + + 56 + + - col1 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT DISTINCT + COUNT( col0 ) + 53 FROM tab2 AS cor0 WHERE NOT ( - col2 + - col0 * 60 IS NOT NULL )
----
53

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + COUNT ( col0 ) + 53 FROM tab2 AS cor0 WHERE NOT ( - col2 + - col0 * 60 IS NOT NULL )
----
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - 57 + - col2 + - col2 + + + col2 NOT BETWEEN + col1 / + col1 AND NULL )
----

query I rowsort
SELECT 46 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT + col2 AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( col2, CAST( - - 21 AS SIGNED ) - - col0, - col1, + 53, + col0 * - col1 * + + col1, - + col1 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2567
SELECT + col2 AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( col2, CAST ( - - 21 AS INTEGER ) - - col0, - col1, + 53, + col0 * - col1 * + + col1, - + col1 )
----
10
47
99

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE + 17 IN ( - + col1 + + col1, 28, - 65 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT - - 42 + + - COUNT( ALL - col0 ) FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - - 42 + + - COUNT ( ALL - col0 ) FROM tab0 cor0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT + 49 DIV - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + 49 / - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT - + col2 * - col1 * col1 * - col1 FROM tab2 AS cor0
----
-17444254
-18261320
-3050973

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT DISTINCT - - COUNT( * ) AS col0, ( + 2 ) * - 46 FROM tab1 AS cor0
----
3
-92

skipif mysql # not compatible
query II rowsort label-2574
SELECT DISTINCT - - COUNT ( * ) AS col0, ( + 2 ) * - 46 FROM tab1 AS cor0
----
3
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * + + 82 AS col0 FROM tab0 AS cor0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT col1 + - col0 + + col0 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + col0 * + 20 AS col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT ALL col1 * + + col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2580
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + + + col2 * - 25 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2580
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + + + col2 * - 25 IS NOT NULL
----

query I rowsort
SELECT + - col0 * + col1 FROM tab1 WHERE ( NOT 77 + - + 92 * - col2 / + col1 IS NOT NULL )
----

query II rowsort
SELECT - col2, col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT + - MAX( ALL - col0 ) FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
46

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT + - MAX ( ALL - col0 ) FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + 31 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 97 + - + 87 + + 13 AS col0 FROM tab2 AS cor0
----
4388
6134
7201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2586
SELECT ALL - col0, col2 * - CAST( NULL AS SIGNED ) AS col1, + ( col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2586
SELECT ALL - col0, col2 * - CAST ( NULL AS INTEGER ) AS col1, + ( col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 41 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COUNT( * ) * + + MIN( ALL + col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COUNT ( * ) * + + MIN ( ALL + col0 ) FROM tab0
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 21 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 21 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT + 51 * - col2 * - + col2 FROM tab1 AS cor0
----
177531
235824
470016

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2594
SELECT 12 DIV + 65 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT 12 / + 65 * - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2596
SELECT ALL + col1 * - CAST( col1 AS SIGNED ) AS col1, col2 FROM tab1
----
-196
96
-2209
68
-25
59

skipif mysql # not compatible
query II rowsort label-2596
SELECT ALL + col1 * - CAST ( col1 AS INTEGER ) AS col1, col2 FROM tab1
----
-196
96
-2209
68
-25
59

query I rowsort
SELECT - - 31 AS col2 FROM tab2 WHERE NOT - col1 - + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + 20 * + col0 * + 56 * - col1 FROM tab1
----
-476000
-4790240
-799680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col1 ) * - - col1, + ( + col1 ) col2 FROM tab0
----
1
1
441
21
6561
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2602
SELECT col0 AS col1, - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2602
SELECT col0 AS col1, - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 25 col1 FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - MAX( ALL 9 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2604
SELECT - MAX ( ALL 9 ) AS col1 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL 69 * 66 + col2 - 94 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2608
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2608
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + - MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2609
SELECT + - MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT + 20 * - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-180
-9

skipif mysql # not compatible
query II rowsort label-2611
SELECT + 20 * - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-180
-9

query I rowsort
SELECT 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + + 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT col0 + - - col0 - + - 28 AS col1 FROM tab2
----
120
156
178

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT + ( + + 13 ) + - - CAST( NULL AS SIGNED ) - + 56 + + col0 + + + col0 + - - col1 + - 28 / + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT + ( + + 13 ) + - - CAST ( NULL AS INTEGER ) - + 56 + + col0 + + + col0 + - - col1 + - 28 / + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - col0 * + 56 FROM tab1
----
145656
404600
463736

query I rowsort
SELECT + 67 * + + col0 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT DISTINCT 46 * - - 46 AS col2 FROM tab2
----
2116

onlyif mysql # DIV for integer division: 
query II rowsort label-2620
SELECT DISTINCT col2 DIV + - 89 + - + col1 AS col1, col1 FROM tab0
----
-2
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-2620
SELECT DISTINCT col2 / + - 89 + - + col1 AS col1, col1 FROM tab0
----
-2
1
-21
21
-81
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2622
SELECT + col0 DIV + CAST( + ( - col1 ) AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col0 / + CAST ( + ( - col1 ) AS INTEGER ) FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT - - 68 * - 4 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-816

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - - 68 * - 4 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-816

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT ALL 40 / - 80 + - CAST( NULL AS SIGNED ) / 61 / col1 + - - col1 - + - col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE + col2 - - + col2 + + + col0 + col1 IS NULL
----

query I rowsort
SELECT ALL 79 - col0 + col2 AS col0 FROM tab1
----
124
53
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT + CAST( + col2 AS SIGNED ) * + col1 * - col0 + + col2 FROM tab1
----
-25016
-290768
-68448

skipif mysql # not compatible
query I rowsort label-2629
SELECT + CAST ( + col2 AS INTEGER ) * + col1 * - col0 + + col2 FROM tab1
----
-25016
-290768
-68448

query I rowsort
SELECT 2 * - 59 AS col0 FROM tab0
----
-118
-118
-118

query I rowsort
SELECT + col2 * - ( + + col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2632
SELECT MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 * 3 AS col1 FROM tab0 cor0
----
-10
30
-47
141
-99
297

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2635
SELECT + col0 col2, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2635
SELECT + col0 col2, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63 col1, + 4 * col1 + + 97 AS col0 FROM tab1 AS cor0
----
63
117
63
153
63
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT 81 DIV - col0 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2638
SELECT 81 / - col0 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 17 * - - ( - col0 ) FROM tab1
----
-1445
-1547
-867

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - col2 + col2 - - col0 * + 20 / col0 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE + - col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT - col1 + + - col1 * + + col1 + - - CAST( 93 AS SIGNED ) AS col0 FROM tab2
----
-2559
-4463
-5913

skipif mysql # not compatible
query I rowsort label-2643
SELECT - col1 + + - col1 * + + col1 + - - CAST ( 93 AS INTEGER ) AS col0 FROM tab2
----
-2559
-4463
-5913

query I rowsort
SELECT DISTINCT col2 + - - 92 AS col0 FROM tab1
----
151
160
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL - col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT ALL + 12 + + 81 DIV COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + 12 + + 81 / COUNT ( * ) FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT + - COUNT( * ) / 73 + - + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + - COUNT ( * ) / 73 + - + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT MAX( 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-2649
SELECT MAX ( 73 ) FROM tab2
----
73

query I rowsort
SELECT col1 * - 50 - + + 63 AS col2 FROM tab1
----
-2413
-313
-763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 - + col1 - - - 24 * + col1 + + - col2 col2 FROM tab1
----
-1221
-162
-424

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2652
SELECT ALL + SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + - 71 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 51 * + 49 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + ( - SUM( + 8 ) ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2658
SELECT + ( - SUM ( + 8 ) ) FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT COUNT( * ) + + COUNT( * ) col0 FROM tab1, tab2 cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2659
SELECT COUNT ( * ) + + COUNT ( * ) col0 FROM tab1, tab2 cor0
----
18

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

query II rowsort
SELECT + + 86, col2 FROM tab1 AS cor0
----
86
59
86
68
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT - SUM( DISTINCT - 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - SUM ( DISTINCT - 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT + 12 DIV MAX( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 12 / MAX ( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2664
SELECT ALL CAST( NULL AS DECIMAL ) * 41 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL + MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + + 21 * COUNT( * ) col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT ALL + + 21 * COUNT ( * ) col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT 73 * - 97 * col2 * - col1 AS col1 FROM tab1 WHERE NOT + + 77 <> NULL
----

query I rowsort
SELECT + 6 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
-1

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * + col1 FROM tab2
----
51
1173
67
3886
77
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + COUNT( * ) FROM tab0 WHERE NOT 78 IS NULL AND NOT ( NULL ) BETWEEN - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 78 IS NULL AND NOT ( NULL ) BETWEEN - + col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 59 >= NULL
----

query I rowsort
SELECT 36 * - - 88 + + - 35 AS col1 FROM tab1
----
3133
3133
3133

query I rowsort
SELECT - - col0 * col1 * col0 - col0 + - - 26 AS col0 FROM tab2 AS cor0
----
107896
315354
376826

query I rowsort
SELECT 77 + - - col1 * col1 FROM tab1 AS cor0
----
102
2286
273

query I rowsort
SELECT ALL - + ( 39 ) AS col0 FROM tab2 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2677
SELECT - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT - 68 AS col2 FROM tab2 AS cor0 WHERE ( - 89 BETWEEN - col2 AND + 45 )
----

query I rowsort
SELECT ALL - - col1 * - ( - + col2 ) FROM tab1 cor0 WHERE NOT ( + - col2 BETWEEN - col2 AND - col1 )
----

query I rowsort
SELECT 60 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL 47 DIV COUNT( - + col0 ) col1 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2682
SELECT ALL 47 / COUNT ( - + col0 ) col1 FROM tab1
----
15

query II rowsort
SELECT col1 * + col0, col0 FROM tab1
----
425
85
4277
91
714
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - 54 + - col0 * col1 / - - CAST( NULL AS DECIMAL ) * + - col0 / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - 54 + - col0 * col1 / - - CAST ( NULL AS REAL ) * + - col0 / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - + ( - 99 ) + - 51 FROM tab1 AS cor0
----
4998
8364
8958

query I rowsort
SELECT col2 + + 32 + 94 FROM tab0 AS cor0
----
136
173
225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - col1 / + 22 + col0 )
----

query I rowsort
SELECT DISTINCT + + 81 + col1 AS col1 FROM tab2 AS cor0
----
132
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL ( - SUM( + ( + + col1 ) ) ) - - 68 AS col1 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL ( - SUM ( + ( + + col1 ) ) ) - - 68 AS col1 FROM tab0
----
-35

query I rowsort
SELECT ALL 25 FROM tab0 WHERE NOT - 20 NOT BETWEEN NULL AND 65 * - col2 * - - ( + - col2 )
----

query I rowsort
SELECT + col0 * + ( + + col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ( - MAX( ALL - col2 ) ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2693
SELECT ( - MAX ( ALL - col2 ) ) AS col1 FROM tab0
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST( 5 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2695
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST ( 5 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( 49 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( + 51 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( + ( + col2 ) * - col0 )
----

query I rowsort
SELECT - 18 + + col1 AS col0 FROM tab0
----
-17
3
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - col2 >= ( NULL )
----

query I rowsort
SELECT 99 - - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT + CAST( NULL AS SIGNED ) + 55 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE - ( + 76 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT - ( + SUM( DISTINCT + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - ( + SUM ( DISTINCT + col0 ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT COUNT( * ) * 24 + + MIN( - 27 + + 12 ) FROM tab0 WHERE - ( - 40 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT COUNT ( * ) * 24 + + MIN ( - 27 + + 12 ) FROM tab0 WHERE - ( - 40 ) IS NULL
----
NULL

query I rowsort
SELECT ( col0 ) + 95 FROM tab2 WHERE NOT col2 * - col1 IN ( + col2 )
----
141
159
170

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT CAST( ( - 77 ) AS SIGNED ) + 59 FROM tab2
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-2709
SELECT CAST ( ( - 77 ) AS INTEGER ) + 59 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT + col1 FROM tab2 WHERE + col1 - col2 IS NULL
----

query I rowsort
SELECT + col0 - 95 AS col2 FROM tab0
----
-8
-80
2

query I rowsort
SELECT - col1 - col1 AS col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - col0 + 54 AS col2 FROM tab2
----
-10
-21
8

query I rowsort
SELECT DISTINCT - 99 + + col1 FROM tab1
----
-52
-85
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + col1 IN ( - 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 46 * 25 FROM tab2
----
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * MAX( col1 ) AS col2 FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( 8 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2719
SELECT DISTINCT - ( + ( - CAST( NULL AS DECIMAL ) ) ) * CAST( col0 AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( col1 ) <= NULL
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT - COUNT( * ) * 23 AS col1 FROM tab2 AS cor0 WHERE + col1 > ( - col0 + + 3 )
----
-69

skipif mysql # not compatible
query I rowsort label-2722
SELECT - COUNT ( * ) * 23 AS col1 FROM tab2 AS cor0 WHERE + col1 > ( - col0 + + 3 )
----
-69

query I rowsort
SELECT - 24 * col1 + + 23 FROM tab0 AS cor0
----
-1
-1921
-481

query I rowsort
SELECT DISTINCT + 64 FROM tab1 cor0 CROSS JOIN tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT 78 + MIN( DISTINCT + col1 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-2725
SELECT 78 + MIN ( DISTINCT + col1 ) AS col2 FROM tab1
----
83

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE 84 <= ( - 0 * 12 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 ON ( + 11 / ( 53 ) ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( 95 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 * 38 + - col1 NOT BETWEEN + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 23 * - col1 FROM tab2 AS cor0
----
-1173
-1541
-1771

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0 / - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT + - ( + COUNT( DISTINCT col1 ) ) * MIN( + col2 * + CAST( NULL AS SIGNED ) ) + - 68 AS col2 FROM tab1 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 * col0 AND + 95
----

query I rowsort
SELECT + col0 - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT - ( 6 ) - col1 * + 30 AS col0 FROM tab0 AS cor0
----
-2436
-36
-636

query I rowsort
SELECT - - col0 * col2 - col1 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT - 9 * col2 - - col2 FROM tab2 AS cor0
----
-184
-320
-464

query I rowsort
SELECT + 43 - + 19 AS col0 FROM tab1 AS cor0
----
24
24
24

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

query I rowsort
SELECT - col2 - + + 23 + 63 * 53 FROM tab1
----
3220
3248
3257

query I rowsort
SELECT col1 * + 96 - + col1 FROM tab0
----
1995
7695
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + - 1 + 85 col0 FROM tab1
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IN ( 77 )
----

query I rowsort
SELECT ALL col1 * - + 60 AS col1 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT DISTINCT + 66 FROM tab0 WHERE col2 + + col1 >= NULL
----

query I rowsort
SELECT ALL - 98 * + col2 FROM tab2
----
-2254
-3920
-5684

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 26 + + col1 ) <= col0
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( col0 ) + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / 75 - col0 NOT BETWEEN ( NULL ) AND ( - col1 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL IN ( + - 34 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE 1 + 40 NOT IN ( 56 )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 AS col2, + col0 col2 FROM tab2
----
-66
46
-66
64
-66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2756
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT ALL col1 * + + col2 * 79 * col0 FROM tab2
----
15572480
23024550
4262682

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2758
SELECT DISTINCT + col0, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT + col0, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT + MAX( ALL - CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2759
SELECT + MAX ( ALL - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT - + CAST( NULL AS SIGNED ) * col0 + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 72 NOT IN ( - - col2 * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2761
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 72 NOT IN ( - - col2 * CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 * col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + MAX( DISTINCT 58 ) + - - COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-2763
SELECT + MAX ( DISTINCT 58 ) + - - COUNT ( * ) FROM tab0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab1 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL + 69 + COUNT( * ) FROM tab2 WHERE NOT + 33 <> - - 15 + - 3
----
69

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + 69 + COUNT ( * ) FROM tab2 WHERE NOT + 33 <> - - 15 + - 3
----
69

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

query I rowsort
SELECT DISTINCT - 59 FROM tab0 WHERE ( + 82 / + col0 * - col0 - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 94 + + col2 < 4 / col2
----

query I rowsort
SELECT - col0 + + - col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * - col2 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL - COUNT( - 82 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL - COUNT ( - 82 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT col0 + + ( + 11 ) FROM tab1 AS cor0 WHERE col1 + col0 IS NOT NULL
----
102
62
96

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 AS cor0 WHERE col1 = 62
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2777
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE 18 >= ( + col2 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + 42 * + COUNT( * ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + 42 * + COUNT ( * ) FROM tab1
----
126

query I rowsort
SELECT col0 * col0 * - 53 * - 11 * - - col2 + 97 FROM tab1 AS cor0
----
145572865
248518422
328292061

query I rowsort
SELECT ALL 69 * - 2 FROM tab1 AS cor0
----
-138
-138
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + 39 + + 0 + + - COUNT( * ) FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-2782
SELECT + 39 + + 0 + + - COUNT ( * ) FROM tab2 cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT + + col1 + - col0 + - 81 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT ALL + col0 * + - 6 + - col0 DIV 30 FROM tab2 AS cor0
----
-277
-386
-452

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL + col0 * + - 6 + - col0 / 30 FROM tab2 AS cor0
----
-277
-386
-452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT DISTINCT - col2 + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + ( + col1 ) / col0 AS col2 FROM tab1 AS cor0 WHERE NULL < ( 55 * + 53 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 90 + - - col0 + + col0 / - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL 34 + COUNT( * ) col2 FROM tab0 cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2788
SELECT ALL 34 + COUNT ( * ) col2 FROM tab0 cor0
----
37

query I rowsort
SELECT + - ( - col0 ) + 98 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
113
185
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - MIN( + + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2790
SELECT - MIN ( + + 86 ) FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 50 ) FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2 WHERE NOT NULL BETWEEN 33 * 17 AND ( - + 47 )
----

query I rowsort
SELECT ALL ( + col0 ) * + 37 + col0 AS col0 FROM tab1
----
1938
3230
3458

query I rowsort
SELECT DISTINCT 60 * col0 * - col1 FROM tab0
----
-109620
-5820
-72900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2797
SELECT ALL - 45 AS col1 FROM tab0 WHERE ( ( - CAST( - 27 AS DECIMAL ) NOT BETWEEN ( NULL ) AND ( - ( col0 ) + + 58 ) ) )
----
-45
-45

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - 45 AS col1 FROM tab0 WHERE ( ( - CAST ( - 27 AS REAL ) NOT BETWEEN ( NULL ) AND ( - ( col0 ) + + 58 ) ) )
----
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT 49 * COUNT( * ) * + 32 * MAX( - 65 ) AS col0 FROM tab1
----
-305760

skipif mysql # not compatible
query I rowsort label-2798
SELECT 49 * COUNT ( * ) * + 32 * MAX ( - 65 ) AS col0 FROM tab1
----
-305760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT col0 col2 FROM tab2 WHERE NOT + 88 IN ( + CAST( NULL AS SIGNED ) / col0 + + col1 / + 99 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2799
SELECT col0 col2 FROM tab2 WHERE NOT + 88 IN ( + CAST ( NULL AS INTEGER ) / col0 + + col1 / + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - 13 + + COUNT( * ) AS col0 FROM tab2 WHERE + + col2 + - col0 NOT BETWEEN NULL AND NULL
----
-13

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 13 + + COUNT ( * ) AS col0 FROM tab2 WHERE + + col2 + - col0 NOT BETWEEN NULL AND NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - SUM( ALL + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - SUM ( ALL + col0 ) FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT + COUNT( * ) * 95 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
285

skipif mysql # not compatible
query I rowsort label-2802
SELECT + COUNT ( * ) * 95 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ( - + SUM( ALL 1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2804
SELECT ( - + SUM ( ALL 1 ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT ALL - COUNT( * ) DIV - - ( + MIN( ALL - 50 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - COUNT ( * ) / - - ( + MIN ( ALL - 50 ) ) AS col1 FROM tab1
----
0

query II rowsort
SELECT ALL + col1, - col1 + + 28 AS col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT col0 * + col0 + - - col0 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT DISTINCT 79 - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 47 * - col1 + + - 81 * col1 * - col1 AS col2 FROM tab1 cor0
----
16534
181138
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL - COUNT( * ) + + 58 - + + 86 AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - COUNT ( * ) + + 58 - + + 86 AS col1 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT - - col1 + col0 FROM tab0 WHERE - col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - + 85 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 57, col2 AS col1 FROM tab2
----
57
23
57
40
57
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT MIN( - ( col0 ) ) * 25 FROM tab1
----
-2275

skipif mysql # not compatible
query I rowsort label-2816
SELECT MIN ( - ( col0 ) ) * 25 FROM tab1
----
-2275

query I rowsort
SELECT - 52 + + - col1 FROM tab0 AS cor0
----
-133
-53
-73

query I rowsort
SELECT - - 17 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

query I rowsort
SELECT ALL + 68 + + + 18 * - + col0 AS col2 FROM tab1 AS cor0
----
-1462
-1570
-850

onlyif mysql # DIV for integer division: 
query II rowsort label-2821
SELECT - + col2 * 77 DIV + ( - col2 ) AS col2, - col1 AS col2 FROM tab0 cor0
----
77
-1
77
-21
77
-81

skipif mysql # not compatible
query II rowsort label-2821
SELECT - + col2 * 77 / + ( - col2 ) AS col2, - col1 AS col2 FROM tab0 cor0
----
77
-1
77
-21
77
-81

query I rowsort
SELECT + 18 * - - col1 * col0 AS col0 FROM tab2 AS cor0
----
42228
88704
90450

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN col0 * + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 40 FROM tab0 WHERE NULL < + + col2
----

query II rowsort
SELECT col2 AS col0, + 36 FROM tab2
----
23
36
40
36
58
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT ALL + col2 DIV 12 FROM tab1
----
4
5
8

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + col2 / 12 FROM tab1
----
4
5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL col0 DIV 68 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL col0 / 68 FROM tab1
----
0
1
1

query II rowsort
SELECT DISTINCT col0 AS col0, - 72 AS col1 FROM tab0
----
15
-72
87
-72
97
-72

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) * + col2 * + col2 NOT IN ( - col2, col0, - 35 )
----

query I rowsort
SELECT - - ( + 74 ) * + col0 FROM tab1 AS cor0
----
3774
6290
6734

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - + col1 col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 4 + - col0 * + col0 FROM tab0 AS cor0
----
-221
-7565
-9405

query II rowsort
SELECT - - col1 AS col2, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT 88 + col1 AS col1 FROM tab2 AS cor0
----
139
155
165

query II rowsort
SELECT - col0 + - - 46, 64 AS col0 FROM tab0 AS cor0
----
-41
64
-51
64
31
64

query II rowsort
SELECT + - col0 * + - 17 + - col1 + + - col0 AS col1, - 2 FROM tab2 AS cor0
----
1133
-2
685
-2
947
-2

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 * col2 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT ( - ( + - 50 ) ) AS col1 FROM tab0
----
50
50
50

query II rowsort
SELECT DISTINCT + col1 + - - 93 AS col2, - ( + col2 ) FROM tab0 AS cor0
----
114
-10
174
-47
94
-99

query I rowsort
SELECT DISTINCT + 1 - + - col0 * + col1 FROM tab1
----
426
4278
715

query I rowsort
SELECT - + 77 AS col2 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 11 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + - - col2 col1 FROM tab2
----
119
136
154

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - - 26 > - + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2850
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 - + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2850
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 - + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT DISTINCT - ( + col2 ) * - CAST( - + col0 AS SIGNED ) + + col1 * - 77 col2 FROM tab1
----
-5400
-5974
-9807

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT DISTINCT - ( + col2 ) * - CAST ( - + col0 AS INTEGER ) + + col1 * - 77 col2 FROM tab1
----
-5400
-5974
-9807

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL COUNT( * ) * - MAX( ALL col1 ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL COUNT ( * ) * - MAX ( ALL col1 ) AS col2 FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * - col2 col0 FROM tab1
----
-3245
-3740
-5280

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL - col1 DIV - + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - col1 / - + col0 FROM tab0
----
0
0
5

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT + 36 + ( + 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT ALL SUM( - - col0 ) AS col0, 82 AS col2 FROM tab0
----
199
82

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL SUM ( - - col0 ) AS col0, 82 AS col2 FROM tab0
----
199
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 3 * + ( + ( ( COUNT( * ) ) ) ) FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT ALL col0 * - col1, col0 FROM tab2 AS cor0
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT DISTINCT - 78 * + col0 FROM tab1 cor0
----
-3978
-6630
-7098

query I rowsort
SELECT + 78 AS col0 FROM tab2 WHERE NOT col1 - - col0 + + - 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ALL ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT + 87 + + COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + 87 + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
90

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN ( + 4 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2867
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + - col2 AND NULL
----

query I rowsort
SELECT ALL + col0 + - 16 FROM tab1 cor0
----
35
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) * + 15 + 42 AS col1 FROM tab0 AS cor0
----
-108
-1443
-663

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) * + 15 + 42 AS col1 FROM tab0 AS cor0
----
-108
-1443
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 64 + + col1 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT + col2 * + + col2 AS col2 FROM tab0 cor0 WHERE - col0 * col0 IS NOT NULL
----
100
2209
9801

query I rowsort
SELECT DISTINCT - 68 FROM tab1 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2874
SELECT ALL * FROM tab1 WHERE + - CAST( - col2 AS SIGNED ) BETWEEN - col0 - - col1 AND 53
----

skipif mysql # not compatible
query III rowsort label-2874
SELECT ALL * FROM tab1 WHERE + - CAST ( - col2 AS INTEGER ) BETWEEN - col0 - - col1 AND 53
----

query I rowsort
SELECT DISTINCT ( + + col1 ) - + col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 91 FROM tab0 WHERE NOT + col0 * col1 - - 89 + + ( 93 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * 64 FROM tab0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL COUNT( ALL + ( col2 ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT ALL COUNT ( ALL + ( col2 ) ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) = + col1
----

query II rowsort
SELECT DISTINCT - 0 - + col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL SUM( 88 ) AS col1 FROM tab1 WHERE col0 - + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL SUM ( 88 ) AS col1 FROM tab1 WHERE col0 - + + col0 IS NULL
----
NULL

query I rowsort
SELECT - 54 * + + col0 AS col2 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT + col0 / - CAST( NULL AS SIGNED ) * + + col2 / + col1 - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 48 ) = 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ( + SUM( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2885
SELECT ( + SUM ( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT 56 * + 83 - col2 FROM tab0 AS cor0
----
4549
4601
4638

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT 92 * - ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2887
SELECT 92 * - ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL + col0 * + col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2889
SELECT DISTINCT - col1 * 59 + + col1 + col2 col0, col2 / - ( + col2 ) FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND - ( col0 ) + + col1 - + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2889
SELECT DISTINCT - col1 * 59 + + col1 + col2 col0, col2 / - ( + col2 ) FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND - ( col0 ) + + col1 - + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT IN ( ( - col0 ) - - col2, 24 * + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL + CAST( 73 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + CAST ( 73 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL COUNT( - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL COUNT ( - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + COUNT( * ) + + COUNT( * ) + + - ( + 33 ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2893
SELECT + COUNT ( * ) + + COUNT ( * ) + + - ( + 33 ) AS col0 FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2894
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 5 + - 34 + col2 + - + ( - col2 ) * - 99 FROM tab1 AS cor0
----
-5811
-6693
-9437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT - - col1 + - - 91 + CAST( + 4 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
100
109
142

skipif mysql # not compatible
query I rowsort label-2896
SELECT - - col1 + - - 91 + CAST ( + 4 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT 37 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2897
SELECT 37 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NULL NOT IN ( 21 + 71 + + col1 * col1 / + ( - col1 ) + + - 64 + + col0 * col0, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NULL NOT IN ( 21 + 71 + + col1 * col1 / + ( - col1 ) + + - 64 + + col0 * col0, + col2 )
----
0

query II rowsort
SELECT ALL + + 12 + + col1 + col2 + col1 AS col1, col2 AS col0 FROM tab1 AS cor0
----
136
96
174
68
81
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2900
SELECT + - 82 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT ALL - 56 * - col0 + + col0 FROM tab0 AS cor0
----
4959
5529
855

query I rowsort
SELECT - 41 + - 87 AS col2 FROM tab1 AS cor0
----
-128
-128
-128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * 22 col0 FROM tab0
----
-1232
-1232
-1232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 36 col0 FROM tab1
----
1836
3060
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT SUM( ALL - - 36 ) * + COUNT( * ) col0 FROM tab2
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT DISTINCT SUM ( ALL - - 36 ) * + COUNT ( * ) col0 FROM tab2
----
324

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col2 / + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - + MIN( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2907
SELECT - + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2908
SELECT 29, + CAST( + - MIN( + col0 ) AS SIGNED ) AS col2 FROM tab2
----
29
-46

skipif mysql # not compatible
query II rowsort label-2908
SELECT 29, + CAST ( + - MIN ( + col0 ) AS INTEGER ) AS col2 FROM tab2
----
29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ( COUNT( * ) ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2909
SELECT ( COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * + - 57 IN ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT DISTINCT + 24, - COUNT( * ) AS col2 FROM tab2 cor0
----
24
-3

skipif mysql # not compatible
query II rowsort label-2911
SELECT DISTINCT + 24, - COUNT ( * ) AS col2 FROM tab2 cor0
----
24
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT ALL + 59, COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-2912
SELECT ALL + 59, COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
59
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2913
SELECT ALL + col0, col2 - ( - col0 ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2913
SELECT ALL + col0, col2 - ( - col0 ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2914
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2914
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col0 ) AND - + 16
----

query II rowsort
SELECT ALL + col1 AS col0, + 22 AS col1 FROM tab1 cor0
----
14
22
47
22
5
22

query I rowsort
SELECT + 41 * 59 * 42 AS col2 FROM tab1 AS cor0
----
101598
101598
101598

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 40 BETWEEN 15 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + ( + - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT ALL + ( + - COUNT ( * ) ) col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, 58 FROM tab1
----
59
58
68
58
96
58

query I rowsort
SELECT ALL - 46 * - col2 FROM tab0
----
2162
4554
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2924
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + 45 BETWEEN + - 47 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2924
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + 45 BETWEEN + - 47 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + + col1 IN ( - + col2, 16 - - 30 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT + col0 * + 10 - + + col1 DIV - col1 FROM tab1 AS cor0
----
511
851
911

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + col0 * + 10 - + + col1 / - col1 FROM tab1 AS cor0
----
511
851
911

query I rowsort
SELECT ALL - 60 + col1 AS col2 FROM tab2 AS cor0
----
-9
17
7

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

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

query I rowsort
SELECT col1 - + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col1 - + + 97 AS col2 FROM tab2 AS cor0
----
-20
-30
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * 68 / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 - col2 AS col0, - col2 FROM tab1
----
-110
-96
-115
-68
-64
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT DISTINCT - col1 * - 77 - - - ( col0 ) + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 52 BETWEEN + col2 AND col2 + - col0
----

query I rowsort
SELECT + 31 + - - col1 AS col0 FROM tab2
----
108
82
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( 88 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2939
SELECT DISTINCT 20 DIV col2 col1, - 94 AS col0 FROM tab2
----
0
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2939
SELECT DISTINCT 20 / col2 col1, - 94 AS col0 FROM tab2
----
0
-94

query I rowsort
SELECT - + 34 * - - ( + + 36 ) AS col1 FROM tab2 AS cor0
----
-1224
-1224
-1224

query I rowsort
SELECT ALL + + 55 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * 94 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL - + 77 / + - 7 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( + 34 + + col0 ) AND + ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - + 77 / + - 7 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( + 34 + + col0 ) AND + ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + ( + 84 ) * ( - 24 ) FROM tab2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - COUNT( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2944
SELECT - COUNT ( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT - 46, COUNT( * ) * - + MAX( + - 62 ) + - SUM( ALL - 41 ) + + - 46 col0 FROM tab0 AS cor0
----
-46
263

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2945
SELECT DISTINCT - 46, COUNT ( * ) * - + MAX ( + - 62 ) + - SUM ( ALL - 41 ) + + - 46 col0 FROM tab0 AS cor0
----
-46
263

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2946
SELECT DISTINCT + col1 AS col2, 85 + - - 54 + + 68 DIV + - CAST( + - 29 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
141
67
141
77
141

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT + col1 AS col2, 85 + - - 54 + + 68 / + - CAST ( + - 29 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
141
67
141
77
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT - - COUNT( * ) * 2 - COUNT( * ) DIV - 16 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2947
SELECT - - COUNT ( * ) * 2 - COUNT ( * ) / - 16 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col2 * + - 27 * + + col1 AS col2 FROM tab0 AS cor0
----
102789
2673
5670

query I rowsort
SELECT ALL - 85 / col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT + CAST( + 21 AS SIGNED ) FROM tab2 AS cor0
----
21
21
21

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

query I rowsort
SELECT + 8 * - + ( + + col0 ) * - col0 + - - col2 FROM tab1 AS cor0
----
20904
57859
66316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, + 86 AS col1 FROM tab0
----
-1
86
-21
86
-81
86

query I rowsort
SELECT ( col0 ) + - col2 + ( - - 53 ) FROM tab1
----
76
79
8

query I rowsort
SELECT ALL - + col1 + + col1 * - + col2 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT - + col1 + - - col0 + + + col2 AS col2 FROM tab0 AS cor0
----
-19
195
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 23 * - col1 + col0 col1 FROM tab1 AS cor0
----
-51
-271
-85
-30
-91
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL + COUNT( * ) + + - MAX( ALL + col1 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + COUNT ( * ) + + - MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT col1 * col0 + - - CAST( NULL AS SIGNED ) / - col1 + 33 + ( 90 ) - col0 * col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT DISTINCT col1 * col0 + - - CAST ( NULL AS INTEGER ) / - col1 + 33 + ( 90 ) - col0 * col2 col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 * - - 37 * - col2 AS col1, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 - + 97 col0 FROM tab0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - 42 - - + COUNT( * ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2962
SELECT - 42 - - + COUNT ( * ) FROM tab2
----
-39

query I rowsort
SELECT - col0 * + + 89 + - - 96 FROM tab1
----
-4443
-7469
-8003

query I rowsort
SELECT + + 64 AS col0 FROM tab2 WHERE ( NOT NULL BETWEEN 20 AND col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( - + col1 ) col1 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 NOT IN ( + 23, col2, col0, + 44 - + col1, + + col0, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT ALL - - CAST( - + col1 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - - CAST ( - + col1 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + 13 * - COUNT( * ) FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-2968
SELECT + 13 * - COUNT ( * ) FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-39

query I rowsort
SELECT - - 78 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN col1 * col1 AND NULL
----
51
14
96
91
47
68

query II rowsort
SELECT col2, 23 FROM tab1
----
59
23
68
23
96
23

query II rowsort
SELECT ALL col0 - - + ( + + col2 ) * - - ( - 41 ) * - 51 + - - col1 + + 67, col2 FROM tab0
----
207174
99
21085
10
98440
47

query I rowsort
SELECT DISTINCT - 39 - + 54 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT 48 * col1 * - + CAST( + ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - col0 FROM tab0
----
NULL

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

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

query II rowsort
SELECT col0 * 8 * - col0, col1 FROM tab1
----
-20808
14
-57800
5
-66248
47

query I rowsort
SELECT ( - 36 ) FROM tab1
----
-36
-36
-36

query I rowsort
SELECT col2 * - - 18 FROM tab0
----
1782
180
846

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL col0 DIV 52 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL col0 / 52 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2981
SELECT * FROM tab1 WHERE NOT - - CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2981
SELECT * FROM tab1 WHERE NOT - - CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - MAX( DISTINCT + - col0 ) AS col2 FROM tab0 cor0 WHERE NOT - 14 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 cor0 WHERE NOT - 14 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col0 * + col0 * col2 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND - 19 * + + 81
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND - 19 * + + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT + ( - COUNT( * ) ) * ( + 12 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + ( - COUNT ( * ) ) * ( + 12 ) FROM tab1
----
-36

query II rowsort
SELECT DISTINCT + col0 * + col1, + 12 AS col2 FROM tab0
----
1215
12
1827
12
97
12

query I rowsort
SELECT DISTINCT - col2 + + + 81 + - + col1 FROM tab0 AS cor0
----
-19
-47
50

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col1 = - col1
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT - - CAST( NULL AS SIGNED ) * - 1 + - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + 44 * - col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT ALL + 64 * + - ( - 32 ) + - - 8 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
-16720
-37376
-38152

query I rowsort
SELECT ALL - col2 * - + col0 - col1 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT ALL - + col2 * - col1 * col1 * ( + col2 ) - + + col0 FROM tab1 AS cor0
----
10214325
1806285
86940

query I rowsort
SELECT - col0 * + 15 FROM tab1
----
-1275
-1365
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-2997
SELECT ALL + 23, - col0 DIV - 15 AS col0 FROM tab1
----
23
3
23
5
23
6

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL + 23, - col0 / - 15 AS col0 FROM tab1
----
23
3
23
5
23
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= - col2
----

query II rowsort
SELECT col2 AS col0, - col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL 67 * 36 AS col2 FROM tab1
----
2412
2412
2412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT MIN( + 81 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT MIN ( + 81 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT DISTINCT - col1 + col0 DIV - - col2 + + + col2 - col2 * + ( + 2 ) FROM tab2
----
-116
-124
-72

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - col1 + col0 / - - col2 + + + col2 - col2 * + ( + 2 ) FROM tab2
----
-116
-124
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - - COUNT( DISTINCT - - col1 ) + SUM( + 59 ) * COUNT( * ) * ( + ( + 56 ) ) FROM tab0 AS cor0
----
29739

skipif mysql # not compatible
query I rowsort label-3005
SELECT - - COUNT ( DISTINCT - - col1 ) + SUM ( + 59 ) * COUNT ( * ) * ( + ( + 56 ) ) FROM tab0 AS cor0
----
29739

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + + COUNT( ALL + 95 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT ALL + + COUNT ( ALL + 95 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col1 + + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - - 11 + col0 AS col2 FROM tab1 AS cor0
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT + MIN( - 6 ) + ( + + MAX( ALL + col0 ) ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + MIN ( - 6 ) + ( + + MAX ( ALL + col0 ) ) FROM tab0
----
91

query I rowsort
SELECT DISTINCT ( 55 ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT + col2 + + ( + 49 ) + - ( + 3 ) AS col2 FROM tab1 AS cor0
----
105
114
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 15 col0 FROM tab2 AS cor0
----
-36
-52
-62

query II rowsort
SELECT DISTINCT + + col2 AS col2, + ( col1 ) * + - col2 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query II rowsort
SELECT DISTINCT 81, + 34 AS col2 FROM tab2 AS cor0
----
81
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3017
SELECT + col0, col2, CAST( 24 AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
9 values hashing to 48e33e53caa2d2ce52f1acbb74039f86

skipif mysql # not compatible
query III rowsort label-3017
SELECT + col0, col2, CAST ( 24 AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
9 values hashing to 48e33e53caa2d2ce52f1acbb74039f86

query I rowsort
SELECT DISTINCT col1 * 63 AS col0 FROM tab0
----
1323
5103
63

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 5 + + 22 / - 85 IS NOT NULL
----

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL MIN( DISTINCT + col1 ) FROM tab2 WHERE NOT - col2 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL MIN ( DISTINCT + col1 ) FROM tab2 WHERE NOT - col2 + + col0 IS NOT NULL
----
NULL

query II rowsort
SELECT col2 * 27 AS col2, col0 AS col1 FROM tab1
----
1593
85
1836
91
2592
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT - COUNT( col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - COUNT ( col2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 51 IS NOT NULL
----

query I rowsort
SELECT - col2 / - + col1 * + col1 FROM tab1 AS cor0 WHERE NOT 57 / + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + MIN( ALL + - col1 ) * - 78 AS col0 FROM tab2 AS cor0
----
6006

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + MIN ( ALL + - col1 ) * - 78 AS col0 FROM tab2 AS cor0
----
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT col1 DIV - - 42 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT col1 / - - 42 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3029
SELECT ALL + CAST( 58 AS SIGNED ), 25 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 842fe6d62ae57ac2134315bebf8ec5d4

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL + CAST ( 58 AS INTEGER ), 25 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 842fe6d62ae57ac2134315bebf8ec5d4

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + - MAX( + - 41 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - MAX ( + - 41 ) FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT - - 86 AS col0 FROM tab2 cor0 WHERE col0 + + col2 <> ( + col2 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3032
SELECT - + 72 AS col1, CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0 AS cor0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-3032
SELECT - + 72 AS col1, CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0 AS cor0
----
-72
NULL

query II rowsort
SELECT col2, - 46 FROM tab1 cor0
----
59
-46
68
-46
96
-46

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) > - - 23 / + + col2
----

query I rowsort
SELECT ALL - ( + col0 ) + - + col0 + - - 6 FROM tab1 AS cor0
----
-164
-176
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IN ( + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT ALL 69 DIV - ( + + 81 ) + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 69 / - ( + + 81 ) + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - ( + 89 ) * + 24 - + - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT + col2 DIV + 60 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + col2 / + 60 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT CAST( - col1 AS SIGNED ) + - - 17 FROM tab1
----
-30
12
3

skipif mysql # not compatible
query I rowsort label-3041
SELECT CAST ( - col1 AS INTEGER ) + - - 17 FROM tab1
----
-30
12
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT ALL - 89 + + 80 DIV + + SUM( + - 88 ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - 89 + + 80 / + + SUM ( + - 88 ) FROM tab1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT - 64 DIV + + 12 col2 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3043
SELECT - 64 / + + 12 col2 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - ( + - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ( ( - + ( + - COUNT( * ) ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3046
SELECT ( ( - + ( + - COUNT ( * ) ) ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col1 + - + col0 - - 19 AS col0 FROM tab1 AS cor0
----
-18
-25
-61

query I rowsort
SELECT DISTINCT + 97 + - + 26 FROM tab1 AS cor0
----
71

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

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 WHERE NOT + col1 * col2 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE - + col0 - + - col1 / + - ( + 2 ) > col1 - col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT - col0 + - ( + - col0 ) DIV + col0 + + col2 AS col2 FROM tab0
----
-76
3
33

skipif mysql # not compatible
query I rowsort label-3052
SELECT - col0 + - ( + - col0 ) / + col0 + + col2 AS col2 FROM tab0
----
-76
3
33

query I rowsort
SELECT col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT COUNT( * ) + 26 AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3054
SELECT COUNT ( * ) + 26 AS col0 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - + COUNT( * ) + - + 2 AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - + COUNT ( * ) + - + 2 AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + + + col0 AND - 36
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3057
SELECT ALL + CAST( NULL AS SIGNED ) col2, col2 DIV + + col1 FROM tab0
----
NULL
0
NULL
0
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3057
SELECT ALL + CAST ( NULL AS INTEGER ) col2, col2 / + + col1 FROM tab0
----
NULL
0
NULL
0
NULL
99

query II rowsort
SELECT + col1 AS col2, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT - 16, 25 AS col2 FROM tab2
----
-16
25

query I rowsort
SELECT - ( + 66 ) AS col1 FROM tab0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT ALL col1 AS col0, col2 DIV - col0 * - col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL col1 AS col0, col2 / - col0 * - col0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT - ( 95 ) AS col1 FROM tab2
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT + col1, + CAST( NULL AS SIGNED ) + - + col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3063
SELECT + col1, + CAST ( NULL AS INTEGER ) + - + col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT + COUNT( * ) AS col1, + 21 * ( COUNT( * ) ) - COUNT( * ) FROM tab1
----
3
60

skipif mysql # not compatible
query II rowsort label-3064
SELECT + COUNT ( * ) AS col1, + 21 * ( COUNT ( * ) ) - COUNT ( * ) FROM tab1
----
3
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col2 * col2 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT 1 * + 6 - + COUNT( + - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT 1 * + 6 - + COUNT ( + - col0 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - 3, + col1 AS col0 FROM tab1 AS cor0
----
-3
14
-3
47
-3
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT + COUNT( * ) DIV + COUNT( - 6 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3069
SELECT + COUNT ( * ) / + COUNT ( - 6 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT col1 + + col1 DIV col2 AS col2 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-3070
SELECT col1 + + col1 / col2 AS col2 FROM tab0
----
1
23
82

query I rowsort
SELECT 3 + col2 * - - col2 FROM tab1
----
3484
4627
9219

query I rowsort
SELECT DISTINCT col2 + - 44 + - + col0 * 55 AS col1 FROM tab2
----
-2551
-3524
-4111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * + col1 col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT - AVG ( + - 63 ) AS col1 FROM tab1 WHERE 77 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > + col2
----
87
21
10

query I rowsort
SELECT DISTINCT - 58 + 34 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3077
SELECT * FROM tab2 AS cor0 WHERE col1 + + - 26 + - col2 NOT BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3077
SELECT * FROM tab2 AS cor0 WHERE col1 + + - 26 + - col2 NOT BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL CAST( - col1 AS SIGNED ) + - 29 AS col0 FROM tab0 AS cor0
----
-110
-30
-50

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL CAST ( - col1 AS INTEGER ) + - 29 AS col0 FROM tab0 AS cor0
----
-110
-30
-50

query I rowsort
SELECT + col0 + 87 AS col2 FROM tab2 AS cor0 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL ( - ( + - 90 ) ) + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL ( - ( + - 90 ) ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3082
SELECT col1 * - ( CAST( NULL AS DECIMAL ) ) * + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT + col0 + + col1 = NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 = col0 + 36 - + col2 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3085
SELECT + ( - col1 ) * col1 AS col0, ( + CAST( NULL AS SIGNED ) ) / col2 FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-3085
SELECT + ( - col1 ) * col1 AS col0, ( + CAST ( NULL AS INTEGER ) ) / col2 FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - 58 FROM tab2 WHERE NOT - col1 + col2 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + ( - MIN( ALL - col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3088
SELECT + ( - MIN ( ALL - col2 ) ) FROM tab1
----
96

query I rowsort
SELECT + col1 FROM tab0 WHERE - - 52 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col2 >= - col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col1 + - col0 NOT BETWEEN + - 28 / + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - - col1 * + 61 * + - 54 + col1 FROM tab0 AS cor0
----
-266733
-3293
-69153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3094
SELECT 85, col2 * - - CAST( NULL AS SIGNED ) * - - 82 AS col0 FROM tab1 AS cor0
----
85
NULL
85
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-3094
SELECT 85, col2 * - - CAST ( NULL AS INTEGER ) * - - 82 AS col0 FROM tab1 AS cor0
----
85
NULL
85
NULL
85
NULL

query II rowsort
SELECT ALL - col1 * col2, + col0 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

query I rowsort
SELECT ALL + 90 + + col0 * - ( 92 ) + + + col1 FROM tab0 WHERE - 64 IS NOT NULL
----
-1209
-7893
-8833

query I rowsort
SELECT ALL - 52 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3100
SELECT - + ( + col2 ) DIV col2 + + 62, col1 AS col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

skipif mysql # not compatible
query II rowsort label-3100
SELECT - + ( + col2 ) / col2 + + 62, col1 AS col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

query I rowsort
SELECT - col2 * - + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT + col0 + + 69 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL - CAST( + ( - col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - CAST ( + ( - col0 ) AS INTEGER ) FROM tab2
----
46
64
75

query I rowsort
SELECT - + 20 FROM tab2 AS cor0 WHERE NOT ( ( + 4 + + - col0 - + col2 <> + + 10 ) )
----

query I rowsort
SELECT ALL + col0 + + - 98 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - COUNT( * ) * + 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-378

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - COUNT ( * ) * + 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT - col2 + + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-3107
SELECT - col2 + + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT - 40 + + col1 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
11
46
27
75
37
64

query I rowsort
SELECT + + ( 33 ) + + - col2 FROM tab2 AS cor0
----
-25
-7
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL 1 * - COUNT( * ) * + 58 - COUNT( * ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 1 * - COUNT ( * ) * + 58 - COUNT ( * ) FROM tab1 AS cor0
----
-177

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 - - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NULL = 9 )
----

query I rowsort
SELECT ALL + 67 - + 92 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT ALL + 62 * col1 AS col0 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT DISTINCT 37 * col2 FROM tab2
----
1480
2146
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 38 col2 FROM tab1
----
1786
190
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT - col0 + - CAST( - col0 AS SIGNED ) + - + 65 * col2 + - col2 * - col0 col0 FROM tab0 WHERE - + 70 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - col0 + - CAST ( - col0 AS INTEGER ) + - + 65 * col2 + - col2 * - col0 col0 FROM tab0 WHERE - + 70 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT col0 DIV - 29 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT col0 / - 29 FROM tab0
----
-3
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT 12 * - col0 * - - ( + CAST( + 15 AS SIGNED ) ) AS col0 FROM tab0
----
-15660
-17460
-2700

skipif mysql # not compatible
query I rowsort label-3120
SELECT 12 * - col0 * - - ( + CAST ( + 15 AS INTEGER ) ) AS col0 FROM tab0
----
-15660
-17460
-2700

query I rowsort
SELECT ( + 87 ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f129895235e13ae6b81b7298f2ef7724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 11 col1, col2 AS col2 FROM tab0 AS cor0
----
-11
10
-11
47
-11
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL - - 68 * COUNT( * ) FROM tab0 cor0
----
204

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - - 68 * COUNT ( * ) FROM tab0 cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT - COUNT( * ) DIV - - 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT - COUNT ( * ) / - - 86 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT - COUNT( col0 ) * COUNT( DISTINCT + + col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - COUNT ( col0 ) * COUNT ( DISTINCT + + col0 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT - SUM( ALL - col2 ) DIV - - 77 + - 88 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT - SUM ( ALL - col2 ) / - - 77 + - 88 FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + ( + - MIN( - - 23 ) ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + ( + - MIN ( - - 23 ) ) FROM tab1
----
-23

query I rowsort
SELECT DISTINCT - ( - + col0 ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT + + 65 + - + 30 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + + 65 + - + 30 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT + 98, col2 + - + CAST( - - col1 AS SIGNED ) + - 61 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3132
SELECT + 98, col2 + - + CAST ( - - col1 AS INTEGER ) + - 61 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 54 * - col1 * + 21 FROM tab2 AS cor0
----
-57834
-75978
-87318

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

query II rowsort
SELECT col0 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT - - ( + 60 ) * + col1 + + + 59 FROM tab0 AS cor0
----
119
1319
4919

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ( - 85 ) - + COUNT( ALL - 15 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-3137
SELECT ( - 85 ) - + COUNT ( ALL - 15 ) FROM tab0
----
-88

query I rowsort
SELECT 28 - - + ( - 84 ) FROM tab1
----
-56
-56
-56

query I rowsort
SELECT DISTINCT col1 * + col2 - + col0 * - 99 FROM tab1
----
12205
6393
8710

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

query I rowsort
SELECT col2 - + col1 + col2 * - - col1 FROM tab0
----
197
199
3773

query II rowsort
SELECT ( + - 88 ) * + + 7 + 48, - 54 * + + col0 + col1 AS col2 FROM tab0
----
-568
-4677
-568
-5237
-568
-729

query I rowsort
SELECT DISTINCT - - col0 + - 13 + + 48 AS col0 FROM tab0 AS cor0
----
122
132
50

query I rowsort
SELECT DISTINCT + + col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 * + 99 AS col0 FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT col0 * + + 52 AS col0 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT - col1 - col1 NOT BETWEEN - ( + 96 ) AND + col1 * - 47
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3149
SELECT + CAST( NULL AS DECIMAL ) * + + col2 * - 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT + 93 * col2 * - - 66 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 81 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT + 93 * col2 * - - 66 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 81 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 16 AS col2 FROM tab0 AS cor0
----
1392
1552
240

query I rowsort
SELECT col1 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3153
SELECT ALL - - MAX( DISTINCT - col0 ) * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT 82 * + col0 - - + col0 * + - 75 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT DISTINCT - ( 30 ) * + ( - 21 ) + ( - col1 ) FROM tab2 AS cor0
----
553
563
579

query I rowsort
SELECT - 68 * + - 88 AS col1 FROM tab2 AS cor0
----
5984
5984
5984

query I rowsort
SELECT ALL col1 * + - 1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT + - COUNT( * ) / - + 81 - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT + - COUNT ( * ) / - + 81 - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT col2 * col2 * + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT DISTINCT + 68 DIV - 76 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT + 68 / - 76 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NULL BETWEEN - + 91 AND - + col0 + + - 63
----

query I rowsort
SELECT ALL - 63 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query III rowsort
SELECT * FROM tab1 WHERE NOT - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT ALL 66, + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
66
3

skipif mysql # not compatible
query II rowsort label-3164
SELECT ALL 66, + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + 48 + 5 * + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-3165
SELECT + 48 + 5 * + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
63

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + - 59 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT ALL + + SUM( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL - - col2 + col1 + - col2 + + 99 DIV - col1 FROM tab0 AS cor0
----
-98
17
80

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - - col2 + col1 + - col2 + + 99 / - col1 FROM tab0 AS cor0
----
-98
17
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 24 * - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT - SUM( - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - SUM ( - col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT + COUNT( * ) DIV ( 39 ) AS col0 FROM tab2 WHERE NOT - col0 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT + COUNT ( * ) / ( 39 ) AS col0 FROM tab2 WHERE NOT - col0 + + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT + 15 DIV col1 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT + 15 / col1 AS col1 FROM tab1
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT + col1 DIV 14 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3174
SELECT + col1 / 14 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL - 54 - + 61 FROM tab1
----
-115
-115
-115

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT 67 * COUNT( - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-3177
SELECT 67 * COUNT ( - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT COUNT( * ) * - MAX( col1 ) AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT COUNT ( * ) * - MAX ( col1 ) AS col0 FROM tab2
----
-231

query I rowsort
SELECT 35 + 53 AS col2 FROM tab0
----
88
88
88

query I rowsort
SELECT ALL - ( + ( - ( col2 ) ) ) * + col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT 79 * MIN( DISTINCT 22 ) AS col0 FROM tab0
----
1738

skipif mysql # not compatible
query I rowsort label-3181
SELECT 79 * MIN ( DISTINCT 22 ) AS col0 FROM tab0
----
1738

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3182
SELECT ALL CAST( - col2 AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3183
SELECT * FROM tab1 WHERE NOT + col0 + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3183
SELECT * FROM tab1 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT - COUNT( * ) * COUNT( * ) - COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3184
SELECT - COUNT ( * ) * COUNT ( * ) - COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT 81 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + ( - ( col1 ) ) + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + ( - ( col1 ) ) + - col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 6 ) NOT IN ( + ( - ( col1 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * col1 ) < ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + COUNT( * ) + + 2 * + COUNT( * ) FROM tab0 WHERE - 92 + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT + COUNT ( * ) + + 2 * + COUNT ( * ) FROM tab0 WHERE - 92 + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + - col1 col0 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND + col1 * 98 + - col0 * + ( - 37 )
----

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND + col1 * 98 + - col0 * + ( - 37 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT 97 DIV col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3192
SELECT 97 / col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT 15 DIV - 83 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3193
SELECT 15 / - 83 col2 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT + MAX( ALL col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3195
SELECT + MAX ( ALL col1 ) FROM tab0 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) >= + 30 * 82 - - col1 * + col2
----

query I rowsort
SELECT DISTINCT 30 * + ( 1 ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT MAX( ALL 38 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
38

skipif mysql # not compatible
query I rowsort label-3198
SELECT MAX ( ALL 38 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
38

query I rowsort
SELECT + 39 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE ( + col1 * - col2 ) BETWEEN 11 AND col1 * col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + 70 FROM tab1 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + ( + 94 ) * + col2 AS col2 FROM tab1 AS cor0
----
5546
6392
9024

query I rowsort
SELECT DISTINCT 62 * col1 AS col2 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT ALL 34 / - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 34 + col0 * - 29
----

query I rowsort
SELECT ALL - + col0 + 5 * + col0 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3208
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) * COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT MAX( + + col2 ) * 70 col0 FROM tab2
----
4060

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3210
SELECT MAX ( + + col2 ) * 70 col0 FROM tab2
----
4060

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + 95 AS col0 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT + 80 AS col0 FROM tab0 WHERE NULL < ( col2 * - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND NULL OR NOT + col0 + - 51 >= 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 26 + 92 AS col1 FROM tab1 AS cor0
----
118
118
118

query I rowsort
SELECT + col1 + - - col1 AS col1 FROM tab2 cor0
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3219
SELECT - CAST( NULL AS DECIMAL ) + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + - col2 + - 19 AS col2 FROM tab1 AS cor0
----
-115
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT DISTINCT - + MAX( + 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-80

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT - + MAX ( + 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL - MIN( - - col2 ) + CAST( - 18 AS SIGNED ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - MIN ( - - col2 ) + CAST ( - 18 AS INTEGER ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + 66 * col0 - + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1586
2507
2624

query I rowsort
SELECT 63 * + col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE + 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT DISTINCT - 66 + - 74 * - + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - 66 + - 74 * - + col2 / col2 AS col1 FROM tab0 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT DISTINCT 58 + + + col1 + - 74 DIV col2 FROM tab0 AS cor0
----
138
59
72

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT 58 + + + col1 + - 74 / col2 FROM tab0 AS cor0
----
138
59
72

query I rowsort
SELECT ALL + col1 - + 43 + - - ( + 38 ) FROM tab2 AS cor0
----
46
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT ALL + col1 * + col1 + col1 + - col2 + 5 DIV + 31 FROM tab0 AS cor0
----
-97
452
6595

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + col1 * + col1 + col1 + - col2 + 5 / + 31 FROM tab0 AS cor0
----
-97
452
6595

query I rowsort
SELECT + col2 - + + col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE ( NULL ) <= + col1 - - col0
----

query I rowsort
SELECT + col1 - + - 83 FROM tab0 AS cor0
----
104
164
84

query I rowsort
SELECT - col1 - - - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT 28 - col1 - col1 FROM tab0
----
-134
-14
26

query I rowsort
SELECT ALL - col2 * + - 58 - + col2 FROM tab0
----
2679
5643
570

query I rowsort
SELECT + 51 AS col1 FROM tab2 WHERE NOT + ( - col0 ) >= ( + col0 + + col2 )
----
51
51
51

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 * col2 ) < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE NOT ( - + col0 * 33 + + 7 + 46 * + col1 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - ( - COUNT( * ) ) FROM tab1 WHERE NOT ( NULL ) <= ( col2 * - col1 * 92 )
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT - ( - COUNT ( * ) ) FROM tab1 WHERE NOT ( NULL ) <= ( col2 * - col1 * 92 )
----
0

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

query I rowsort
SELECT + col2 * - 7 FROM tab2 AS cor0 WHERE NOT ( - col1 - + - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * ( col2 ) * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + SUM( 65 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3242
SELECT + SUM ( 65 ) AS col0 FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT - 61 + - + col2 FROM tab0 cor0
----
-108
-160
-71

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT - col1 BETWEEN NULL AND - col0
----
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT DISTINCT - col0 DIV + + 87 + + ( - + col2 ) + + 85 DIV + 77 FROM tab0 AS cor0
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - col0 / + + 87 + + ( - + col2 ) + + 85 / + 77 FROM tab0 AS cor0
----
-10
-46
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL 24 + + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 24 + + COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT SUM( DISTINCT 1 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT SUM ( DISTINCT 1 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-2

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 * - col2 FROM tab0
----
-10
-100
-47
-2209
-99
-9801

query III rowsort
SELECT * FROM tab1 WHERE + + 90 / - - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT - col0 / - CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL col2, 2 AS col2 FROM tab1
----
59
2
68
2
96
2

query I rowsort
SELECT ALL col1 + - 61 * - - col0 * col1 FROM tab0
----
-111426
-5916
-74034

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col2 + + col2 AS col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT ALL - col2 * - 50 AS col2 FROM tab0
----
2350
4950
500

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + 82 - - col1 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, + 99 FROM tab2 AS cor0
----
46
99
64
99
75
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col0 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 + + col0 col2 FROM tab0 cor0 WHERE - 44 IS NULL
----

query II rowsort
SELECT ALL + + col2 + - 72, col0 AS col1 FROM tab2 AS cor0
----
-14
75
-32
64
-49
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE ( - 78 + - - 59 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - ( col0 ) - + - col2 + + - col0 - + - col2 - - + col2 AS col2 FROM tab1
----
186
22
7

query I rowsort
SELECT DISTINCT 37 * 94 FROM tab1
----
3478

query I rowsort
SELECT DISTINCT - + ( + ( 15 ) ) * + col0 + - + col1 AS col1 FROM tab1 AS cor0
----
-1280
-1412
-779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT DISTINCT - MAX( ALL + col0 ) FROM tab0 cor0 WHERE NOT + col1 >= ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - MAX ( ALL + col0 ) FROM tab0 cor0 WHERE NOT + col1 >= ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + + ( + 70 ) * 88 AS col0 FROM tab2 AS cor0 WHERE col2 >= - col0 + + 93 + + col2
----

query I rowsort
SELECT ( + col2 ) + col0 + + 46 AS col1 FROM tab1 AS cor0
----
190
193
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT + col1 FROM tab2 AS cor0 WHERE ( - - CAST( 57 AS SIGNED ) + + col2 + - col2 IN ( - ( - CAST( NULL AS SIGNED ) ) * col2 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT ALL + 48 + + - 5 DIV + 41 AS col0 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + 48 + + - 5 / + 41 AS col0 FROM tab2 AS cor0
----
48
48
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( ( NOT ( NULL ) <= ( col2 ) ) ) )
----

query I rowsort
SELECT + 74 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT 57 AS col2 FROM tab2 AS cor0 WHERE 17 + - + 55 * + col1 * + CAST( col1 AS SIGNED ) * - 5 IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT 57 AS col2 FROM tab2 AS cor0 WHERE 17 + - + 55 * + col1 * + CAST ( col1 AS INTEGER ) * - 5 IS NOT NULL
----
57

query I rowsort
SELECT ALL - col1 * - - col2 * col0 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 99 * - col1 AS col0 FROM tab1
----
-1386
-4653
-495

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

query II rowsort
SELECT DISTINCT + col1 AS col1, + ( - col0 ) * - - 26 AS col2 FROM tab1
----
14
-1326
47
-2366
5
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + MIN( - 12 ) AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3278
SELECT + MIN ( - 12 ) AS col1 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT MIN( + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3279
SELECT MIN ( + col1 ) AS col0 FROM tab2
----
51

query II rowsort
SELECT col0, 23 * + 27 FROM tab0
----
15
621
87
621
97
621

query II rowsort
SELECT col2 AS col1, col2 + - col2 + + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 16 * - col1 ) = NULL
----

query II rowsort
SELECT DISTINCT 50, - col2 AS col2 FROM tab2 AS cor0
----
50
-23
50
-40
50
-58

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + col2 + + 15 * + col0 FROM tab2 AS cor0
----
1116
662
923

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 66 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE 22 * col0 + + + col0 <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE 22 * col0 + + + col0 <= - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - - col0 + - 29 AS col1 FROM tab0 cor0
----
-14
58
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT + + 26 * - col0 DIV col0 + - col1 FROM tab0 cor0
----
-107
-27
-47

skipif mysql # not compatible
query I rowsort label-3290
SELECT + + 26 * - col0 / col0 + - col1 FROM tab0 cor0
----
-107
-27
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT ALL COUNT( * ) col1, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3291
SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT DISTINCT 67, MIN( - - 28 ) AS col2 FROM tab2
----
67
28

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT 67, MIN ( - - 28 ) AS col2 FROM tab2
----
67
28

query I rowsort
SELECT DISTINCT + 97 * 67 FROM tab2
----
6499

onlyif mysql # DIV for integer division: 
query II rowsort label-3294
SELECT DISTINCT + col0 DIV + + col2 + - + 13, - ( 39 ) AS col2 FROM tab1
----
-12
-39
-13
-39

skipif mysql # not compatible
query II rowsort label-3294
SELECT DISTINCT + col0 / + + col2 + - + 13, - ( 39 ) AS col2 FROM tab1
----
-12
-39
-13
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT DISTINCT - col1 DIV col0 * - col1 + + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - col1 / col0 * - col1 + + - col0 FROM tab1
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + 90 + + COUNT( * ) FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + 90 + + COUNT ( * ) FROM tab2 cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 67 + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 / - col2 + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL - COUNT( * ) + + + 40 col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3300
SELECT ALL - COUNT ( * ) + + + 40 col1 FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - + 11 - - 98 + + + col2 col0 FROM tab2 AS cor0
----
627
842
981

query I rowsort
SELECT + - col0 + + 61 FROM tab0 AS cor0
----
-26
-36
46

query I rowsort
SELECT - col0 * 89 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL col2 * + CAST( 94 AS SIGNED ) FROM tab0
----
4418
9306
940

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL col2 * + CAST ( 94 AS INTEGER ) FROM tab0
----
4418
9306
940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3305
SELECT DISTINCT - 67 col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-67
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3305
SELECT DISTINCT - 67 col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-67
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3306
SELECT DISTINCT 61 DIV col1 DIV - + 49 * - 99, col1 * - + col0 AS col2 FROM tab2
----
0
-2346
0
-4928
0
-5025

skipif mysql # not compatible
query II rowsort label-3306
SELECT DISTINCT 61 / col1 / - + 49 * - 99, col1 * - + col0 AS col2 FROM tab2
----
0
-2346
0
-4928
0
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT ALL ( + COUNT( * ) ) DIV - SUM( ALL - col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL ( + COUNT ( * ) ) / - SUM ( ALL - col1 ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT 72 * + 41 * + 64 + + + col2 + + col1 + - col0 DIV + col1 + + col0 + col1 col0 FROM tab2 AS cor0
----
189099
189186
189194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3308
SELECT 72 * + 41 * + 64 + + + col2 + + col1 + - col0 / + col1 + + col0 + col1 col0 FROM tab2 AS cor0
----
189099
189186
189194

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 NOT IN ( + ( + + ( + col2 ) ), 32 + + + col0 )
----

query I rowsort
SELECT + col0 * + - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT 43 AS col0, col2 AS col1 FROM tab0 AS cor0
----
43
10
43
47
43
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT ALL - COUNT( * ), + 27 AS col0 FROM tab2 AS cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL - COUNT ( * ), + 27 AS col0 FROM tab2 AS cor0
----
-3
27

query I rowsort
SELECT ALL + 18 * + - 69 AS col2 FROM tab1 AS cor0
----
-1242
-1242
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL 34 DIV + - col2 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3315
SELECT ALL 34 / + - col2 col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - MAX( DISTINCT + col2 ) FROM tab2 WHERE NOT - col2 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-3316
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 WHERE NOT - col2 IS NULL
----
-58

query I rowsort
SELECT + 40 + 43 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - COUNT( * ) * 29 AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3318
SELECT - COUNT ( * ) * 29 AS col1 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + + col2 + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - - ( - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT - - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL + COUNT( * ) + - + 88 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + COUNT ( * ) + - + 88 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 36 - + ( - col2 ) * + 65 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - ( + 11 ) + 48 + col1 AS col0 FROM tab0 cor0
----
118
38
58

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

query I rowsort
SELECT ALL col1 + col1 * + + col1 * - ( - 91 ) FROM tab2
----
236742
408566
539616

query I rowsort
SELECT ALL + 96 FROM tab1 WHERE NOT + col0 NOT BETWEEN + - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + 2 ) * col2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COUNT( * ) * - + ( MIN( ALL - col2 ) ) col1 FROM tab0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3331
SELECT COUNT ( * ) * - + ( MIN ( ALL - col2 ) ) col1 FROM tab0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3332
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT CAST( + - col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + col0 + - + 86 FROM tab1
----
-1
-35
5

query I rowsort
SELECT + col1 * - col2 FROM tab2 WHERE col1 BETWEEN - ( - col1 ) AND NULL
----

query I rowsort
SELECT - ( + 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT 71 - col1 FROM tab0
----
-10
50
70

query I rowsort
SELECT - col2 * + col0 + - 20 FROM tab0
----
-725
-890
-9623

query I rowsort
SELECT ALL + + 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT DISTINCT + - CAST( - MAX( ALL - ( 0 ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + - CAST ( - MAX ( ALL - ( 0 ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT - - 63 * 39 * + - col2 AS col1, 64 FROM tab1 AS cor0
----
-144963
64
-167076
64
-235872
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3342
SELECT + 5 DIV - 23 + + col2, col1 * 60 col2 FROM tab2 AS cor0
----
23
3060
40
4620
58
4020

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3342
SELECT + 5 / - 23 + + col2, col1 * 60 col2 FROM tab2 AS cor0
----
23
3060
40
4620
58
4020

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + - ( + 25 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - - ( + 41 ) * COUNT( * ) * + ( + 74 ) AS col0 FROM tab0 cor0
----
9102

skipif mysql # not compatible
query I rowsort label-3345
SELECT - - ( + 41 ) * COUNT ( * ) * + ( + 74 ) AS col0 FROM tab0 cor0
----
9102

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT - SUM( - 33 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - SUM ( - 33 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT ALL CAST( - MIN( DISTINCT - + col2 ) AS SIGNED ) * 12 FROM tab2 AS cor0
----
696

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL CAST ( - MIN ( DISTINCT - + col2 ) AS INTEGER ) * 12 FROM tab2 AS cor0
----
696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 * - 21 col2 FROM tab1
----
14994
8925
89817

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2, 69 * + ( col1 ) * - col0 * + col0 + + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT ALL + 3 DIV col0 * col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + 3 / col0 * col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ALL ( + col2 ) DIV col1 + - 38 AS col1 FROM tab0
----
-38
-38
61

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL ( + col2 ) / col1 + - 38 AS col1 FROM tab0
----
-38
-38
61

query I rowsort
SELECT ALL 44 * + - 23 FROM tab0
----
-1012
-1012
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + COUNT( + - 21 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + COUNT ( + - 21 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - 70 + + + col1 < NULL
----

query II rowsort
SELECT DISTINCT 40, col1 AS col2 FROM tab1
----
40
14
40
47
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL SUM( 16 ) col1 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT ALL SUM ( 16 ) col1 FROM tab1
----
48

query I rowsort
SELECT + 1 FROM tab0 WHERE NOT + 70 + - - col0 IS NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT col1 DIV + ( + 70 ) + - col1 + + 36 - 47 * + - col0 FROM tab0
----
4104
4594
661

skipif mysql # not compatible
query I rowsort label-3358
SELECT col1 / + ( + 70 ) + - col1 + + 36 - 47 * + - col0 FROM tab0
----
4104
4594
661

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3360
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - 92 / - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - 92 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - - 77 AS col2 FROM tab1 AS cor0
----
-19
18
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 37 FROM tab2
----
23
37
40
37
58
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT DISTINCT col0 DIV 99 - + + 98 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT col0 / 99 - + + 98 FROM tab0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT ALL 35 DIV col2 * - col2 * - col1 AS col0 FROM tab2
----
0
0
1173

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL 35 / col2 * - col2 * - col1 AS col0 FROM tab2
----
0
0
1173

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - 42 * - ( + 46 ) * ( - ( + - col2 ) ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT col2 / + col1 + 88 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3367
SELECT ALL - 36 + + CAST( - col0 AS SIGNED ) AS col2, - 20 FROM tab1 AS cor0
----
-121
-20
-127
-20
-87
-20

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL - 36 + + CAST ( - col0 AS INTEGER ) AS col2, - 20 FROM tab1 AS cor0
----
-121
-20
-127
-20
-87
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT COUNT( DISTINCT + + col2 ) + - SUM( col0 ) col2 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3368
SELECT COUNT ( DISTINCT + + col2 ) + - SUM ( col0 ) col2 FROM tab1 AS cor0
----
-224

query I rowsort
SELECT ALL 12 + - col2 FROM tab0 cor0
----
-35
-87
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT - 22 + + col0 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3370
SELECT - 22 + + col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - ( col2 ) AS col2, + 7 AS col2 FROM tab2
----
-23
7
-40
7
-58
7

query I rowsort
SELECT - + col2 * - 45 + 35 AS col1 FROM tab1 cor0
----
2690
3095
4355

onlyif mysql # DIV for integer division: 
query II rowsort label-3374
SELECT + + col1 DIV - col2 AS col1, + 52 AS col2 FROM tab0 AS cor0
----
-1
52
-2
52
0
52

skipif mysql # not compatible
query II rowsort label-3374
SELECT + + col1 / - col2 AS col1, + 52 AS col2 FROM tab0 AS cor0
----
-1
52
-2
52
0
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 5 BETWEEN - 61 AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 14 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + + COUNT( * ) * 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + + COUNT ( * ) * 18 FROM tab1 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 - col1, col0 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 + - col2 - 52 + + 88 FROM tab2
----
36
36
36

query II rowsort
SELECT col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL + col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT - MIN( DISTINCT + 42 ) col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT - MIN ( DISTINCT + 42 ) col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL - col2 * - 61 * - 89 AS col0 FROM tab2 AS cor0
----
-124867
-217160
-314882

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + col0 IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + + 5 AS col2 FROM tab2 AS cor0
----
230
320
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT - - CAST( - + col1 AS SIGNED ) * - 12 FROM tab1 AS cor0
----
168
564
60

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - - CAST ( - + col1 AS INTEGER ) * - 12 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + 88 / CAST( - + col2 AS SIGNED ) FROM tab2 WHERE NOT col1 * - 65 + + + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + 88 / CAST ( - + col2 AS INTEGER ) FROM tab2 WHERE NOT col1 * - 65 + + + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL + col0 DIV + - col1 + col1 AS col0 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + col0 / + - col1 + col1 AS col0 FROM tab0
----
-96
17
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3390
SELECT 15 * + col0 * 44 * + 17 + + CAST( NULL AS SIGNED ) * col1, + 29 AS col0 FROM tab1
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-3390
SELECT 15 * + col0 * 44 * + 17 + + CAST ( NULL AS INTEGER ) * col1, + 29 AS col0 FROM tab1
----
NULL
29
NULL
29
NULL
29

query I rowsort
SELECT ALL + - col2 + + - 23 AS col2 FROM tab2 AS cor0
----
-46
-63
-81

query I rowsort
SELECT DISTINCT - col2 + - 35 AS col0 FROM tab1 AS cor0
----
-103
-131
-94

query I rowsort
SELECT ALL col1 + + col1 + col1 + + 6 AS col1 FROM tab0 AS cor0
----
249
69
9

query I rowsort
SELECT DISTINCT + + col0 + - + 22 * col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + + col0 + - 19 + - col1 * col1 >= NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) - + + col2 - col2 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT col1 * - col1 * + col1 * - + col2 FROM tab1
----
263424
7059964
7375

query I rowsort
SELECT DISTINCT 45 * 38 AS col0 FROM tab2
----
1710

query I rowsort
SELECT 0 * + 15 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3399
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT ( - 17 ) - + col2 AS col1 FROM tab1
----
-113
-76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT + - ( - - MAX( ALL col2 ) ) + - 45 AS col0 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + - ( - - MAX ( ALL col2 ) ) + - 45 AS col0 FROM tab2 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-3402
SELECT ALL - 14 DIV col1 AS col2, - 49 FROM tab2 AS cor0
----
0
-49
0
-49
0
-49

skipif mysql # not compatible
query II rowsort label-3402
SELECT ALL - 14 / col1 AS col2, - 49 FROM tab2 AS cor0
----
0
-49
0
-49
0
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT COUNT( * ) DIV - MIN( - + col0 ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3403
SELECT DISTINCT COUNT ( * ) / - MIN ( - + col0 ) col2 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 82 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE - 74 IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3405
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE - 74 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT - + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 37 * + col0 * + 46 AS col0 FROM tab0 AS cor0
----
148074
165094
25530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT + SUM( + col1 ) DIV - - 19 AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3409
SELECT + SUM ( + col1 ) / - - 19 AS col1 FROM tab0
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) >= + col2
----
15
81
47
97
1
99

query II rowsort
SELECT col1 * + - 1 AS col0, + ( + 84 ) + - col0 AS col0 FROM tab1
----
-14
33
-47
-7
-5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + COUNT( * ) * + + 19 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT + COUNT ( * ) * + + 19 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL - 31 * - col2 FROM tab0
----
1457
3069
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT ALL - ( + + CAST( 40 AS SIGNED ) ) AS col0 FROM tab0
----
-40
-40
-40

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

query I rowsort
SELECT - - col2 * + 43 FROM tab2 AS cor0 WHERE ( NULL ) <= + col2
----

query I rowsort
SELECT DISTINCT - col1 * col1 + - + col1 - - 69 * + + col0 AS col2 FROM tab1 AS cor0
----
3309
4023
5835

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

query I rowsort
SELECT + + 59 * 82 + + - col0 FROM tab1 AS cor0
----
4747
4753
4787

query I rowsort
SELECT ALL + col2 - + col2 + + + col1 FROM tab2 WHERE - col2 * + ( - - col0 ) NOT BETWEEN + - 87 AND + col0
----
51
67
77

query I rowsort
SELECT + col2 + 5 AS col1 FROM tab2
----
28
45
63

query I rowsort
SELECT ALL + col2 + - + 32 FROM tab0 cor0
----
-22
15
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT ( + + COUNT( * ) ) * 30 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT ( + + COUNT ( * ) ) * 30 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + CAST( NULL AS SIGNED ) - - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + + CAST( + col1 AS SIGNED ) + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + + CAST ( + col1 AS INTEGER ) + + col2 AND NULL
----
0

query I rowsort
SELECT ALL + 68 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
68
68
68

query I rowsort
SELECT ALL col1 * - + col0 + + col2 FROM tab1 cor0
----
-366
-4209
-618

query I rowsort
SELECT ALL ( - col2 ) - + col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL - col2 + - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL + CAST( NULL AS SIGNED ) * - 19 * - COUNT( * ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT - 97 FROM tab1 WHERE - + col2 <> NULL
----

query I rowsort
SELECT ALL - col2 - + 90 FROM tab1
----
-149
-158
-186

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( 14 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT 17 NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT DISTINCT col0 DIV + - col0 col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT DISTINCT col0 / + - col0 col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT ALL + col1 DIV - + col0 - + 60 FROM tab0
----
-60
-60
-65

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + col1 / - + col0 - + 60 FROM tab0
----
-60
-60
-65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col0 ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT + 33 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + 33 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24

query I rowsort
SELECT - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - - 67 FROM tab0 WHERE NOT NULL IS NOT NULL
----
67
67
67

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ( - + col1 ) * - 56 AS col1 FROM tab2 AS cor0
----
2856
3752
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT 58 * - MIN( CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
5742

skipif mysql # not compatible
query I rowsort label-3442
SELECT 58 * - MIN ( CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT DISTINCT - - 67 * - COUNT( * ) + - CAST( NULL AS SIGNED ) * + ( + + MIN( 76 ) ) * + + 18 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT - - 67 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + ( + + MIN ( 76 ) ) * + + 18 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT CAST( NULL AS SIGNED ) * + 6 col0, - col2 * + col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3445
SELECT CAST ( NULL AS INTEGER ) * + 6 col0, - col2 * + col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 AS cor0 WHERE NOT 0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 27 / - col0 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 <= ( + col2 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT + 62 - - 17 - - col1 * - 97 + - CAST( NULL AS SIGNED ) + CAST( + col2 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT + 62 - - 17 - - col1 * - 97 + - CAST ( NULL AS INTEGER ) + CAST ( + col2 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT 56 + - SUM( ALL + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT 56 + - SUM ( ALL + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 31 * + + 93 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3454
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 < + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3454
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 < + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 + - 83 FROM tab2 AS cor0
----
-129
-147
-158

query II rowsort
SELECT DISTINCT 12, + col0 AS col2 FROM tab0 AS cor0
----
12
15
12
87
12
97

query III rowsort
SELECT * FROM tab2 WHERE + 46 <= NULL
----

query I rowsort
SELECT + col2 + - 63 FROM tab2 cor0
----
-23
-40
-5

query II rowsort
SELECT + col0 * - col2 + - 91 + + 53, - col2 AS col2 FROM tab2 AS cor0
----
-1096
-23
-2598
-40
-4388
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT + SUM( + col1 ) - - - 42 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + SUM ( + col1 ) - - - 42 FROM tab2 cor0
----
153

query I rowsort
SELECT DISTINCT 63 - 77 FROM tab1 AS cor0
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col0 * 28
----

query I rowsort
SELECT DISTINCT + col2 + - col0 + - + col0 FROM tab2 AS cor0
----
-69
-88
-92

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 31 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - col1 * 96 * col1 DIV - col0 FROM tab2
----
5428
5745
8893

skipif mysql # not compatible
query I rowsort label-3466
SELECT - col1 * 96 * col1 / - col0 FROM tab2
----
5428
5745
8893

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT 6 * - ( - ( - + COUNT( * ) ) ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT 6 * - ( - ( - + COUNT ( * ) ) ) AS col1 FROM tab0
----
-18

query II rowsort
SELECT DISTINCT col0, + col1 - - col2 FROM tab1
----
51
110
85
64
91
115

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 - - + 91
----

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + + ( + + SUM( + 21 ) ) * - - COUNT( * ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3471
SELECT + + ( + + SUM ( + 21 ) ) * - - COUNT ( * ) FROM tab0 AS cor0
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT - col2 * col1 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-3472
SELECT - col2 * col1 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL ( + - 66 ) + + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 <= + col2
----
-151
-157

query I rowsort
SELECT - 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - 41 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT MIN( + col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT MIN ( + col0 ) col0 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT - col1 + 30 AS col0 FROM tab0 AS cor0
----
-51
29
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT + 83 * - col0 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-175628
-339968
-466875

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 83 * - col0 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-175628
-339968
-466875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT 61 AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 + col1 + - 96 + + col2 * - CAST( NULL AS SIGNED ) + - col0 * + - col1 * - col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT 61 AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 + col1 + - 96 + + col2 * - CAST ( NULL AS INTEGER ) + - col0 * + - col1 * - col1 * + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - 30
----

query II rowsort
SELECT DISTINCT + col2 AS col1, + 76 * - col0 AS col2 FROM tab0 AS cor0
----
10
-6612
47
-1140
99
-7372

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 = + + 86
----

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT MAX( ALL + 32 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3485
SELECT MAX ( ALL + 32 ) AS col1 FROM tab1
----
32

query I rowsort
SELECT - col1 + + 9 + + 58 AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL 44 AS col1 FROM tab1 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col1 NOT BETWEEN + 93 AND - 73
----
3

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col1 NOT BETWEEN + 93 AND - 73
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT + ( 4 ) DIV + - col1 + - 5 FROM tab0
----
-5
-5
-9

skipif mysql # not compatible
query I rowsort label-3489
SELECT + ( 4 ) / + - col1 + - 5 FROM tab0
----
-5
-5
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col2 ) IS NULL
----

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

query I rowsort
SELECT 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL + col0 - + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT ALL col2 * col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + + ( + CAST( NULL AS SIGNED ) ) * + CAST( + + 55 AS SIGNED ) - - - col2 - + 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + + 82 - - - COUNT( * ) + SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-3497
SELECT + + 82 - - - COUNT ( * ) + SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
306

query II rowsort
SELECT + col0 AS col1, + col0 FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT - - 28 DIV - 65 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT - - 28 / - 65 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 63 * col1 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT MIN( ALL + 39 ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3502
SELECT MIN ( ALL + 39 ) AS col2 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - - 50 FROM tab2 WHERE NOT NULL IS NOT NULL
----
50
50
50

query I rowsort
SELECT ALL + 30 * + - col1 * - 63 FROM tab0
----
153090
1890
39690

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - COUNT( ALL - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - COUNT ( ALL - col2 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 38 * + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT + COUNT( col1 ) / + 67 + - ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 25 * + - col2 FROM tab1 cor0 WHERE NOT ( NOT col0 * col1 + + ( + ( col2 ) ) IS NOT NULL )
----
1475
1700
2400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + col2 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT ALL - + COUNT( * ) DIV - + 86 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - + COUNT ( * ) / - + 86 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - + col2 * - + col2 * - 75 + + - col2 FROM tab1 AS cor0
----
-261134
-346868
-691296

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT ALL + ( ( - + 59 ) ) + + SUM( ALL - 50 ) AS col0, 81 FROM tab1 AS cor0
----
-209
81

skipif mysql # not compatible
query II rowsort label-3514
SELECT ALL + ( ( - + 59 ) ) + + SUM ( ALL - 50 ) AS col0, 81 FROM tab1 AS cor0
----
-209
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL - SUM( DISTINCT + col1 ) * - 41 AS col1 FROM tab0 AS cor0
----
4223

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - SUM ( DISTINCT + col1 ) * - 41 AS col1 FROM tab0 AS cor0
----
4223

query I rowsort
SELECT + col1 + 35 - + col0 * col2 FROM tab1 AS cor0
----
-4847
-4975
-6106

query I rowsort
SELECT DISTINCT + 19 + - 65 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT - - 69 + col0 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL > - 44 * 76
----

query II rowsort
SELECT DISTINCT col0, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT DISTINCT 7 DIV + ( + col1 ) FROM tab0
----
0
7

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT 7 / + ( + col1 ) FROM tab0
----
0
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 33 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - col1 + + + 24 AS col2 FROM tab1
----
-114
-41
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT COUNT( * ) DIV - - 13 * + 15 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( * ) / - - 13 * + 15 AS col2 FROM tab0
----
0

query II rowsort
SELECT ALL 4, - col1 AS col1 FROM tab1
----
4
-14
4
-47
4
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - COUNT( * ) FROM tab1 WHERE ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT - COUNT ( * ) FROM tab1 WHERE ( NULL ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT col0 * - 51 + 82 AS col2 FROM tab1 AS cor0
----
-2519
-4253
-4559

query I rowsort
SELECT ALL - col2 + - - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT 94 * + col1 * 20 + ( - + 76 ), + 34 * + col1 - + 63 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + 6 + + ( - COUNT( * ) ) + + + 94 AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-3531
SELECT + 6 + + ( - COUNT ( * ) ) + + + 94 AS col1 FROM tab1
----
97

query I rowsort
SELECT + col2 * - 28 * col0 * + col0 + + col2 * + + 79 * + + col0 + + - col2 AS col0 FROM tab2
----
-1279145
-4385320
-8791408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 * col0 * + col0 col0 FROM tab2 WHERE NOT - - 96 - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query II rowsort
SELECT DISTINCT + ( + col0 ) / + ( + + col0 ), - 75 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT SUM( DISTINCT - col1 ) * + - 19 + + MAX( ALL + - col2 ) AS col0 FROM tab2
----
3682

skipif mysql # not compatible
query I rowsort label-3538
SELECT SUM ( DISTINCT - col1 ) * + - 19 + + MAX ( ALL + - col2 ) AS col0 FROM tab2
----
3682

query II rowsort
SELECT + col2 AS col2, col2 + - 43 AS col2 FROM tab0
----
10
-33
47
4
99
56

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + - col2 - 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3541
SELECT ALL ( + - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL ( + - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL - CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT - 72, col1 AS col1 FROM tab1
----
-72
14
-72
47
-72
5

query II rowsort
SELECT - col1, + 36 AS col1 FROM tab1
----
-14
36
-47
36
-5
36

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

query II rowsort
SELECT col0 * - 70 * col0 AS col0, 74 FROM tab1
----
-182070
74
-505750
74
-579670
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT ALL + COUNT( * ) col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3547
SELECT ALL + COUNT ( * ) col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - 29 / - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT DISTINCT COUNT( DISTINCT - ( 92 ) ) + - 4, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3550
SELECT DISTINCT COUNT ( DISTINCT - ( 92 ) ) + - 4, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - + 29 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - + 29 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
84

query I rowsort
SELECT DISTINCT col1 * + + 50 + + + col0 FROM tab0 AS cor0
----
1137
147
4065

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3553
SELECT CAST( + col1 AS SIGNED ) * + + 68 - + 36 AS col1, - col0 col0 FROM tab0 AS cor0
----
1392
-87
32
-97
5472
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3553
SELECT CAST ( + col1 AS INTEGER ) * + + 68 - + 36 AS col1, - col0 col0 FROM tab0 AS cor0
----
1392
-87
32
-97
5472
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3555
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 + col0, + col2 / ( + + CAST( - 25 AS DECIMAL ) ), + col0, + col2, + 82 )
----

skipif mysql # not compatible
query III rowsort label-3555
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 + col0, + col2 / ( + + CAST ( - 25 AS REAL ) ), + col0, + col2, + 82 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT + COUNT( col2 ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3556
SELECT + COUNT ( col2 ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT col2 * + CAST( NULL AS SIGNED ) / - - col1 - - - col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT 14 + + - 16 AS col2 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL COUNT( * ) * 30 + + COUNT( * ) + COUNT( * ) + + - 81 * MAX( DISTINCT + - 97 ) FROM tab2
----
7953

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL COUNT ( * ) * 30 + + COUNT ( * ) + COUNT ( * ) + + - 81 * MAX ( DISTINCT + - 97 ) FROM tab2
----
7953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT - CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 WHERE + col2 BETWEEN - ( + + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3561
SELECT - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 WHERE + col2 BETWEEN - ( + + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 AS col0, col1 col1 FROM tab1
----
86
14
86
47
86
5

query I rowsort
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE + 39 < - ( - col0 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> 36 + ( + 12 )
----

query I rowsort
SELECT - 99 + - col1 FROM tab0 cor0
----
-100
-120
-180

query I rowsort
SELECT + col0 * + + 74 FROM tab2 cor0
----
3404
4736
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT ALL - + CAST( - 96 AS SIGNED ) - col2 + col1 FROM tab1 AS cor0
----
14
42
75

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - + CAST ( - 96 AS INTEGER ) - col2 + col1 FROM tab1 AS cor0
----
14
42
75

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + 18 * + 38 AS col2 FROM tab0
----
684
684
684

query I rowsort
SELECT ALL 23 * - 76 FROM tab1
----
-1748
-1748
-1748

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 AS col0, + col1 * - ( + 57 ) * - col1 col0 FROM tab0 AS cor0
----
-86
25137
-86
373977
-86
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * 2 IN ( - col2, col1 * col1, - col0 * - 92, - + col0, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT + - 66 AS col0, col1 AS col2, 71 AS col0 FROM tab2 AS cor0
----
9 values hashing to 14fc2d4e8380d44933dc3b8bf8b12575

query II rowsort
SELECT ALL - col0 AS col1, - ( - 47 ) + + col0 AS col2 FROM tab2 AS cor0
----
-46
93
-64
111
-75
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT ( + 53 ) / + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col1 * + - col2 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT SUM( 20 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3578
SELECT SUM ( 20 ) AS col1 FROM tab0
----
60

query I rowsort
SELECT ALL + - ( - - 73 ) FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3580
SELECT ALL CAST( NULL AS SIGNED ), - col2 col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3580
SELECT ALL CAST ( NULL AS INTEGER ), - col2 col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT ( + + 85 ) FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT ( - col1 ) ) + - COUNT( * ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT ( - col1 ) ) + - COUNT ( * ) AS col0 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + col2 + - col2 + - col2 - + + 38 FROM tab2 AS cor0
----
-61
-78
-96

query I rowsort
SELECT + col2 / col2 AS col1 FROM tab0 AS cor0 WHERE - 1 / + 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3586
SELECT * FROM tab1 AS cor0 WHERE 66 - - CAST( - + 42 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3586
SELECT * FROM tab1 AS cor0 WHERE 66 - - CAST ( - + 42 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3587
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3587
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL - 88 * - + ( + + SUM( + col1 ) ) - - COUNT( * ) AS col0 FROM tab2
----
17163

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - 88 * - + ( + + SUM ( + col1 ) ) - - COUNT ( * ) AS col0 FROM tab2
----
17163

query I rowsort
SELECT DISTINCT 47 * + + col0 FROM tab2
----
2162
3008
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT + 95 DIV + 89 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT + 95 / + 89 AS col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL ( - CAST( AVG ( 12 ) AS SIGNED ) ) AS col0 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL ( - CAST ( AVG ( 12 ) AS INTEGER ) ) AS col0 FROM tab1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT ( - CAST( - 19 AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3592
SELECT ( - CAST ( - 19 AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab2
----
-57

query I rowsort
SELECT + 93 * - + col1 AS col1 FROM tab2
----
-4743
-6231
-7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) * + col1 col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3596
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 - + CAST( NULL AS SIGNED ), 27 + - col0, + 83, - + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3596
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 - + CAST ( NULL AS INTEGER ), 27 + - col0, + 83, - + col2 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * + ( + 29 ) FROM tab2
----
1479
1943
2233

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3598
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3598
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + 40 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
40
-14
40
-47
40
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 55 = 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 * - 93 BETWEEN - col0 AND NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 * - 93 BETWEEN - col0 AND NULL
----
-15
-87
-97

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

query I rowsort
SELECT + col0 * col1 - 51 AS col0 FROM tab2 AS cor0
----
2295
4877
4974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT CAST( NULL AS SIGNED ) * + - 96 * + 5 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3605
SELECT CAST ( NULL AS INTEGER ) * + - 96 * + 5 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3606
SELECT col2, - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-3606
SELECT col2, - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ( ( - col1 ) ) AS col1 FROM tab2
----
-51
-67
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ALL + col2 + col2 * + col2 + + + 43 DIV + col2 FROM tab2
----
1641
3422
553

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + col2 + col2 * + col2 + + + 43 / + col2 FROM tab2
----
1641
3422
553

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT COUNT( * ), 51 * - 49 AS col1 FROM tab2
----
3
-2499

skipif mysql # not compatible
query II rowsort label-3610
SELECT COUNT ( * ), 51 * - 49 AS col1 FROM tab2
----
3
-2499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3611
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3611
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= CAST ( - col0 AS INTEGER )
----

query II rowsort
SELECT DISTINCT - ( - ( - ( + 82 ) ) ), - col0 AS col0 FROM tab0 AS cor0
----
-82
-15
-82
-87
-82
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 27 col1, col2 * + + col0 AS col1 FROM tab0 AS cor0
----
-27
705
-27
870
-27
9603

query I rowsort
SELECT - 39 + - 76 FROM tab1
----
-115
-115
-115

query II rowsort
SELECT 51 + - col1 AS col1, + 93 AS col0 FROM tab0
----
-30
93
30
93
50
93

query II rowsort
SELECT ALL 95 + - 47 - + col0 * + 79 * - 49 AS col0, - 5 + - col0 * + col2 AS col1 FROM tab2 WHERE 19 * - 2 * - ( 57 ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL - SUM( DISTINCT + 62 ) AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - SUM ( DISTINCT + 62 ) AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - ( 27 ) - + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-3618
SELECT - ( 27 ) - + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
-148

query I rowsort
SELECT - col2 - + + 55 FROM tab0 cor0
----
-102
-154
-65

query I rowsort
SELECT ALL - col0 * 41 FROM tab0
----
-3567
-3977
-615

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

query I rowsort
SELECT - col1 + - ( + col2 ) FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 59 + - 37 IS NOT NULL
----

query II rowsort
SELECT ALL col2, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT + COUNT( * ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT ( - + ( - col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 75 + + col0 AS col0 FROM tab2
----
121
139
150

query I rowsort
SELECT ( - ( col1 ) ) + col2 * 30 AS col0 FROM tab0
----
1329
279
2969

query I rowsort
SELECT DISTINCT 57 - col0 FROM tab1
----
-28
-34
6

query I rowsort
SELECT col2 + - 8 FROM tab2
----
15
32
50

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 16 AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + col2 + col1 / + ( col2 * ( - 3 ) + col2 / col0 ) AS col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) NOT IN ( col0 / + 14 + + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) NOT IN ( col0 / + 14 + + 34 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + MIN( ALL + col0 ) / 35 AS col1 FROM tab0 WHERE ( + col0 ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + MIN ( ALL + col0 ) / 35 AS col1 FROM tab0 WHERE ( + col0 ) IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT DISTINCT + COUNT( * ) DIV + 72 + 60 col2 FROM tab0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3637
SELECT DISTINCT + COUNT ( * ) / + 72 + 60 col2 FROM tab0
----
60

query I rowsort
SELECT + 92 + 93 AS col0 FROM tab1
----
185
185
185

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

query I rowsort
SELECT + col0 * + 65 + - col1 FROM tab0
----
5634
6304
894

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

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT col0 >= - col0 * 35
----

query I rowsort
SELECT DISTINCT + col1 + + 18 FROM tab1
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3644
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT 99 * CAST( - col1 AS SIGNED ) + - 56 FROM tab0 WHERE ( NULL ) IS NULL
----
-155
-2135
-8075

skipif mysql # not compatible
query I rowsort label-3647
SELECT 99 * CAST ( - col1 AS INTEGER ) + - 56 FROM tab0 WHERE ( NULL ) IS NULL
----
-155
-2135
-8075

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - SUM( - 76 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - SUM ( - 76 ) FROM tab0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 55 * col0 col1 FROM tab2
----
-2484
-3456
-4050

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 30
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL + 44 - COUNT( * ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + 44 - COUNT ( * ) FROM tab2
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 57 <> 95 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - COUNT( ALL - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - COUNT ( ALL - col0 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + col2 ) IS NULL
----

query I rowsort
SELECT 95 * col0 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT + 75 * col0 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT CAST( NULL AS SIGNED ) * + 47 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE col2 + + 50 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 + - col2 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 * col1 - col0 * 13 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 83 ) NOT BETWEEN col1 AND ( + col2 + - 54 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 13 / col0 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT ALL col0 DIV + col0 - - col1 AS col1 FROM tab1 AS cor0 WHERE ( ( + ( col0 ) ) * ( + col0 ) ) IS NOT NULL
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL col0 / + col0 - - col1 AS col1 FROM tab1 AS cor0 WHERE ( ( + ( col0 ) ) * ( + col0 ) ) IS NOT NULL
----
15
48
6

query I rowsort
SELECT col2 FROM tab0 WHERE - col2 - + 39 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + SUM( col1 ) + + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3668
SELECT + SUM ( col1 ) + + COUNT ( * ) FROM tab2
----
198

query I rowsort
SELECT - 49 + - col0 FROM tab0
----
-136
-146
-64

query I rowsort
SELECT ALL - col1 + 26 AS col2 FROM tab0 AS cor0
----
-55
25
5

query I rowsort
SELECT + + 65 + - ( col0 ) FROM tab0 AS cor0
----
-22
-32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL + - COUNT( * ) + - 31 * 59 FROM tab0 AS cor0
----
-1832

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + - COUNT ( * ) + - 31 * 59 FROM tab0 AS cor0
----
-1832

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT + 70 * - COUNT( col2 * col1 ) + 76 col0 FROM tab2 AS cor0 WHERE - ( - 47 ) - - col0 * - col2 = - col2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3673
SELECT DISTINCT + 70 * - COUNT ( col2 * col1 ) + 76 col0 FROM tab2 AS cor0 WHERE - ( - 47 ) - - col0 * - col2 = - col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + - COUNT( * ) + ( - 33 ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + - COUNT ( * ) + ( - 33 ) AS col2 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - COUNT( * ) + - 30 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
-30

skipif mysql # not compatible
query I rowsort label-3675
SELECT - COUNT ( * ) + - 30 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 17 * - 92 + 68 * + col2 FROM tab1 AS cor0
----
2448
3060
4964

query I rowsort
SELECT ALL - - col2 * col0 - + col1 AS col1 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3680
SELECT ALL + 56 DIV COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + 56 / COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT - col0 + + col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT - col0 + + col0 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL 94 + + COUNT( * ) * - 45 AS col2 FROM tab0 AS cor0 WHERE ( col0 - col0 ) BETWEEN NULL AND col0
----
94

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 94 + + COUNT ( * ) * - 45 AS col2 FROM tab0 AS cor0 WHERE ( col0 - col0 ) BETWEEN NULL AND col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT ALL col1 - col0 DIV col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL col1 - col0 / col0 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL 28 FROM tab2 WHERE col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + SUM( + - 31 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + SUM ( + - 31 ) AS col1 FROM tab1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT DISTINCT 22 - - + COUNT( * ) - + 23 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT 22 - - + COUNT ( * ) - + 23 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 55 AS col1 FROM tab1 WHERE ( + col0 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT COUNT( * ) * + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3688
SELECT COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT - col1 DIV + + 46 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT - col1 / + + 46 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 68 * col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = 93 * + CAST( col1 / col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = 93 * + CAST ( col1 / col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT col1 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col1 > ( NULL )
----
0

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

query II rowsort
SELECT DISTINCT - col1, 87 + + col1 + col1 AS col2 FROM tab2
----
-51
189
-67
221
-77
241

query I rowsort
SELECT - col0 + + col0 * 45 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 46 = ( NULL )
----

query II rowsort
SELECT DISTINCT + col2, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3701
SELECT ALL - col0, - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL - col0, - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT 57 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + - CAST( NULL AS SIGNED ) AND - col0 + + col2 * 63
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + - CAST ( NULL AS INTEGER ) AND - col0 + + col2 * 63
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT - + 79 * + MIN( col0 ) + - 52 AS col1 FROM tab0 AS cor0
----
-1237

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - + 79 * + MIN ( col0 ) + - 52 AS col1 FROM tab0 AS cor0
----
-1237

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - col0 DIV + + 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > + 32 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT - + col1 * CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + col1 * CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ( - - MAX( ALL + + col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3709
SELECT ( - - MAX ( ALL + + col1 ) ) AS col2 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 * + col2 col1 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 75 NOT IN ( col2 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT ALL - col2 DIV - col2 + + - 4 + 64 * 8 AS col0 FROM tab1 cor0
----
509
509
509

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - col2 / - col2 + + - 4 + 64 * 8 AS col0 FROM tab1 cor0
----
509
509
509

query I rowsort
SELECT + 21 - + col1 AS col0 FROM tab0 cor0 WHERE ( - 41 * + col1 ) NOT BETWEEN col2 AND ( NULL )
----
-60
0
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col0 > ( + 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + col0
----

query I rowsort
SELECT + col2 + col2 + col0 * 39 FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL - + COUNT( * ) + - - 94 AS col1 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - + COUNT ( * ) + - - 94 AS col1 FROM tab2 cor0
----
91

query I rowsort
SELECT DISTINCT 24 + col2 + + col2 FROM tab0 cor0
----
118
222
44

query I rowsort
SELECT - - col1 - - col2 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - 89 + + 39 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + - 74 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + - 70 AND + + col2
----
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + + 97 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + + 97 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT + - CAST( NULL AS SIGNED ) * + 64 + + col0 + + col0 * - col0 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - MIN( + 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3726
SELECT - MIN ( + 39 ) FROM tab0
----
-39

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT ALL - 93, - col2 AS col1 FROM tab0
----
-93
-10
-93
-47
-93
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT + 52 + - 17 AS col2 FROM tab0 WHERE NOT - col2 * - ( - - ( CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 52 + - 17 AS col2 FROM tab0 WHERE NOT - col2 * - ( - - ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 10 * + 50 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT 27 DIV + + 63 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT 27 / + + 63 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL <> col1
----
0

query II rowsort
SELECT DISTINCT - - 66, + col1 FROM tab1 AS cor0
----
66
14
66
47
66
5

query III rowsort
SELECT + col1 AS col2, + 27 AS col1, col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 87cf80abdd2e838f25b0ac7b0237bef2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * - - col0 col2 FROM tab0 AS cor0
----
4872
5432
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ( + COUNT( - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3738
SELECT ( + COUNT ( - col2 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT MIN( DISTINCT - - 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT MIN ( DISTINCT - - 73 ) AS col1 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT DISTINCT + + col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3741
SELECT DISTINCT + 34 * + col1 + - - 25 AS col0, - 29 DIV + ( col2 ) AS col2 FROM tab2 AS cor0
----
1759
-1
2303
0
2643
0

skipif mysql # not compatible
query II rowsort label-3741
SELECT DISTINCT + 34 * + col1 + - - 25 AS col0, - 29 / + ( col2 ) AS col2 FROM tab2 AS cor0
----
1759
-1
2303
0
2643
0

query I rowsort
SELECT ALL - col2 + + 5 * + col0 AS col1 FROM tab0 AS cor0
----
28
386
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT - 17 * + 92 - - CAST( - 53 AS SIGNED ) FROM tab0 AS cor0
----
-1617
-1617
-1617

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 17 * + 92 - - CAST ( - 53 AS INTEGER ) FROM tab0 AS cor0
----
-1617
-1617
-1617

query I rowsort
SELECT ALL - 90 + - - col0 * + col2 * - col0 + - - col0 FROM tab2 AS cor0
----
-163866
-326265
-48712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT + MIN( - ( col0 ) ) + - 0 DIV COUNT( * ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3745
SELECT + MIN ( - ( col0 ) ) + - 0 / COUNT ( * ) FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + - col2 ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - 61 * - - col1 - + col2 FROM tab1 AS cor0
----
-2935
-364
-950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3749
SELECT ALL ( 61 ), COUNT( DISTINCT - col1 ) DIV - 44 * - 99 DIV + + 22 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL ( 61 ), COUNT ( DISTINCT - col1 ) / - 44 * - 99 / + + 22 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
61
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 98 col1 FROM tab1
----
51
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL + MIN( DISTINCT - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + MIN ( DISTINCT - 42 ) FROM tab2
----
-42

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3753
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
156

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3755
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3755
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN col1 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 23 > - 72
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

query I rowsort
SELECT + 8 + + col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1403
3295
388

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + 77 - - ( + + col2 ) - - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + 77 - - ( + + col2 ) - - CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT ALL + - ( - 0 ) * + - col2 + + 78 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 / + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL SUM( ALL 32 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL SUM ( ALL 32 ) FROM tab2
----
96

query I rowsort
SELECT + 8 * + col2 FROM tab1
----
472
544
768

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3768
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 NOT BETWEEN col1 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3768
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 NOT BETWEEN col1 * CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 - - + col2 + + col0 * col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * col1 + + 21 + - + col0 FROM tab2
----
2321
4885
4971

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT - 21 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-3772
SELECT - 21 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + ( - - ( + COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT + ( - - ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 67 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 FROM tab2 AS cor0 WHERE ( col1 ) <> col2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT SUM( ALL - col2 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + 81 + col1, 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT SUM ( ALL - col2 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + 81 + col1, 77 )
----
NULL

query I rowsort
SELECT - 98 * col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-131712
-28910
-313208

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3779
SELECT ALL - - 39 AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 46 / 36 IS NOT NULL
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-3779
SELECT ALL - - 39 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 46 / 36 IS NOT NULL
----
39
NULL
39
NULL
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL MIN( DISTINCT - 58 ) * - - COUNT( * ) AS col1 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL MIN ( DISTINCT - 58 ) * - - COUNT ( * ) AS col1 FROM tab0
----
-174

query I rowsort
SELECT col0 * + 91 AS col1 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT 87 + + - MIN( DISTINCT + 69 ) * - MIN( ALL + col1 ) * - 66 AS col1 FROM tab0
----
-4467

skipif mysql # not compatible
query I rowsort label-3782
SELECT 87 + + - MIN ( DISTINCT + 69 ) * - MIN ( ALL + col1 ) * - 66 AS col1 FROM tab0
----
-4467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) * col1 col1 FROM tab2 WHERE NOT ( + + col0 ) IS NULL
----
1173
3080
3886

query I rowsort
SELECT col1 + - col0 * - col1 AS col2 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT + ( + + 73 ) * + + col1 - + + 62 + + col2 FROM tab0
----
110
1481
5898

query I rowsort
SELECT ALL ( 50 ) * - 55 AS col1 FROM tab0
----
-2750
-2750
-2750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + CAST( - + col2 AS SIGNED ) + + col1 + col1 AS col2 FROM tab2 cor0
----
114
76
79

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + CAST ( - + col2 AS INTEGER ) + + col1 + col1 AS col2 FROM tab2 cor0
----
114
76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - 79 + - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-88

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 79 + - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-88

query I rowsort
SELECT DISTINCT 8 * + col2 FROM tab1 AS cor0
----
472
544
768

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3790
SELECT + ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( + + col1 AS DECIMAL ) AND CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3790
SELECT + ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( + + col1 AS REAL ) AND CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 <= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - MAX( ( col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - MAX ( ( col0 ) ) FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 51 col1, + col0 * col0 col0 FROM tab1 AS cor0
----
51
2601
51
7225
51
8281

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3794
SELECT + 17 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN + - 71 AND CAST( NULL AS DECIMAL ) - - - col1 )
----

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 17 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN + - 71 AND CAST ( NULL AS REAL ) - - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT - + col2 DIV 65 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT - + col2 / 65 FROM tab1 cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 74 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT DISTINCT - MIN( - 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - MIN ( - 46 ) FROM tab1
----
46

query I rowsort
SELECT DISTINCT 52 FROM tab1 WHERE ( + - 91 ) IS NOT NULL
----
52

query I rowsort
SELECT ALL 24 * + col2 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ALL - ( col0 ) * + 3 + + ( - - 8 ) FROM tab1
----
-145
-247
-265

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3802
SELECT DISTINCT CAST( NULL AS DECIMAL ) DIV col2 AS col1, col0 DIV - col1 FROM tab2
----
NULL
-1
NULL
0

skipif mysql # not compatible
query II rowsort label-3802
SELECT DISTINCT CAST ( NULL AS REAL ) / col2 AS col1, col0 / - col1 FROM tab2
----
NULL
-1
NULL
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) + - col0 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) + - col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 63 * + 49 FROM tab1 AS cor0 WHERE NOT - 10 + - - col1 IS NULL
----
3087
3087
3087

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - SUM( DISTINCT - - 49 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-3806
SELECT - SUM ( DISTINCT - - 49 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query I rowsort
SELECT - 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( * ) + 88 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( * ) + 88 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 61 + - col0 * - 47 + 7 AS col2 FROM tab2 cor0
----
2230
3076
3593

query I rowsort
SELECT DISTINCT + + col0 + + + 61 AS col2 FROM tab1 AS cor0
----
112
146
152

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3811
SELECT ALL + col1 * + - 11 * CAST( col0 AS SIGNED ) + - col2, col0 DIV + - 26 + + - 64 AS col0 FROM tab0 AS cor0
----
-1166
-67
-13412
-64
-20107
-67

skipif mysql # not compatible
query II rowsort label-3811
SELECT ALL + col1 * + - 11 * CAST ( col0 AS INTEGER ) + - col2, col0 / + - 26 + + - 64 AS col0 FROM tab0 AS cor0
----
-1166
-67
-13412
-64
-20107
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT ALL 22 AS col0, + COUNT( * ) + + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
22
6

skipif mysql # not compatible
query II rowsort label-3812
SELECT ALL 22 AS col0, + COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
22
6

query I rowsort
SELECT ALL col2 + 86 AS col2 FROM tab0 cor0
----
133
185
96

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL BETWEEN - col0 AND + col1 / 28
----

query I rowsort
SELECT 77 * col0 AS col2 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT + COUNT( ALL + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT + COUNT ( ALL + - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL 10, COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2
----
10
6

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL 10, COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2
----
10
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - COUNT( * ) * COUNT( ALL - + col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3818
SELECT - COUNT ( * ) * COUNT ( ALL - + col2 ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16, col2 col0 FROM tab0
----
-16
10
-16
47
-16
99

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

query I rowsort
SELECT ALL - col0 - + - 79 + - col2 FROM tab2
----
-25
-54
10

query II rowsort
SELECT col1 + - + col1 AS col2, col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( col0 ) * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 23 * - ( col1 ) FROM tab2 AS cor0
----
-1173
-1541
-1771

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT - 35 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3827
SELECT - 35 / col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3828
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col0 IS NULL
----
14
47
5

query II rowsort
SELECT 83, - col1 AS col1 FROM tab0
----
83
-1
83
-21
83
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col2, - col0 FROM tab2
----
89
-46
89
-64
89
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3832
SELECT ALL 54 * + + AVG ( + 74 ) / - CAST( NULL AS DECIMAL ) * - COUNT( ALL col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL 54 * + + AVG ( + 74 ) / - CAST ( NULL AS REAL ) * - COUNT ( ALL col2 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 27 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT - CAST( - COUNT( ALL 28 ) AS SIGNED ) * - 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - CAST ( - COUNT ( ALL 28 ) AS INTEGER ) * - 10 FROM tab2
----
-30

query II rowsort
SELECT + col0 AS col1, - 9 + col0 AS col1 FROM tab1
----
51
42
85
76
91
82

query I rowsort
SELECT DISTINCT 82 FROM tab0 WHERE - col2 + + col2 IS NOT NULL
----
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 + + col0, + col1, - col2 )
----

query I rowsort
SELECT ALL col0 * - + col2 * - col2 + + col1 FROM tab0 AS cor0
----
33216
8721
950698

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3839
SELECT * FROM tab2 WHERE - CAST( - col2 AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3839
SELECT * FROM tab2 WHERE - CAST ( - col2 AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT + COUNT( * ) + - ( - 86 ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT + COUNT ( * ) + - ( - 86 ) AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT 50 + + CAST( NULL AS SIGNED ) + - 78 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - COUNT( * ) - - - 42 AS col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - COUNT ( * ) - - - 42 AS col1 FROM tab1 AS cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - ( - col1 ) <> NULL
----

query II rowsort
SELECT DISTINCT - 99 + 7 AS col0, 30 * col2 FROM tab2 AS cor0
----
-92
1200
-92
1740
-92
690

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT DISTINCT - col0 + + - col0 DIV 83 * - 25 + + col0 * + ( + col0 ) col2 FROM tab0
----
210
7507
9337

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3846
SELECT DISTINCT - col0 + + - col0 / 83 * - 25 + + col0 * + ( + col0 ) col2 FROM tab0
----
210
7507
9337

query I rowsort
SELECT ALL col0 - - + 67 FROM tab2
----
113
131
142

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 - + col1 + + 12 <= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT 29 * - - COUNT( * ) + - 95 * - COUNT( * ) FROM tab0
----
372

skipif mysql # not compatible
query I rowsort label-3849
SELECT 29 * - - COUNT ( * ) + - 95 * - COUNT ( * ) FROM tab0
----
372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL ( + ( - ( 72 ) ) ) * + col1 + + - col1 + col0 AS col1 FROM tab1 AS cor0
----
-280
-3340
-971

query I rowsort
SELECT ALL + ( - - col2 ) + - col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT SUM( DISTINCT - 18 ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3855
SELECT SUM ( DISTINCT - 18 ) AS col1 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + MAX( DISTINCT + - 41 ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
123

skipif mysql # not compatible
query I rowsort label-3856
SELECT + MAX ( DISTINCT + - 41 ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
123

query I rowsort
SELECT ALL + - 87 * 70 AS col1 FROM tab1 AS cor0
----
-6090
-6090
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - COUNT( * ) * + - MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - COUNT ( * ) * + - MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + MAX( 78 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3859
SELECT + MAX ( 78 ) AS col0 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT + col1 / - col1 * CAST( NULL AS SIGNED ) - - 62 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 44 / col2 / - col2 * - - col0 + - 29 * + 49 BETWEEN col0 * col0 AND ( + col1 * 33 - - + CAST( col0 AS SIGNED ) * col1 + + CAST( NULL AS SIGNED ) * + col0 + col2 / - 49 + col1 - + + col2 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3862
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 44 / col2 / - col2 * - - col0 + - 29 * + 49 BETWEEN col0 * col0 AND ( + col1 * 33 - - + CAST ( col0 AS INTEGER ) * col1 + + CAST ( NULL AS INTEGER ) * + col0 + col2 / - 49 + col1 - + + col2 )
----
1
21
81

query I rowsort
SELECT + col2 * - - 99 * + + col2 FROM tab2
----
158400
333036
52371

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL - ( - COUNT( + col0 ) ) * - 99 AS col0 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - ( - COUNT ( + col0 ) ) * - 99 AS col0 FROM tab1
----
-297

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * 35 * + col2 - + col1 NOT IN ( col0 - 19, - 93, + - 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + MIN( ( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3866
SELECT + MIN ( ( col1 ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3868
SELECT DISTINCT col2 + - + CAST( NULL AS DECIMAL ) + + col1 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3869
SELECT CAST( NULL AS DECIMAL ) * col0 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col2 * + 55 NOT BETWEEN NULL AND - 89 * col0 * + 98
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + ( col0 ) NOT IN ( + col2 )
----

query I rowsort
SELECT ( 38 ) + col0 + + col2 FROM tab2 AS cor0
----
107
142
171

query I rowsort
SELECT - 46 + 10 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT + col1 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3874
SELECT + col1 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
15
48
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 43 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 17 FROM tab0 AS cor0
----
18
38
98

query I rowsort
SELECT ALL + 27 + - 11 AS col2 FROM tab0 cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 - - 56 col2 FROM tab0
----
7

query II rowsort
SELECT col1 * - 72 * ( col2 ) AS col0, - col2 FROM tab1
----
-21240
-59
-230112
-68
-96768
-96

query I rowsort
SELECT - 56 * ( 24 ) FROM tab0
----
-1344
-1344
-1344

query I rowsort
SELECT DISTINCT col2 + - 53 + - - col0 - + + col1 - - 36 AS col0 FROM tab0
----
-36
178
59

query I rowsort
SELECT ALL - col0 * - col0 * - col0 AS col0 FROM tab0
----
-3375
-658503
-912673

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 * - 81 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3884
SELECT - ( + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL - MAX( DISTINCT - col2 ) * - 14 FROM tab2 WHERE 52 BETWEEN + 26 AND - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - MAX ( DISTINCT - col2 ) * - 14 FROM tab2 WHERE 52 BETWEEN + 26 AND - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT - COUNT( ALL 53 ) FROM tab1 WHERE NOT + col2 IN ( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - COUNT ( ALL 53 ) FROM tab1 WHERE NOT + col2 IN ( - 3 )
----
-3

query II rowsort
SELECT - ( - 75 ) * - col0 AS col1, col2 AS col2 FROM tab1
----
-3825
96
-6375
59
-6825
68

query I rowsort
SELECT + - 12 * - - col1 AS col2 FROM tab1 AS cor0
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - SUM( - 39 ) * MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
2691

skipif mysql # not compatible
query I rowsort label-3889
SELECT - SUM ( - 39 ) * MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
2691

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 78 col2 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT + col2 * - - 93 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT col2 * + col2 * col2 AS col2 FROM tab0
----
1000
103823
970299

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3895
SELECT + CAST( 53 AS SIGNED ) AS col0, + 38 FROM tab0
----
53
38
53
38
53
38

skipif mysql # not compatible
query II rowsort label-3895
SELECT + CAST ( 53 AS INTEGER ) AS col0, + 38 FROM tab0
----
53
38
53
38
53
38

query II rowsort
SELECT - 22, + col1 FROM tab2
----
-22
51
-22
67
-22
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT - COUNT( * ) col0, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3897
SELECT - COUNT ( * ) col0, COUNT ( * ) FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + col0 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3899
SELECT col0 DIV + + 23 AS col1, col0 AS col1 FROM tab0
----
0
15
3
87
4
97

skipif mysql # not compatible
query II rowsort label-3899
SELECT col0 / + + 23 AS col1, col0 AS col1 FROM tab0
----
0
15
3
87
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3900
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN NULL AND - 25
----

skipif mysql # not compatible
query III rowsort label-3900
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 25
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / + col1 NOT IN ( - + col1, - col2 * - col1 * + col2, - + 85, - 14 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( * ) * MIN( ALL 60 ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( * ) * MIN ( ALL 60 ) FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL ( + + 14 ) AS col0, ( + - 15 ) * - COUNT( * ) FROM tab0
----
14
45

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL ( + + 14 ) AS col0, ( + - 15 ) * - COUNT ( * ) FROM tab0
----
14
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3904
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col2, 45 AS col1 FROM tab2
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
query II rowsort label-3904
SELECT CAST ( NULL AS REAL ) * + col0 AS col2, 45 AS col1 FROM tab2
----
NULL
45
NULL
45
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3905
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL col2 * - 7 + - col0 AS col1 FROM tab0 AS cor0
----
-157
-344
-790

query I rowsort
SELECT - - col0 - - 99 FROM tab2 AS cor0
----
145
163
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3909
SELECT ALL + + 28 + - 85 + COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + + 28 + - 85 + COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - MIN( - - col1 ) - - 24 AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3910
SELECT - MIN ( - - col1 ) - - 24 AS col1 FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col2 AS col2, col2 col1 FROM tab0 AS cor0
----
-11
10
-34
47
98
99

query I rowsort
SELECT DISTINCT col0 * - - col0 - col2 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT 39 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
39
39
39

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

query I rowsort
SELECT - 0 * + col0 + + + 92 FROM tab2
----
92
92
92

query I rowsort
SELECT ALL 33 - + - col2 AS col0 FROM tab1
----
101
129
92

query I rowsort
SELECT DISTINCT ( - 37 ) FROM tab0 WHERE NOT NULL = col0
----

query III rowsort
SELECT * FROM tab1 WHERE + 73 - 19 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + 22 col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT ALL 19 DIV col1 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL 19 / col1 AS col1 FROM tab1
----
0
1
3

query I rowsort
SELECT col1 * - - ( + - col2 ) * - col2 AS col0 FROM tab2 cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT + - COUNT( * ) DIV + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - COUNT ( * ) / + 91 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT + + 26, + col1 AS col1 FROM tab0 AS cor0
----
26
1
26
21
26
81

query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0 WHERE + col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - 77 * + MAX( ALL + 10 ) AS col0 FROM tab1 AS cor0
----
-770

skipif mysql # not compatible
query I rowsort label-3926
SELECT - 77 * + MAX ( ALL + 10 ) AS col0 FROM tab1 AS cor0
----
-770

query II rowsort
SELECT ALL + ( + 70 ), + col2 AS col2 FROM tab0 AS cor0
----
70
10
70
47
70
99

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL <= + 34 * - - col2 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL - CAST( NULL AS SIGNED ) + 88 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND - + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT - COUNT( * ), 96 AS col1 FROM tab1
----
-3
96

skipif mysql # not compatible
query II rowsort label-3931
SELECT - COUNT ( * ), 96 AS col1 FROM tab1
----
-3
96

query I rowsort
SELECT - 22 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + COUNT( ALL - col0 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3933
SELECT + COUNT ( ALL - col0 ) col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL CAST( + 52 AS SIGNED ) * - 5 + ( - 44 ) + 63 * col1 FROM tab0 AS cor0
----
-241
1019
4799

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL CAST ( + 52 AS INTEGER ) * - 5 + ( - 44 ) + 63 * col1 FROM tab0 AS cor0
----
-241
1019
4799

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - col2 + - col1 AND NULL <> 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - MAX( + + 1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - MAX ( + + 1 ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - COUNT( * ) + 78 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3938
SELECT - COUNT ( * ) + 78 FROM tab1
----
75

query I rowsort
SELECT ALL col0 + - col2 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - - col0 - - col2 / - col0 < - - 55 )
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 * - col0 + - + col1 + ( - col0 ) FROM tab2 cor0
----
2419
4208
961

query I rowsort
SELECT DISTINCT - + col1 * - 41 FROM tab1 cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL MAX( DISTINCT 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL MAX ( DISTINCT 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL COUNT( * ) * 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL COUNT ( * ) * 1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT ALL COUNT( * ) * - COUNT( * ), - MAX( - + col1 ) AS col1 FROM tab1
----
-9
5

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL COUNT ( * ) * - COUNT ( * ), - MAX ( - + col1 ) AS col1 FROM tab1
----
-9
5

query II rowsort
SELECT col0 * - - col0, ( - col2 ) AS col2 FROM tab0
----
225
-47
7569
-10
9409
-99

query I rowsort
SELECT DISTINCT 93 * - col1 AS col0 FROM tab2 AS cor0
----
-4743
-6231
-7161

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * + 32 col2 FROM tab1
----
1984
1984
1984

query II rowsort
SELECT + col2 - - 71, col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT ALL 59 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col2 + + 1 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL col0 * - + 81 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT ( + 60 ) * - CAST( NULL AS SIGNED ) * - col1 / 78 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3955
SELECT DISTINCT ( + 60 ) * - CAST ( NULL AS INTEGER ) * - col1 / 78 col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3956
SELECT col0 * - col1 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 48 + + 87 * - 65 FROM tab2
----
-5703
-5703
-5703

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

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 AS cor0 WHERE ( 38 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + - ( + col1 ) + + col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + col0 + + col0 FROM tab2 WHERE + 37 NOT BETWEEN + - col0 * + + ( - col0 ) * + 30 AND - col2 * - 79 + - - col2 + + col1
----
128
150
92

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT 82 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
82
-3

skipif mysql # not compatible
query II rowsort label-3964
SELECT 82 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
82
-3

query I rowsort
SELECT DISTINCT - 26 * - + 6 AS col1 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT COUNT( DISTINCT CAST( col0 AS SIGNED ) ) * + 10 AS col1 FROM tab0 cor0
----
30

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

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

query II rowsort
SELECT ALL + + col1 AS col1, + 60 AS col1 FROM tab1 AS cor0
----
14
60
47
60
5
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + - 8 + - 44 * 28 * + 2 / - 75 AND NULL
----

query II rowsort
SELECT DISTINCT col1, ( - + col0 ) FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - MAX( + 4 ) AS col0 FROM tab0 WHERE NOT - col0 * + col1 * + col1 IN ( + col1, 96, - 26 )
----
-4

skipif mysql # not compatible
query I rowsort label-3971
SELECT - MAX ( + 4 ) AS col0 FROM tab0 WHERE NOT - col0 * + col1 * + col1 IN ( + col1, 96, - 26 )
----
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - - ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT ALL ( + CAST( - - 94 AS SIGNED ) ) AS col2 FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL ( + CAST ( - - 94 AS INTEGER ) ) AS col2 FROM tab0
----
94
94
94

query I rowsort
SELECT DISTINCT - col0 * + - 27 AS col1 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT DISTINCT + col0 + - 3 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3976
SELECT + 77 * - ( - CAST( col0 AS SIGNED ) ) AS col2, - col0 + + col1 - - 29 - - col1 AS col2 FROM tab0 AS cor0
----
1155
176
6699
-16
7469
-66

skipif mysql # not compatible
query II rowsort label-3976
SELECT + 77 * - ( - CAST ( col0 AS INTEGER ) ) AS col2, - col0 + + col1 - - 29 - - col1 AS col2 FROM tab0 AS cor0
----
1155
176
6699
-16
7469
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT col1 DIV - 30 col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT DISTINCT col1 / - 30 col0 FROM tab2
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - 11 ) col0 FROM tab1
----
40
74
80

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2 AS cor0 WHERE + col1 BETWEEN + 62 * col0 AND + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 51 + + col0 + + 19 FROM tab1 AS cor0
----
121
155
161

query II rowsort
SELECT col0 + 22, - col0 AS col0 FROM tab1 AS cor0
----
107
-85
113
-91
73
-51

query I rowsort
SELECT 51 + 82 AS col2 FROM tab2 AS cor0
----
133
133
133

query I rowsort
SELECT - + col1 + + 25 + - col2 + - col2 FROM tab1 AS cor0
----
-158
-181
-98

query I rowsort
SELECT - col1 + + - 54 FROM tab1 AS cor0
----
-101
-59
-68

query I rowsort
SELECT + ( + 60 ) + - 45 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT - col2 + + + CAST( NULL AS SIGNED ) / + + 53 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT DISTINCT - 71 DIV - - 12 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - 71 / - - 12 FROM tab0
----
-5

query III rowsort
SELECT * FROM tab1 WHERE - - 58 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 7 BETWEEN NULL AND + + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL COUNT( - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT ALL + 45 + + MIN( DISTINCT + col2 ) AS col2, 13 + + 54 FROM tab2
----
68
67

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL + 45 + + MIN ( DISTINCT + col2 ) AS col2, 13 + + 54 FROM tab2
----
68
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT + COUNT( * ), - 46 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT + COUNT ( * ), - 46 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT - ( + - 75 ) DIV - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3997
SELECT - ( + - 75 ) / - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - + 99 - + + COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3998
SELECT - + 99 - + + COUNT ( * ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT DISTINCT - col1 - 51 AS col2 FROM tab2 AS cor0
----
-102
-118
-128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + + 30 col2 FROM tab2
----
58
58
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + col2 DIV - - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL - - 96 * + - COUNT( * ) * - 46 col1 FROM tab1 cor0
----
13248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4004
SELECT ALL - - 96 * + - COUNT ( * ) * - 46 col1 FROM tab1 cor0
----
13248

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 2 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab1
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col1 ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4010
SELECT * FROM tab2 WHERE NOT - - ( - 87 ) - - - CAST( - 66 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4010
SELECT * FROM tab2 WHERE NOT - - ( - 87 ) - - - CAST ( - 66 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - MAX( DISTINCT col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4011
SELECT - MAX ( DISTINCT col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4012
SELECT ALL * FROM tab1 WHERE CAST( - - col0 AS SIGNED ) < + 29 * + - col1
----

skipif mysql # not compatible
query III rowsort label-4012
SELECT ALL * FROM tab1 WHERE CAST ( - - col0 AS INTEGER ) < + 29 * + - col1
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + ( - 71 ) FROM tab2
----
-71
-71
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4015
SELECT + ( - + CAST( NULL AS DECIMAL ) ) * - 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT + ( - + CAST ( NULL AS REAL ) ) * - 6 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 AS col2 FROM tab0 cor0 WHERE NOT ( col1 * + 25 / + 9 + + col0 IS NULL )
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4017
SELECT DISTINCT - col2 * + + CAST( - col1 AS SIGNED ) AS col1, col2 - - - col2 AS col1 FROM tab2 AS cor0
----
1173
0
3080
0
3886
0

skipif mysql # not compatible
query II rowsort label-4017
SELECT DISTINCT - col2 * + + CAST ( - col1 AS INTEGER ) AS col1, col2 - - - col2 AS col1 FROM tab2 AS cor0
----
1173
0
3080
0
3886
0

query I rowsort
SELECT ALL + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-4019
SELECT col2 + - col1 AS col1, 50 DIV ( + col1 ) AS col2 FROM tab0
----
-11
2
-34
0
98
50

skipif mysql # not compatible
query II rowsort label-4019
SELECT col2 + - col1 AS col1, 50 / ( + col1 ) AS col2 FROM tab0
----
-11
2
-34
0
98
50

query I rowsort
SELECT 68 + - col2 AS col2 FROM tab1
----
-28
0
9

query I rowsort
SELECT - col1 * - ( + + 22 ) + col1 FROM tab2
----
1173
1541
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT ( - - MIN( DISTINCT col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT ( - - MIN ( DISTINCT col2 ) ) FROM tab2
----
23

query I rowsort
SELECT ALL - 39 + + + 70 AS col2 FROM tab0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4024
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4024
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + SUM( + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4025
SELECT + SUM ( + ( - col2 ) ) FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> + col1 + - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + COUNT( - col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4027
SELECT + COUNT ( - col0 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 87, + 27 AS col0 FROM tab2 AS cor0
----
87
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + SUM( ALL 31 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + SUM ( ALL 31 ) AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT + ( + col2 ) * - + 53 AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

query II rowsort
SELECT col0 - - 87 + + col1, - col0 * + - col1 - + 30 AS col2 FROM tab1
----
152
684
177
395
225
4247

query I rowsort
SELECT col2 * + col0 * - 20 - ( + col2 ) + 67 FROM tab2
----
-21116
-51173
-86991

query I rowsort
SELECT col2 + + 0 FROM tab1
----
59
68
96

query I rowsort
SELECT + col0 + + col1 * + col0 + 61 - + + 83 FROM tab1
----
4346
488
743

query I rowsort
SELECT - col0 * - - col2 + - col0 + + ( + - 8 ) * - col1 AS col2 FROM tab1
----
-4835
-5060
-5903

query I rowsort
SELECT 95 * + + 59 + - col0 * - + col0 * - - col1 FROM tab2
----
113521
320997
382480

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE col2 + + col1 / + - col0 * + col2 IN ( + ( - 24 ) + col1 )
----

query I rowsort
SELECT ALL col2 + + ( - + col1 ) + + 80 * - + col0 AS col0 FROM tab2 AS cor0
----
-3708
-5157
-6009

query I rowsort
SELECT DISTINCT + - col0 * + - col2 + col2 + col2 FROM tab0 AS cor0
----
799
890
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL - COUNT( - 61 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - COUNT ( - 61 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + SUM( ALL - + 73 ) AS col0 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + SUM ( ALL - + 73 ) AS col0 FROM tab1 AS cor0
----
-219

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + 83 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4044
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= CAST( - + col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4044
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= CAST ( - + col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT + COUNT( * ) DIV + + ( + 72 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( * ) / + + ( + 72 ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT ALL 19 DIV 42 DIV + 74 + ( + col1 ) AS col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL 19 / 42 / + 74 + ( + col1 ) AS col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + + COUNT( * ) * - - COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4047
SELECT + + COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT - - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL col0, ( col1 ) FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT - col1 AS col2, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 31 BETWEEN - 62 AND - col0
----
-3

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 31 BETWEEN - 62 AND - col0
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + + ( - col1 ) + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND + - 37
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 34 NOT BETWEEN + + col0 + - 26 AND - col1 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - col0 ) * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT SUM( - - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT SUM ( - - col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT - 68 + + 16 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - 19 + - - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4059
SELECT - 19 + - - COUNT ( * ) FROM tab1
----
-16

query I rowsort
SELECT + - col2 + + - col0 + - 89 FROM tab0 cor0
----
-151
-186
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT + + 23 FROM tab0 AS cor0 WHERE col1 + + + CAST( NULL AS SIGNED ) <= + - ( - + col1 )
----

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + + 23 FROM tab0 AS cor0 WHERE col1 + + + CAST ( NULL AS INTEGER ) <= + - ( - + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT - + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + 96 + - - col2 AS col2 FROM tab0 AS cor0
----
106
143
195

query I rowsort
SELECT - 67 + + col2 FROM tab0 AS cor0
----
-20
-57
32

query I rowsort
SELECT DISTINCT col1 - - + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - COUNT( * ) * - SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - COUNT ( * ) * - SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT DISTINCT - 76 * 46 FROM tab0
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL - COUNT( - 55 ) * 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - COUNT ( - 55 ) * 69 FROM tab2
----
-207

query I rowsort
SELECT 39 - - - col0 FROM tab1
----
-12
-46
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT COUNT( * ) * + SUM( - - col1 ) + - ( COUNT( * ) ) FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT COUNT ( * ) * + SUM ( - - col1 ) + - ( COUNT ( * ) ) FROM tab2
----
582

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4074
SELECT DISTINCT + CAST( + col1 AS DECIMAL ) FROM tab0 WHERE + ( + - 34 ) + + 93 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + CAST ( + col1 AS REAL ) FROM tab0 WHERE + ( + - 34 ) + + 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL 22 + + - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 22 + + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + COUNT( ALL col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + COUNT ( ALL col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

query I rowsort
SELECT - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT DISTINCT - SUM( ALL + col2 ) col2, + COUNT( * ) FROM tab0
----
-156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4080
SELECT DISTINCT - SUM ( ALL + col2 ) col2, + COUNT ( * ) FROM tab0
----
-156
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = - col0 / col0 * - col1 * + ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT DISTINCT col2 DIV + ( - ( - - col0 ) ) - + col0 + - col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT col2 / + ( - ( - - col0 ) ) - + col0 + - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - col2 * - + col2 + + col0 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + ( 35 ) IS NULL
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + 4 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, + 82 + + col0 FROM tab2
----
23
128
40
146
58
157

query I rowsort
SELECT DISTINCT - col1 * + 31 FROM tab0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ( ( - COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4088
SELECT ( ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col1 col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - ( + - ( + ( col2 ) ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT 67 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col2 * - 21 AS col2 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT + 68 * 6 + col0 FROM tab0
----
423
495
505

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + col1 <= + col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE col1 * 9 + 99 / col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT MIN( ALL + 69 ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT MIN ( ALL + 69 ) AS col1 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL + 66 FROM tab0 WHERE NOT ( CAST( col1 AS SIGNED ) * + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 66 FROM tab0 WHERE NOT ( CAST ( col1 AS INTEGER ) * + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + col0 FROM tab2 WHERE NOT + 90 IS NULL
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT + COUNT( * ) * + 24 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + COUNT ( * ) * + 24 FROM tab1
----
72

query I rowsort
SELECT DISTINCT + ( 45 ) * + col2 FROM tab2
----
1035
1800
2610

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( - col2 ) ) NOT IN ( 58 / + col0 )
----

query I rowsort
SELECT ALL col0 * - 18 AS col0 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col0 - col1 >= col1
----
47

query I rowsort
SELECT + col0 - + 12 * - 88 FROM tab1
----
1107
1141
1147

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 > - 15 * col1
----

query I rowsort
SELECT ALL 48 * ( col1 ) AS col2 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT - ( col1 ) FROM tab2 WHERE 14 + col1 * col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT 82 DIV ( 94 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT 82 / ( 94 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT 20 + COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4111
SELECT 20 + COUNT ( * ) AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4112
SELECT - col1 / ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT - col1 / ( + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 * 56 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NULL BETWEEN col2 AND col1 + col2
----

query I rowsort
SELECT ALL col2 + - col0 * - col0 FROM tab1
----
2697
7284
8349

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 - + col1 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4118
SELECT * FROM tab0 WHERE NOT + CAST( - 67 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4118
SELECT * FROM tab0 WHERE NOT + CAST ( - 67 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 75 * - 31 AS col1 FROM tab2
----
-2325
-2325
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT 19 * - COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-4120
SELECT 19 * - COUNT ( * ) FROM tab2
----
-57

query I rowsort
SELECT col0 * 19 FROM tab2
----
1216
1425
874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * + col0 col0 FROM tab1
----
2550
7140
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT CAST( NULL AS SIGNED ) * 58 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT CAST ( NULL AS INTEGER ) * 58 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL + 18 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + 18 / - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4125
SELECT + CAST( - 1 AS DECIMAL ) * - CAST( - COUNT( * ) * + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4125
SELECT + CAST ( - 1 AS REAL ) * - CAST ( - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( 31 ) / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT col2 DIV ( col2 ) AS col0 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CAST( NULL AS SIGNED ) * + 16 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * + 1 FROM tab0 AS cor0 WHERE NOT - col0 * col1 > ( 60 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( 73 / 96 + + col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4130
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( 73 / 96 + + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT DISTINCT + col1 * - CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT + col1 * - CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + SUM( DISTINCT - col2 ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT + SUM ( DISTINCT - col2 ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT DISTINCT + + 10 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + + 10 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - - COUNT( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT - - COUNT ( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( - 48 ) IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT + ( - col1 ) DIV 96 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 57 * - 1 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + MIN( ( + col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4140
SELECT + MIN ( ( + col1 ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 43 * col0 - + 40 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) < - col2
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + + MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + + MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * + 38 <= - col2
----

query I rowsort
SELECT DISTINCT + 2 * + col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + 45 + - COUNT( - 62 ) AS col2 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 45 + - COUNT ( - 62 ) AS col2 FROM tab2 cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT col2 + + CAST( + col0 AS SIGNED ) + col0 FROM tab0
----
184
293
77

skipif mysql # not compatible
query I rowsort label-4146
SELECT col2 + + CAST ( + col0 AS INTEGER ) + col0 FROM tab0
----
184
293
77

query I rowsort
SELECT - 9 AS col0 FROM tab2 WHERE NOT ( + 43 ) NOT IN ( 23 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT DISTINCT - col2 DIV + 18 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - col2 / + 18 FROM tab1
----
-3
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT DISTINCT - col1 DIV ( - 97 ) + col2 * col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - col1 / ( - 97 ) + col2 * col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT 17 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * - 31 ) IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE col1 - + 9 * col2 IS NOT NULL
----
-23
-40
-58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * 56 AND ( + 54 )
----

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * 56 AND ( + 54 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4155
SELECT - 6 DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 59 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 6 / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 59 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - 29 - 88 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - COUNT( * ) * 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - COUNT ( * ) * 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT - 48 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 * - - 49 * - + col0 + col0 AS col1 FROM tab2 AS cor0
----
-125376
-213075
-51796

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + - - col1 col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT MIN( DISTINCT - 45 ) AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4163
SELECT MIN ( DISTINCT - 45 ) AS col2 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - 94 - + ( 67 ) FROM tab2 cor0
----
-161

query I rowsort
SELECT DISTINCT - 25 - - col2 AS col2 FROM tab2 AS cor0
----
-2
15
33

query I rowsort
SELECT ALL - col2 + - 54 - 8 + col1 FROM tab0 AS cor0
----
-160
-28
-51

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE - 92 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT 59 * + - MIN( ALL - ( + col0 ) ) FROM tab0
----
5723

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT 59 * + - MIN ( ALL - ( + col0 ) ) FROM tab0
----
5723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE - + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - + col2 < NULL
----

query I rowsort
SELECT ALL 31 * - 96 * col1 * col0 AS col0 FROM tab1
----
-1264800
-12728352
-2124864

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + COUNT( DISTINCT 19 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + - + 36 AND ( 60 + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + COUNT ( DISTINCT 19 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + - + 36 AND ( 60 + + 54 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT + 82 FROM tab1 AS cor0 WHERE NOT col2 * CAST( NULL AS SIGNED ) - col2 IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + 82 FROM tab1 AS cor0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) - col2 IS NOT NULL
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 58
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( + col1 + 33 ) IN ( col2 )
----
59
68
96

query I rowsort
SELECT + ( + - 26 ) FROM tab2
----
-26
-26
-26

query I rowsort
SELECT col1 + + col2 + + - col2 / + 63 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 34 * - col2 AS col1 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT - 14 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT - 14 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - col0 BETWEEN NULL AND - col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) + + 14 + - 81 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) + + 14 + - 81 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL - CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT + 83 * 18 * col2 DIV col2 * 31 AS col0 FROM tab1
----
46314
46314
46314

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 83 * 18 * col2 / col2 * 31 AS col0 FROM tab1
----
46314
46314
46314

query II rowsort
SELECT ALL + col1 AS col1, - col0 - + col2 + col0 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT - CAST( NULL AS SIGNED ) / ( - COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL MIN( - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL MIN ( - + col1 ) FROM tab2
----
-77

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <= + + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE 69 * + 52 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE 69 * + 52 IS NOT NULL
----
5

query I rowsort
SELECT 40 * - 68 FROM tab1
----
-2720
-2720
-2720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4190
SELECT - col1 DIV 30, CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-2
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-4190
SELECT - col1 / 30, CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-2
81
0
1
0
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT DISTINCT - CAST( 7 AS SIGNED ) FROM tab2 WHERE NOT col0 IN ( + - ( - - col2 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - CAST ( 7 AS INTEGER ) FROM tab2 WHERE NOT col0 IN ( + - ( - - col2 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL + COUNT( * ) * - - 0 - 71 - 31 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + COUNT ( * ) * - - 0 - 71 - 31 FROM tab1 AS cor0
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 + - 87 AS col0, + col2 col1 FROM tab2 AS cor0
----
-138
23
-154
58
-164
40

query I rowsort
SELECT ALL - 97 + - ( - + col1 ) FROM tab1 cor0
----
-50
-83
-92

query I rowsort
SELECT DISTINCT + ( 28 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + MIN( DISTINCT col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4196
SELECT + MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT COUNT( - - col0 ) * + 67 * 94 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
18894

skipif mysql # not compatible
query I rowsort label-4197
SELECT COUNT ( - - col0 ) * + 67 * 94 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
18894

query I rowsort
SELECT ALL + + 39 FROM tab0 WHERE NOT 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4200
SELECT ALL * FROM tab1 WHERE NOT CAST( + col2 AS DECIMAL ) NOT BETWEEN - col2 + - + col1 + CAST( NULL AS SIGNED ) - 75 AND - col1
----

skipif mysql # not compatible
query III rowsort label-4200
SELECT ALL * FROM tab1 WHERE NOT CAST ( + col2 AS REAL ) NOT BETWEEN - col2 + - + col1 + CAST ( NULL AS INTEGER ) - 75 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT + col0 DIV - - col0 - + - ( + - col2 ) AS col2 FROM tab0 cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-4201
SELECT + col0 / - - col0 - + - ( + - col2 ) AS col2 FROM tab0 cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - COUNT( * ) * 91 col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT - COUNT ( * ) * 91 col1 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT ALL - col2 * + - 32 AS col2 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT + 51 * 77 FROM tab2 AS cor0
----
3927
3927
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT + - 71 * + - COUNT( * ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + - 71 * + - COUNT ( * ) FROM tab2 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + - MAX( + 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + - MAX ( + 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / + - col2 + + ( - col1 ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT DISTINCT - MAX( - 65 ) * - + 29 * CAST( NULL AS SIGNED ) + - + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT DISTINCT - MAX ( - 65 ) * - + 29 * CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - - col0 - - 44 FROM tab2 cor0 WHERE NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT col1 * CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 + - - 96 col2, - col0 FROM tab2 AS cor0
----
184
-46
184
-64
184
-75

query I rowsort
SELECT col0 + + ( col1 ) - col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT - - 31 * - 29 + + col0 AS col2 FROM tab1 AS cor0
----
-808
-814
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE + 27 NOT IN ( col2 * - 44 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4215
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + 27 NOT IN ( col2 * - 44 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + 99 * - MIN( ALL + ( + 97 ) ) AS col0 FROM tab0
----
-9603

skipif mysql # not compatible
query I rowsort label-4216
SELECT + 99 * - MIN ( ALL + ( + 97 ) ) AS col0 FROM tab0
----
-9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 99 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( ( col1 - + 29 ) IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-4218
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( ( col1 - + 29 ) IS NULL ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + MAX( - - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4219
SELECT + MAX ( - - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT col0 + - 13 AS col2 FROM tab1
----
38
72
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT col2 DIV - col0 + 19 AS col1 FROM tab1
----
18
19
19

skipif mysql # not compatible
query I rowsort label-4222
SELECT col2 / - col0 + 19 AS col1 FROM tab1
----
18
19
19

query I rowsort
SELECT col1 + col0 - - 26 FROM tab0
----
122
124
134

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 21 * + + 8 IN ( - col2, col1, col1 * - col1 * col1 + + col0 * + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - + col2 * col1 + + 25 AS col1 FROM tab1 AS cor0
----
129049
17430
217353

query II rowsort
SELECT ALL + col1, ( - - ( + col2 ) ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 77 IN ( - col2, col2 )
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT DISTINCT - COUNT( * ) DIV + 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - COUNT ( * ) / + 53 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col1, 11 - + col2 FROM tab2 AS cor0
----
51
-12
67
-47
77
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT - MAX( - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - MAX ( - col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT ALL + CAST( + + AVG ( + 61 ) AS SIGNED ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + CAST ( + + AVG ( + 61 ) AS INTEGER ) FROM tab1
----
61

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - - col2 <= + col0 + col2 + - col0 + - - col1
----

query II rowsort
SELECT ALL + ( + ( 52 ) ) AS col1, 35 AS col0 FROM tab2 AS cor0
----
52
35
52
35
52
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT ALL + MAX( 89 ) AS col1, + 15 FROM tab0 AS cor0
----
89
15

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL + MAX ( 89 ) AS col1, + 15 FROM tab0 AS cor0
----
89
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - COUNT( * ) * 35 AS col1 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4235
SELECT - COUNT ( * ) * 35 AS col1 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4236
SELECT DISTINCT - + SUM( ALL col0 ) * 2 + SUM( ALL + 70 ) * ( + COUNT( * ) ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
260
3

skipif mysql # not compatible
query II rowsort label-4236
SELECT DISTINCT - + SUM ( ALL col0 ) * 2 + SUM ( ALL + 70 ) * ( + COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
260
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL - COUNT( * ) + - 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - COUNT ( * ) + - 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT + col0 DIV 33 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4238
SELECT + col0 / 33 AS col2 FROM tab1
----
1
2
2

query I rowsort
SELECT ( - 43 ) FROM tab1
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col0 * - - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT 60 + - COUNT( * ) AS col1 FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT 60 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
57

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

query II rowsort
SELECT ALL col1, + 99 + 40 + - col0 FROM tab0 AS cor0
----
1
42
21
52
81
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT MIN( ALL + - 47 ) + - 44 AS col2 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-4244
SELECT MIN ( ALL + - 47 ) + - 44 AS col2 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + MAX( ALL + 32 ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + MAX ( ALL + 32 ) AS col1 FROM tab2
----
32

query I rowsort
SELECT ALL + 84 + 5 AS col2 FROM tab2
----
89
89
89

query III rowsort
SELECT * FROM tab1 WHERE 51 <> ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT + 41 - - 1 - - 53 FROM tab1
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL MAX( + + col0 ) * + MAX( - - col1 ) AS col1 FROM tab0
----
7857

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL MAX ( + + col0 ) * + MAX ( - - col1 ) AS col1 FROM tab0
----
7857

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 98 - 88 )
----

query I rowsort
SELECT - ( - 59 ) FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT - COUNT( * ) * + + 42 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4253
SELECT - COUNT ( * ) * + + 42 FROM tab2 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL - - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE + + 20 BETWEEN NULL AND + - col1 * + col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT COUNT( * ) AS col1, + 6 - MIN( ALL col0 ) AS col1 FROM tab1
----
3
-45

skipif mysql # not compatible
query II rowsort label-4255
SELECT COUNT ( * ) AS col1, + 6 - MIN ( ALL col0 ) AS col1 FROM tab1
----
3
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + col2 BETWEEN + col2 + col2 * ( - col1 ) AND + ( + col2 ) + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT COUNT( * ) * + 47 * - MIN( + 27 ) FROM tab1
----
-3807

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT COUNT ( * ) * + 47 * - MIN ( + 27 ) FROM tab1
----
-3807

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT ALL - 78 DIV col1 DIV 89 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - 78 / col1 / 89 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col0 * col1 * + col0 * - col2 * - 55 AS col2 FROM tab2 AS cor0
----
1202231250
136513740
693862400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT - - CAST( NULL AS SIGNED ) * + col0 + - 95 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT - col0 AS col0, 59 AS col0 FROM tab1 AS cor0
----
-51
59
-85
59
-91
59

query I rowsort
SELECT + 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT 34 + ( + col1 ) AS col1 FROM tab0
----
115
35
55

query I rowsort
SELECT ALL - - col1 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT DISTINCT - + COUNT( DISTINCT + 64 ), MAX( + - col1 ) col2 FROM tab2 AS cor0
----
-1
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4267
SELECT DISTINCT - + COUNT ( DISTINCT + 64 ), MAX ( + - col1 ) col2 FROM tab2 AS cor0
----
-1
-51

query I rowsort
SELECT ALL - col1 * - - col1 - + col2 AS col1 FROM tab2 cor0
----
-2624
-4547
-5969

query I rowsort
SELECT - col0 * + + col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + 74 * col2 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4271
SELECT COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT - col0 * - 61 * - - CAST( + 84 AS SIGNED ) AS col2 FROM tab2
----
235704
327936
384300

skipif mysql # not compatible
query I rowsort label-4273
SELECT - col0 * - 61 * - - CAST ( + 84 AS INTEGER ) AS col2 FROM tab2
----
235704
327936
384300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT ALL + 97 * CAST( + 21 AS SIGNED ) + - col0 FROM tab0 WHERE + 98 / - col0 = col2
----

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + 97 * CAST ( + 21 AS INTEGER ) + - col0 FROM tab0 WHERE + 98 / - col0 = col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT ALL + SUM( - col2 ) + MAX( ALL - - col1 ) + 17 * MAX( ALL + col1 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-534

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + SUM ( - col2 ) + MAX ( ALL - - col1 ) + 17 * MAX ( ALL + col1 ) / - COUNT ( * ) AS col2 FROM tab0
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT 93 * + COUNT( - 2 ) - + - 47 AS col0 FROM tab2 AS cor0
----
326

skipif mysql # not compatible
query I rowsort label-4276
SELECT 93 * + COUNT ( - 2 ) - + - 47 AS col0 FROM tab2 AS cor0
----
326

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

query I rowsort
SELECT ALL + - col1 * + + 0 + - col0 FROM tab1 AS cor0 WHERE + 13 >= - col0 * + 99 * - col1
----

query I rowsort
SELECT DISTINCT - col1 + 36 AS col1 FROM tab1 AS cor0
----
-11
22
31

query I rowsort
SELECT ALL - + col1 * - - 20 - col0 + + 4 FROM tab0 AS cor0
----
-113
-1631
-503

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + col0 >= - 51
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 + + col1 + + 97 - + - 60 ) <= 7
----

query II rowsort
SELECT DISTINCT 73 * - col2 AS col0, 75 AS col2 FROM tab0
----
-3431
75
-7227
75
-730
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL ( + - MAX( + col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL ( + - MAX ( + col1 ) ) FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4286
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + CAST( + col0 AS SIGNED ) NOT BETWEEN + - col2 * + 99 AND + 29 * - + col1 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-4286
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + CAST ( + col0 AS INTEGER ) NOT BETWEEN + - col2 * + 99 AND + 29 * - + col1 )
----
97
1
99

query II rowsort
SELECT ALL - ( + col2 ), + col0 + col2 AS col2 FROM tab0 AS cor0
----
-10
97
-47
62
-99
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) < - - 85 * - + 23
----

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < - - 85 * - + 23
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col0
----

query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT ( 64 ) * + MAX( DISTINCT + + 45 ) AS col0 FROM tab1
----
2880

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT ( 64 ) * + MAX ( DISTINCT + + 45 ) AS col0 FROM tab1
----
2880

query I rowsort
SELECT - 20 AS col2 FROM tab1 WHERE NOT + 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT ALL 73 DIV - 96 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL 73 / - 96 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT - col2 DIV - - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - col2 / - - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 col1, + col2 + - col2 + - + col0 FROM tab1
----
33
-51
33
-85
33
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4296
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) >= + + col0
----

skipif mysql # not compatible
query III rowsort label-4296
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) >= + + col0
----

query I rowsort
SELECT + - 40 AS col0 FROM tab2 WHERE ( - col1 IS NOT NULL )
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 68 FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 44 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + + col2 + + ( + 75 ) * - col0 FROM tab0 AS cor0
----
-1078
-6515
-7176

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1 * + col1 * - col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4302
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = - col0
----

skipif mysql # not compatible
query III rowsort label-4302
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = - col0
----

query II rowsort
SELECT ALL + 65 AS col0, + col2 + - col1 FROM tab0 cor0
----
65
-11
65
-34
65
98

query I rowsort
SELECT - col1 - + 18 - + 3 AS col2 FROM tab0 cor0
----
-102
-22
-42

query I rowsort
SELECT ALL + - col1 + 46 AS col1 FROM tab1 AS cor0
----
-1
32
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT + ( + CAST( NULL AS SIGNED ) ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT 23 * - col0 + + + col2 + + 18 + - ( 46 ) DIV - col2 + - + ( + 15 ) + 26 DIV - 29 * col1 col0 FROM tab2
----
-1030
-1428
-1664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4308
SELECT 23 * - col0 + + + col2 + + 18 + - ( 46 ) / - col2 + - + ( + 15 ) + 26 / - 29 * col1 col0 FROM tab2
----
-1030
-1428
-1664

query I rowsort
SELECT ( col2 ) + + 21 AS col1 FROM tab1
----
117
80
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + - col1
----

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 55 * + 43 AS col0 FROM tab1 cor0
----
2365

query II rowsort
SELECT + 27, col2 FROM tab0
----
27
10
27
47
27
99

query I rowsort
SELECT + col1 * - 29 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406

query I rowsort
SELECT ALL + - 11 AS col2 FROM tab2 cor0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - - 17 DIV - col0 + + 31 * col2 FROM tab0 cor0
----
1456
3069
310

skipif mysql # not compatible
query I rowsort label-4316
SELECT - - 17 / - col0 + + 31 * col2 FROM tab0 cor0
----
1456
3069
310

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 16 AND - col2
----

query II rowsort
SELECT DISTINCT - 88 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-88
-51
-88
-85
-88
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - 2 * + COUNT( * ) * 94 FROM tab2 AS cor0
----
-564

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 2 * + COUNT ( * ) * 94 FROM tab2 AS cor0
----
-564

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4320
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT + col1 * - 28 + - + CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 14 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4321
SELECT + col1 * - 28 + - + CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 14 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4322
SELECT COUNT( * ) * COUNT( * ) * + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT - + SUM( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT - + SUM ( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT ALL + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT + col1 * 40 AS col0 FROM tab2 AS cor0
----
2040
2680
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4326
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT col2 * + col0 + + + 97 FROM tab0
----
802
967
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - MIN( - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4328
SELECT - MIN ( - col1 ) AS col0 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - ( SUM( DISTINCT - 77 ) ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - ( SUM ( DISTINCT - 77 ) ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT - + 43 * col2 FROM tab2 AS cor0
----
-1720
-2494
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT - col2 DIV - 98 + - + 20 FROM tab0 AS cor0
----
-19
-20
-20

skipif mysql # not compatible
query I rowsort label-4331
SELECT - col2 / - 98 + - + 20 FROM tab0 AS cor0
----
-19
-20
-20

query I rowsort
SELECT - - 70 * + col2 AS col1 FROM tab2 AS cor0
----
1610
2800
4060

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

query I rowsort
SELECT + col2 + + 89 * col2 AS col0 FROM tab0
----
4230
8910
900

query I rowsort
SELECT + col1 + col1 * - 66 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - + COUNT( * ) + + 88 + COUNT( * ) AS col0 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4336
SELECT - + COUNT ( * ) + + 88 + COUNT ( * ) AS col0 FROM tab0 cor0
----
88

query I rowsort
SELECT ALL + ( - ( + + 90 ) ) * ( - + col1 ) + col0 FROM tab0 AS cor0
----
187
1977
7305

query I rowsort
SELECT ( + col2 ) + + - col1 + + - col0 * + col1 AS col1 FROM tab2 cor0
----
-2374
-4965
-5034

query I rowsort
SELECT ALL col0 + + 46 AS col1 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT ALL - col2 - - col1 * + + 39 AS col0 FROM tab1 AS cor0
----
136
1765
450

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT ALL 78 + + 67 FROM tab1 AS cor0
----
145
145
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT - col2 * - CAST( - - col0 AS SIGNED ) * + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4344
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) >= + col1
----

skipif mysql # not compatible
query III rowsort label-4344
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) >= + col1
----

query I rowsort
SELECT ALL col1 - + ( + col2 ) FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL COUNT( * ) * COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4346
SELECT ALL COUNT ( * ) * COUNT ( * ) col0 FROM tab1
----
9

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT 94 * - col2 - + 66 FROM tab1
----
-5612
-6458
-9090

query I rowsort
SELECT ALL + col2 * + ( - ( + col0 ) ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query II rowsort label-4350
SELECT 3, 66 DIV - - col0 AS col2 FROM tab1
----
3
0
3
0
3
1

skipif mysql # not compatible
query II rowsort label-4350
SELECT 3, 66 / - - col0 AS col2 FROM tab1
----
3
0
3
0
3
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 29 + - col2 - 94 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 + - + col1 * - 97 IS NOT NULL
----

query I rowsort
SELECT ALL - 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL col0 + col2 - - col1 + - col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - + col0 AND - col2
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab0 cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 27 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL MAX ( ALL col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT + MIN( 87 ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + MIN ( 87 ) AS col0 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT - 55 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - 55 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN col0 AND NULL
----

query II rowsort
SELECT ALL + col1 AS col2, 38 FROM tab1
----
14
38
47
38
5
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT - col1 DIV - col2 * + col0 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT SUM( - 68 ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-4364
SELECT SUM ( - 68 ) FROM tab1
----
-204

query I rowsort
SELECT ALL 20 + + + 46 FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( * ) + + 8 - COUNT( * ) + COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( * ) + + 8 - COUNT ( * ) + COUNT ( * ) FROM tab1
----
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - + col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 83 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
134
168
174

query I rowsort
SELECT - 38 * - col0 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT + MAX( ALL - - 27 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
27

skipif mysql # not compatible
query I rowsort label-4370
SELECT + MAX ( ALL - - 27 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - MAX( - 43 ) col0 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4371
SELECT DISTINCT - MAX ( - 43 ) col0 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT - CAST( + + ( - - 88 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4373
SELECT + 21, col0 AS col0 FROM tab1 AS cor0 WHERE - col2 + 59 * + + col1 / 71 NOT IN ( - 76, + 95 * ( - col1 ) + col1, col1 / - col2, + 62, + 9 - CAST( col1 AS SIGNED ) )
----
21
51
21
85
21
91

skipif mysql # not compatible
query II rowsort label-4373
SELECT + 21, col0 AS col0 FROM tab1 AS cor0 WHERE - col2 + 59 * + + col1 / 71 NOT IN ( - 76, + 95 * ( - col1 ) + col1, col1 / - col2, + 62, + 9 - CAST ( col1 AS INTEGER ) )
----
21
51
21
85
21
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4375
SELECT col2 * - 77 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT ALL 25 - - col0 DIV col0 DIV 66 FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL 25 - - col0 / col0 / 66 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + COUNT( * ) + + COUNT( DISTINCT - col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4377
SELECT + COUNT ( * ) + + COUNT ( DISTINCT - col2 ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4378
SELECT * FROM tab2 WHERE NOT col2 + col0 - + col0 + + ( CAST( + + col0 AS SIGNED ) ) >= col2
----

skipif mysql # not compatible
query III rowsort label-4378
SELECT * FROM tab2 WHERE NOT col2 + col0 - + col0 + + ( CAST ( + + col0 AS INTEGER ) ) >= col2
----

query I rowsort
SELECT ALL col1 * - - ( col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + 57 DIV + + COUNT( * ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 57 / + + COUNT ( * ) AS col2 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT - col1 DIV + col0 * + 46 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT - col1 / + col0 * + 46 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4382
SELECT DISTINCT * FROM tab1 WHERE - + CAST( + 13 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4382
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( + 13 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 IN ( 87, col0, + - 20 + - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + MIN( ALL + 47 ) AS col2 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + MIN ( ALL + 47 ) AS col2 FROM tab2 cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL + CAST( SUM( ALL - 71 ) AS SIGNED ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + CAST ( SUM ( ALL - 71 ) AS INTEGER ) FROM tab1 AS cor0
----
-213

query I rowsort
SELECT DISTINCT col1 + 29 AS col1 FROM tab1 AS cor0
----
34
43
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL = ( - + col1 ) )
----

query I rowsort
SELECT DISTINCT ( - col0 ) + + col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT + ( + col1 ) * + - col2 * + col0 * col2 + + + col2, col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 * - col2 IS NOT NULL )
----

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab2 WHERE - - col1 + 0 + + col0 * - ( - - 16 ) + 47 = - - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN 14 AND - + col2 * col0 * CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN 14 AND - + col2 * col0 * CAST ( NULL AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - SUM( + 4 ) + + 74 AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-4392
SELECT - SUM ( + 4 ) + + 74 AS col1 FROM tab0
----
62

query I rowsort
SELECT DISTINCT - - col0 + col1 * + - 67 + - 73 * col1 FROM tab0 WHERE NOT - ( + col0 ) + + ( + + 24 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 <= - 23 + + + col2
----
51
14
96

query I rowsort
SELECT DISTINCT ( + + ( + col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT + + SUM( CAST( + + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4396
SELECT + + SUM ( CAST ( + + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
223

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4398
SELECT MAX( ALL - CAST( + + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4398
SELECT MAX ( ALL - CAST ( + + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + 75 * + + col0 FROM tab0
----
1125
6525
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT - + COUNT( * ) + 78 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - + COUNT ( * ) + 78 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT - + col0 + + col2 - - + 59 AS col1 FROM tab0 AS cor0
----
-18
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - - 25 * COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4402
SELECT - - 25 * COUNT ( * ) FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4403
SELECT + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT 59 + + col0 AS col0 FROM tab2 AS cor0
----
105
123
134

query I rowsort
SELECT ALL col0 - 82 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-31
3
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT DISTINCT + + col2 DIV + - 94 + - 27 FROM tab1 AS cor0
----
-27
-28

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + + col2 / + - 94 + - 27 FROM tab1 AS cor0
----
-27
-28

query II rowsort
SELECT - 6 AS col2, + col1 * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 73 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL COUNT( * ) * ( + + COUNT( * ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL COUNT ( * ) * ( + + COUNT ( * ) ) AS col2 FROM tab2
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT 29 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT ALL COUNT( * ) * + 67 col1, 18 FROM tab1
----
201
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4412
SELECT ALL COUNT ( * ) * + 67 col1, 18 FROM tab1
----
201
18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4413
SELECT * FROM tab1 WHERE NOT CAST( - - 68 AS DECIMAL ) >= ( - - col0 )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-4413
SELECT * FROM tab1 WHERE NOT CAST ( - - 68 AS REAL ) >= ( - - col0 )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4414
SELECT DISTINCT + 96 DIV + 41, - 49 AS col1 FROM tab0
----
2
-49

skipif mysql # not compatible
query II rowsort label-4414
SELECT DISTINCT + 96 / + 41, - 49 AS col1 FROM tab0
----
2
-49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - - 44 NOT BETWEEN 71 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + 63 AS col1, + col2 * + 10 col0 FROM tab2 AS cor0
----
3213
230
4221
580
4851
400

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 + + col0 >= - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4418
SELECT ( + ( - - col0 ) ) DIV + ( - 64 ) AS col0, + col2 AS col0 FROM tab0
----
-1
10
-1
99
0
47

skipif mysql # not compatible
query II rowsort label-4418
SELECT ( + ( - - col0 ) ) / + ( - 64 ) AS col0, + col2 AS col0 FROM tab0
----
-1
10
-1
99
0
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT ALL + - col2 + col2 DIV 98 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + - col2 + col2 / 98 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 89 - - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + + + col0
----

query I rowsort
SELECT ALL 80 * col1 + - - 51 FROM tab1 AS cor0
----
1171
3811
451

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4423
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + ( + + ( - col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT + col1 * - 57 AS col2 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT + ( - 59 ) + - col2 * 73 AS col1 FROM tab2
----
-1738
-2979
-4293

query I rowsort
SELECT ALL + 63 + 51 FROM tab0
----
114
114
114

query III rowsort
SELECT ALL * FROM tab2 WHERE 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + 65 AS col2 FROM tab2
----
116
132
142

query I rowsort
SELECT 87 + - col1 FROM tab1
----
40
73
82

query II rowsort
SELECT ALL + col1 AS col2, - col1 - 18 FROM tab1 cor0
----
14
-32
47
-65
5
-23

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

query II rowsort
SELECT + col2 AS col1, - 17 AS col1 FROM tab1 cor0
----
59
-17
68
-17
96
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL SUM( DISTINCT col0 ) * + COUNT( * ) + + COUNT( * ) col1 FROM tab0
----
600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4435
SELECT ALL SUM ( DISTINCT col0 ) * + COUNT ( * ) + + COUNT ( * ) col1 FROM tab0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + MAX( + - 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4436
SELECT + MAX ( + - 54 ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT - CAST( - 24 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
24
24

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col2 * + col0 / + 38 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - col0 * - ( + col0 ) AS col2, - 74 FROM tab2 AS cor0
----
2116
-74
4096
-74
5625
-74

query I rowsort
SELECT DISTINCT 18 * - col1 AS col2 FROM tab1
----
-252
-846
-90

query I rowsort
SELECT DISTINCT + 68 * - col1 AS col2 FROM tab0
----
-1428
-5508
-68

query II rowsort
SELECT - 28, col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + 99 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL - SUM( + col1 ) * + - COUNT( * ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - SUM ( + col1 ) * + - COUNT ( * ) AS col1 FROM tab1
----
198

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT - 83 * COUNT( * ) - 98 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - 83 * COUNT ( * ) - 98 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4451
SELECT DISTINCT - col0 DIV + + CAST( - col0 AS SIGNED ) FROM tab0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT DISTINCT + 7 AS col1 FROM tab2 WHERE - - CAST( + + col0 AS SIGNED ) + ( 33 ) - - ( + 4 ) + 99 / col1 * - 41 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + 7 AS col1 FROM tab2 WHERE - - CAST ( + + col0 AS INTEGER ) + ( 33 ) - - ( + 4 ) + 99 / col1 * - 41 IS NOT NULL
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 8 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4454
SELECT - + col2 * + + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4454
SELECT - + col2 * + + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - + COUNT( DISTINCT col0 ) + - ( - 45 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4455
SELECT - + COUNT ( DISTINCT col0 ) + - ( - 45 ) AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL - - col2 + + + 86 FROM tab0 cor0
----
133
185
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT - col2 + + 42 DIV - col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4457
SELECT - col2 + + 42 / - col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT + + col0 + + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
14
85
97

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

query I rowsort
SELECT - 22 + col0 - - col1 FROM tab2 AS cor0
----
119
120
75

query I rowsort
SELECT ALL + ( + 3 ) * - col0 AS col1 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT + - 89 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-42
-75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4462
SELECT * FROM tab2 AS cor0 WHERE - 24 * CAST( - + col0 AS SIGNED ) * + - 70 NOT BETWEEN - col0 * - col1 + col0 AND + col1 + 59 + + - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4462
SELECT * FROM tab2 AS cor0 WHERE - 24 * CAST ( - + col0 AS INTEGER ) * + - 70 NOT BETWEEN - col0 * - col1 + col0 AND + col1 + 59 + + - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) + - - col0 * col1 FROM tab0 AS cor0
----
1262
1837
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + col1 col2, + col1 AS col0 FROM tab1 cor0
----
110
14
115
47
64
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT DISTINCT + - col1 DIV - + 17 - + + ( - 38 ) AS col2 FROM tab0 AS cor0
----
38
39
42

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + - col1 / - + 17 - + + ( - 38 ) AS col2 FROM tab0 AS cor0
----
38
39
42

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

query I rowsort
SELECT DISTINCT - + col1 + + col0 + - + col1 FROM tab1 AS cor0
----
-3
23
75

query I rowsort
SELECT DISTINCT - col2 + - - ( + 67 ) AS col1 FROM tab0
----
-32
20
57

query II rowsort
SELECT DISTINCT col0 AS col0, 30 FROM tab2
----
46
30
64
30
75
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT MIN ( + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT COUNT( ALL - - 11 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT COUNT ( ALL - - 11 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT col2 DIV + 59 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4472
SELECT col2 / + 59 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL MIN( - 80 ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL MIN ( - 80 ) FROM tab0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT 56 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4474
SELECT 56 / + col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - - 82 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 48 - col0 AS col1 FROM tab1 AS cor0
----
-133
-139
-99

query I rowsort
SELECT ALL + - 24 + - col2 AS col2 FROM tab2 AS cor0
----
-47
-64
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + ( + + col1 ) col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT 32 * 56 * - 91 * - 46 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT 32 * 56 * - 91 * - 46 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT + COUNT( * ) DIV - 74 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT + COUNT ( * ) / - 74 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - MIN( col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4481
SELECT - MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL SUM( - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL SUM ( - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT 78 * + MAX( - + col2 ) AS col0 FROM tab2
----
-1794

skipif mysql # not compatible
query I rowsort label-4485
SELECT 78 * + MAX ( - + col2 ) AS col0 FROM tab2
----
-1794

query II rowsort
SELECT ALL + col1 * + col1, col2 FROM tab0 AS cor0
----
1
99
441
10
6561
47

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * 60 IS NULL
----

query I rowsort
SELECT ALL col2 * col1 + + col1 FROM tab2 WHERE NOT - - col0 - - + col1 IS NULL
----
1224
3157
3953

query I rowsort
SELECT ALL - 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 68 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + + 43 AS col1 FROM tab2 cor0
----
101
66
83

query I rowsort
SELECT + 24 AS col2 FROM tab0 AS cor0 WHERE + col2 / 94 = + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT DISTINCT MIN( DISTINCT + col0 ) + - 12 col2, ( + + ( + - 76 ) ) FROM tab0 cor0
----
3
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4494
SELECT DISTINCT MIN ( DISTINCT + col0 ) + - 12 col2, ( + + ( + - 76 ) ) FROM tab0 cor0
----
3
-76

query II rowsort
SELECT ALL - ( - col0 ) + - + 34, ( 6 ) * 93 * + - 17 AS col2 FROM tab2 AS cor0
----
12
-9486
30
-9486
41
-9486

query I rowsort
SELECT 28 + - + 31 + - col0 FROM tab2
----
-49
-67
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT DISTINCT col0 DIV - 47 + 99 AS col2 FROM tab0
----
97
98
99

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT col0 / - 47 + 99 AS col2 FROM tab0
----
97
98
99

query I rowsort
SELECT ALL + col2 * - 15 * col0 AS col0 FROM tab1
----
-73440
-75225
-92820

onlyif mysql # aggregate syntax: 
query II rowsort label-4500
SELECT ( + + 79 ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
79
-3

skipif mysql # not compatible
query II rowsort label-4500
SELECT ( + + 79 ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
79
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT + + COUNT( * ) - + COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4501
SELECT DISTINCT + + COUNT ( * ) - + COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 74 * + - col2 + + col2 FROM tab0 AS cor0
----
-3431
-7227
-730

query I rowsort
SELECT - 67 + 92 / 77 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 - + + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - ( col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT col2 * 85 * col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 18 * - - col0 AS col1 FROM tab0
----
1566
1746
270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4508
SELECT ALL - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4508
SELECT ALL - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, col0 * 92 FROM tab2
----
51
4232
67
6900
77
5888

query II rowsort
SELECT ALL - col0 AS col1, + ( col2 ) FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT CAST( NULL AS SIGNED ) * - - col2 FROM tab0 WHERE NOT NULL < - + 9 * 55
----

skipif mysql # not compatible
query I rowsort label-4511
SELECT CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 WHERE NOT NULL < - + 9 * 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL MAX( ALL + ( - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL MAX ( ALL + ( - col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - + 13 < - + col1
----
10
47

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT - col1 * - + col2 AS col1, 89 AS col1 FROM tab0 AS cor0
----
210
89
3807
89
99
89

query II rowsort
SELECT ALL col1 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 73 + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT - 81 AS col0 FROM tab0 AS cor0 WHERE CAST( - 98 AS SIGNED ) IS NOT NULL
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4518
SELECT - 81 AS col0 FROM tab0 AS cor0 WHERE CAST ( - 98 AS INTEGER ) IS NOT NULL
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT SUM( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT SUM ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT 58 * 29 FROM tab2
----
1682

query I rowsort
SELECT + col0 + + col0 + - + col2 FROM tab2 cor0
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT COUNT( * ) + + 92 * MIN( + col2 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
2122

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT COUNT ( * ) + + 92 * MIN ( + col2 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT + - COUNT( * ) * COUNT( * ) / - COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + CAST( + - col2 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + CAST ( + - col2 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + 62 + + COUNT( * ) + + 17 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4525
SELECT + 62 + + COUNT ( * ) + + 17 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT 40 + - + 57 + - COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT 40 + - + 57 + - COUNT ( * ) FROM tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 76 + + col1 col2 FROM tab1 AS cor0 WHERE - col1 IN ( - col2, col0 + + 76, - 25 + - 4 * - col1 )
----
4489

query I rowsort
SELECT ALL + col1 - + 83 * col2 AS col2 FROM tab2
----
-1858
-3243
-4747

query I rowsort
SELECT ALL + col0 * - 38 * col1 FROM tab0
----
-3686
-46170
-69426

query I rowsort
SELECT DISTINCT col1 * + - ( + col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT 49 * COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT 49 * COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL - 51 + - 43 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 59 + + 79 FROM tab0
----
138
138
138

query I rowsort
SELECT - 31 + 92 AS col1 FROM tab0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT col2 + col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4535
SELECT col2 + col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - + 15 AS col1 FROM tab0
----
-5
32
84

query I rowsort
SELECT col0 + - 65 AS col2 FROM tab1
----
-14
20
26

query I rowsort
SELECT col0 + 72 AS col0 FROM tab0
----
159
169
87

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + 72
----

query I rowsort
SELECT ALL - 29 + col0 FROM tab2
----
17
35
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT DISTINCT 37 AS col2 FROM tab2 WHERE col1 * CAST( NULL AS SIGNED ) IN ( ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT 37 AS col2 FROM tab2 WHERE col1 * CAST ( NULL AS INTEGER ) IN ( ( col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4543
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) <= - CAST( NULL AS DECIMAL ) * - col1
----

skipif mysql # not compatible
query III rowsort label-4543
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) <= - CAST ( NULL AS REAL ) * - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL 89 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN 27 * + 9 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL 89 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN 27 * + 9 AND NULL
----

query I rowsort
SELECT ALL 83 * - 18 AS col0 FROM tab1
----
-1494
-1494
-1494

query I rowsort
SELECT col2 + 61 AS col0 FROM tab0
----
108
160
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1 / + 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 67 * + 13 ) = ( + col1 * + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 51 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT ALL 68 + col1 FROM tab0 cor0
----
149
69
89

query I rowsort
SELECT - col2 * ( + col1 ) + + ( - col1 ) FROM tab0 AS cor0
----
-100
-231
-3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + 67 col1 FROM tab2
----
124
124
124

query I rowsort
SELECT 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( 96 ) IS NOT NULL
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN 34 AND col2 / 1
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL NOT BETWEEN 8 + + 46 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4558
SELECT ALL * FROM tab2 WHERE NULL < + CAST( - col1 AS DECIMAL ) * 23
----

skipif mysql # not compatible
query III rowsort label-4558
SELECT ALL * FROM tab2 WHERE NULL < + CAST ( - col1 AS REAL ) * 23
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT 58 * + col1 FROM tab1 AS cor0
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT + - COUNT( * ) * 90 AS col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + - COUNT ( * ) * 90 AS col0 FROM tab2 AS cor0
----
-270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 4 ) * 99 + + ( col0 ) NOT BETWEEN col1 AND ( col2 * - col2 + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT - - 21 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - - 21 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - - 63 * col0 + + col1 FROM tab0 AS cor0
----
1026
5502
6112

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 91 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - 74 - col1 * 44 AS col0 FROM tab1 AS cor0
----
-2142
-294
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT - 48 * + COUNT( * ) + ( + 71 ) AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - 48 * + COUNT ( * ) + ( + 71 ) AS col0 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT + + col2 + 18 * + 17 AS col1 FROM tab1 cor0
----
365
374
402

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - COUNT( * ) + COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4572
SELECT - COUNT ( * ) + COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT col1 + + + 17 + + 38 FROM tab0
----
136
56
76

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4575
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - 79 <> CAST( NULL AS DECIMAL ) + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - 79 <> CAST ( NULL AS REAL ) + col0 * col0
----
0

query I rowsort
SELECT ALL + 79 * + + col2 * col1 AS col2 FROM tab0
----
16590
300753
7821

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 * + col2 + col2 > 16 - ( 40 + + col2 / + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT - 62 * - 19 / ( CAST( NULL AS SIGNED ) * CAST( MIN( DISTINCT ( + col1 ) ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT - 62 * - 19 / ( CAST ( NULL AS INTEGER ) * CAST ( MIN ( DISTINCT ( + col1 ) ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * 32 AS col0 FROM tab2 WHERE ( ( - col2 ) IS NOT NULL )
----
1280
1856
736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - - col2 + + 15 col1 FROM tab0
----
720
885
9618

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT - CAST( - MAX( DISTINCT 43 ) AS SIGNED ) FROM tab1, tab2 AS cor0
----
43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT DISTINCT 33 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-4583
SELECT DISTINCT 33 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
33
3

query II rowsort
SELECT + - col1, - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT ALL - col0 AS col0, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT - col2 * - 20 FROM tab1 AS cor0
----
1180
1360
1920

query I rowsort
SELECT ALL - - 42 * + - 69 AS col0 FROM tab1 AS cor0
----
-2898
-2898
-2898

query I rowsort
SELECT - + ( + ( 66 ) ) * - 98 FROM tab1 AS cor0
----
6468
6468
6468

query I rowsort
SELECT - col1 * col0 * - - col2 + 38 * + col1 FROM tab2 AS cor0
----
-194194
-288904
-52020

query I rowsort
SELECT + 3 + - col2 FROM tab0 AS cor0
----
-44
-7
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT + - 1 + + CAST( NULL AS SIGNED ) * + col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 8 + + 94 FROM tab0 AS cor0
----
102
102
102

query I rowsort
SELECT - ( col1 ) + 39 AS col1 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - MIN( ALL - 49 ) + MAX( - ( + 47 ) ) col0 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT - MIN ( ALL - 49 ) + MAX ( - ( + 47 ) ) col0 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT ( MAX( + ( ( + ( + col2 ) ) ) ) ) FROM tab0 WHERE - ( - col1 ) + col2 BETWEEN - col2 / + 90 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT ( MAX ( + ( ( + ( + col2 ) ) ) ) ) FROM tab0 WHERE - ( - col1 ) + col2 BETWEEN - col2 / + 90 AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4596
SELECT ALL + MIN( col2 ) DIV + 85 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + MIN ( col2 ) / + 85 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + 34 * + - 3 AND ( 23 / col1 + - 40 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT - + col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - 84 + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> 98 + - + 58
----
-84

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 84 + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> 98 + - + 58
----
-84

query I rowsort
SELECT + col0 + + 85 FROM tab1 AS cor0 WHERE col1 * ( + 34 ) * + col1 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT - 68 - + col0 AS col1 FROM tab1
----
-119
-153
-159

query I rowsort
SELECT 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - col0 DIV col1 + - col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-4605
SELECT - col0 / col1 + - col1 FROM tab2
----
-51
-68
-77

query II rowsort
SELECT ALL 87 AS col0, - col1 FROM tab0
----
87
-1
87
-21
87
-81

query I rowsort
SELECT col2 + + 69 * col0 FROM tab1 AS cor0
----
3615
5924
6347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT - MAX( DISTINCT CAST( - col2 AS SIGNED ) ) FROM tab1 cor0 WHERE ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - MAX ( DISTINCT CAST ( - col2 AS INTEGER ) ) FROM tab1 cor0 WHERE ( NULL ) < NULL
----
NULL

query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab0 AS cor0 WHERE 93 * + 1 > ( + 14 )
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - - COUNT( ALL - + col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4610
SELECT - - COUNT ( ALL - + col0 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 * - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL + COUNT( * ) - + 19 AS col0 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + COUNT ( * ) - + 19 AS col0 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE - col0 BETWEEN col0 AND col1 * col0
----

query I rowsort
SELECT ALL + col2 * + col2 * + 72 + + col2 FROM tab2 AS cor0
----
115240
242266
38111

query I rowsort
SELECT DISTINCT + 87 * 5 FROM tab1 AS cor0
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4616
SELECT DISTINCT * FROM tab2 WHERE ( NULL NOT BETWEEN ( NULL ) AND + CAST( - + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4616
SELECT DISTINCT * FROM tab2 WHERE ( NULL NOT BETWEEN ( NULL ) AND + CAST ( - + col1 AS INTEGER ) )
----

query I rowsort
SELECT + ( - 87 ) - + col1 AS col2 FROM tab1
----
-101
-134
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4618
SELECT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT * FROM tab0 WHERE + CAST ( NULL AS REAL ) - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT ALL 41 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-4620
SELECT ALL 41 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4621
SELECT ALL * FROM tab2 cor0 WHERE - 11 NOT IN ( + CAST( - 13 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4621
SELECT ALL * FROM tab2 cor0 WHERE - 11 NOT IN ( + CAST ( - 13 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT col1 * + - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT DISTINCT + 64 AS col2, - COUNT( * ) * + 50 + - + 0 AS col2 FROM tab1 cor0
----
64
-150

skipif mysql # not compatible
query II rowsort label-4623
SELECT DISTINCT + 64 AS col2, - COUNT ( * ) * + 50 + - + 0 AS col2 FROM tab1 cor0
----
64
-150

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND ( + 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT + 78 DIV - 6 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + 78 / - 6 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL + 73 * + col2 - + + col1 FROM tab2 AS cor0
----
1628
2843
4167

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 19 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + + 74 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 98 col2 FROM tab2 cor0
----
-4998
-6566
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL + col1 DIV + - col1 FROM tab1 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 67 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT col0 * col0 DIV 26 FROM tab1
----
100
277
318

skipif mysql # not compatible
query I rowsort label-4633
SELECT col0 * col0 / 26 FROM tab1
----
100
277
318

query I rowsort
SELECT + + 36 / - col1 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT MIN( + 22 ) / - 19 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT MIN ( + 22 ) / - 19 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 3 col2 FROM tab0
----
12
84
94

query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 AND - + 88
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT ALL - - 33 DIV + col2 FROM tab2 AS cor0
----
0
0
1

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

query II rowsort
SELECT DISTINCT - - col0 AS col0, col0 + - col2 AS col0 FROM tab1 AS cor0
----
51
-45
85
26
91
23

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT + + MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + + MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT + + COUNT( * ) - - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + + COUNT ( * ) - - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT + - col2 + 35 AS col0 FROM tab1 AS cor0
----
-24
-33
-61

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT - 55 AS col2, - COUNT( * ) FROM tab1
----
-55
-3

skipif mysql # not compatible
query II rowsort label-4647
SELECT - 55 AS col2, - COUNT ( * ) FROM tab1
----
-55
-3

query I rowsort
SELECT DISTINCT + col1 * - col2 * + - 66 AS col1 FROM tab2
----
203280
256476
77418

query II rowsort
SELECT DISTINCT + 84, - col2 AS col2 FROM tab1
----
84
-59
84
-68
84
-96

query II rowsort
SELECT ALL col0, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL MAX( ALL ( - + col1 ) ) col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4652
SELECT ALL MAX ( ALL ( - + col1 ) ) col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL < ( NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL < ( NULL ) ) )
----
0

query II rowsort
SELECT DISTINCT - 8, - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-8
-138
-8
-65
-8
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + COUNT( 8 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + COUNT ( 8 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( + + 56 ) * 65 * + + 69 AS col2 FROM tab1
----
-251160
-251160
-251160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * + col1 * - col0 col1 FROM tab0
----
1358
17010
25578

query I rowsort
SELECT ALL 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL - CAST( - + MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - CAST ( - + MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - - CAST( + - col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col2 * + 80 + + - col1 FROM tab2 AS cor0
----
-1891
-3277
-4707

query I rowsort
SELECT ALL - - col2 + + 88 * + 8 FROM tab2 cor0
----
727
744
762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col1 col2 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * col0 + + col1 + 88 + + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 62 + - 39 - col0 FROM tab1 AS cor0
----
-28
-62
-68

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4668
SELECT DISTINCT + - CAST( + 28 AS SIGNED ) AS col2, col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4668
SELECT DISTINCT + - CAST ( + 28 AS INTEGER ) AS col2, col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 77 + MAX( - 38 ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4669
SELECT 77 + MAX ( - 38 ) AS col2 FROM tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 69 col1, col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL - COUNT( * ) + - 18 FROM tab1, tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - COUNT ( * ) + - 18 FROM tab1, tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4672
SELECT CAST( NULL AS DECIMAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT CAST ( NULL AS REAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT DISTINCT + 13 - - MAX( DISTINCT + 34 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + 13 - - MAX ( DISTINCT + 34 ) FROM tab2 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4674
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - CAST( + 26 AS SIGNED ) ) + + col1
----

skipif mysql # not compatible
query III rowsort label-4674
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - CAST ( + 26 AS INTEGER ) ) + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT DISTINCT MAX( ALL + CAST( + + col0 AS SIGNED ) ) * 85 AS col1 FROM tab2
----
6375

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT MAX ( ALL + CAST ( + + col0 AS INTEGER ) ) * 85 AS col1 FROM tab2
----
6375

query I rowsort
SELECT - + col0 * col1 * + 17 AS col1 FROM tab2 AS cor0
----
-39882
-83776
-85425

query II rowsort
SELECT - - col2, col1 + + col2 + - ( + col1 ) + + col0 / - + ( + + 75 ) * col0 FROM tab0 AS cor0 WHERE NOT ( NULL = col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * - col1 col0 FROM tab1 AS cor0
----
-1120
-3760
-400

query I rowsort
SELECT 51 * + col1 - + col2 AS col1 FROM tab0 AS cor0
----
-48
1061
4084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT + + CAST( ( - + col0 ) AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + CAST ( ( - + col0 ) AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL - SUM( DISTINCT 53 ) AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - SUM ( DISTINCT 53 ) AS col0 FROM tab0 AS cor0
----
-53

query II rowsort
SELECT DISTINCT + col0, + ( - 40 ) AS col1 FROM tab1 AS cor0
----
51
-40
85
-40
91
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT + col1 DIV + 99 + + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT + col1 / + 99 + + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col2 * col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - SUM( ALL col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - SUM ( ALL col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL col0 * - 78 AS col1 FROM tab2 WHERE NOT - 73 <> + + col1 * + col0 + - + col1 / col0 OR NOT NULL IS NOT NULL
----
-3588
-4992
-5850

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND + + 90
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + COUNT( * ) * ( + 26 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-4689
SELECT + COUNT ( * ) * ( + 26 ) AS col2 FROM tab2
----
78

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

query I rowsort
SELECT ALL + 58 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + - 69 IS NOT NULL
----

query II rowsort
SELECT col0, - col0 * - col0 FROM tab0
----
15
225
87
7569
97
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4695
SELECT DISTINCT + - col2 DIV - col0 + - 97 * + + col2 + 15 AS col1, + col1 DIV + col2 FROM tab0 cor0
----
-4541
1
-955
2
-9587
0

skipif mysql # not compatible
query II rowsort label-4695
SELECT DISTINCT + - col2 / - col0 + - 97 * + + col2 + 15 AS col1, + col1 / + col2 FROM tab0 cor0
----
-4541
1
-955
2
-9587
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> + + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + COUNT( + + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4698
SELECT + COUNT ( + + col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT - col1 + - + col0 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT 55 + - col1 * 32 FROM tab1
----
-105
-1449
-393

query II rowsort
SELECT DISTINCT col2, col0 + - 3 AS col0 FROM tab1
----
59
82
68
88
96
48

query I rowsort
SELECT + col0 + - col1 + col0 FROM tab0
----
-51
153
193

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT 1 * - - 87 DIV - 29 + + 95 AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT 1 * - - 87 / - 29 + + 95 AS col0 FROM tab0
----
92

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

query I rowsort
SELECT col1 + + 22 * col1 AS col1 FROM tab2
----
1173
1541
1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL CAST( NULL AS SIGNED ) * col2 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 60 + - ( + 63 ) FROM tab0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( * ) + + ( 42 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4709
SELECT - COUNT ( * ) + + ( 42 ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL - 88 + - + COUNT( * ) col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4710
SELECT ALL - 88 + - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - 75 ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 BETWEEN + - col1 AND + 17 + + col1
----
15
81
47

query I rowsort
SELECT DISTINCT + col2 + - 9 FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
31
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4714
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + - CAST( - 44 AS SIGNED ) ) * col1 * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4714
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + - CAST ( - 44 AS INTEGER ) ) * col1 * + col1 IS NULL
----

query I rowsort
SELECT - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4716
SELECT CAST( col2 AS SIGNED ) - col2 + - + 17 + col2, - col0 DIV - 21 AS col2 FROM tab0
----
-7
4
30
0
82
4

skipif mysql # not compatible
query II rowsort label-4716
SELECT CAST ( col2 AS INTEGER ) - col2 + - + 17 + col2, - col0 / - 21 AS col2 FROM tab0
----
-7
4
30
0
82
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - COUNT( * ) * + MAX( ALL ( col1 ) ) col0 FROM tab2 WHERE NOT - - col1 >= 61 * + - 8 + + + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4717
SELECT ALL - COUNT ( * ) * + MAX ( ALL ( col1 ) ) col0 FROM tab2 WHERE NOT - - col1 >= 61 * + - 8 + + + col1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 26 + + + 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT ALL 76 DIV 52 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + ( - - COUNT( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4723
SELECT + ( - - COUNT ( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col2, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT + ( - col2 ) * - - 81 * col1 - - 22 + - 22 DIV col1 FROM tab2 WHERE NOT - + 28 * - + col1 * - col0 BETWEEN - + 17 AND 54
----
-249458
-314744
-94991

skipif mysql # not compatible
query I rowsort label-4726
SELECT + ( - col2 ) * - - 81 * col1 - - 22 + - 22 / col1 FROM tab2 WHERE NOT - + 28 * - + col1 * - col0 BETWEEN - + 17 AND 54
----
-249458
-314744
-94991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL 26 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT + 98 DIV 31 AS col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 98 / 31 AS col2 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 + + col0, + col1 col0 FROM tab2
----
65
51
83
77
94
67

query I rowsort
SELECT DISTINCT - 31 + + + 26 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL + MAX( - col0 ) + 34 * + - 61 * + + 24 AS col0 FROM tab1 AS cor0
----
-49827

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + MAX ( - col0 ) + 34 * + - 61 * + + 24 AS col0 FROM tab1 AS cor0
----
-49827

query I rowsort
SELECT - + col0 + - 11 AS col2 FROM tab0 AS cor0
----
-108
-26
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT MIN( DISTINCT - + col2 ) + + 3 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT MIN ( DISTINCT - + col2 ) + + 3 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - + col1 * + col0 + - 14 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4736
SELECT - + col1 * + col0 + - 14 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 + col0 * - col2 + 63 * - col1 FROM tab2 AS cor0
----
-4248
-7371
-8513

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col0 >= 80 * + col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4739
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT DISTINCT - col2 * + 82 + - + ( + col0 ) FROM tab1 AS cor0
----
-4923
-5667
-7923

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 WHERE - 74 + - - 60 = - col1
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 53 col2 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT SUM( DISTINCT + + col1 ) * + ( + + COUNT( * ) ) + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
586

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT SUM ( DISTINCT + + col1 ) * + ( + + COUNT ( * ) ) + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
586

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT DISTINCT col1 + - - col2 + - col1 DIV + 85 * 58 + 36 + + + col1 AS col0 FROM tab0
----
137
245
88

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT col1 + - - col2 + - col1 / + 85 * 58 + 36 + + + col1 AS col0 FROM tab0
----
137
245
88

query I rowsort
SELECT 46 * - 48 - + 72 * - - 83 * col1 FROM tab2
----
-306984
-402600
-462360

query I rowsort
SELECT + col1 - + - 31 FROM tab1
----
36
45
78

query I rowsort
SELECT DISTINCT + 78 * col2 + 7 FROM tab2 AS cor0
----
1801
3127
4531

query I rowsort
SELECT DISTINCT + - col2 * col0 - ( - + col2 ) + 17 * + 43 + - - col0 - col2 - 72 FROM tab0 AS cor0
----
-124
-31
-8847

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL - ( + MAX( + col1 ) ) * - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - ( + MAX ( + col1 ) ) * - COUNT ( * ) FROM tab0
----
243

query I rowsort
SELECT DISTINCT 16 * - + 75 FROM tab0
----
-1200

query I rowsort
SELECT - 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 25 * 66 AS col0 FROM tab1
----
1650
1650
1650

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

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 20 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) * - + 31 + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - + 31 + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT - col2 AS col1, - 25 FROM tab0 cor0
----
-10
-25
-47
-25
-99
-25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) < + ( - - 24 ) * 58
----

skipif mysql # not compatible
query I rowsort label-4760
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) < + ( - - 24 ) * 58
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + + 1 FROM tab2 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + ( - + 99 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 + col1 + - + col1 * + 88 FROM tab0 AS cor0 WHERE NOT - ( col1 ) * col2 BETWEEN 58 AND NULL
----
-1817
-7000
12

query II rowsort
SELECT + col1, ( - col2 ) + + 64 FROM tab0 AS cor0
----
1
-35
21
54
81
17

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + col0 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN col2 AND + col1 * - col1 + - col1 * 89 * - + col2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - 98 * + - 93 AS col2 FROM tab2
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4770
SELECT COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT 4 * MAX( DISTINCT - col1 ) * - - COUNT( * ) * - COUNT( - ( - CAST( - ( col0 ) AS SIGNED ) ) ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-4771
SELECT 4 * MAX ( DISTINCT - col1 ) * - - COUNT ( * ) * - COUNT ( - ( - CAST ( - ( col0 ) AS INTEGER ) ) ) FROM tab0
----
36

query I rowsort
SELECT 19 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - 60 * col0 - col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 33 * - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL - 39 + - + COUNT( * ) AS col2 FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - 39 + - + COUNT ( * ) AS col2 FROM tab2 cor0
----
-42

query I rowsort
SELECT DISTINCT + + col0 + + 12 + + - col2 AS col0 FROM tab2 AS cor0
----
29
35
36

query I rowsort
SELECT - 2 - + col2 AS col1 FROM tab0 cor0
----
-101
-12
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT - col0 * - + col0 + col0 * - - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 + - + 80 FROM tab0 cor0
----
-65
17
7

query I rowsort
SELECT - col0 + + ( - + 24 ) FROM tab0
----
-111
-121
-39

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

query I rowsort
SELECT + 89 + - 64 + + col1 FROM tab0
----
106
26
46

query I rowsort
SELECT col1 + + + 62 FROM tab1
----
109
67
76

query I rowsort
SELECT - 15 * col0 + col2 * + col2 FROM tab0
----
-1205
1984
8346

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - 6 ) BETWEEN - 21 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL - SUM( DISTINCT - 30 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL - SUM ( DISTINCT - 30 ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT + + CAST( - COUNT( ALL + ( + col0 ) ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4788
SELECT + + CAST ( - COUNT ( ALL + ( + col0 ) ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT + MIN( DISTINCT col0 ) * + 43 * MAX( + - col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-9678

skipif mysql # not compatible
query I rowsort label-4789
SELECT + MIN ( DISTINCT col0 ) * + 43 * MAX ( + - col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-9678

query II rowsort
SELECT DISTINCT - 86, col1 AS col0 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

query II rowsort
SELECT col1, + col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + col0 * + - col0 * + - ( 64 ) AS col2 FROM tab2 AS cor0
----
135424
262144
360000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4793
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - col0 AND - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4793
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - col0 AND - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT SUM( 65 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT SUM ( 65 ) FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4796
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 29 + - COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT DISTINCT CAST ( NULL AS REAL ) + - 29 + - COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL + MAX( col1 ) + - + ( - 12 ) AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + MAX ( col1 ) + - + ( - 12 ) AS col1 FROM tab0
----
93

query I rowsort
SELECT DISTINCT - - 70 + - - ( + col1 ) FROM tab2 AS cor0
----
121
137
147

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

query II rowsort
SELECT 55 * + col2, ( + col0 ) FROM tab2 AS cor0
----
1265
46
2200
64
3190
75

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ( - - 69 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL 86 FROM tab2 WHERE NULL > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 86 FROM tab2 WHERE NULL > + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - 9 + COUNT( * ) col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4807
SELECT - 9 + COUNT ( * ) col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + - col0 + - + col0 - + + col1 + + 5 AS col1 FROM tab0 cor0
----
-106
-190
-190

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

query I rowsort
SELECT 11 + col1 AS col1 FROM tab2 AS cor0
----
62
78
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + AVG ( DISTINCT - + col0 ) * - MAX( DISTINCT - 3 ) - + 7 FROM tab2 AS cor0 WHERE 36 IN ( + ( - col0 ), col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT + AVG ( DISTINCT - + col0 ) * - MAX ( DISTINCT - 3 ) - + 7 FROM tab2 AS cor0 WHERE 36 IN ( + ( - col0 ), col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 97 * + col0 - - col1 FROM tab2 AS cor0
----
227613
478093
487492

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 32 > NULL
----

query II rowsort
SELECT col0 AS col0, ( 0 ) * - col2 + + col1 * col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 92 AND - 65
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 56 / + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 - 10 * - + col0 * - 26 FROM tab0
----
NULL

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

query II rowsort
SELECT DISTINCT - col1, - 44 AS col1 FROM tab1
----
-14
-44
-47
-44
-5
-44

query II rowsort
SELECT ALL - 5, col1 AS col2 FROM tab0
----
-5
1
-5
21
-5
81

query I rowsort
SELECT + col2 * col1 + 20 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( 26 ), + col0 FROM tab2 AS cor0
----
26
46
26
64
26
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + - SUM( + + col0 ) * - SUM( col1 ) AS col1 FROM tab1 cor0
----
14982

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + - SUM ( + + col0 ) * - SUM ( col1 ) AS col1 FROM tab1 cor0
----
14982

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - ( 99 ) * + - MIN( col1 ) FROM tab1 cor0
----
495

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - ( 99 ) * + - MIN ( col1 ) FROM tab1 cor0
----
495

query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 - + + ( + col1 ) < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT ALL + ( - + 90 ) AS col2, + col2 * + 48 FROM tab2 AS cor0
----
-90
1104
-90
1920
-90
2784

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT + 15 col0 FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) BETWEEN col2 AND - col2 * col2 + - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT + 15 col0 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND - col2 * col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + MAX( ALL + ( - col1 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4830
SELECT + MAX ( ALL + ( - col1 ) ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - MIN( DISTINCT 69 ) AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4831
SELECT - MIN ( DISTINCT 69 ) AS col1 FROM tab0
----
-69

query I rowsort
SELECT DISTINCT - 15 + + col1 + - 89 AS col0 FROM tab2
----
-27
-37
-53

query I rowsort
SELECT 94 + - 76 FROM tab2
----
18
18
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + col0, - col1 + 26 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT MAX( ALL - + CAST( NULL AS SIGNED ) ) + + 32 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + + 32 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) * + col0 AS col2 FROM tab0 cor0
----
-1168
-1817
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 99 + - col0 * + 39 col2, - col2 * col2 + + 67 - - 69 FROM tab1 AS cor0
----
-1890
-9080
-3216
-3345
-3450
-4488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + - - col2 * + 92, - col2 col0 FROM tab2 AS cor0
----
2167
-23
3757
-40
5403
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - MIN( DISTINCT ( - - col2 ) ) * - + 89 FROM tab2 AS cor0
----
2047

skipif mysql # not compatible
query I rowsort label-4839
SELECT - MIN ( DISTINCT ( - - col2 ) ) * - + 89 FROM tab2 AS cor0
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT COUNT( ALL + + 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT COUNT ( ALL + + 57 ) FROM tab2
----
3

query I rowsort
SELECT - - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT - + 79 + + 7 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-72

query I rowsort
SELECT DISTINCT + + col2 + - 31 FROM tab0 AS cor0
----
-21
16
68

query I rowsort
SELECT ALL + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL + + CAST( - AVG ( ALL 51 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + + CAST ( - AVG ( ALL 51 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - + 11 + + 62 AS col2 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - SUM( col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4847
SELECT - SUM ( col1 ) FROM tab1
----
-66

query I rowsort
SELECT col0 * col2 * 87 * - 80 AS col0 FROM tab2
----
-17817600
-30276000
-7363680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 - - col1 + + 44 * - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 38 >= + + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - + MAX( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4851
SELECT - + MAX ( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----

query I rowsort
SELECT col1 + col2 + + col2 * 24 AS col2 FROM tab1 AS cor0
----
1480
1747
2414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT + + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 + + ( + col1 ), 3 col0 FROM tab1 AS cor0
----
109
3
67
3
76
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 15, col2 * + + col0 AS col1 FROM tab1 AS cor0
----
15
4896
15
5015
15
6188

query II rowsort
SELECT DISTINCT - col2, + col0 + 87 AS col2 FROM tab1 AS cor0
----
-59
172
-68
178
-96
138

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 41 + - 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT + 60 * - COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + 60 * - COUNT ( * ) FROM tab0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT 81 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4864
SELECT 81 / + col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL COUNT( * ) + - COUNT( + col2 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT ALL COUNT ( * ) + - COUNT ( + col2 ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 - - col1 FROM tab2 cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 26 IS NOT NULL
----

query II rowsort
SELECT + 94 * + + 2 + - col1 - - col2 AS col1, + col2 + - col2 FROM tab1 AS cor0
----
209
0
242
0
270
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT ALL + - MAX( - + col0 ) * 90 + - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
4137
3

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL + - MAX ( - + col0 ) * 90 + - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4137
3

query I rowsort
SELECT + col2 + + 53 FROM tab1
----
112
121
149

query I rowsort
SELECT col2 * + 97 FROM tab1 AS cor0
----
5723
6596
9312

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + - col0 AS col1 FROM tab1 AS cor0
----
3396
4533
9165

query I rowsort
SELECT DISTINCT + + ( - - 62 ) - + 22 FROM tab1 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, + 90 - + + 5 FROM tab0 AS cor0
----
-1
85
-21
85
-81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - COUNT( DISTINCT - 6 ) AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4876
SELECT - COUNT ( DISTINCT - 6 ) AS col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - 24 * + - ( + col1 ) FROM tab2 cor0
----
1224
1608
1848

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= + + col2
----
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

query II rowsort
SELECT 86, + col0 AS col2 FROM tab0
----
86
15
86
87
86
97

query I rowsort
SELECT col1 * + col0 * - - col1 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT ALL - CAST( NULL AS SIGNED ) * 76 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 * + - col0 AS col1 FROM tab0
----
1215
1827
97

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

query I rowsort
SELECT ALL + - col2 + - + col0 FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL - - MAX( + + col1 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4887
SELECT ALL - - MAX ( + + col1 ) col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= + 51
----
15
81
47

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - 8 / + col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT 45 + ( + 87 ) - - ( - 16 ) AS col2 FROM tab2
----
116
116
116

query I rowsort
SELECT ALL + 89 + - 36 FROM tab0 WHERE ( 19 * + col1 ) IS NOT NULL
----
53
53
53

query I rowsort
SELECT - col1 + ( 46 ) FROM tab2
----
-21
-31
-5

query I rowsort
SELECT 53 + + col0 FROM tab1
----
104
138
144

query I rowsort
SELECT ALL + col1 + + 63 FROM tab2
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT 72 + - CAST( - 5 AS SIGNED ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT 72 + - CAST ( - 5 AS INTEGER ) AS col0 FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT - col0 * - ( CAST( col1 AS SIGNED ) ) - + col2 - - + col1 FROM tab0 AS cor0
----
-1
1249
1838

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

query I rowsort
SELECT - + 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL MIN( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL MIN ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4903
SELECT DISTINCT + CAST( - col2 AS SIGNED ) col0, + 0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4903
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) col0, + 0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT + CAST( NULL AS SIGNED ) / - COUNT( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col1 col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4906
SELECT + 3 * + COUNT( * ) DIV + 89 * + COUNT( * ) * + SUM( DISTINCT + ( + - col0 ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 3 * + COUNT ( * ) / + 89 * + COUNT ( * ) * + SUM ( DISTINCT + ( + - col0 ) ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 AS col0, - 17 * + col2 * + - ( - col1 ) AS col0 FROM tab1
----
14
-22848
47
-54332
5
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT - + COUNT( * ) col1 FROM tab0 WHERE NOT - + 57 BETWEEN + + col0 * - - col2 AND NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4909
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab0 WHERE NOT - + 57 BETWEEN + + col0 * - - col2 AND NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT SUM( + col0 ) col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT DISTINCT SUM ( + col0 ) col1 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL - - COUNT( * ) * - COUNT( * ) DIV COUNT( + + col2 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) / COUNT ( + + col2 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT + CAST( - 49 AS SIGNED ) FROM tab0 AS cor0
----
-49
-49
-49

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

query I rowsort
SELECT - 54 * + col0 FROM tab0 AS cor0
----
-4698
-5238
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * col0 col1 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4915
SELECT 4, - CAST( NULL AS SIGNED ) * - col0 col2 FROM tab2
----
4
NULL
4
NULL
4
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4915
SELECT 4, - CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab2
----
4
NULL
4
NULL
4
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT - 15 * + col0 + + col0 * col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT ALL - - 15 + - 10 DIV ( 95 ) FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - - 15 + - 10 / ( 95 ) FROM tab0 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - + 52 + + SUM( - 80 ) FROM tab0 cor0
----
-292

skipif mysql # not compatible
query I rowsort label-4919
SELECT - + 52 + + SUM ( - 80 ) FROM tab0 cor0
----
-292

query I rowsort
SELECT DISTINCT col0 * - col1 + + + 0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + col0 * + col1 + + - col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT + ( + 38 ) + + 69 - - col2 * + col2 * - 41 * - col1 AS col1 FROM tab2 AS cor0
----
1106246
5051307
9241015

query I rowsort
SELECT + + 98 + - 58 AS col0 FROM tab1 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + MIN( ALL ( + - 83 ) ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4924
SELECT + MIN ( ALL ( + - 83 ) ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT - + 98 / + col0 FROM tab0 AS cor0 WHERE 87 IN ( + 92, - ( - col1 ) * col2 + - col0 * + - col0 * - + ( - + col1 ), + 24, - col2 + + - 18, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - COUNT( DISTINCT - col1 ) col0 FROM tab2 WHERE ( NOT NULL < + col1 * + - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4926
SELECT - COUNT ( DISTINCT - col1 ) col0 FROM tab2 WHERE ( NOT NULL < + col1 * + - col2 )
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL - CAST( NULL AS SIGNED ) * SUM( - 95 ) * 67 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - CAST ( NULL AS INTEGER ) * SUM ( - 95 ) * 67 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT ALL - col0 + - col2 AS col2, + ( 11 ) + + - col1 FROM tab1 WHERE NOT 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT 57 * + 94 - - COUNT( * ) FROM tab1 AS cor0
----
5361

skipif mysql # not compatible
query I rowsort label-4931
SELECT 57 * + 94 - - COUNT ( * ) FROM tab1 AS cor0
----
5361

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( + 15 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4935
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( ( + 50 ) ) > ( - 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT 44 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
2
44

skipif mysql # not compatible
query I rowsort label-4937
SELECT 44 / + col1 AS col2 FROM tab0 AS cor0
----
0
2
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / - 38 - + col2 NOT BETWEEN NULL AND - col0 + + - col1 * - col2
----

query I rowsort
SELECT ALL col2 * - 47 FROM tab2
----
-1081
-1880
-2726

query I rowsort
SELECT - 51 * - col1 FROM tab0
----
1071
4131
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4941
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + 10 BETWEEN NULL AND + col0 / - CAST( + col2 AS SIGNED ) - - 23 * + col2
----

skipif mysql # not compatible
query III rowsort label-4941
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + 10 BETWEEN NULL AND + col0 / - CAST ( + col2 AS INTEGER ) - - 23 * + col2
----

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

query I rowsort
SELECT + - 48 * + - 29 AS col0 FROM tab0 AS cor0
----
1392
1392
1392

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 <= col0 * + col2 - - 68
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT 92 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query II rowsort
SELECT ALL - 87 AS col1, col2 + - + 36 AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col1, 73 )
----

query I rowsort
SELECT ALL 93 + 30 * + 56 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 76 FROM tab1 AS cor0 WHERE - 32 + + - col2 - + col1 / col0 <> + 87
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + + 43 + MIN( - col0 ) col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4951
SELECT ALL + + 43 + MIN ( - col0 ) col0 FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL + ( - - col2 ) + + CAST( NULL AS SIGNED ) + 99 + + col0 - - 84 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > col1 - + + col0 * - 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT col1 + 72 + + 9 + + - 75 DIV - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
105
157
162

skipif mysql # not compatible
query I rowsort label-4954
SELECT col1 + 72 + + 9 + + - 75 / - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
105
157
162

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT + col0 * - col1 DIV col1 + + - col2 * - - col0 - + - col2 FROM tab2 AS cor0
----
-1081
-2584
-4367

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + col0 * - col1 / col1 + + - col2 * - - col0 - + - col2 FROM tab2 AS cor0
----
-1081
-2584
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 55 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 55 * + col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 48 FROM tab0 cor0 WHERE NULL IS NULL OR NOT + col0 + + + 96 + + ( - + col2 ) * + col1 IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT 68 + - COUNT( ALL + 47 ) + - 92 + + - 63 * COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4959
SELECT 68 + - COUNT ( ALL + 47 ) + - 92 + + - 63 * COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1
----
36

query I rowsort
SELECT - col0 + 81 AS col2 FROM tab2
----
17
35
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4961
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 56 - - 66 AS col1 FROM tab0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT DISTINCT ( + 43 ) * + CAST( - - COUNT( * ) AS SIGNED ) - 71 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT ( + 43 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) - 71 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4964
SELECT DISTINCT + 42 AS col0, col0 * + - ( col1 ) + - - 10 + 15 * CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
42
-3247
42
470
42
736

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT + 42 AS col0, col0 * + - ( col1 ) + - - 10 + 15 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
42
-3247
42
470
42
736

query I rowsort
SELECT ALL AVG ( ( col1 ) ) FROM tab1 WHERE NOT NULL = - ( - + col0 )
----
NULL

query II rowsort
SELECT col0 + + col2, + col1 AS col0 FROM tab2
----
104
77
133
67
69
51

query III rowsort
SELECT * FROM tab0 WHERE + col1 <= - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT COUNT( * ) + 31 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT COUNT ( * ) + 31 FROM tab0
----
34

query I rowsort
SELECT ALL - col1 + - col1 AS col1 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT - col0 * + + 53 * + - col0 + + col0 FROM tab0 AS cor0
----
11940
401244
498774

query II rowsort
SELECT ALL - col0 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT - - col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - col2 + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( - - col0 AS SIGNED ) / 72 AND + col2 / col1
----

skipif mysql # not compatible
query I rowsort label-4973
SELECT - col2 + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( - - col0 AS INTEGER ) / 72 AND + col2 / col1
----

query I rowsort
SELECT DISTINCT col0 * + 95 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 58 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 58 IS NOT NULL
----
0

query I rowsort
SELECT 54 * - col1 AS col2 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + + SUM( DISTINCT - + 32 ) FROM tab2 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4977
SELECT + + SUM ( DISTINCT - + 32 ) FROM tab2 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + COUNT( * ) * ( + SUM( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-4978
SELECT + COUNT ( * ) * ( + SUM ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
468

query II rowsort
SELECT 7 AS col2, + col0 + col0 * - 70 * + 96 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT ALL + COUNT( + - ( - + col0 ) ), 87 AS col0 FROM tab2
----
3
87

skipif mysql # not compatible
query II rowsort label-4980
SELECT ALL + COUNT ( + - ( - + col0 ) ), 87 AS col0 FROM tab2
----
3
87

query I rowsort
SELECT DISTINCT + col2 + 64 + col0 + 66 FROM tab1 WHERE - col2 + - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT MAX( - 17 ) AS col0 FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4982
SELECT MAX ( - 17 ) AS col0 FROM tab1 cor0
----
-17

query II rowsort
SELECT 78, col0 FROM tab1 AS cor0
----
78
51
78
85
78
91

query I rowsort
SELECT ALL + 87 + + col2 FROM tab0
----
134
186
97

query I rowsort
SELECT 45 + + 65 FROM tab1
----
110
110
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4986
SELECT 83 + col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT col2 DIV col1 + - 70 * + col1 col1 FROM tab0
----
-1470
-5670
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4987
SELECT col2 / col1 + - 70 * + col1 col1 FROM tab0
----
-1470
-5670
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + MIN( ALL col1 ) * COUNT( * ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4988
SELECT + MIN ( ALL col1 ) * COUNT ( * ) AS col2 FROM tab2
----
153

query I rowsort
SELECT ALL 21 FROM tab1 WHERE NULL <> NULL
----

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

query I rowsort
SELECT - col2 FROM tab0 WHERE + col0 / col0 >= NULL
----

query I rowsort
SELECT ALL + 39 FROM tab1 WHERE + 11 * col2 + 52 * + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NULL <> - col2
----

query I rowsort
SELECT col0 * 15 AS col2 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT - col2 * - col2 + CAST( NULL AS SIGNED ) * col0 col2 FROM tab2
----
NULL

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

query I rowsort
SELECT 12 * - ( - col1 ) FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT 56 + COUNT( * ) DIV - COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4997
SELECT 56 + COUNT ( * ) / - COUNT ( * ) FROM tab1
----
55

query III rowsort
SELECT * FROM tab2 WHERE NOT - 83 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + 73 IN ( 76 )
----
3

skipif mysql # not compatible
query I rowsort label-4999
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 73 IN ( 76 )
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + 6 * - 86 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 19 > 26
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL col1 * CAST( 20 AS SIGNED ) AS col0 FROM tab0
----
1620
20
420

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL col1 * CAST ( 20 AS INTEGER ) AS col0 FROM tab0
----
1620
20
420

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5005
SELECT DISTINCT * FROM tab1 WHERE NOT ( 75 + col0 ) = CAST( 34 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5005
SELECT DISTINCT * FROM tab1 WHERE NOT ( 75 + col0 ) = CAST ( 34 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + 49 * - col1 FROM tab1
----
-2256
-240
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + COUNT( ALL - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5007
SELECT + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - col1 + - 93 * col2 AS col1 FROM tab1
----
-5492
-6371
-8942

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( - 41 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5010
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( - 41 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT col1 DIV + 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT col1 / + 83 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 78 * col2 FROM tab1
----
-4602
-5304
-7488

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 + - 36 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col0 * - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 ) NOT BETWEEN 19 AND - 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND + 6 * + ( col2 / + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( 28 ) / col0 + col1 AND + col0
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE - 21 >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT 22 DIV 45 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5021
SELECT 22 / 45 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 * col1 + - 26 * + 28 > 45 * - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT + 82 + + CAST( NULL AS SIGNED ) / + 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5024
SELECT + 82 + + CAST ( NULL AS INTEGER ) / + 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5025
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( 65 AS SIGNED ) * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5025
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( 65 AS INTEGER ) * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * 32 FROM tab1 AS cor0
----
1888
2176
3072

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col2 ) + + 53 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT - 13 DIV + SUM( col0 ) * 51 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT - 13 / + SUM ( col0 ) * 51 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT + 79 DIV + - 14 AS col2 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-5029
SELECT + 79 / + - 14 AS col2 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT COUNT( * ) + - 99 + ( + CAST( + COUNT( - col0 ) AS SIGNED ) ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) + - 99 + ( + CAST ( + COUNT ( - col0 ) AS INTEGER ) ) AS col1 FROM tab0
----
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( 17 * 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + 94 + COUNT( * ) * 24 FROM tab1 AS cor0 WHERE - 87 IS NOT NULL
----
166

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 94 + COUNT ( * ) * 24 FROM tab1 AS cor0 WHERE - 87 IS NOT NULL
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - 68 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-5035
SELECT - 68 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT + 51 DIV - + col0 + col0 + - 96 * col1 FROM tab0 AS cor0
----
-1929
-7764
1

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 51 / - + col0 + col0 + - 96 * col1 FROM tab0 AS cor0
----
-1929
-7764
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - COUNT( * ) * - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5037
SELECT - COUNT ( * ) * - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5038
SELECT col1 AS col0, + CAST( NULL AS SIGNED ) * - - col1 + 66 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5038
SELECT col1 AS col0, + CAST ( NULL AS INTEGER ) * - - col1 + 66 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT - col0 DIV - 61 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5039
SELECT - col0 / - 61 FROM tab1
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT - - col0 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT - - col0 ) AS col0 FROM tab2
----
225

query I rowsort
SELECT - 28 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) * 96 AS col0 FROM tab1 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) * 96 AS col0 FROM tab1 cor0
----
-285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col1 ) * + 71 IN ( 72 )
----

query I rowsort
SELECT + col2 - + + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL - col2 * - - 56 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col0 ) + + + col2 AS col2 FROM tab2 cor0
----
104
133
69

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 24 + 19 ) < col2
----
75
67
58

query I rowsort
SELECT ALL + + col1 + + 77 FROM tab1 AS cor0
----
124
82
91

query I rowsort
SELECT DISTINCT - col2 - + col0 - - + col2 + ( col1 ) * - 44 FROM tab0 AS cor0
----
-1011
-141
-3579

query I rowsort
SELECT ALL 13 + + 65 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT 24 AS col1 FROM tab0 WHERE + - col0 + - 89 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + 79
----

query I rowsort
SELECT ALL - col1 * 54 * col1 FROM tab2
----
-140454
-242406
-320166

query I rowsort
SELECT 58 + + col1 + + 7 AS col2 FROM tab0
----
146
66
86

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + 30 + 61 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - 42 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT ALL - 35 AS col2 FROM tab0 WHERE NOT + - col0 BETWEEN ( NULL ) AND ( - col2 * col2 )
----
-35
-35
-35

query I rowsort
SELECT ALL - + 54 FROM tab2 WHERE NOT NULL <> + + 24
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 72 < NULL )
----

query I rowsort
SELECT DISTINCT col1 + 75 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT - + 22 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5064
SELECT - + 22 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - 23
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 48 * - - 97 NOT IN ( + 94 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col1 * + - col2 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5069
SELECT DISTINCT + ( - COUNT( DISTINCT + + col0 ) ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + ( - COUNT ( DISTINCT + + col0 ) ) / - COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT DISTINCT - 36 AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
9

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT - 36 AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
9

query I rowsort
SELECT 50 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - - col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT + + COUNT( * ) * - 67 - 72 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + + COUNT ( * ) * - 67 - 72 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT - + col2 * + - 69 + 57 + - col0 + col2 AS col1 FROM tab1 AS cor0
----
4102
4726
6726

query I rowsort
SELECT - + col0 + - col1 * col0 AS col2 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5078
SELECT DISTINCT col1, + 83 / CAST( NULL AS DECIMAL ) - - + col0 * - col1 * - - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5078
SELECT DISTINCT col1, + 83 / CAST ( NULL AS REAL ) - - + col0 * - col1 * - - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab0 WHERE NOT ( NOT NULL <= NULL )
----

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

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

query II rowsort
SELECT - col2, - 84 AS col1 FROM tab2 AS cor0
----
-23
-84
-40
-84
-58
-84

query I rowsort
SELECT ALL + col0 + 44 FROM tab0 AS cor0
----
131
141
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT COUNT( 41 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( 41 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5085
SELECT DISTINCT - - col2 DIV - - 62 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-5085
SELECT DISTINCT - - col2 / - - 62 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
0
NULL
1
NULL

query I rowsort
SELECT + 30 + col0 AS col1 FROM tab1 AS cor0
----
115
121
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 * - col0 AND NULL
----

query I rowsort
SELECT ALL col0 - - - 57 FROM tab2
----
-11
18
7

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - + 19 <> - - col0 + + - 65
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 / - + 30 = NULL
----

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 WHERE + 59 + col2 + - 77 < ( col1 )
----
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT - + AVG ( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5093
SELECT - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - - 28 * ( col2 ) * col0 AS col2 FROM tab1
----
-11935700
-15767024
-6991488

query I rowsort
SELECT DISTINCT 81 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT + COUNT( * ) AS col0, MIN( DISTINCT - ( col1 ) ) FROM tab1
----
3
-47

skipif mysql # not compatible
query II rowsort label-5096
SELECT + COUNT ( * ) AS col0, MIN ( DISTINCT - ( col1 ) ) FROM tab1
----
3
-47

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

query I rowsort
SELECT DISTINCT + 17 + col2 AS col0 FROM tab1 WHERE NOT 30 * - - 1 * 89 * + col1 BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5099
SELECT - 59 * - MAX( + - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT - 59 * - MAX ( + - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * + + 23 AS col2 FROM tab0
----
1081
2277
230

query II rowsort
SELECT DISTINCT col0 AS col1, + ( + col1 ) + 0 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( - 75 ) IS NOT NULL )
----

query I rowsort
SELECT + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND - 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL - col0 DIV - + col0 AS col0 FROM tab0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + 66 * + COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 66 * + COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
198

query I rowsort
SELECT - - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT + CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5108
SELECT + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) + + col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL col2 * + col1 * + CAST( - col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5112
SELECT ALL col2 * + col1 * + CAST ( - col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL MIN( ALL - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / 95 * + 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL MIN ( ALL - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / 95 * + 29 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - - col1 NOT IN ( col0 * + col2, 61 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 IN ( + 77, + 53 / col1 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT + + ( - MIN( DISTINCT - col1 ) ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + + ( - MIN ( DISTINCT - col1 ) ) AS col2 FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5117
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL = - 90 * + + col2 / - + 59 / + 10 * - col2 OR NOT ( ( col2 ) <> col0 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL = - 90 * + + col2 / - + 59 / + 10 * - col2 OR NOT ( ( col2 ) <> col0 * col1 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN + col0 / col0 AND - col0
----

query I rowsort
SELECT ALL - 36 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT - col1 * - ( + + 23 ) FROM tab1
----
1081
115
322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT AVG ( CAST( NULL AS SIGNED ) ) + - 99 FROM tab1
----
NULL

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

query I rowsort
SELECT - col1 * col2 + - - col2 FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) = - col0 / 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * - - col1 + 60 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT + 50 + + col1 * col2 * + - col1 AS col0 FROM tab1 AS cor0 WHERE 33 / + - CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN NULL AND - - 84
----

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 50 + + col1 * col2 * + - col1 AS col0 FROM tab1 AS cor0 WHERE 33 / + - CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN NULL AND - - 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 WHERE - + col1 BETWEEN ( - ( + 68 ) ) AND - col1
----
-23
-58

query II rowsort
SELECT 90 AS col0, 77 AS col0 FROM tab0
----
90
77
90
77
90
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 47 + + ( col2 ) col0 FROM tab2
----
27
70
78

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + ( + 3 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT ALL col2 DIV - col1 + - col0 * + ( col1 ) + 12 FROM tab1 cor0
----
-424
-4266
-708

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL col2 / - col1 + - col0 * + ( col1 ) + 12 FROM tab1 cor0
----
-424
-4266
-708

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 16 + col1 IN ( + - col1, ( + 47 ), + + col2 + - col2 * - + 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 78 * - 12 AS col0 FROM tab2 AS cor0
----
936
936
936

query II rowsort
SELECT col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 <= 50
----

query I rowsort
SELECT - ( - 79 ) FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab2
----
23
40
58

query II rowsort
SELECT ALL + col1 * + - col1 AS col2, 43 FROM tab1 AS cor0
----
-196
43
-2209
43
-25
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT - col0 DIV - - 40 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5141
SELECT - col0 / - - 40 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT CAST( - 71 AS SIGNED ) * + + col0 + + - col0 FROM tab0 AS cor0
----
-1080
-6264
-6984

skipif mysql # not compatible
query I rowsort label-5143
SELECT CAST ( - 71 AS INTEGER ) * + + col0 + + - col0 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT 98 * + SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
19502

skipif mysql # not compatible
query I rowsort label-5144
SELECT 98 * + SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
19502

query I rowsort
SELECT + 79 + - - col1 FROM tab0 AS cor0
----
100
160
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 29 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT ALL + col2 + + CAST( - col0 AS SIGNED ) * - col2 + col2 AS col1 FROM tab1 AS cor0
----
5088
5133
6324

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + col2 + + CAST ( - col0 AS INTEGER ) * - col2 + col2 AS col1 FROM tab1 AS cor0
----
5088
5133
6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT col2 + + + col1 + + + 5 + CAST( + 99 AS SIGNED ) FROM tab2 AS cor0
----
178
221
229

skipif mysql # not compatible
query I rowsort label-5148
SELECT col2 + + + col1 + + + 5 + CAST ( + 99 AS INTEGER ) FROM tab2 AS cor0
----
178
221
229

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

query I rowsort
SELECT DISTINCT 55 * + - 23 + - - col0 * + - 77 FROM tab2 AS cor0
----
-4807
-6193
-7040

query I rowsort
SELECT - - col1 + - + col2 + col1 * - + ( col2 ) * 77 AS col0 FROM tab2 AS cor0
----
-237123
-299213
-90293

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL + 69 DIV + 57 AS col2 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) + - - 65 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) + - - 65 FROM tab1 AS cor0
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( + + col1 ) ) AND NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + ( 82 ) FROM tab1 AS cor0
----
51
82
85
82
91
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( - 19 * 42 + - + col1, - 57 + - col0, 49, - col1 + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + - col0 * 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * ( col0 ) * col0 + + col0 FROM tab0
----
10590
75777
931588

query I rowsort
SELECT ALL - col0 - + + 5 FROM tab1 AS cor0
----
-56
-90
-96

query II rowsort
SELECT ALL - col2 * + col0 * + - col1 + col0 AS col2, + 50 FROM tab2 AS cor0
----
197184
50
291525
50
54004
50

query I rowsort
SELECT 42 + col0 + - 50 FROM tab0 cor0
----
7
79
89

query I rowsort
SELECT - - col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT + col0 + + - col1 * - + CAST( NULL AS SIGNED ) / - - col1 AS col0, + col2 col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5163
SELECT + col0 + + - col1 * - + CAST ( NULL AS INTEGER ) / - - col1 AS col0, + col2 col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + - COUNT( - ( - - col0 ) ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT DISTINCT + - COUNT ( - ( - - col0 ) ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT ( - col2 ) - - - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col1 FROM tab0 WHERE NOT NULL >= - 92 - + + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - MIN( DISTINCT + 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5167
SELECT - MIN ( DISTINCT + 33 ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT 84 * - 93 FROM tab0 AS cor0
----
-7812
-7812
-7812

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( 16 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 99 * - + 95 * - 21 AS col1 FROM tab1 cor0
----
197505
197505
197505

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT 77 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT 77 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
77

query I rowsort
SELECT ALL + 25 * + 17 + + col0 * col1 * col1 FROM tab2 cor0
----
120071
337100
379881

query I rowsort
SELECT DISTINCT ( - 79 ) FROM tab0 cor0
----
-79

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - MAX( ALL 65 ) AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-5175
SELECT - MAX ( ALL 65 ) AS col0 FROM tab2
----
-65

query I rowsort
SELECT - 82 * + col0 * - + 45 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * - - col2 > NULL
----

query I rowsort
SELECT DISTINCT ( 88 ) AS col0 FROM tab2
----
88

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT 19 * - col0 * + ( + col2 ) AS col1 FROM tab2
----
-20102
-48640
-82650

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT 98, - COUNT( * ) AS col0 FROM tab0
----
98
-3

skipif mysql # not compatible
query II rowsort label-5181
SELECT 98, - COUNT ( * ) AS col0 FROM tab0
----
98
-3

query I rowsort
SELECT + col1 * - 89 * + - col1 AS col1 FROM tab1 AS cor0
----
17444
196601
2225

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 AS cor0 WHERE NOT ( - col2 - - + 91 BETWEEN + 69 * col2 - - col0 - - col2 AND - col0 )
----
1344
295
3196

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 26 * - col0 * - 28 FROM tab0
----
10920
63336
70616

query I rowsort
SELECT ALL ( + + col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5187
SELECT * FROM tab1 WHERE + - col1 NOT BETWEEN + + col2 AND + CAST( NULL AS SIGNED ) * + col2 + - - ( col0 ) * col2 + - - 84 * col1 * + col0 + - CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5187
SELECT * FROM tab1 WHERE + - col1 NOT BETWEEN + + col2 AND + CAST ( NULL AS INTEGER ) * + col2 + - - ( col0 ) * col2 + - - 84 * col1 * + col0 + - CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + ( - - col0 ) ) + + col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT + - 14 DIV MIN( col0 ) + + - 69 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + - 14 / MIN ( col0 ) + + - 69 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 10 * - - ( 50 ) * - - col0 + ( + col0 ) FROM tab2 AS cor0
----
23046
32064
37575

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL ( - - MAX( ALL + 81 ) ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL ( - - MAX ( ALL + 81 ) ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL 32 + - 84 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + - col1 + + col2 * - + 32 + + - col2 FROM tab1 AS cor0
----
-1952
-2291
-3182

onlyif mysql # DIV for integer division: 
query II rowsort label-5195
SELECT DISTINCT 33 DIV - col2 + - col1 AS col0, col2 * - + 65 FROM tab0
----
-1
-6435
-24
-650
-81
-3055

skipif mysql # not compatible
query II rowsort label-5195
SELECT DISTINCT 33 / - col2 + - col1 AS col0, col2 * - + 65 FROM tab0
----
-1
-6435
-24
-650
-81
-3055

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5196
SELECT ALL - CAST( NULL AS DECIMAL ) - 96 * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - CAST ( NULL AS REAL ) - 96 * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - - 24 FROM tab1
----
-23
10
19

query I rowsort
SELECT 44 * + 99 + + + col2 FROM tab2
----
4379
4396
4414

query I rowsort
SELECT - 59 + col1 * + - col0 FROM tab0
----
-1274
-156
-1886

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 >= - + 73
----

query I rowsort
SELECT 51 + + col1 * + - 74 FROM tab2
----
-3723
-4907
-5647

query I rowsort
SELECT ( + - col1 ) - + + 38 FROM tab0 cor0 WHERE NULL IS NULL
----
-119
-39
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT 65 DIV - 5 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 65 / - 5 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT - COUNT( DISTINCT + ( 63 ) ) * + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5204
SELECT - COUNT ( DISTINCT + ( 63 ) ) * + COUNT ( * ) FROM tab2
----
-3

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

query II rowsort
SELECT + 20 * + + col2 AS col0, - col1 FROM tab1 AS cor0
----
1180
-5
1360
-47
1920
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 48 / - col2 IS NULL
----

query I rowsort
SELECT - ( - 84 ) * + 1 FROM tab1 AS cor0
----
84
84
84

query II rowsort
SELECT - col0 * + col2 - + - col0 AS col2, col1 - - + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-4845
28
-4930
10
-6097
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = col2 * + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT col0 DIV + - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + MIN( col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5212
SELECT + MIN ( col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE + - 40 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5214
SELECT ALL col0 AS col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL col0 AS col0, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - MAX( DISTINCT 50 ) AS col1 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - MAX ( DISTINCT 50 ) AS col1 FROM tab0
----
-50

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + 50 + - + col2 + + col2 BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT ALL ( + ( - 73 ) ) DIV + - 17 AS col0 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL ( + ( - 73 ) ) / + - 17 AS col0 FROM tab1
----
4
4
4

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * col0 IN ( + + 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT COUNT( * ) * - COUNT( 20 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5221
SELECT COUNT ( * ) * - COUNT ( 20 ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT ALL - 13 AS col0, col1 FROM tab2
----
-13
51
-13
67
-13
77

query I rowsort
SELECT DISTINCT - col1 * - col1 * + col0 + + + 67 FROM tab1 AS cor0
----
10063
201086
2192

query I rowsort
SELECT - col2 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT MIN( ALL + + col0 ) + - 23 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT MIN ( ALL + + col0 ) + - 23 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT + col2, - 18 FROM tab0 AS cor0
----
10
-18
47
-18
99
-18

query I rowsort
SELECT DISTINCT - 29 - - - col2 FROM tab2 AS cor0
----
-52
-69
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT col0 * + 20 DIV + 2 FROM tab2 cor0
----
460
640
750

skipif mysql # not compatible
query I rowsort label-5228
SELECT col0 * + 20 / + 2 FROM tab2 cor0
----
460
640
750

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE 49 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 16 BETWEEN 29 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 - + 59 * - + col0 * - col0 AND NULL
----

query I rowsort
SELECT ALL 68 * col2 * + 46 FROM tab2
----
125120
181424
71944

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

query I rowsort
SELECT + 21 AS col2 FROM tab2 WHERE + col1 / - - 16 IS NULL
----

query I rowsort
SELECT DISTINCT 94 * col2 + - + 14 + - - col2 + - ( + 15 ) FROM tab0
----
4436
921
9376

query I rowsort
SELECT 20 - - col2 FROM tab0
----
119
30
67

query II rowsort
SELECT + col2 - + col2, col1 FROM tab1 cor0
----
0
14
0
47
0
5

query I rowsort
SELECT - 54 * col0 - col2 AS col0 FROM tab2 AS cor0
----
-2507
-3496
-4108

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ( + 78 ) + + - ( + + 33 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5239
SELECT ( + 78 ) + + - ( + + 33 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ( - col2 ) + 55 AS col2 FROM tab0 AS cor0
----
-44
45
8

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - col0 * 50 AS col2 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT + col2 * - - col0 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT ( + ( + + COUNT( * ) ) ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5244
SELECT ( + ( + + COUNT ( * ) ) ), COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT - - 14 * + col1 FROM tab0 cor0
----
1134
14
294

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

query I rowsort
SELECT - ( - 96 ) * - 0 + - + ( + col1 ) * - + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT ALL + 22 AS col2, 85 AS col2 FROM tab0 AS cor0
----
22
85
22
85
22
85

query I rowsort
SELECT ALL col2 + - - col1 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query II rowsort
SELECT ALL + col2 * - 34 * - - 42 AS col1, ( - + col1 ) FROM tab1 AS cor0
----
-137088
-14
-84252
-5
-97104
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - - MAX( + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - - MAX ( + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - ( + - ( 5 ) ) * col0 AS col0 FROM tab1 AS cor0
----
255
425
455

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT COUNT( ALL + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5254
SELECT COUNT ( ALL + - col0 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL 27 + 48 + - 71 + col0 AS col0 FROM tab2
----
50
68
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT - 65 + + COUNT( * ) AS col1, 66 AS col2 FROM tab0 AS cor0
----
-62
66

skipif mysql # not compatible
query II rowsort label-5258
SELECT - 65 + + COUNT ( * ) AS col1, 66 AS col2 FROM tab0 AS cor0
----
-62
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5260
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT + CAST( + col2 AS DECIMAL ) >= - - 71 + - + 40
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5260
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + col2 AS REAL ) >= - - 71 + - + 40
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT - 24 + ( 3 ) + + 98 + - COUNT( * ) + + SUM( + col1 ) AS col0, COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
177
0

skipif mysql # not compatible
query II rowsort label-5261
SELECT - 24 + ( 3 ) + + 98 + - COUNT ( * ) + + SUM ( + col1 ) AS col0, COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
177
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT + CAST( + - 82 AS SIGNED ) FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-5262
SELECT + CAST ( + - 82 AS INTEGER ) FROM tab0
----
-82
-82
-82

query II rowsort
SELECT DISTINCT + - ( - col2 ) + - col0 AS col1, col2 + col2 * - 52 * + 5 FROM tab2 AS cor0
----
-17
-15022
-23
-5957
-24
-10360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col2, - 7 AS col1 FROM tab0 AS cor0
----
15
-7
87
-7
97
-7

query I rowsort
SELECT + 85 + 54 AS col0 FROM tab1
----
139
139
139

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col0 ) + col0 IS NULL
----

query I rowsort
SELECT col1 + - + 72 + + 18 AS col1 FROM tab1
----
-40
-49
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT ALL 18 * col0 DIV + col1 + - 94 + + 97 AS col2 FROM tab1
----
309
37
68

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 18 * col0 / + col1 + - 94 + + 97 AS col2 FROM tab1
----
309
37
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT - col2 / + col2 * 59 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT - col2 / + col2 * 59 IS NULL
----
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT + 51 * - + CAST( col2 AS SIGNED ) + - 43 AS col1 FROM tab2 AS cor0 WHERE NOT 84 IS NULL
----
-1216
-2083
-3001

skipif mysql # not compatible
query I rowsort label-5272
SELECT + 51 * - + CAST ( col2 AS INTEGER ) + - 43 AS col1 FROM tab2 AS cor0 WHERE NOT 84 IS NULL
----
-1216
-2083
-3001

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - ( - SUM( + col1 ) ) * 92 AS col2 FROM tab1 AS cor0
----
6072

skipif mysql # not compatible
query I rowsort label-5273
SELECT - ( - SUM ( + col1 ) ) * 92 AS col2 FROM tab1 AS cor0
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT + MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + MAX ( + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT DISTINCT + 18 * col2 DIV col1 AS col2 FROM tab2 AS cor0
----
15
8
9

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + 18 * col2 / col1 AS col2 FROM tab2 AS cor0
----
15
8
9

query I rowsort
SELECT DISTINCT + 1 * - col2 AS col1 FROM tab1 cor0 WHERE NOT col0 + col2 NOT IN ( - col1 * - 18, + 73 )
----

query I rowsort
SELECT DISTINCT + 69 * - col1 + - - 34 FROM tab2 AS cor0
----
-3485
-4589
-5279

query I rowsort
SELECT + + col2 * + + ( - + col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT COUNT( + ( 41 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5279
SELECT COUNT ( + ( 41 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 85 * + ( - 15 ) * - col2 FROM tab0
----
126225
12750
59925

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT 95 + 40 + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
135

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT 95 + 40 + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 5 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 28 + + col2 - + 28 * - + col2 FROM tab0
----
2899
3631
878

query II rowsort
SELECT 0 AS col1, - 23 + - - 91 AS col0 FROM tab1 AS cor0
----
0
68
0
68
0
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 63 >= NULL
----

query II rowsort
SELECT col0, - 60 * - col1 AS col2 FROM tab0 AS cor0
----
15
4860
87
1260
97
60

query II rowsort
SELECT ALL + col1 * - col1 * col1 + - col2 AS col2, 13 + - - col1 + + + 21 * - - col0 * + 63 AS col1 FROM tab0 AS cor0
----
-100
128345
-531488
19939
-9271
115135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( col2, + col2 * - - col1 / - 44 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT ALL + 5 DIV COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5289
SELECT ALL + 5 / COUNT ( * ) col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL col1 + + 50 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT CAST( - col1 AS SIGNED ) + - 64 FROM tab1
----
-111
-69
-78

skipif mysql # not compatible
query I rowsort label-5291
SELECT CAST ( - col1 AS INTEGER ) + - 64 FROM tab1
----
-111
-69
-78

query I rowsort
SELECT + - ( col1 ) + col1 - - col1 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + col2
----

query I rowsort
SELECT ALL - col2 - + 25 + col1 FROM tab2 AS cor0
----
-16
12
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL + CAST( NULL AS SIGNED ) + - 69 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT col1 - - col0 AS col0, + 46 AS col1 FROM tab0 AS cor0
----
108
46
96
46
98
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT + 95 - + 91 DIV - col1 AS col0 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 95 - + 91 / - col1 AS col0 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - SUM( - 94 ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5299
SELECT - SUM ( - 94 ) FROM tab1
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT + CAST( ( - - 21 ) AS SIGNED ) AS col0 FROM tab1
----
21
21
21

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

query II rowsort
SELECT ALL + - col1 AS col1, 60 FROM tab2 AS cor0
----
-51
60
-67
60
-77
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) >= + + col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab2 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT MIN( ( 80 ) ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT MIN ( ( 80 ) ) AS col2 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT ALL COUNT( * ) AS col1, 98 FROM tab0
----
3
98

skipif mysql # not compatible
query II rowsort label-5305
SELECT ALL COUNT ( * ) AS col1, 98 FROM tab0
----
3
98

query I rowsort
SELECT ALL - col2 * + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT - + col1 * + - 60 * ( - col0 ) FROM tab1 AS cor0
----
-25500
-256620
-42840

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COUNT( DISTINCT + col1 ) * 88 col0 FROM tab0 cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT COUNT ( DISTINCT + col1 ) * 88 col0 FROM tab0 cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT 57 * - COUNT( * ) FROM tab1 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT 57 * - COUNT ( * ) FROM tab1 cor0
----
-171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + 94 * + col0
----

query I rowsort
SELECT DISTINCT + ( 65 ) * - 13 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-140
25
8758

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + - col2 NOT BETWEEN + + col1 AND - + col0
----

query II rowsort
SELECT col0, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 44 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - MAX( - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5317
SELECT - MAX ( - col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - col1 * + - 83 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT - ( + CAST( + - MAX( ALL - - col2 ) AS SIGNED ) ) FROM tab2 WHERE NOT ( ( NOT NULL BETWEEN ( NULL ) AND NULL ) ) OR NOT ( - 28 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT - ( + CAST ( + - MAX ( ALL - - col2 ) AS INTEGER ) ) FROM tab2 WHERE NOT ( ( NOT NULL BETWEEN ( NULL ) AND NULL ) ) OR NOT ( - 28 IS NOT NULL )
----
NULL

query I rowsort
SELECT + col0 + + + col0 + + 30 * 0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL - + 24 + + col0 AS col2 FROM tab0 AS cor0
----
-9
63
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5322
SELECT + - col0 * - CAST( NULL AS DECIMAL ) - col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT - 54 AS col0, - col2 FROM tab2
----
-54
-23
-54
-40
-54
-58

query I rowsort
SELECT + col2 * + col2 * - - col0 FROM tab0
----
33135
8700
950697

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT 3 DIV - col0 - 12 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-5325
SELECT 3 / - col0 - 12 FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL SUM( + 21 ) FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
189

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL SUM ( + 21 ) FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
189

query I rowsort
SELECT ALL 49 * + 88 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a88c43617b7780477bdc60afaaf0b28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + col2 + + + col0 col0 FROM tab1 cor0
----
4436
569
861

query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + col0 - - 57 * + col2 AS col1 FROM tab2 AS cor0
----
1357
2344
3381

query II rowsort
SELECT + 34 + ( + 36 ) AS col0, col2 FROM tab1 AS cor0
----
70
59
70
68
70
96

query I rowsort
SELECT + - 88 + + col0 * + col0 FROM tab0 AS cor0
----
137
7481
9321

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - COUNT( * ) + - + ( + MAX( DISTINCT - col1 ) ) + + COUNT( * ) + - - COUNT( + 32 ) + 15 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5333
SELECT - COUNT ( * ) + - + ( + MAX ( DISTINCT - col1 ) ) + + COUNT ( * ) + - - COUNT ( + 32 ) + 15 FROM tab1 AS cor0
----
23

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + MIN( - 11 ) AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5335
SELECT + MIN ( - 11 ) AS col0 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL + + MIN( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + + MIN ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-97

query I rowsort
SELECT DISTINCT - col1 * + + col0 * + 77 + - col2 FROM tab2 WHERE + col2 * - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5338
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ), 44 + - 29 AS col1 FROM tab1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5338
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ), 44 + - 29 AS col1 FROM tab1
----
NULL
15

onlyif mysql # DIV for integer division: 
query II rowsort label-5339
SELECT ALL - 71 DIV - + col2 AS col1, 53 FROM tab0
----
0
53
1
53
7
53

skipif mysql # not compatible
query II rowsort label-5339
SELECT ALL - 71 / - + col2 AS col1, 53 FROM tab0
----
0
53
1
53
7
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5340
SELECT DISTINCT - 27 * MAX( ALL + 18 ) DIV + COUNT( * ) AS col0, + 51 AS col0 FROM tab0
----
-162
51

skipif mysql # not compatible
query II rowsort label-5340
SELECT DISTINCT - 27 * MAX ( ALL + 18 ) / + COUNT ( * ) AS col0, + 51 AS col0 FROM tab0
----
-162
51

query II rowsort
SELECT DISTINCT + 58 * - - 28, col2 * - - col0 FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT MAX( DISTINCT ( - + 84 ) ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5342
SELECT MAX ( DISTINCT ( - + 84 ) ) FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT + ( col0 ) AS col1, + 4 * + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5343
SELECT + ( col0 ) AS col1, + 4 * + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 88 + 73 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 < NULL AND NULL IN ( 17 * + 69 * - 14, - col1, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT 71 * - - 37 = NULL
----

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 AS cor0 WHERE NULL > + col2 + - col0
----

query I rowsort
SELECT ALL + 13 * - - 81 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
1152
1263
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT ALL - ( col1 ) * + 87 * col1 + 47 + + - col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227413
-394382
-518856

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - ( col1 ) * + 87 * col1 + 47 + + - col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227413
-394382
-518856

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT + + MIN( ALL col2 ) + ( - 37 ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5351
SELECT + + MIN ( ALL col2 ) + ( - 37 ) AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT col2 * + + ( + - ( - col2 ) ) + CAST( - 28 AS SIGNED ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
18404
6934
9220

skipif mysql # not compatible
query I rowsort label-5352
SELECT col2 * + + ( + - ( - col2 ) ) + CAST ( - 28 AS INTEGER ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
18404
6934
9220

query I rowsort
SELECT - + col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + + + 57 >= NULL
----

query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT SUM( DISTINCT ( - + col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5357
SELECT SUM ( DISTINCT ( - + col0 ) ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT + 1 * 58 + - + col1 AS col2 FROM tab0
----
-23
37
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT ALL col2 FROM tab0 WHERE ( ( + ( - CAST( NULL AS SIGNED ) ) ) BETWEEN + col0 / col1 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL col2 FROM tab0 WHERE ( ( + ( - CAST ( NULL AS INTEGER ) ) ) BETWEEN + col0 / col1 AND NULL )
----

query I rowsort
SELECT 66 FROM tab0 WHERE ( + 75 IS NOT NULL )
----
66
66
66

query I rowsort
SELECT ALL + col2 * - 40 + - 56 - - 35 AS col0 FROM tab2
----
-1621
-2341
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT MIN( - + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT MIN ( - + col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT col0 - + + ( - 33 ) AS col2 FROM tab1 AS cor0
----
118
124
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 48
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 48
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col2 + - col2 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5367
SELECT 74 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 5ceac28d1d2da414aea77bc52a9e3c02

skipif mysql # not compatible
query II rowsort label-5367
SELECT 74 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 5ceac28d1d2da414aea77bc52a9e3c02

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL col1 * + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5369
SELECT ALL + col0 DIV - + 3, - 62 AS col1 FROM tab0
----
-29
-62
-32
-62
-5
-62

skipif mysql # not compatible
query II rowsort label-5369
SELECT ALL + col0 / - + 3, - 62 AS col1 FROM tab0
----
-29
-62
-32
-62
-5
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT DISTINCT - col1 DIV 45 FROM tab0 AS cor0
----
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT DISTINCT - col0 + - col0 DIV + + col1 - + 83 FROM tab2 AS cor0
----
-129
-147
-159

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - col0 + - col0 / + + col1 - + 83 FROM tab2 AS cor0
----
-129
-147
-159

query I rowsort
SELECT - + col0 * - 95 AS col1 FROM tab0 AS cor0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT - + 5 * + - col1 FROM tab2 AS cor0
----
255
335
385

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT ALL 31 DIV + 71 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL 31 / + 71 AS col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT + 6 DIV - col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT + 6 / - col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5378
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) >= - ( - 55 ) + 23
----

skipif mysql # not compatible
query III rowsort label-5378
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) >= - ( - 55 ) + 23
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5381
SELECT * FROM tab2 WHERE NOT + 47 * CAST( - + 5 AS SIGNED ) * col0 + - 52 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5381
SELECT * FROM tab2 WHERE NOT + 47 * CAST ( - + 5 AS INTEGER ) * col0 + - 52 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 11 * + col2 FROM tab2
----
253
440
638

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ALL col1 DIV + - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL col1 / + - 70 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 AS col0, 85 + - - 89 FROM tab0
----
10
174
47
174
99
174

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT 62 DIV 55 * - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 62 / 55 * - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + COUNT( * ) * COUNT( * ) + - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5386
SELECT + COUNT ( * ) * COUNT ( * ) + - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - MIN( 33 ) * MIN( ALL + + 61 ) FROM tab1
----
-2013

skipif mysql # not compatible
query I rowsort label-5388
SELECT - MIN ( 33 ) * MIN ( ALL + + 61 ) FROM tab1
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT COUNT( DISTINCT 43 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5389
SELECT COUNT ( DISTINCT 43 ) FROM tab0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT DISTINCT - col0 + - col2 + - col2 + - - 0 * - 90 * - 18 AS col1 FROM tab1 cor0
----
-203
-227
-243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + 95 + - 92 + + SUM( - col1 ) AS col2 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5396
SELECT + 95 + - 92 + + SUM ( - col1 ) AS col2 FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT SUM( + ( - + col2 ) ) + + 20 * + - COUNT( * ) + + - 60 AS col0 FROM tab2
----
-241

skipif mysql # not compatible
query I rowsort label-5397
SELECT SUM ( + ( - + col2 ) ) + + 20 * + - COUNT ( * ) + + - 60 AS col0 FROM tab2
----
-241

query I rowsort
SELECT DISTINCT + 77 + col0 + col1 FROM tab1
----
142
167
215

query I rowsort
SELECT + col2 + col0 + + col1 AS col1 FROM tab2
----
120
181
200

query I rowsort
SELECT ALL + col2 + - 17 AS col1 FROM tab0
----
-7
30
82

query I rowsort
SELECT 56 * + col2 + + 99 AS col2 FROM tab1
----
3403
3907
5475

query II rowsort
SELECT DISTINCT - 83 * - col1 + + col1 + + col2 + col2 AS col2, col1 * 72 FROM tab0
----
1784
1512
282
72
6898
5832

query I rowsort
SELECT DISTINCT + - col2 + + ( - 50 ) AS col1 FROM tab2 AS cor0
----
-108
-73
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL + - 3 / - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 61 * + + 92 + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
-5418
-5438
-5582

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT 74 * COUNT( * ) col0 FROM tab0
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5406
SELECT DISTINCT 74 * COUNT ( * ) col0 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + MIN( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT col0 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT + MIN ( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT col0 + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * 9 AS col0 FROM tab1 AS cor0
----
126
423
45

query I rowsort
SELECT DISTINCT 70 * - + col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

query II rowsort
SELECT 19 AS col0, + col1 * 76 AS col2 FROM tab2 AS cor0
----
19
3876
19
5092
19
5852

query I rowsort
SELECT DISTINCT ( - 29 ) * - col1 AS col2 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT - 83 * ( - 7 ) FROM tab0 cor0
----
581
581
581

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT COUNT( * ) AS col2, - COUNT( * ) * 88 AS col1 FROM tab1 AS cor0
----
3
-264

skipif mysql # not compatible
query II rowsort label-5413
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * 88 AS col1 FROM tab1 AS cor0
----
3
-264

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > 94 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 95 col0 FROM tab2
----
4845
6365
7315

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

query I rowsort
SELECT ALL + 56 * col0 AS col0 FROM tab1
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col1, 74 FROM tab2
----
75
74

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col1, 74 FROM tab2
----
75
74

query I rowsort
SELECT DISTINCT - + col2 * + - col1 FROM tab0 AS cor0 WHERE NOT NULL < col1 + + - 81 * - 25 + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + - MIN( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + - MIN ( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL + COUNT( - + col0 ), SUM( ALL + - 2 ) AS col1 FROM tab0 AS cor0
----
3
-6

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL + COUNT ( - + col0 ), SUM ( ALL + - 2 ) AS col1 FROM tab0 AS cor0
----
3
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT + - 3 * CAST( NULL AS SIGNED ) + ( col0 ) + - col1 * - col2 * + 81 * + col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT - 32 DIV col2 * col1 * 21 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 32 / col2 * col1 * 21 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT DISTINCT col1 DIV - - col0 AS col0 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) - - 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - - 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + COUNT( * ) * + 79 * CAST( - MAX( 88 ) AS SIGNED ) + + 14 AS col2 FROM tab0 AS cor0
----
-20842

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + COUNT ( * ) * + 79 * CAST ( - MAX ( 88 ) AS INTEGER ) + + 14 AS col2 FROM tab0 AS cor0
----
-20842

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - + COUNT( * ) * + + 82 + - 78 FROM tab1 AS cor0
----
-324

skipif mysql # not compatible
query I rowsort label-5428
SELECT - + COUNT ( * ) * + + 82 + - 78 FROM tab1 AS cor0
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT + COUNT( * ) + + 63 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + COUNT ( * ) + + 63 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 55 + - 17 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL - 72 * - col2 * + col2 + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
159001
705573
7190

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 72 * - col2 * + col2 + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
159001
705573
7190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5432
SELECT DISTINCT * FROM tab2 WHERE - col1 - - CAST( + col1 AS SIGNED ) >= - - col2
----

skipif mysql # not compatible
query III rowsort label-5432
SELECT DISTINCT * FROM tab2 WHERE - col1 - - CAST ( + col1 AS INTEGER ) >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + MAX( + + 79 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + MAX ( + + 79 ) AS col1 FROM tab0
----
79

query I rowsort
SELECT ALL - + 64 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 + 59 FROM tab1
----
115

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL - 30 + + ( + CAST( 79 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - 30 + + ( + CAST ( 79 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
49
49
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + - 61 + - - COUNT( * ) + + 33 + + + 91 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5439
SELECT + - 61 + - - COUNT ( * ) + + 33 + + + 91 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT + + col1 * col0 AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN - CAST( NULL AS SIGNED ) * + col2 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( ( NOT ( NOT NULL IS NOT NULL ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT + - col0 * - col1 + - 95 FROM tab0 AS cor0
----
1120
1732
2

query II rowsort
SELECT ALL col2 AS col1, col0 * + 50 * - col0 * + 62 + - 71 AS col0 FROM tab1 AS cor0
----
59
-22397571
68
-25671171
96
-8063171

query I rowsort
SELECT + col0 * + col0 * + col0 AS col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5446
SELECT ALL col1 * col2 + - col0 AS col0, CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
1127
-46
3016
-64
3811
-75

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL col1 * col2 + - col0 AS col0, CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
1127
-46
3016
-64
3811
-75

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 57 * + MAX( DISTINCT + col1 ) FROM tab1
----
2679

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 57 * + MAX ( DISTINCT + col1 ) FROM tab1
----
2679

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5450
SELECT * FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5450
SELECT * FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT + 47 AS col0, 17 DIV col0 * + 80 FROM tab0
----
47
0
47
0
47
80

skipif mysql # not compatible
query II rowsort label-5451
SELECT + 47 AS col0, 17 / col0 * + 80 FROM tab0
----
47
0
47
0
47
80

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE 33 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT DISTINCT 74 * - col2 * - + 23 AS col1 FROM tab2
----
39146
68080
98716

query I rowsort
SELECT DISTINCT + - col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT - 4 - COUNT( * ) * + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 - - col1 > col2
----
-10

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - 4 - COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 - - col1 > col2
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 31 NOT BETWEEN - + col2 AND + col0
----
87
21
10

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT ALL - + col2 * - col0 + 79 AS col1 FROM tab0 AS cor0
----
784
949
9682

query I rowsort
SELECT ALL + 88 + + - 23 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + ( + + MIN( 34 ) ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + ( + + MIN ( 34 ) ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT + - col2 + + + 57 AS col0 FROM tab1 AS cor0
----
-11
-2
-39

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT - ( + - MAX( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT - ( + - MAX ( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT 87 + + ( + + 14 ) FROM tab0 cor0
----
101
101
101

query I rowsort
SELECT + col2 + - 6 FROM tab0
----
4
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - COUNT( * ) + + + 88 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5468
SELECT - COUNT ( * ) + + + 88 FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col2 >= - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 70 ) AS col0 FROM tab1
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT + COUNT( * ) + 93 AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT + COUNT ( * ) + 93 AS col0 FROM tab1 cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT DISTINCT col2 DIV + col0 + + - col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT col2 / + col0 + + - col2 FROM tab1 AS cor0
----
-59
-68
-95

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 61 AS col0, - col2 FROM tab2 AS cor0
----
61
-23
61
-40
61
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5475
SELECT + + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5476
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

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

query II rowsort
SELECT col2, col1 + + + 9 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
59
-40
68
-376
96
-112

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

query I rowsort
SELECT DISTINCT - col1 + - col0 * - 69 AS col2 FROM tab2
----
3123
4339
5108

query I rowsort
SELECT DISTINCT ( 0 ) AS col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 23 ) NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + col2 + 48 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + col2 + 48 <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 82 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT COUNT( * ) + + 44 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT COUNT ( * ) + + 44 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL - MIN( col1 ) - MIN( 74 ) FROM tab2
----
-125

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - MIN ( col1 ) - MIN ( 74 ) FROM tab2
----
-125

query I rowsort
SELECT + 77 + 17 FROM tab0
----
94
94
94

query I rowsort
SELECT - 79 * + 16 FROM tab1 WHERE - col0 * + col1 >= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - 68 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 74 + 7 AS col0 FROM tab0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - col2 ) <= NULL
----
0

query I rowsort
SELECT ALL + 89 + - col0 FROM tab1
----
-2
38
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT ALL + col0 + 17 DIV + 4 AS col2 FROM tab0 AS cor0
----
101
19
91

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + col0 + 17 / + 4 AS col2 FROM tab0 AS cor0
----
101
19
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + COUNT( * ) + 8 FROM tab0 AS cor0 WHERE ( 61 + - col1 * - col1 ) NOT BETWEEN + 73 * 0 - 77 * + 27 AND - 79 * col2
----
11

skipif mysql # not compatible
query I rowsort label-5494
SELECT + COUNT ( * ) + 8 FROM tab0 AS cor0 WHERE ( 61 + - col1 * - col1 ) NOT BETWEEN + 73 * 0 - 77 * + 27 AND - 79 * col2
----
11

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

query I rowsort
SELECT 84 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT DISTINCT - CAST( col1 AS SIGNED ) + 92 AS col0 FROM tab0
----
11
71
91

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + 92 AS col0 FROM tab0
----
11
71
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + + col0 col0 FROM tab2 AS cor0
----
110
121
92

query I rowsort
SELECT DISTINCT - 18 * + col0 + + col2 * + col2 FROM tab1 AS cor0
----
1951
2986
8298

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT col1 DIV col1 - - 99 * 23 FROM tab1 AS cor0
----
2278

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT col1 / col1 - - 99 * 23 FROM tab1 AS cor0
----
2278

query I rowsort
SELECT - 63 AS col1 FROM tab2 AS cor0 WHERE - 97 * - col0 IN ( - 88 / - col1 + - col2 )
----

query I rowsort
SELECT + col1 * 88 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col2 * 14 ) AND - 13
----

query I rowsort
SELECT ALL - col2 + 42 * - 24 FROM tab0 AS cor0
----
-1018
-1055
-1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT DISTINCT - COUNT( - col2 ) - CAST( 53 AS SIGNED ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - COUNT ( - col2 ) - CAST ( 53 AS INTEGER ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 0 / 24 + ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 74 * - col2 col0 FROM tab0 AS cor0
----
-3493
-7423
-827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT + MIN( DISTINCT - ( col0 ) ) FROM tab1 AS cor0 WHERE ( - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-5507
SELECT + MIN ( DISTINCT - ( col0 ) ) FROM tab1 AS cor0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
-91

query I rowsort
SELECT DISTINCT - - col0 + - 82 FROM tab0 AS cor0
----
-67
15
5

query I rowsort
SELECT ALL col1 + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 / + 34 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( 8 )
----
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( 8 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5511
SELECT ALL - col0 * CAST( 11 AS SIGNED ) - col2 DIV 77 FROM tab1 AS cor0
----
-1001
-562
-935

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - col0 * CAST ( 11 AS INTEGER ) - col2 / 77 FROM tab1 AS cor0
----
-1001
-562
-935

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 45 AND + col0
----

query I rowsort
SELECT DISTINCT ( + 75 ) FROM tab0 WHERE NOT ( col1 ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT DISTINCT 49 * - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT + 63 - + 68 AS col2 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT - SUM( + - col2 ) * MIN( - col2 + - col2 ) FROM tab1
----
-42816

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - SUM ( + - col2 ) * MIN ( - col2 + - col2 ) FROM tab1
----
-42816

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT 31 * + - COUNT( * ) col2 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT DISTINCT 31 * + - COUNT ( * ) col2 FROM tab1
----
-93

query I rowsort
SELECT ALL + 15 * + + 69 + col2 FROM tab0 AS cor0
----
1045
1082
1134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5519
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5519
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5520
SELECT - col2 AS col1, - col1 + + ( - CAST( NULL AS SIGNED ) ) + + col2 * + col0 AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5520
SELECT - col2 AS col1, - col1 + + ( - CAST ( NULL AS INTEGER ) ) + + col2 * + col0 AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5521
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT - - 98 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + - ( + 99 ) FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + + COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5525
SELECT + + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 48 BETWEEN + col2 AND ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 48 BETWEEN + col2 AND ( NULL )
----
3

query I rowsort
SELECT - col0 * 9 AS col0 FROM tab0
----
-135
-783
-873

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + 54 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT COUNT( DISTINCT + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT COUNT ( DISTINCT + + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT + 2 * COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5530
SELECT + 2 * COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT col0 + - ( + + CAST( - - 37 AS SIGNED ) ) AS col2 FROM tab2
----
27
38
9

skipif mysql # not compatible
query I rowsort label-5531
SELECT col0 + - ( + + CAST ( - - 37 AS INTEGER ) ) AS col2 FROM tab2
----
27
38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - COUNT( * ) + 77 AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5532
SELECT - COUNT ( * ) + 77 AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT 94 + + + COUNT( * ) AS col0 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-5533
SELECT 94 + + + COUNT ( * ) AS col0 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - ( - COUNT( * ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + MAX( DISTINCT - 69 ) + SUM( - + ( + col2 ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + MAX ( DISTINCT - 69 ) + SUM ( - + ( + col2 ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-432

query I rowsort
SELECT ( + + 6 ) * - - col1 AS col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT - 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT 58 * + - 99 FROM tab0
----
-5742
-5742
-5742

query I rowsort
SELECT ALL col2 * - col2 + + col2 * + col1 FROM tab1
----
-1428
-3186
-7872

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT + col2 FROM tab1 AS cor0 WHERE col2 * - + col1 + CAST( - col1 AS SIGNED ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL CAST( NULL AS SIGNED ) + 21 - - col1 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT - + 9 DIV - + 58 + col1 + + 36 * + col1 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
19131957
333417
37

skipif mysql # not compatible
query I rowsort label-5543
SELECT - + 9 / - + 58 + col1 + + 36 * + col1 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
19131957
333417
37

query I rowsort
SELECT DISTINCT - col2 - - 71 AS col2 FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - + COUNT( * ) - + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - + COUNT ( * ) - + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT - col0 + - + CAST( NULL AS SIGNED ) + ( + col2 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col1 - - - col1 FROM tab2 AS cor0
----
237083
260295
59772

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT + - 46 DIV 61 + - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5549
SELECT + - 46 / 61 + - - col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 29 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL 83 - - + COUNT( * ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 83 - - + COUNT ( * ) FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5552
SELECT - col0 + + col0 + + col1 AS col1, - CAST( col2 AS SIGNED ) * - col0 + + 81 AS col0 FROM tab2 AS cor0
----
51
1139
67
4431
77
2641

skipif mysql # not compatible
query II rowsort label-5552
SELECT - col0 + + col0 + + col1 AS col1, - CAST ( col2 AS INTEGER ) * - col0 + + 81 AS col0 FROM tab2 AS cor0
----
51
1139
67
4431
77
2641

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + MIN( - 73 ) AS col2 FROM tab0 WHERE NOT + - col2 BETWEEN + - col1 AND ( NULL )
----
-73

skipif mysql # not compatible
query I rowsort label-5554
SELECT + MIN ( - 73 ) AS col2 FROM tab0 WHERE NOT + - col2 BETWEEN + - col1 AND ( NULL )
----
-73

query I rowsort
SELECT DISTINCT - col1 * 42 FROM tab0
----
-3402
-42
-882

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5558
SELECT ALL CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT BETWEEN + + 41 AND NULL
----

query I rowsort
SELECT ALL 59 * - - 13 * + + ( - 4 ) * - col2 FROM tab1
----
181012
208624
294528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT col1 * CAST( NULL AS SIGNED ) * ( col1 * col0 ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 59 + + col0 NOT IN ( + 75 )
----

skipif mysql # not compatible
query I rowsort label-5561
SELECT col1 * CAST ( NULL AS INTEGER ) * ( col1 * col0 ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 59 + + col0 NOT IN ( + 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * col0 + - col2 * + col2 col2 FROM tab2 AS cor0
----
2048
2093
911

query I rowsort
SELECT - col0 + + col0 * col1 + - col1 FROM tab2 cor0
----
2249
4787
4883

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5564
SELECT - + 85 + + col0 + + CAST( col1 AS SIGNED ) DIV col1 AS col2 FROM tab2 cor0
----
-20
-38
-9

skipif mysql # not compatible
query I rowsort label-5564
SELECT - + 85 + + col0 + + CAST ( col1 AS INTEGER ) / col1 AS col2 FROM tab2 cor0
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT + 75 * - 43, + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-3225
-227

skipif mysql # not compatible
query II rowsort label-5565
SELECT + 75 * - 43, + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3225
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT MAX( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT MAX ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT - MIN( DISTINCT 62 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - MIN ( DISTINCT 62 ) FROM tab2 AS cor0
----
-62

query I rowsort
SELECT - - col2 * + 66 AS col1 FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col0 - + ( + - col0 ) * - + 11 IS NULL
----
51
85
91

query I rowsort
SELECT - col2 * - 21 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT DISTINCT SUM( - - ( + col1 ) ) * + 73 AS col0, COUNT( * ) FROM tab0
----
7519
3

skipif mysql # not compatible
query II rowsort label-5571
SELECT DISTINCT SUM ( - - ( + col1 ) ) * + 73 AS col0, COUNT ( * ) FROM tab0
----
7519
3

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT + 81 IS NULL
----
-1
-21
-81

query II rowsort
SELECT col0 AS col0, + col1 + - 3 - - col0 AS col0 FROM tab0
----
15
93
87
105
97
95

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE NULL IS NULL
----
56
56
56

query II rowsort
SELECT - col1 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + 96 * + col1 NOT BETWEEN col1 * - + col2 + + 85 AND + 90
----

query I rowsort
SELECT - 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT + col0 * col0 AS col2, - 22 AS col2 FROM tab0 AS cor0
----
225
-22
7569
-22
9409
-22

query I rowsort
SELECT DISTINCT 82 * - 76 FROM tab1 AS cor0
----
-6232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5581
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT ALL - COUNT( * ) + - - COUNT( col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + 57 AND ( + col0 * 73 * + CAST( - - 92 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - COUNT ( * ) + - - COUNT ( col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + 57 AND ( + col0 * 73 * + CAST ( - - 92 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5583
SELECT DISTINCT - - 45 * + CAST( NULL AS DECIMAL ) - + col1 col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - + COUNT( * ) * + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5585
SELECT - + COUNT ( * ) * + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + - col1 + col0 + - - 42 AS col2 FROM tab2 AS cor0
----
29
37
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT 17 * col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 62 + + - col1 = + - col1 * 2
----

skipif mysql # not compatible
query I rowsort label-5587
SELECT 17 * col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 62 + + - col1 = + - col1 * 2
----

query I rowsort
SELECT + - ( + - col2 ) - + 93 + + + 26 FROM tab1 AS cor0
----
-8
1
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 82 BETWEEN ( - 84 / + col1 ) AND ( 28 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * col0 - + - col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT - MIN( ALL - 56 ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - MIN ( ALL - 56 ) AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5592
SELECT DISTINCT + col1 * col1 + + 14 * - CAST( NULL AS DECIMAL ) FROM tab0 WHERE - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT + col1 * col1 + + 14 * - CAST ( NULL AS REAL ) FROM tab0 WHERE - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 96 NOT BETWEEN NULL AND + - col0
----
97
1
99

query I rowsort
SELECT ALL + col2 * 22 FROM tab2
----
1276
506
880

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

query I rowsort
SELECT ALL col1 * 43 FROM tab1
----
2021
215
602

query I rowsort
SELECT 44 * - 12 FROM tab1
----
-528
-528
-528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + SUM( 28 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + SUM ( 28 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + COUNT( * ) * - MAX( - - 1 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + COUNT ( * ) * - MAX ( - - 1 ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT CAST( - - col2 AS SIGNED ) DIV + + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) / + + col0 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT ALL - CAST( NULL AS SIGNED ) * 53 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 29 IN ( - 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT DISTINCT - COUNT( * ) AS col1, - 1 FROM tab1
----
-3
-1

skipif mysql # not compatible
query II rowsort label-5605
SELECT DISTINCT - COUNT ( * ) AS col1, - 1 FROM tab1
----
-3
-1

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0 / 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT DISTINCT - AVG ( ALL col0 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - AVG ( ALL col0 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + col0 ) + - 21 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5610
SELECT DISTINCT COUNT( * ) DIV + 20, - 93 AS col1 FROM tab2
----
0
-93

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT COUNT ( * ) / + 20, - 93 AS col1 FROM tab2
----
0
-93

query I rowsort
SELECT - col0 + + - 28 FROM tab2
----
-103
-74
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL + col1 DIV - 65 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5612
SELECT ALL + col1 / - 65 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + SUM( col0 ) + COUNT( * ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-5613
SELECT + SUM ( col0 ) + COUNT ( * ) FROM tab2
----
188

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 * + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * + 30 * - col1 - + 45 + - 44 - 46 FROM tab1 WHERE - col0 * - col2 * 58 IS NULL
----

query I rowsort
SELECT + col1 + + - col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL + col0 * + - col2 + 82 FROM tab0 AS cor0
----
-623
-788
-9521

query I rowsort
SELECT ALL col2 + + 77 + + ( - col1 ) + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-182
-7503
-9234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 BETWEEN NULL AND - - 15
----

query I rowsort
SELECT ALL + 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT + col2 + 40 FROM tab0
----
139
50
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - 69 + - 57 AS col0, col0 * col1 - + - 73 col1 FROM tab2 AS cor0
----
-51
5098
-62
5001
-80
2419

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 53 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ALL + - 65 * - col0 AS col1 FROM tab0 AS cor0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT + 31, - 63 * + MAX( 54 ) AS col1 FROM tab2 AS cor0
----
31
-3402

skipif mysql # not compatible
query II rowsort label-5626
SELECT + 31, - 63 * + MAX ( 54 ) AS col1 FROM tab2 AS cor0
----
31
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5627
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 19 ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5627
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 19 ) > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - 6 AS col1 FROM tab0 cor0 WHERE NOT - ( col2 ) IS NULL
----
6

query II rowsort
SELECT ALL - + col2 AS col1, col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT col0 < - col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + MIN( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5631
SELECT + MIN ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + SUM( - - 14 ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5632
SELECT + SUM ( - - 14 ) AS col1 FROM tab2
----
42

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + - 20 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT 89 + - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----
89

skipif mysql # not compatible
query I rowsort label-5636
SELECT 89 + - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----
89

query I rowsort
SELECT ALL - 80 * - 24 FROM tab1 AS cor0
----
1920
1920
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + 29 * + COUNT( * ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + 29 * + COUNT ( * ) AS col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 + + col1 - - col1 AS col2 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT 46 * - + CAST( + 55 AS SIGNED ) + + 98 + + - col0 + + col1 FROM tab0 AS cor0
----
-2366
-2498
-2528

skipif mysql # not compatible
query I rowsort label-5642
SELECT 46 * - + CAST ( + 55 AS INTEGER ) + + 98 + + - col0 + + col1 FROM tab0 AS cor0
----
-2366
-2498
-2528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT - COUNT( ALL - 34 ) * - SUM( ALL - 0 ) DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - COUNT ( ALL - 34 ) * - SUM ( ALL - 0 ) / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - COUNT( ALL + 35 ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5644
SELECT - COUNT ( ALL + 35 ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5645
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT ALL 36 * col0 DIV 43 * - col1 AS col0 FROM tab2 AS cor0
----
-1938
-4081
-4154

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL 36 * col0 / 43 * - col1 AS col0 FROM tab2 AS cor0
----
-1938
-4081
-4154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT DISTINCT + + CAST( col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT - COUNT( ALL - col2 ) DIV + 44 * - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - COUNT ( ALL - col2 ) / + 44 * - COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5649
SELECT * FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) + col0 - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5649
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) + col0 - col0 IS NULL
----

query II rowsort
SELECT ALL + col0 AS col1, - 92 AS col1 FROM tab0
----
15
-92
87
-92
97
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT 14 * - MAX( ALL col0 ) AS col1 FROM tab1
----
-1274

skipif mysql # not compatible
query I rowsort label-5653
SELECT 14 * - MAX ( ALL col0 ) AS col1 FROM tab1
----
-1274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - col0, - col2 col1 FROM tab0
----
-77
-10
2
-99
32
-47

query I rowsort
SELECT + col2 + + 27 AS col1 FROM tab2 AS cor0
----
50
67
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 99 + + + col0 + - - col1, 69 * + - 53 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col0 ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT DISTINCT + + ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + + ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - MIN( + 92 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5659
SELECT - MIN ( + 92 ) FROM tab0 AS cor0
----
-92

onlyif mysql # CAST syntax: aggregate