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 syntax: SIGNED type: 
query I rowsort label-5660
SELECT + + 91 * COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT ALL - col2 / + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL MAX( - col2 ) col2 FROM tab1 AS cor0 WHERE ( 33 * + - col1 ) NOT BETWEEN + col1 * + + 8 AND + + 4
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5662
SELECT ALL MAX ( - col2 ) col2 FROM tab1 AS cor0 WHERE ( 33 * + - col1 ) NOT BETWEEN + col1 * + + 8 AND + + 4
----
-59

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

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

query I rowsort
SELECT ALL + + 37 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 41 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT - - COUNT( - + col1 ) col2 FROM tab1 WHERE col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5667
SELECT DISTINCT - - COUNT ( - + col1 ) col2 FROM tab1 WHERE col0 <> NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 NOT IN ( 71, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - COUNT( - 92 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5670
SELECT - COUNT ( - 92 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT 82 DIV + 15 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5671
SELECT 82 / + 15 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT SUM( - col2 ) col1 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5672
SELECT SUM ( - col2 ) col1 FROM tab0
----
-156

query I rowsort
SELECT ALL - 18 + + col2 FROM tab2 AS cor0
----
22
40
5

query I rowsort
SELECT DISTINCT + col0 + + 67 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
211
214
226

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 66 * - - col1 + + - 31 / + 84 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col1 * 17 * col0 * - 25 AS col1 FROM tab1 AS cor0
----
180625
1817725
303450

query I rowsort
SELECT col2 + + + col2 * - - 24 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT DISTINCT + ( 70 ) + + col0 FROM tab2
----
116
134
145

onlyif mysql # DIV for integer division: 
query II rowsort label-5682
SELECT ALL 19 DIV - 94 * 32 * + 57 * + + col2 + + + col1 * ( - + col2 ), col1 col0 FROM tab2
----
-1173
51
-3080
77
-3886
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT ALL 19 / - 94 * 32 * + 57 * + + col2 + + + col1 * ( - + col2 ), col1 col0 FROM tab2
----
-1173
51
-3080
77
-3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - COUNT( * ) + COUNT( ALL 24 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT - COUNT ( * ) + COUNT ( ALL 24 ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + - 64 col2 FROM tab2
----
-126
-126
-126

query I rowsort
SELECT ALL + 7 + - + 83 FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL COUNT( * ) - + - 60 AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL COUNT ( * ) - + - 60 AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - 85 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-85
-85
-85

query I rowsort
SELECT - 87 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT - + MIN( - ( 58 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-5689
SELECT - + MIN ( - ( 58 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT + CAST( + + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5690
SELECT + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

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

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

query II rowsort
SELECT ALL col0, 70 * - + col1 FROM tab2 AS cor0
----
46
-3570
64
-5390
75
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + 77 * SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
17479

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 77 * SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
17479

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5695
SELECT - 84 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5695
SELECT - 84 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL + ( - - col0 ) * + col2 * 72 AS col0 FROM tab0
----
50760
62640
691416

query I rowsort
SELECT + col1 * - col2 * - col0 * - - 71 + col1 + col2 * col1 FROM tab0 AS cor0
----
1297401
4058343
681913

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE ( + 23 * - 1 IS NULL )
----

query I rowsort
SELECT + - ( + 81 ) FROM tab2 cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab2 WHERE - col0 < NULL
----

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

query I rowsort
SELECT ALL 11 + + col2 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT + + 81 + 12 AS col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + 91 + + 82 AS col2 FROM tab0 AS cor0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + + ( + MIN( - 46 ) ) col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT ALL + + ( + MIN ( - 46 ) ) col1 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT + - COUNT( * ) + - 63 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + - COUNT ( * ) + - 63 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT - COUNT( DISTINCT - ( 3 ) ) * - - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5707
SELECT - COUNT ( DISTINCT - ( 3 ) ) * - - COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT col2 * + CAST( NULL AS SIGNED ) - + + col1 * ( + col1 ) - + - 78 col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + 47 * + + SUM( col1 ) AS col2 FROM tab0
----
4841

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + 47 * + + SUM ( col1 ) AS col2 FROM tab0
----
4841

query I rowsort
SELECT - 46 + + col1 AS col2 FROM tab2
----
21
31
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5711
SELECT DISTINCT - 82 DIV CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - 82 / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + - MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + - MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL 33 * - 24 FROM tab0
----
-792
-792
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + 13 * + col1 DIV + col1 AS col2 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5714
SELECT + 13 * + col1 / + col1 AS col2 FROM tab2
----
13
13
13

query II rowsort
SELECT ALL - col0 * col1 * + col2 AS col0, - 9 AS col1 FROM tab1
----
-25075
-9
-290836
-9
-68544
-9

query I rowsort
SELECT + + 87 FROM tab2 AS cor0 WHERE NOT 29 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 99, - 79 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5721
SELECT + col1 FROM tab2 WHERE NOT col1 * - + col1 + - + 35 = ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5721
SELECT + col1 FROM tab2 WHERE NOT col1 * - + col1 + - + 35 = ( - + CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ( - MAX( DISTINCT - ( + - col2 ) ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5723
SELECT ( - MAX ( DISTINCT - ( + - col2 ) ) ) FROM tab1
----
-96

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

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

query I rowsort
SELECT DISTINCT - col2 + + + col0 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col2 * - 3 AS col2 FROM tab1 AS cor0
----
-177
-204
-288

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) <= col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL - COUNT( * ) AS col0 FROM tab1, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - COUNT ( * ) AS col0 FROM tab1, tab0 cor0
----
-9

query I rowsort
SELECT ALL + - col1 * + col0 + - - col1 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query II rowsort
SELECT DISTINCT col2 + - + col2 AS col2, + 44 * - col2 AS col2 FROM tab1 AS cor0
----
0
-2596
0
-2992
0
-4224

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

query I rowsort
SELECT ALL + + col1 + + 22 AS col0 FROM tab0 AS cor0
----
103
23
43

query I rowsort
SELECT DISTINCT col2 - + 49 AS col2 FROM tab1
----
10
19
47

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

query I rowsort
SELECT - 56 + + col0 FROM tab2
----
-10
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 50 * + ( + - MAX( DISTINCT - 46 ) ) FROM tab0
----
2300

skipif mysql # not compatible
query I rowsort label-5738
SELECT 50 * + ( + - MAX ( DISTINCT - 46 ) ) FROM tab0
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT + COUNT( + col0 ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5739
SELECT + COUNT ( + col0 ) / COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL MIN( DISTINCT + 44 ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL MIN ( DISTINCT + 44 ) AS col0 FROM tab1
----
44

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT 99 * 58 FROM tab1
----
5742
5742
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT COUNT( DISTINCT 38 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT COUNT ( DISTINCT 38 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5744
SELECT - + CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) AS col0 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5744
SELECT - + CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL
3

query I rowsort
SELECT - + 11 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) * - col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) * - col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 60 AND + + col2
----

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 - - - col0 col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query II rowsort label-5750
SELECT - 66 * - 95 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6270
-3

skipif mysql # not compatible
query II rowsort label-5750
SELECT - 66 * - 95 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6270
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - - SUM( + 52 ) * + 97 * 83 FROM tab1 AS cor0
----
1255956

skipif mysql # not compatible
query I rowsort label-5751
SELECT - - SUM ( + 52 ) * + 97 * 83 FROM tab1 AS cor0
----
1255956

query I rowsort
SELECT DISTINCT + col0 * - + 69 FROM tab1 AS cor0
----
-3519
-5865
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT + CAST( - - 82 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

skipif mysql # not compatible
query I rowsort label-5753
SELECT + CAST ( - - 82 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5755
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 80 FROM tab0 WHERE NOT ( 96 - + col1 * - col2 IN ( + col1, + col2, + col2, + - 23 ) )
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab1 WHERE NULL IN ( ( - col2 ) * + + 59 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab1 WHERE NULL IN ( ( - col2 ) * + + 59 * - col0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5758
SELECT ALL - 53 DIV + + COUNT( * ) col2 FROM tab1
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5758
SELECT ALL - 53 / + + COUNT ( * ) col2 FROM tab1
----
-17

query I rowsort
SELECT ALL 47 + - - col1 AS col2 FROM tab2
----
114
124
98

query I rowsort
SELECT DISTINCT col1 * - col2 + + - 86 + col1 + + col2 * - + col1 FROM tab0 AS cor0
----
-283
-485
-7619

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - MAX( ALL col1 ) + 35 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5761
SELECT - MAX ( ALL col1 ) + 35 AS col1 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5763
SELECT ALL - + MIN( ALL + - 7 ) DIV - SUM( 24 ) AS col1 FROM tab2 WHERE - ( - - ( - 12 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - + MIN ( ALL + - 7 ) / - SUM ( 24 ) AS col1 FROM tab2 WHERE - ( - - ( - 12 ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT + ( - + ( - 42 ) ) + + COUNT( + col0 ) col1 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5764
SELECT + ( - + ( - 42 ) ) + + COUNT ( + col0 ) col1 FROM tab2
----
45

query I rowsort
SELECT ALL + + col2 + - 38 AS col2 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE col0 + + col0 NOT BETWEEN NULL AND - + CAST( - col2 AS SIGNED )
----
-3

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

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

query I rowsort
SELECT ALL 57 + 54 FROM tab2 AS cor0
----
111
111
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + + col2 col1 FROM tab1 AS cor0
----
120
129
157

query I rowsort
SELECT ALL - + col0 - + 23 AS col0 FROM tab1 AS cor0
----
-108
-114
-74

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - 12 )
----

query I rowsort
SELECT ALL col1 * + col0 + - + col2 FROM tab2
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5773
SELECT 47 * 57 AS col1, CAST( 79 AS SIGNED ) FROM tab1
----
2679
79
2679
79
2679
79

skipif mysql # not compatible
query II rowsort label-5773
SELECT 47 * 57 AS col1, CAST ( 79 AS INTEGER ) FROM tab1
----
2679
79
2679
79
2679
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT - SUM( DISTINCT + - 53 ) AS col1, + ( - COUNT( * ) ) FROM tab2
----
53
-3

skipif mysql # not compatible
query II rowsort label-5774
SELECT - SUM ( DISTINCT + - 53 ) AS col1, + ( - COUNT ( * ) ) FROM tab2
----
53
-3

query II rowsort
SELECT col0 * + 15, + col1 AS col0 FROM tab1
----
1275
5
1365
47
765
14

query II rowsort
SELECT - 39 * + + 48, col0 FROM tab1
----
-1872
51
-1872
85
-1872
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + ( MAX( 83 ) ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5777
SELECT + ( MAX ( 83 ) ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT DISTINCT CAST( NULL AS SIGNED ), + ( + 87 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5778
SELECT DISTINCT CAST ( NULL AS INTEGER ), + ( + 87 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
87

query II rowsort
SELECT + + 46 AS col0, col1 AS col2 FROM tab0 AS cor0
----
46
1
46
21
46
81

query I rowsort
SELECT DISTINCT - col0 * 23 FROM tab2 AS cor0
----
-1058
-1472
-1725

query I rowsort
SELECT + - 60 FROM tab0 AS cor0 WHERE NOT 34 > - col1
----

query I rowsort
SELECT ALL 72 AS col2 FROM tab2 AS cor0 WHERE + col0 < + col2 + col1
----
72
72
72

query I rowsort
SELECT + - col0 * - 69 FROM tab2 cor0
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT + COUNT( - col2 ) * - 74 AS col2 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT + COUNT ( - col2 ) * - 74 AS col2 FROM tab2 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + COUNT( ALL + + col1 ) FROM tab2 AS cor0 WHERE NOT col1 + - - 50 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5785
SELECT + COUNT ( ALL + + col1 ) FROM tab2 AS cor0 WHERE NOT col1 + - - 50 + + col0 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + 90 + + - COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 90 + + - COUNT ( * ) AS col1 FROM tab0
----
87

query I rowsort
SELECT col2 * + col2 + - col1 FROM tab0
----
2128
79
9800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab0 WHERE - col1 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab0 WHERE - col1 IS NOT NULL
----
10
47
99

query II rowsort
SELECT col2 + col0 * - - col2 * - 64 AS col1, + ( + + col1 ) AS col1 FROM tab0
----
-45073
81
-55670
21
-614493
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL - 51 * COUNT( * ) + 32 FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - 51 * COUNT ( * ) + 32 FROM tab0 AS cor0
----
-121

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 NOT BETWEEN - + 45 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT - 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - MAX( - col1 ) + + 2 FROM tab1 WHERE NULL IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-5795
SELECT - MAX ( - col1 ) + + 2 FROM tab1 WHERE NULL IS NULL
----
7

query II rowsort
SELECT - col1 AS col0, - col0 AS col0 FROM tab1
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL OR NOT - col1 * - + 60 <> NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col2 - 66 + col2 + 99 AS col0 FROM tab1 cor0
----
-3389
-4523
-9087

query I rowsort
SELECT DISTINCT - col0 - 13 AS col1 FROM tab1 AS cor0
----
-104
-64
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - + 66 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - ( + - 93 ) FROM tab0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5804
SELECT DISTINCT + 27 AS col1, + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT + 27 AS col1, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
27
NULL

query I rowsort
SELECT col2 * + col1 * - col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - COUNT( - - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5806
SELECT - COUNT ( - - col1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT 58 * col0 AS col0 FROM tab0
----
5046
5626
870

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT MAX( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT MAX ( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5811
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 * col1 * - 21 / + + 84 + 27 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5811
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 * col1 * - 21 / + + 84 + 27 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 AS col0, 98 col0 FROM tab0 cor0
----
45
98
45
98
45
98

query II rowsort
SELECT ALL 73 + - - col0 AS col1, 83 FROM tab0 WHERE NOT - col2 IS NULL
----
160
83
170
83
88
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL - - MIN( + CAST( + + 44 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - - MIN ( + CAST ( + + 44 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT - 91 + + col1 + + + col0 FROM tab2 AS cor0
----
50
51
6

query II rowsort
SELECT ALL col0 + + col1 AS col0, 68 * 19 FROM tab2 AS cor0
----
141
1292
142
1292
97
1292

query I rowsort
SELECT - + 90 FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 52 * ( - col2 ) + col2 AS col1 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT - + 83 * + col1 * - - col0 AS col0 FROM tab0 AS cor0
----
-100845
-151641
-8051

query III rowsort
SELECT * FROM tab0 cor0 WHERE 77 * - col0 IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL 48 + col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 75 + + + col2 AS col2 FROM tab2
----
-17
-35
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT COUNT( * ) - + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5826
SELECT COUNT ( * ) - + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 47 + - 76 AS col1 FROM tab2 AS cor0
----
-123
-123
-123

query I rowsort
SELECT ALL + 92 - - - col0 FROM tab2 AS cor0
----
17
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT COUNT( * ) + - 5 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT COUNT ( * ) + - 5 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + col0 - - ( - - 88 ) * + 19 FROM tab1 AS cor0
----
1723
1757
1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT + - 6 + - COUNT( * ) + - - 23 * + 9 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) BETWEEN NULL AND 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT + - 6 + - COUNT ( * ) + - - 23 * + 9 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) BETWEEN NULL AND 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT COUNT( * ) * + 52 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT COUNT ( * ) * + 52 AS col2 FROM tab0
----
156

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + + col1 * col1 - 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 / col0 AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 57 + + col0 * - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT + CAST( ( + + 29 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
29
29
29

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5838
SELECT ALL - - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( - 19 ) > - col1 / 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <> + col1 + + col0
----

query I rowsort
SELECT col1 * 47 FROM tab0
----
3807
47
987

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

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

query I rowsort
SELECT ( 84 ) AS col2 FROM tab0
----
84
84
84

query II rowsort
SELECT DISTINCT - col0, 19 AS col2 FROM tab2 AS cor0
----
-46
19
-64
19
-75
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - COUNT( - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - COUNT ( - col1 ) FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col2 * - 73 col2 FROM tab0 AS cor0
----
15
-3431
87
-730
97
-7227

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

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

query I rowsort
SELECT DISTINCT col1 + + 4 AS col1 FROM tab0 AS cor0
----
25
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5851
SELECT * FROM tab2 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5851
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT DISTINCT 18 + + 46 * col0 AS col0 FROM tab1
----
2364
3928
4204

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT + 98 + - col0 * col0 DIV - col2 AS col2 FROM tab1
----
125
219
220

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 98 + - col0 * col0 / - col2 AS col2 FROM tab1
----
125
219
220

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT COUNT( * ) + 48 FROM tab0, tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5856
SELECT COUNT ( * ) + 48 FROM tab0, tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - COUNT( * ) * COUNT( DISTINCT + col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT + col0 ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT + col2 + - col1 + + - col1, - 55 DIV col0 AS col1 FROM tab1
----
-26
0
49
0
68
-1

skipif mysql # not compatible
query II rowsort label-5858
SELECT + col2 + - col1 + + - col1, - 55 / col0 AS col1 FROM tab1
----
-26
0
49
0
68
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 72 ) col1, col1 + + + col1 AS col0 FROM tab0
----
-72
162
-72
2
-72
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT + 20 - - 81 * COUNT( * ) FROM tab0 AS cor0
----
263

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT + 20 - - 81 * COUNT ( * ) FROM tab0 AS cor0
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - - MIN( - 32 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5861
SELECT - - MIN ( - 32 ) FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + 29 - col0 AS col0 FROM tab2 AS cor0
----
-17
-35
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT ALL + col2 DIV 59 DIV + col1 - col2 * - col1 * + col2 * - col2 FROM tab2 AS cor0
----
-13072504
-4928000
-620517

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + col2 / 59 / + col1 - col2 * - col1 * + col2 * - col2 FROM tab2 AS cor0
----
-13072504
-4928000
-620517

query II rowsort
SELECT 45 - - 41 * col0 AS col0, - col0 FROM tab0
----
3612
-87
4022
-97
660
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5865
SELECT 17 col2, CAST( + col1 AS SIGNED ) col1 FROM tab1
----
17
14
17
47
17
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5865
SELECT 17 col2, CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
17
14
17
47
17
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - 50 AS col0, COUNT( - col2 ) FROM tab1
----
-50
3

skipif mysql # not compatible
query II rowsort label-5866
SELECT - 50 AS col0, COUNT ( - col2 ) FROM tab1
----
-50
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 97 + ( + 96 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT + col2 DIV + + 54 AS col0 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT DISTINCT + 11 * - 17 FROM tab1 cor0
----
-187

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) < 67 * col1 + + col0 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) < 67 * col1 + + col0 + - col0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT col0 DIV col2 * - 25 FROM tab2 AS cor0
----
-25
-25
-50

skipif mysql # not compatible
query I rowsort label-5873
SELECT col0 / col2 * - 25 FROM tab2 AS cor0
----
-25
-25
-50

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE - 80 IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT ALL ( + 47 ) FROM tab0
----
47
47
47

query I rowsort
SELECT ALL + 55 + - - col1 AS col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT 36 * MIN( col1 ) FROM tab2
----
1836

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT 36 * MIN ( col1 ) FROM tab2
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT + COUNT( * ) * 40 * - + COUNT( * ) col0 FROM tab2
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5879
SELECT + COUNT ( * ) * 40 * - + COUNT ( * ) col0 FROM tab2
----
-360

query I rowsort
SELECT - 69 * - - col1 FROM tab0
----
-1449
-5589
-69

query II rowsort
SELECT - 9 * - 2, col0 + - - 94 + - + ( + col0 ) * - col2 AS col1 FROM tab2
----
18
1198
18
2718
18
4519

query I rowsort
SELECT ALL - 6 * col1 * col1 * - col1 FROM tab2 AS cor0
----
1804578
2739198
795906

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - col1 < - col0 + + col0 - + - col1 * + col2 * + col1 * - 57 * + - col2
----

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

query I rowsort
SELECT DISTINCT col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - 0 + + + col2, - col0 + - col2 - + 52 + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-75
40
-92
58
-110

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

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

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

query I rowsort
SELECT 85 + 93 AS col1 FROM tab1
----
178
178
178

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT DISTINCT col1 DIV - 41 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT col1 / - 41 FROM tab1
----
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT + 48 + + COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 48 + + COUNT ( * ) FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT - col1 * - col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-24990
-290745
-68493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 57 * col0 FROM tab0 cor0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query II rowsort label-5897
SELECT + 62 * - - COUNT( DISTINCT - + 80 ) AS col2, 69 FROM tab2 cor0
----
62
69

skipif mysql # not compatible
query II rowsort label-5897
SELECT + 62 * - - COUNT ( DISTINCT - + 80 ) AS col2, 69 FROM tab2 cor0
----
62
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL 42 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL 42 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT DISTINCT + - col0 DIV - 15 - col1 FROM tab2 AS cor0
----
-48
-62
-73

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + - col0 / - 15 - col1 FROM tab2 AS cor0
----
-48
-62
-73

query I rowsort
SELECT ALL + 62 * col2 - - - col2 FROM tab1
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL CAST( NULL AS SIGNED ) * + 20 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + + COUNT( ALL + - ( + 33 ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5902
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + COUNT ( ALL + - ( + 33 ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - - 43 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5904
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + CAST( + - col1 AS SIGNED ) + + col2 + - + col0 DIV + col1 + + col2 FROM tab0
----
100
15
93

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + CAST ( + - col1 AS INTEGER ) + + col2 + - + col0 / + col1 + + col2 FROM tab0
----
100
15
93

query I rowsort
SELECT DISTINCT - col2 - - col1 + - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1426
-3217
-349

query I rowsort
SELECT ALL - - col0 - + col2 * 47 AS col2 FROM tab0 AS cor0
----
-2194
-383
-4556

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

query I rowsort
SELECT DISTINCT - col1 + col2 + + 77 AS col0 FROM tab1 WHERE NULL IS NULL
----
131
159
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + MAX( DISTINCT - 76 ) * + 16 FROM tab0 cor0
----
-1216

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + MAX ( DISTINCT - 76 ) * + 16 FROM tab0 cor0
----
-1216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 67 AND - 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT + + 74 DIV + ( ( - - col2 ) ) FROM tab1 AS cor0
----
0
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT + - CAST( - col1 AS SIGNED ) / + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

skipif mysql # not compatible
query I rowsort label-5914
SELECT + - CAST ( - col1 AS INTEGER ) / + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT ALL col2 * col1 DIV col2 + - - col0 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL col2 * col1 / col2 + - - col0 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL col1 * - col1 * - col2 * + 99 AS col0 FROM tab0 cor0
----
30528333
436590
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT DISTINCT - col1 DIV + + col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - col1 / + + col0 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 82 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + - 34 * - + col0 + col1 AND - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + 52 * - COUNT( ALL + 65 ) + + 88 * - - 7 + - COUNT( * ) AS col2 FROM tab0
----
457

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 52 * - COUNT ( ALL + 65 ) + + 88 * - - 7 + - COUNT ( * ) AS col2 FROM tab0
----
457

query I rowsort
SELECT col0 + + 7 AS col0 FROM tab1
----
58
92
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - 10 / col2 + + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col0 * - col0 - + 37 * + + col2 FROM tab1 AS cor0
----
129099
611942
751055

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

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

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

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL col2 + 69 FROM tab1 WHERE NOT ( - col1 + - 93 ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT 56 + COUNT( * ) AS col0 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5927
SELECT 56 + COUNT ( * ) AS col0 FROM tab2
----
59

query I rowsort
SELECT + col2 + + 61 FROM tab1
----
120
129
157

query III rowsort
SELECT * FROM tab2 WHERE + 49 NOT BETWEEN ( NULL ) AND ( - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 77 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * col2 + col2 col1 FROM tab0
----
2538
5346
540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5932
SELECT DISTINCT 96 + CAST( + col1 AS DECIMAL ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT 96 + CAST ( + col1 AS REAL ) FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * + col1 - - 60 AS col2 FROM tab2
----
1233
3140
3946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT CAST( - col1 AS SIGNED ) * col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5935
SELECT CAST ( - col1 AS INTEGER ) * col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT 97 + + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5936
SELECT 97 + + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT - col2 * col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT COUNT( * ) * 2 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5938
SELECT COUNT ( * ) * 2 AS col2 FROM tab1
----
6

query I rowsort
SELECT - 65 FROM tab0 WHERE ( col1 / col0 ) IS NULL
----

query I rowsort
SELECT col1 + 38 FROM tab0
----
119
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL COUNT( * ) FROM tab1 WHERE ( 71 ) NOT IN ( + 13 )
----
3

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( 71 ) NOT IN ( + 13 )
----
3

query I rowsort
SELECT ALL + col0 + 16 AS col0 FROM tab2
----
62
80
91

query I rowsort
SELECT + 0 + + col2 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5944
SELECT + 74 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT + 74 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT + col0 DIV + ( col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT + col0 / + ( col0 ) FROM tab0
----
1

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

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * ( + col2 ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT ALL + col2 DIV 15 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + col2 / 15 AS col1 FROM tab2
----
1
2
3

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

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab2 WHERE NOT ( 85 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + COUNT( ALL 74 ) AS col1 FROM tab0 WHERE NOT ( + col0 * + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5952
SELECT + COUNT ( ALL 74 ) AS col1 FROM tab0 WHERE NOT ( + col0 * + col0 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT ( + col2 ) * - CAST( col1 AS SIGNED ) + + col0 < + col0 + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) / - col2
----

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT ( + col2 ) * - CAST ( col1 AS INTEGER ) + + col0 < + col0 + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) / - col2
----

query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 46 ) <> col1 + - col0 * 46
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE col1 - 27 BETWEEN - 27 AND ( - col1 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT - CAST( COUNT( - ( col1 ) ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-3

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 * - ( 47 * 49 ) BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + ( - COUNT( ALL col0 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + ( - COUNT ( ALL col0 ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + 8 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 71 AND NULL
----

query I rowsort
SELECT + ( + col0 ) FROM tab0 cor0 WHERE NOT ( col2 * + ( col1 * + 96 ) ) IN ( - col1 )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col2 col2 FROM tab0 AS cor0
----
705
870
9603

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT + - col1 DIV - 28 AS col1 FROM tab2 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5964
SELECT + - col1 / - 28 AS col1 FROM tab2 cor0
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> col2 * 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL + CAST( + SUM( DISTINCT col1 ) AS SIGNED ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + CAST ( + SUM ( DISTINCT col1 ) AS INTEGER ) AS col2 FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > col2 / col2 OR NOT + col1 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col1 * + col0 - - 26 * col0 < NULL
----

query I rowsort
SELECT ALL 76 + + col1 FROM tab1
----
123
81
90

query I rowsort
SELECT - 68 * + col2 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query I rowsort
SELECT ALL + + col1 * col2 + - col1 FROM tab0 AS cor0
----
189
3726
98

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

query I rowsort
SELECT col0 * 30 AS col0 FROM tab1 AS cor0 WHERE 12 NOT BETWEEN - col1 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT - 64 * - col1 + + 46 + - CAST( + col1 AS SIGNED ) * + col0 AS col0 FROM tab0 cor0
----
-437
13
4015

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 64 * - col1 + + 46 + - CAST ( + col1 AS INTEGER ) * + col0 AS col0 FROM tab0 cor0
----
-437
13
4015

query I rowsort
SELECT + 30 + - col2 + + col0 AS col0 FROM tab2
----
47
53
54

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

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

query I rowsort
SELECT + 68 + - ( 35 ) FROM tab1
----
33
33
33

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

skipif mysql # not compatible
query I rowsort label-5979
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 + + col1 * - - 31 + col2 AS col0 FROM tab2
----
1655
2202
2504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 * - col1 + - 97 > - ( 48 )
----

query I rowsort
SELECT DISTINCT - 4 + + 1 AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col0 + - 31 AND 91 * - 61
----
-3

query I rowsort
SELECT ALL - + 60 + + 36 FROM tab1 AS cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - + col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 89 + - + ( - col2 ) * 74 FROM tab2 AS cor0
----
1791
3049
4381

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5987
SELECT SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT - col0, - ( + + col2 ) + + 97 AS col0 FROM tab2 AS cor0
----
-46
74
-64
57
-75
39

query I rowsort
SELECT DISTINCT - col1 - - ( col0 ) + - col1 + - col1 * ( + col1 ) FROM tab0
----
-396
-6708
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + SUM( col1 ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5990
SELECT + SUM ( col1 ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - 33 * - MIN( ALL col0 ) + - - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
486

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - 33 * - MIN ( ALL col0 ) + - - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
486

query I rowsort
SELECT ( - col0 ) + 10 AS col1 FROM tab2
----
-36
-54
-65

query I rowsort
SELECT ALL col1 * - col1 * + + col2 AS col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT + col0 * - + 73 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT 61 DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5995
SELECT 61 / + + col1 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) = col2 * + 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5998
SELECT DISTINCT col2 DIV - col1, + 17 * - - col2 * - col0 col0 FROM tab1 AS cor0
----
-1
-105196
-11
-85255
-6
-83232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5998
SELECT DISTINCT col2 / - col1, + 17 * - - col2 * - col0 col0 FROM tab1 AS cor0
----
-1
-105196
-11
-85255
-6
-83232

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 + col2 NOT BETWEEN NULL AND ( + 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL + + 81 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6003
SELECT COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 83 + - - col2 IN ( - 31 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6008
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * CAST( - ( - + col2 ) AS DECIMAL ) - 86 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * CAST ( - ( - + col2 ) AS REAL ) - 86 * col0 IS NULL
----
-3

query I rowsort
SELECT col2 * + + 16 * - col0 AS col1 FROM tab1
----
-78336
-80240
-99008

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

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

query I rowsort
SELECT col2 + + - col0 AS col1 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL col1, - 94 FROM tab1
----
14
-94
47
-94
5
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT ALL CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT MIN( DISTINCT col2 ) FROM tab0 WHERE CAST( + col2 AS SIGNED ) NOT BETWEEN ( - col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT MIN ( DISTINCT col2 ) FROM tab0 WHERE CAST ( + col2 AS INTEGER ) NOT BETWEEN ( - col0 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT + CAST( - COUNT( - 78 ) AS SIGNED ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6015
SELECT + CAST ( - COUNT ( - 78 ) AS INTEGER ) FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + COUNT( * ) + MAX( 25 ) + + COUNT( * ) * - + 80 FROM tab1
----
-212

skipif mysql # not compatible
query I rowsort label-6016
SELECT + COUNT ( * ) + MAX ( 25 ) + + COUNT ( * ) * - + 80 FROM tab1
----
-212

query I rowsort
SELECT col1 + 47 + col2 AS col0 FROM tab0
----
147
175
78

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT 4 * - ( - + 49 ) > ( + ( + - 13 ) )
----

query II rowsort
SELECT - + col2 AS col0, - col0 - - col0 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query II rowsort
SELECT DISTINCT + 23 AS col2, + 91 FROM tab1 AS cor0
----
23
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col0, 21 col0 FROM tab2
----
-2346
21
-4928
21
-5025
21

query I rowsort
SELECT 28 - - - 47 FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT COUNT( * ) - + COUNT( + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT COUNT ( * ) - + COUNT ( + col0 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 * - col0 NOT IN ( col1, 58 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT ( - - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + + ( - col2 ) ) * - + 16 NOT IN ( + - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6030
SELECT MAX( - col2 ) * + CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT - col2 * - col1 + - col1 * - - col0 AS col1 FROM tab2 AS cor0
----
-1139
-1173
-1848

query I rowsort
SELECT - col0 + 35 AS col2 FROM tab1 AS cor0
----
-16
-50
-56

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

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

query I rowsort
SELECT DISTINCT 85 + - col0 AS col0 FROM tab0 AS cor0
----
-12
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - COUNT( DISTINCT + ( col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6035
SELECT - COUNT ( DISTINCT + ( col2 ) ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, col2 col1 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT - 76, col0 * + col1 + + 59 * - 25 AS col2 FROM tab2
----
-76
3453
-76
3550
-76
871

query III rowsort
SELECT * FROM tab1 WHERE NOT - 74 BETWEEN - - col2 * + col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + ( + 17 ), - col1 FROM tab0 WHERE NOT - col0 * - 83 NOT BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) + - col1 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT - MAX( + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - MAX ( + col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - - 52 * 27 AS col2 FROM tab1 AS cor0
----
1404
1404
1404

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT DISTINCT - CAST( MIN( ALL + + col0 ) AS SIGNED ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - CAST ( MIN ( ALL + + col0 ) AS INTEGER ) FROM tab2
----
-46

query I rowsort
SELECT - + 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL < NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - MIN( ALL + 67 ) col0 FROM tab1 cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6048
SELECT ALL - MIN ( ALL + 67 ) col0 FROM tab1 cor0
----
-67

query I rowsort
SELECT + - ( + col0 ) * + - 61 + - + 58 AS col0 FROM tab0 AS cor0
----
5249
5859
857

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - - SUM( + col0 ) * + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-6050
SELECT - - SUM ( + col0 ) * + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
597

query I rowsort
SELECT + 16 * - + 34 FROM tab1
----
-544
-544
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + COUNT( * ) * + - ( - 97 ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COUNT ( * ) * + - ( - 97 ) FROM tab1
----
291

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - 7 BETWEEN + - col0 AND ( NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6058
SELECT + CAST( NULL AS SIGNED ), + col2 * - 56 AS col2 FROM tab1 AS cor0
----
NULL
-3304
NULL
-3808
NULL
-5376

skipif mysql # not compatible
query II rowsort label-6058
SELECT + CAST ( NULL AS INTEGER ), + col2 * - 56 AS col2 FROM tab1 AS cor0
----
NULL
-3304
NULL
-3808
NULL
-5376

onlyif mysql # DIV for integer division: 
query II rowsort label-6059
SELECT ALL + + 98 + - col0 + + col2 AS col1, - col2 DIV - - col1 * - - 47 AS col1 FROM tab2 AS cor0
----
74
0
75
0
81
0

skipif mysql # not compatible
query II rowsort label-6059
SELECT ALL + + 98 + - col0 + + col2 AS col1, - col2 / - - col1 * - - 47 AS col1 FROM tab2 AS cor0
----
74
0
75
0
81
0

query I rowsort
SELECT + + col1 + - ( - + 7 ) AS col1 FROM tab1 AS cor0
----
12
21
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, 83 col0 FROM tab2 AS cor0
----
-23
83
-40
83
-58
83

query I rowsort
SELECT + 97 + + col1 FROM tab2 cor0
----
148
164
174

query I rowsort
SELECT col0 * - 41 AS col0 FROM tab0
----
-3567
-3977
-615

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6064
SELECT - CAST( NULL AS DECIMAL ) AS col1, + 4 AS col1 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-6064
SELECT - CAST ( NULL AS REAL ) AS col1, + 4 AS col1 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

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

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6067
SELECT * FROM tab2 AS cor0 WHERE NULL > CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6067
SELECT * FROM tab2 AS cor0 WHERE NULL > CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT + 61 * + - col1 * + col1 - - col1 FROM tab2 AS cor0
----
-158610
-273762
-361592

query I rowsort
SELECT ALL col0 + + 5 AS col1 FROM tab2 AS cor0
----
51
69
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT - + CAST( 33 AS SIGNED ) FROM tab1 AS cor0
----
-33
-33
-33

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

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 84 > NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - col1 * - + CAST ( NULL AS REAL ) * CAST ( + 29 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col1 ) * - + col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - col0 * - - col0 * + + col1 AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6076
SELECT DISTINCT 28 DIV - - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT 28 / - - COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT 42 * COUNT( ALL - col1 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT 42 * COUNT ( ALL - col1 ) FROM tab0
----
126

query I rowsort
SELECT + col0 * + + 41 + + - col1 + + + 89 AS col0 FROM tab1 cor0
----
2166
3569
3773

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE + col2 * + col2 IS NOT NULL
----
10
47
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6081
SELECT + 71, CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT + 71, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
71
NULL
71
NULL
71
NULL

query I rowsort
SELECT ALL + 80 + - + col0 AS col0 FROM tab2 AS cor0
----
16
34
5

query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6084
SELECT ALL + ( + - 84 ) DIV COUNT( ALL col2 ) AS col2, - COUNT( * ) + + 34 * + MIN( ALL col0 ) AS col2 FROM tab2 cor0
----
-28
1561

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL + ( + - 84 ) / COUNT ( ALL col2 ) AS col2, - COUNT ( * ) + + 34 * + MIN ( ALL col0 ) AS col2 FROM tab2 cor0
----
-28
1561

query I rowsort
SELECT + 50 + - 76 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE + col2 NOT IN ( col0, - 82 + - + col2 )
----
-1
-21
-81

query I rowsort
SELECT - 34 + + - col2 + - 97 AS col2 FROM tab1
----
-190
-199
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT - - SUM( ALL + - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - - SUM ( ALL + - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - COUNT( * ) + - COUNT( ALL + ( + 12 ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6089
SELECT - COUNT ( * ) + - COUNT ( ALL + ( + 12 ) ) FROM tab0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6090
SELECT DISTINCT 80 + - CAST( NULL AS DECIMAL ) * + + 12 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT 80 + - CAST ( NULL AS REAL ) * + + 12 AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + 67 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6094
SELECT + MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL - SUM( - + 43 ) FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - SUM ( - + 43 ) FROM tab2 AS cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT - CAST( NULL AS SIGNED ) / + 77 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 92 - - col1 FROM tab2 WHERE - 66 IS NOT NULL
----
143
159
169

query I rowsort
SELECT ALL - 83 * + 61 FROM tab0
----
-5063
-5063
-5063

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 col2, + 75 FROM tab1
----
-81
75
-81
75
-81
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ), + col0 - 18 col0 FROM tab0 AS cor0
----
-10
69
-47
-3
-99
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT COUNT( * ) + COUNT( * ) + + SUM( + + col1 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-6107
SELECT COUNT ( * ) + COUNT ( * ) + + SUM ( + + col1 ) FROM tab2
----
201

query I rowsort
SELECT DISTINCT col2 * + col2 + + col2 AS col2 FROM tab2
----
1640
3422
552

query I rowsort
SELECT ALL - - 6 * - col1 + col0 FROM tab1 AS cor0
----
-191
-33
55

query I rowsort
SELECT - - col1 + 46 AS col1 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT 47 + MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6111
SELECT 47 + MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-52

query II rowsort
SELECT ALL + - col1 + col1 AS col0, + ( + + col2 ) FROM tab0 AS cor0
----
0
10
0
47
0
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - + col1 NOT BETWEEN - 91 AND ( - - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < + - col1
----

query I rowsort
SELECT - col2 * - col1 + - col2 + + col0 FROM tab2 AS cor0
----
1196
3104
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + 11 * + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 11 * + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL + 50 DIV - + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 50 / - + col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT - ( 61 ) DIV + + COUNT( * ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6118
SELECT - ( 61 ) / + + COUNT ( * ) AS col2 FROM tab2
----
-20

query II rowsort
SELECT ALL col2 AS col2, 49 FROM tab1
----
59
49
68
49
96
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT - ( + CAST( + 37 AS SIGNED ) ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT - ( + CAST ( + 37 AS INTEGER ) ) FROM tab1
----
-37

query I rowsort
SELECT 13 - col2 FROM tab1
----
-46
-55
-83

query I rowsort
SELECT DISTINCT - + col1 + 15 * - col2 * - + 79 FROM tab1 AS cor0
----
113746
69910
80533

query I rowsort
SELECT ALL - + 91 * - col1 AS col1 FROM tab0 AS cor0 WHERE - 36 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 + + ( ( col1 ) ) * 93 * + col0 FROM tab0 AS cor0
----
112961
169900
9119

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

query I rowsort
SELECT + 13 * + + col0 AS col2 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT - - ( 26 ) AS col1 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 + - - col0 BETWEEN col2 + - col1 / - - col2 AND ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + MAX( DISTINCT + - 34 ) col2 FROM tab1 AS cor0 WHERE NOT 22 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6129
SELECT + MAX ( DISTINCT + - 34 ) col2 FROM tab1 AS cor0 WHERE NOT 22 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 22 * 61 + - 63 AS col0 FROM tab0 AS cor0
----
1279

query I rowsort
SELECT ALL - 36 * 74 FROM tab2 cor0
----
-2664
-2664
-2664

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

query I rowsort
SELECT + ( - 80 ) AS col1 FROM tab0
----
-80
-80
-80

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

query I rowsort
SELECT ALL + - 48 / - col2 + - col1 + 75 + - col2 * + 38 FROM tab2 WHERE NULL = - col2
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NOT - col0 * + 61 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT ALL CAST( 94 AS SIGNED ) FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL CAST ( 94 AS INTEGER ) FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6138
SELECT CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6138
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-6139
SELECT MAX ( + 94 ) AS col0 FROM tab1
----
94

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

query I rowsort
SELECT ALL + + ( - 98 ) * - + 19 FROM tab2 AS cor0 WHERE NOT - 31 + + col0 NOT BETWEEN - - col1 * ( + + 87 ) AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 * - - 81 * + - ( - + 97 ) FROM tab1 cor0
----
463563
534276
754272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col1 col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL CAST( - 18 AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL CAST ( - 18 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

query I rowsort
SELECT ALL ( 75 ) + 24 + col1 AS col1 FROM tab2 cor0
----
150
166
176

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * col0 * + col2 * + col0 < NULL
----

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

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

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( + - col1 ) AND NULL
----

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

query I rowsort
SELECT - 54 + + - ( 43 ) FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - MIN( + + col1 ) + - COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-6152
SELECT - MIN ( + + col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT + col2 + 57 FROM tab0
----
104
156
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - MAX( - ( + 86 ) ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-6154
SELECT - MAX ( - ( + 86 ) ) FROM tab1
----
86

query I rowsort
SELECT DISTINCT - 38 * + 92 AS col0 FROM tab1
----
-3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 39 * + col1 AS col2, - col1 col0 FROM tab1
----
1833
-47
195
-5
546
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - + MAX( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE + col1 / - col1 * + 12 * + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT - + MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE + col1 / - col1 * + 12 * + - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL ( 84 ) + ( - 10 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL ( 84 ) + ( - 10 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + 39 + - + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + SUM( 46 ) AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-6161
SELECT + SUM ( 46 ) AS col1 FROM tab1
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + SUM( ALL - col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + SUM ( ALL - col1 ) AS col1 FROM tab2 cor0
----
-195

query II rowsort
SELECT + - col2, col2 * + - col2 AS col1 FROM tab0 AS cor0
----
-10
-100
-47
-2209
-99
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT + - col2 * CAST( - - 30 AS SIGNED ) FROM tab2 cor0
----
-1200
-1740
-690

skipif mysql # not compatible
query I rowsort label-6165
SELECT + - col2 * CAST ( - - 30 AS INTEGER ) FROM tab2 cor0
----
-1200
-1740
-690

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6166
SELECT * FROM tab1 WHERE NOT - col0 + CAST( NULL AS DECIMAL ) <> + + 42 * 93 + - col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-6166
SELECT * FROM tab1 WHERE NOT - col0 + CAST ( NULL AS REAL ) <> + + 42 * 93 + - col2 + - col2
----

query I rowsort
SELECT DISTINCT - 3 + - col2 + - col0 AS col2 FROM tab1 cor0
----
-147
-150
-162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 + ( - + col2 ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT col1 DIV col1 + + col0 col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6170
SELECT col1 / col1 + + col0 col2 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 31
----

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

query I rowsort
SELECT DISTINCT col0 + + 74 AS col2 FROM tab0 AS cor0
----
161
171
89

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

query I rowsort
SELECT ALL - col2 + + col2 * ( + col1 ) + - + col1 + 73 FROM tab2 cor0
----
1172
3036
3834

query I rowsort
SELECT ALL + 34 - + + 30 FROM tab1 AS cor0
----
4
4
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT + COUNT( * ) DIV 86 - + - COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6178
SELECT + COUNT ( * ) / 86 - + - COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT DISTINCT MAX( DISTINCT - 96 ) * + + ( - 93 ) AS col0, + COUNT( * ) + + 8 FROM tab1
----
8928
11

skipif mysql # not compatible
query II rowsort label-6179
SELECT DISTINCT MAX ( DISTINCT - 96 ) * + + ( - 93 ) AS col0, + COUNT ( * ) + + 8 FROM tab1
----
8928
11

query I rowsort
SELECT col1 + col2 * + 71 AS col2 FROM tab2
----
1684
2917
4185

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 * - col1 + - ( col1 ) + - col1 col2 FROM tab0 AS cor0
----
-243
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT 73 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
76

skipif mysql # not compatible
query I rowsort label-6184
SELECT 73 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL - 90 * + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - 90 * + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
810

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 * + col0 + - 41 )
----

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab1 cor0
----
-48

query I rowsort
SELECT ALL - + col2 * ( - 16 ) + col0 + - + col0 * + 61 FROM tab1 AS cor0
----
-1524
-4156
-4372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6189
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT MIN( + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6190
SELECT MIN ( + + col1 ) AS col2 FROM tab1
----
5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

skipif mysql # not compatible
query I rowsort label-6192
SELECT + COUNT ( * ) * - 75 FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT ALL MAX( - col2 ), 87 col0 FROM tab0 AS cor0
----
-10
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6193
SELECT ALL MAX ( - col2 ), 87 col0 FROM tab0 AS cor0
----
-10
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT col2 DIV 11 AS col1 FROM tab2
----
2
3
5

skipif mysql # not compatible
query I rowsort label-6194
SELECT col2 / 11 AS col1 FROM tab2
----
2
3
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - col2 * col0 * - - 16 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT DISTINCT MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

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

query II rowsort
SELECT ALL col1 AS col1, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL SUM( 27 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL SUM ( 27 ) FROM tab0
----
81

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

query I rowsort
SELECT col2 + - col2 * - col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT - col1 + + - col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT 2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 62, 30 * + + 71 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL + + SUM( 85 ) FROM tab1 cor0
----
255

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + + SUM ( 85 ) FROM tab1 cor0
----
255

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT - - COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT - - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL COUNT( * ) * + 58 AS col0 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL COUNT ( * ) * + 58 AS col0 FROM tab2 cor0
----
174

query I rowsort
SELECT - - 8 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + COUNT( * ) - - - MAX( DISTINCT col2 ) - + COUNT( ALL - col1 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6209
SELECT + COUNT ( * ) - - - MAX ( DISTINCT col2 ) - + COUNT ( ALL - col1 ) FROM tab0
----
-99

query II rowsort
SELECT DISTINCT - + col2 * + - col2 + + col0 + - col0 AS col2, col0 AS col2 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT ALL + col0 DIV + - 97 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL + col0 / + - 97 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 17 + col0 + - 48 AS col1 FROM tab0 cor0
----
-16
56
66

query I rowsort
SELECT - - 98 FROM tab2 AS cor0 WHERE col1 / - 83 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT 32 DIV - col0 + 53 AS col2 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-6215
SELECT 32 / - col0 + 53 AS col2 FROM tab2
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT - 44 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL ( 93 ) - - 96 * - COUNT( * ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT ALL ( 93 ) - - 96 * - COUNT ( * ) col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT - MIN( + col2 ) + - COUNT( - + col0 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - MIN ( + col2 ) + - COUNT ( - + col0 ) FROM tab0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6219
SELECT col0 * + CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT - 11 / - 41 FROM tab0 WHERE NOT + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 11 / - 41 FROM tab0 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - SUM( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6222
SELECT - SUM ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col1 * - 19 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT 20 * - ( COUNT( - 54 ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT 20 * - ( COUNT ( - 54 ) ) FROM tab1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT + COUNT( * ) * + 65 FROM tab2 WHERE NOT CAST( - - 35 AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT + COUNT ( * ) * + 65 FROM tab2 WHERE NOT CAST ( - - 35 AS INTEGER ) > NULL
----
0

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

query I rowsort
SELECT - ( + - col0 ) * + col2 * + 40 AS col2 FROM tab1 AS cor0
----
195840
200600
247520

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

query I rowsort
SELECT - 28 * - col2 FROM tab2 AS cor0
----
1120
1624
644

query I rowsort
SELECT DISTINCT + - 94 FROM tab1 cor0 WHERE NOT 76 < col0
----
-94

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6232
SELECT + col0 DIV 98 AS col2, 91 AS col2 FROM tab2
----
0
91
0
91
0
91

skipif mysql # not compatible
query II rowsort label-6232
SELECT + col0 / 98 AS col2, 91 AS col2 FROM tab2
----
0
91
0
91
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT - COUNT( * ) * + + 57 * - + 94 AS col0 FROM tab2
----
16074

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT - COUNT ( * ) * + + 57 * - + 94 AS col0 FROM tab2
----
16074

query I rowsort
SELECT ALL col1 + - ( + - col0 ) AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - 44 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE + col1 * col0 BETWEEN 1 AND 78
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + ( - - col2 ) AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + 9 + - col0 FROM tab1 AS cor0
----
-42
-76
-82

query II rowsort
SELECT + + col1 + - 30, 92 + - col0 AS col2 FROM tab0 AS cor0
----
-29
-5
-9
5
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT 86 + - 45 - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT 86 + - 45 - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 73 ) * - + 44 * + 34 / - - 29 * + + col1 BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6243
SELECT + 62 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT - + 85 + - + col1 AS col1, 50 FROM tab1 cor0
----
-132
50
-90
50
-99
50

query I rowsort
SELECT ALL + ( 89 ) * + col1 FROM tab1 cor0
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6246
SELECT DISTINCT - col0 / + col0 + + col0 * 48 * - + 81 * + col0 + - CAST( NULL AS SIGNED ) - col0 AS col1, + col2 * - col1 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
query II rowsort label-6246
SELECT DISTINCT - col0 / + col0 + + col0 * 48 * - + 81 * + col0 + - CAST ( NULL AS INTEGER ) - col0 AS col1, + col2 * - col1 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT ALL + 26 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + 26 / + col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL - COUNT( * ) * + + 90 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL - COUNT ( * ) * + + 90 FROM tab1
----
-270

query I rowsort
SELECT ALL + + 7 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + 37 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( col1 ) ) col0 FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT + 95 - COUNT( DISTINCT - + col0 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT + 95 - COUNT ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT + - 80 * 15 FROM tab1 AS cor0
----
-1200
-1200
-1200

query I rowsort
SELECT + col1 - 64 FROM tab2 AS cor0
----
-13
13
3

query I rowsort
SELECT - - 26 - - - col0 AS col0 FROM tab2 AS cor0
----
-20
-38
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT - 77 * - 15 * + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IN ( - - col0, col1, - 24, 10 * - - col1 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - 77 * - 15 * + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IN ( - - col0, col1, - 24, 10 * - - col1 + - col1 )
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT 27 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col0 * 1 FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT + ( + col1 ) * + col0 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT col1 DIV + col0 col1 FROM tab2
----
0
1
1

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 8 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - - 63 AS col2, + 43 FROM tab2 AS cor0 WHERE NOT NULL <= col0 - - col2
----

query II rowsort
SELECT + - col1 * - col1, + col2 FROM tab1 AS cor0
----
196
96
2209
68
25
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL COUNT( ALL + + ( - col0 ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL COUNT ( ALL + + ( - col0 ) ) AS col2 FROM tab1 cor0
----
3

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

query I rowsort
SELECT DISTINCT + 5 * + + col2 AS col2 FROM tab2
----
115
200
290

query I rowsort
SELECT ALL 44 * - + col2 AS col1 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6273
SELECT - 72 - + CAST( + col1 AS SIGNED ) AS col0, col1 FROM tab1 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-6273
SELECT - 72 - + CAST ( + col1 AS INTEGER ) AS col0, col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT ALL + col1 + + + col1 * 55 DIV + col2 FROM tab1 AS cor0
----
22
85
9

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + col1 + + + col1 * 55 / + col2 FROM tab1 AS cor0
----
22
85
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 30 col0 FROM tab0 AS cor0
----
2430
30
630

query I rowsort
SELECT + 99 * col2 AS col0 FROM tab1 AS cor0
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + COUNT( * ) * - + 0 col1 FROM tab2 cor0
----
0

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

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

query I rowsort
SELECT + col0 * - col1 - + col1 * + col0 AS col2 FROM tab2 AS cor0 WHERE col2 - + ( - 32 ) - 75 IS NOT NULL
----
-10050
-4692
-9856

query I rowsort
SELECT + 1 + - col2 FROM tab2
----
-22
-39
-57

query III rowsort
SELECT * FROM tab2 WHERE 76 IS NULL
----

query I rowsort
SELECT + col2 + + col1 + - 81 FROM tab0
----
-50
19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT COUNT( * ) + - - 22 AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6283
SELECT COUNT ( * ) + - - 22 AS col1 FROM tab1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + + col1 col2 FROM tab2
----
68
84
94

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col2 * - ( + + col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + 29 * + - col2 NOT BETWEEN + + col0 + + 20 AND + 69
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 - + col2 NOT BETWEEN NULL AND col2 * + - 0
----

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

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

query I rowsort
SELECT + 0 + col0 AS col2 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + col2 * - + 35 col0 FROM tab0 cor0
----
-1660
-3562
-437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + ( 56 ), 44 col0 FROM tab1 cor0
----
42
44
51
44
9
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6294
SELECT * FROM tab1 AS cor0 WHERE - col0 * + CAST( NULL AS SIGNED ) * 85 >= 21
----

skipif mysql # not compatible
query III rowsort label-6294
SELECT * FROM tab1 AS cor0 WHERE - col0 * + CAST ( NULL AS INTEGER ) * 85 >= 21
----

query I rowsort
SELECT ALL + col2 * - - col1 + - - ( col2 ) AS col1 FROM tab2 AS cor0
----
1196
3120
3944

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

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

query II rowsort
SELECT ALL col0, col2 FROM tab0 AS cor0 WHERE - 68 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab1 AS cor0 WHERE + 17 <> - - col1 + + + 41
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 16 * - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - ( - + col2 ) col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + COUNT( DISTINCT - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + COUNT ( DISTINCT - col1 ) FROM tab0
----
3

query II rowsort
SELECT ALL + 40 AS col2, + 49 FROM tab1 AS cor0
----
40
49
40
49
40
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT COUNT( - + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6303
SELECT COUNT ( - + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6304
SELECT DISTINCT - MIN( DISTINCT CAST( + col0 AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NOT + 17 * + col0 * - CAST( NULL AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - MIN ( DISTINCT CAST ( + col0 AS REAL ) ) FROM tab1 AS cor0 WHERE NOT + 17 * + col0 * - CAST ( NULL AS INTEGER ) = NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT + + CAST( col1 AS SIGNED ) * + col0 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

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

query I rowsort
SELECT - 25 - 59 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * + - col1 / 21 * - col0 - - 34 + + col2 + + 22 + + col1 * - - col0 - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + + 58 FROM tab1
----
11
44
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - + MAX( - + 14 ) + - COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6309
SELECT - + MAX ( - + 14 ) + - COUNT ( * ) FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - - 47 + + - 6 / col1
----

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

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

query I rowsort
SELECT 83 * 72 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5976
5976
5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT + + 45 * - - CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-2295
-3015
-3465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6313
SELECT + + 45 * - - CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-2295
-3015
-3465

query II rowsort
SELECT DISTINCT - col2 + + col0, col2 AS col2 FROM tab1 AS cor0
----
-45
96
23
68
26
59

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

query II rowsort
SELECT + 78 * 98, + 74 * 10 AS col2 FROM tab1 AS cor0
----
7644
740
7644
740
7644
740

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL + MIN( - + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + MIN ( - + col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT - col0 * col0 FROM tab1 WHERE - col2 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6321
SELECT col1 - + CAST( - col0 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6321
SELECT col1 - + CAST ( - col0 AS INTEGER ) FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL + ( 53 ) + + COUNT( + + col2 ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + ( 53 ) + + COUNT ( + + col2 ) AS col0 FROM tab0
----
56

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE 24 / 79 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - 48 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6324
SELECT - 48 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL MIN( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL MIN ( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + - COUNT( * ) * COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
729

query I rowsort
SELECT ALL - - ( - 26 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 50 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL - COUNT ( * ) / 65 AS col2 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT col2 * - 2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - SUM( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - SUM ( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT + + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT col2 * - ( - 6 ) AS col0 FROM tab2
----
138
240
348

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6338
SELECT ALL * FROM tab1 WHERE + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6338
SELECT ALL * FROM tab1 WHERE + CAST ( + col0 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6339
SELECT DISTINCT - 31 DIV - - 24 AS col1, 60 AS col0 FROM tab0
----
-1
60

skipif mysql # not compatible
query II rowsort label-6339
SELECT DISTINCT - 31 / - - 24 AS col1, 60 AS col0 FROM tab0
----
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - MIN( ALL - 81 ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - MIN ( ALL - 81 ) AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL SUM( ALL - - 89 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL SUM ( ALL - - 89 ) FROM tab1 AS cor0
----
267

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + + 21 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

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

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

query I rowsort
SELECT DISTINCT + col2 + + - ( - - col1 ) * 97 * - - 1 FROM tab0 AS cor0
----
-2027
-7810
2

query I rowsort
SELECT DISTINCT - + 0 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6347
SELECT + - COUNT( * ) * + 94 * + 93 AS col2, CAST( MIN( ALL - 57 ) AS SIGNED ) FROM tab0 cor0
----
-26226
-57

skipif mysql # not compatible
query II rowsort label-6347
SELECT + - COUNT ( * ) * + 94 * + 93 AS col2, CAST ( MIN ( ALL - 57 ) AS INTEGER ) FROM tab0 cor0
----
-26226
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6348
SELECT * FROM tab1 AS cor0 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6348
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
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-6350
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT DISTINCT + COUNT( * ) AS col1, - SUM( DISTINCT 52 ) AS col1 FROM tab1 AS cor0
----
3
-52

skipif mysql # not compatible
query II rowsort label-6351
SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( DISTINCT 52 ) AS col1 FROM tab1 AS cor0
----
3
-52

query I rowsort
SELECT ALL col0 + + 46 FROM tab1 AS cor0
----
131
137
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 83 IS NOT NULL
----

query I rowsort
SELECT col2 + - - 63 AS col0 FROM tab1 AS cor0
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL MAX( + 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL MAX ( + 53 ) FROM tab0 AS cor0
----
53

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT COUNT( * ) + - 9 DIV - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6357
SELECT COUNT ( * ) + - 9 / - COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT ALL - CAST( NULL AS SIGNED ) * + 72 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - CAST ( NULL AS INTEGER ) * + 72 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - COUNT( - + 74 ) * + ( + 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-6359
SELECT - COUNT ( - + 74 ) * + ( + 39 ) FROM tab2
----
-117

query I rowsort
SELECT DISTINCT col1 + 59 FROM tab2 AS cor0
----
110
126
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + 92 * - col1 col0 FROM tab1 AS cor0
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT - - 78 - - COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6362
SELECT - - 78 - - COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT - + MAX( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT col2 - - 54 AS col2 FROM tab2
----
112
77
94

query I rowsort
SELECT 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL 84 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL + SUM( ALL 0 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6368
SELECT ALL + SUM ( ALL 0 ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * - 45 AS col2 FROM tab2 AS cor0
----
-2295
-3015
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT MAX( ALL - + 27 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6370
SELECT MAX ( ALL - + 27 ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + + col1 + col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query II rowsort
SELECT ALL col2 * col0 * col1 AS col0, + 84 FROM tab2 AS cor0
----
197120
84
291450
84
53958
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT - col0 DIV col2 DIV 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT - col0 / col2 / 81 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT ALL - ( - 59 ) DIV COUNT( * ) AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - ( - 59 ) / COUNT ( * ) AS col2 FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 85 FROM tab2
----
51
-85
67
-85
77
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT - 71 * COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT - 71 * COUNT ( * ) FROM tab2
----
-213

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT DISTINCT 46 DIV col2 * + - col2 FROM tab2
----
-40
-46
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT 46 / col2 * + - col2 FROM tab2
----
-40
-46
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6381
SELECT ALL 98 + - col0 col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
13
NULL
47
NULL
7
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6381
SELECT ALL 98 + - col0 col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
13
NULL
47
NULL
7
NULL

query I rowsort
SELECT DISTINCT - col2 + - 30 FROM tab0 AS cor0
----
-129
-40
-77

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

query I rowsort
SELECT col1 * - 70 * + - 11 FROM tab2 AS cor0
----
39270
51590
59290

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL > + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 25 + - - col1 col2 FROM tab1 AS cor0
----
-11
-20
22

query I rowsort
SELECT DISTINCT - 95 * - + col2 FROM tab0 AS cor0
----
4465
9405
950

query I rowsort
SELECT ALL - 45 + - ( + + col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-44
396
6516

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT ALL col2 + + col1 * + col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL MIN( - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL MIN ( - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col0 * - 18 AS col1 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT ALL 39 * - col0 AS col0 FROM tab2
----
-1794
-2496
-2925

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT + 86 + - - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 86 + - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6396
SELECT CAST( NULL AS SIGNED ) * - 18 + + col0, + ( col1 ) FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6396
SELECT CAST ( NULL AS INTEGER ) * - 18 + + col0, + ( col1 ) FROM tab1
----
NULL
14
NULL
47
NULL
5

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6398
SELECT ALL + col0 + - + 69 + col2 DIV + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
-6
5

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + col0 + - + 69 + col2 / + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
-6
5

query I rowsort
SELECT DISTINCT + + 97 - + col2 AS col0 FROM tab0 AS cor0
----
-2
50
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - 80 = 59
----

query I rowsort
SELECT 89 - - 92 FROM tab2 WHERE NOT NULL <> - col2 + + ( + col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT COUNT ( * ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT 85 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
85
85
85

query III rowsort
SELECT * FROM tab1 WHERE 44 * 64 + - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT ALL 58 AS col1 FROM tab0 WHERE ( + 19 ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 58 AS col1 FROM tab0 WHERE ( + 19 ) < CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + + col2 col0 FROM tab2
----
108
126
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT CAST( 75 AS SIGNED ) * - col2 NOT BETWEEN 24 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT CAST ( 75 AS INTEGER ) * - col2 NOT BETWEEN 24 AND + col1
----
0

query I rowsort
SELECT - col0 + 10 * 62 AS col0 FROM tab1
----
529
535
569

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 36 NOT BETWEEN + col0 AND ( - 88 * - col2 )
----

query I rowsort
SELECT DISTINCT + col2 - 41 FROM tab1
----
18
27
55

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

query I rowsort
SELECT - col2 + 34 AS col1 FROM tab0
----
-13
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT - MIN( - 73 ) + 80 AS col0 FROM tab1 WHERE NOT col2 + 19 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - MIN ( - 73 ) + 80 AS col0 FROM tab1 WHERE NOT col2 + 19 >= ( NULL )
----
NULL

query I rowsort
SELECT ALL + 86 + col1 FROM tab2 WHERE NOT NULL <= - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL + MAX( col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + MAX ( col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT 76 - - ( 0 ) * col1 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - COUNT( * ) + MIN( 36 ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6419
SELECT - COUNT ( * ) + MIN ( 36 ) AS col2 FROM tab0
----
33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT COUNT ( + col0 ) + 72 col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT + MIN( DISTINCT 57 ) * COUNT( * ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-6421
SELECT + MIN ( DISTINCT 57 ) * COUNT ( * ) FROM tab1
----
171

query I rowsort
SELECT ALL + col2 + 88 * col1 AS col1 FROM tab2
----
4511
5954
6816

query I rowsort
SELECT + col2 * 38 AS col0 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT 83 * + col2 + - 90 * + col0 FROM tab2 AS cor0
----
-1936
-2231
-2440

query I rowsort
SELECT DISTINCT col0 + - 36 * 12 FROM tab2 AS cor0
----
-357
-368
-386

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 > col1 * - col1
----

query I rowsort
SELECT DISTINCT col1 * - 79 AS col0 FROM tab0 AS cor0
----
-1659
-6399
-79

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

skipif mysql # not compatible
query I rowsort label-6428
SELECT - COUNT ( * ) / - 70 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL COUNT( * ) + + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
87

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL COUNT ( * ) + + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT + ( col0 ) DIV 46 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6430
SELECT + ( col0 ) / 46 FROM tab2
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT DISTINCT + ( 7 ) + col0 AS col1 FROM tab1
----
58
92
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT + - 53 * - col2 + + col2 DIV - 56 FROM tab0 AS cor0
----
2491
5246
530

skipif mysql # not compatible
query I rowsort label-6434
SELECT + - 53 * - col2 + + col2 / - 56 FROM tab0 AS cor0
----
2491
5246
530

query I rowsort
SELECT - col0 + 64 FROM tab2 cor0
----
-11
0
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + ( 3 ) * - col2 NOT BETWEEN col2 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT ( - 47 ) + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT ( - 47 ) + col0 / col0 AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COUNT( * ) + 38 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6438
SELECT COUNT ( * ) + 38 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + - col0 + - 88 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT ALL + 38 - + ( col2 + col2 ) FROM tab1 cor0
----
-154
-80
-98

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

query I rowsort
SELECT col1 + + 60 AS col1 FROM tab0 AS cor0
----
141
61
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT 11 - col2 FROM tab0 AS cor0
----
-36
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + COUNT( * ) * 15 + + 30 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6446
SELECT + COUNT ( * ) * 15 + + 30 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT DISTINCT col1 + + CAST( - 71 AS SIGNED ) FROM tab0 AS cor0
----
-50
-70
10

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT col1 + + CAST ( - 71 AS INTEGER ) FROM tab0 AS cor0
----
-50
-70
10

query I rowsort
SELECT DISTINCT 42 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT - SUM( ALL CAST( - 44 AS SIGNED ) ) + + COUNT( * ) FROM tab2 WHERE - col0 * col2 + col0 IS NOT NULL
----
135

skipif mysql # not compatible
query I rowsort label-6450
SELECT - SUM ( ALL CAST ( - 44 AS INTEGER ) ) + + COUNT ( * ) FROM tab2 WHERE - col0 * col2 + col0 IS NOT NULL
----
135

query I rowsort
SELECT + 96 * + col2 AS col0 FROM tab0
----
4512
9504
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT + ( COUNT( * ) ) DIV - 26 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + ( COUNT ( * ) ) / - 26 FROM tab1
----
0

query I rowsort
SELECT - ( - ( - col2 ) ) AS col1 FROM tab0
----
-10
-47
-99

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + 74 IS NOT NULL OR - 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 * col0 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 AS col0 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT - 13 + + + COUNT( * ) * - SUM( DISTINCT 26 ) col1 FROM tab2, tab2 AS cor0
----
-247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6461
SELECT - 13 + + + COUNT ( * ) * - SUM ( DISTINCT 26 ) col1 FROM tab2, tab2 AS cor0
----
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT - - MIN( DISTINCT - 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - - MIN ( DISTINCT - 82 ) FROM tab1 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 90 col1 FROM tab2 AS cor0
----
4140
5760
6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 12 + + + 95 col0 FROM tab0 AS cor0
----
-1093
-25
-469

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 28 * 19 * col0 ) NOT IN ( col0 )
----

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

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

query I rowsort
SELECT ALL - - col2 * + 26 AS col1 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - - MIN( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6469
SELECT - - MIN ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
1

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

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + - col0 NOT IN ( - col0 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT - CAST( NULL AS SIGNED ) * AVG ( + 98 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT - CAST ( NULL AS INTEGER ) * AVG ( + 98 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT - col2 IN ( - col1 )
----
-10
-47
-99

query I rowsort
SELECT ALL + 14 FROM tab2 WHERE NULL < 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL 81 * + COUNT( * ) AS col2 FROM tab1 WHERE ( col1 ) * - 8 <= col1
----
243

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL 81 * + COUNT ( * ) AS col2 FROM tab1 WHERE ( col1 ) * - 8 <= col1
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6476
SELECT ALL 68 + - CAST( - + COUNT( * ) AS SIGNED ) + + COUNT( col1 ) DIV 37 AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL 68 + - CAST ( - + COUNT ( * ) AS INTEGER ) + + COUNT ( col1 ) / 37 AS col2 FROM tab1
----
71

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

query I rowsort
SELECT - col2 * + - col1 AS col0 FROM tab1 cor0
----
1344
295
3196

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col1 col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * ( - col1 ) + + 24 col0 FROM tab2
----
-1353
-1785
-2055

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL < ( + - col0 + 78 + - 14 )
----

query I rowsort
SELECT ALL - + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT CAST( NULL AS SIGNED ) * 81 * + 90 * + ( + + 44 ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT CAST ( NULL AS INTEGER ) * 81 * + 90 * + ( + + 44 ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6486
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 88 - + + 21 + + + col1 + + 93 + - CAST( NULL AS SIGNED ) / + 67 / col2
----

skipif mysql # not compatible
query III rowsort label-6486
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 88 - + + 21 + + + col1 + + 93 + - CAST ( NULL AS INTEGER ) / + 67 / col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL COUNT( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

query I rowsort
SELECT ALL 38 * + + col1 - - ( + col0 ) FROM tab1 AS cor0
----
1877
275
583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT ALL - COUNT( CAST( + - col1 AS SIGNED ) ) - + - COUNT( * ) + 48 AS col0 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - COUNT ( CAST ( + - col1 AS INTEGER ) ) - + - COUNT ( * ) + 48 AS col0 FROM tab1 cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT - col1 + + col2 * + 24 col1 FROM tab2 WHERE - col0 * + col0 - - + 89 + - CAST( + CAST( + 21 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT - col1 + + col2 * + 24 col1 FROM tab2 WHERE - col0 * + col0 - - + 89 + - CAST ( + CAST ( + 21 AS INTEGER ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= ( NULL )
----

query II rowsort
SELECT ALL + 55 AS col2, 75 AS col1 FROM tab2
----
55
75
55
75
55
75

query I rowsort
SELECT 41 AS col0 FROM tab1 WHERE ( + col2 + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6495
SELECT col2 * col2 + + - col1 + - 52 AS col0, CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0
----
2076
NULL
27
NULL
9748
NULL

skipif mysql # not compatible
query II rowsort label-6495
SELECT col2 * col2 + + - col1 + - 52 AS col0, CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0
----
2076
NULL
27
NULL
9748
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT SUM( - 49 ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT SUM ( - 49 ) FROM tab1
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT ALL 7, - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0
----
7
NULL
7
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL 7, - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0
----
7
NULL
7
NULL
7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT DISTINCT + COUNT( ALL + + col0 ) AS col1, + SUM( ALL + 44 ) FROM tab2
----
3
132

skipif mysql # not compatible
query II rowsort label-6498
SELECT DISTINCT + COUNT ( ALL + + col0 ) AS col1, + SUM ( ALL + 44 ) FROM tab2
----
3
132

query II rowsort
SELECT ALL - col2, + 6 AS col1 FROM tab2
----
-23
6
-40
6
-58
6

query II rowsort
SELECT col1, + 78 * + 31 - - 75 + - 17 FROM tab0 AS cor0
----
1
2476
21
2476
81
2476

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT ALL - col2 DIV - - col0 + col2 * - 84 AS col2 FROM tab1 AS cor0
----
-4956
-5712
-8065

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - col2 / - - col0 + col2 * - 84 AS col2 FROM tab1 AS cor0
----
-4956
-5712
-8065

query I rowsort
SELECT - col2 - - 71 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 / - col0 IS NULL
----
-25
12
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT DISTINCT - 38 col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-38
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6504
SELECT DISTINCT - 38 col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-38
3

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT MIN( DISTINCT - - 12 ) col0 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6506
SELECT MIN ( DISTINCT - - 12 ) col0 FROM tab2
----
12

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

query I rowsort
SELECT col1 * + - ( - + col1 ) FROM tab2
----
2601
4489
5929

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col2 ) * + + 66 + + 73 * 56 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - 77 < NULL
----

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 + + col1 * 27 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
1428
1876
2156

query I rowsort
SELECT ALL ( + 98 ) FROM tab2
----
98
98
98

query I rowsort
SELECT ALL col0 + + 84 FROM tab0
----
171
181
99

query II rowsort
SELECT - col0, + col1 * col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
1215
-87
1827
-97
97

query I rowsort
SELECT DISTINCT 15 + - 19 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT ( - - 51 ) FROM tab1
----
51
51
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + - - col0 AS col0, - 7 col2 FROM tab2 cor0
----
0
-7
0
-7
0
-7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 90 ) IS NULL
----

query I rowsort
SELECT ALL - col1 * - 63 + 91 FROM tab0 AS cor0
----
1414
154
5194

query II rowsort
SELECT DISTINCT - - col0 - + 36 AS col2, + col1 * - col1 AS col2 FROM tab1 cor0
----
15
-196
49
-25
55
-2209

query I rowsort
SELECT ALL col1 - - 45 FROM tab2 cor0
----
112
122
96

query II rowsort
SELECT DISTINCT col1, + 61 AS col0 FROM tab1
----
14
61
47
61
5
61

query I rowsort
SELECT - 8 * - 31 * - - 70 AS col0 FROM tab2
----
17360
17360
17360

query I rowsort
SELECT col2 * 99 FROM tab0
----
4653
9801
990

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT ALL 41 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 41 / + col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT col0, - 42 + - col0 AS col0, - col2 FROM tab1
----
9 values hashing to 0cabe4c089a25f36fe33adb26e2e84c0

query I rowsort
SELECT DISTINCT - col0 * + 62 * + 19 AS col2 FROM tab1
----
-100130
-107198
-60078

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT COUNT( * ) - 87 + - - 54 FROM tab1 WHERE NOT col0 BETWEEN ( + col0 ) AND 5 - ( + + col1 )
----
-30

skipif mysql # not compatible
query I rowsort label-6535
SELECT COUNT ( * ) - 87 + - - 54 FROM tab1 WHERE NOT col0 BETWEEN ( + col0 ) AND 5 - ( + + col1 )
----
-30

query I rowsort
SELECT DISTINCT - 78 * + 94 * col0 FROM tab1 AS cor0
----
-373932
-623220
-667212

onlyif mysql # DIV for integer division: 
query II rowsort label-6537
SELECT - - 75, - col2 - col0 DIV - col0 + col1 col2 FROM tab0 AS cor0
----
75
-97
75
12
75
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6537
SELECT - - 75, - col2 - col0 / - col0 + col1 col2 FROM tab0 AS cor0
----
75
-97
75
12
75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL - COUNT( + - 1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6538
SELECT ALL - COUNT ( + - 1 ) col0 FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT + 23 + + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
102

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6542
SELECT DISTINCT * FROM tab1 WHERE + 38 / + CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6542
SELECT DISTINCT * FROM tab1 WHERE + 38 / + CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----

query I rowsort
SELECT 16 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - - COUNT( * ) + 22 AS col2 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-6544
SELECT - - COUNT ( * ) + 22 AS col2 FROM tab2 cor0
----
25

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + + 55 + + - 60 * - 83 )
----

query I rowsort
SELECT + - 51 * 62 FROM tab1 AS cor0
----
-3162
-3162
-3162

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT ALL + COUNT( * ), - SUM( col1 ) col1 FROM tab0 AS cor0
----
3
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6549
SELECT ALL + COUNT ( * ), - SUM ( col1 ) col1 FROM tab0 AS cor0
----
3
-103

query I rowsort
SELECT col1 * + col2 * - col1 * + col2 FROM tab0
----
-14493249
-44100
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT COUNT( * ) * CAST( - + 28 AS SIGNED ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6551
SELECT COUNT ( * ) * CAST ( - + 28 AS INTEGER ) AS col0 FROM tab0
----
-84

query II rowsort
SELECT DISTINCT + 1 * - 67, col2 * + col0 + + + col1 AS col1 FROM tab1
----
-67
4910
-67
5020
-67
6235

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN - 39 AND 37 * col0 * - col1
----

query I rowsort
SELECT 77 + + col0 + 88 AS col1 FROM tab1
----
216
250
256

query I rowsort
SELECT ALL + col2 + + - col0 * + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT - + 35 * col0 * + - col0 + + - col1 + - 55 * - col0 * + + col0 * + - 59 AS col2 FROM tab0 AS cor0
----
-24296511
-30202891
-722331

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6557
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + CAST( 59 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6557
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + CAST ( 59 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - 33 * - + COUNT( * ) * - + 15 AS col1 FROM tab2
----
-1485

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 33 * - + COUNT ( * ) * - + 15 AS col1 FROM tab2
----
-1485

onlyif mysql # DIV for integer division: 
query II rowsort label-6559
SELECT DISTINCT col1 DIV col0 DIV - + col0 AS col2, 60 * ( 60 ) FROM tab0 AS cor0
----
0
3600

skipif mysql # not compatible
query II rowsort label-6559
SELECT DISTINCT col1 / col0 / - + col0 AS col2, 60 * ( 60 ) FROM tab0 AS cor0
----
0
3600

onlyif mysql # DIV for integer division: 
query II rowsort label-6560
SELECT - - 39, - col2 + - - 41 DIV - col2 AS col2 FROM tab2 AS cor0
----
39
-24
39
-41
39
-58

skipif mysql # not compatible
query II rowsort label-6560
SELECT - - 39, - col2 + - - 41 / - col2 AS col2 FROM tab2 AS cor0
----
39
-24
39
-41
39
-58

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

skipif mysql # not compatible
query I rowsort label-6561
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query II rowsort
SELECT DISTINCT + col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6564
SELECT ALL * FROM tab1 WHERE + CAST( 48 AS SIGNED ) IN ( - + col0, + 99 )
----

skipif mysql # not compatible
query III rowsort label-6564
SELECT ALL * FROM tab1 WHERE + CAST ( 48 AS INTEGER ) IN ( - + col0, + 99 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 84 * + col0 * - - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT MAX( ALL ( + col1 ) ) * COUNT( ALL col1 ) * ( - COUNT( * ) ) FROM tab0
----
-729

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT MAX ( ALL ( + col1 ) ) * COUNT ( ALL col1 ) * ( - COUNT ( * ) ) FROM tab0
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6568
SELECT DISTINCT + CAST( 96 AS SIGNED ), col2 FROM tab0 AS cor0
----
96
10
96
47
96
99

skipif mysql # not compatible
query II rowsort label-6568
SELECT DISTINCT + CAST ( 96 AS INTEGER ), col2 FROM tab0 AS cor0
----
96
10
96
47
96
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6569
SELECT DISTINCT - ( - col0 ) * - + CAST( NULL AS DECIMAL ) AS col0, col0 + col1 FROM tab0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-6569
SELECT DISTINCT - ( - col0 ) * - + CAST ( NULL AS REAL ) AS col0, col0 + col1 FROM tab0
----
NULL
108
NULL
96
NULL
98

query I rowsort
SELECT ( - - 46 ) FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL SUM( 96 ) col0 FROM tab0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6571
SELECT ALL SUM ( 96 ) col0 FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT - COUNT( DISTINCT - col1 ) FROM tab2 cor0 WHERE NULL IN ( + col2, col0, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) FROM tab2 cor0 WHERE NULL IN ( + col2, col0, col0 )
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < + 23 + col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT 59 + + col1 + + 26 FROM tab1
----
132
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT 92 + - 58 * COUNT( - - col2 ) * - COUNT( * ) - + - 47 - + 14 AS col0 FROM tab2
----
647

skipif mysql # not compatible
query I rowsort label-6579
SELECT 92 + - 58 * COUNT ( - - col2 ) * - COUNT ( * ) - + - 47 - + 14 AS col0 FROM tab2
----
647

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL + 89 + + 52 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT ALL + col1 * col2 + - 18 FROM tab2 AS cor0
----
1155
3062
3868

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - col0 NOT IN ( - 65, + col1 )
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - col1 - col1 col0 FROM tab0
----
-18291
-57186
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - COUNT( - col1 ) - - 97 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( - col1 ) - - 97 FROM tab2
----
94

query I rowsort
SELECT + 10 + - + col2 - + col2 AS col1 FROM tab2
----
-106
-36
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6589
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + - col2 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT DISTINCT + CAST( + 93 AS SIGNED ) FROM tab2 AS cor0
----
93

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6593
SELECT ALL * FROM tab0 WHERE - col2 * - 60 + CAST( NULL AS SIGNED ) + + col2 NOT BETWEEN - ( - ( - col0 ) ) AND 84
----

skipif mysql # not compatible
query III rowsort label-6593
SELECT ALL * FROM tab0 WHERE - col2 * - 60 + CAST ( NULL AS INTEGER ) + + col2 NOT BETWEEN - ( - ( - col0 ) ) AND 84
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT 17 IS NULL
----
-15
-87
-97

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

skipif mysql # not compatible
query II rowsort label-6595
SELECT col0, col0 / - col2 AS col0 FROM tab1
----
51
0
85
-1
91
-1

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab2 WHERE ( ( NULL ) >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6597
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6597
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL MIN( + 31 ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL MIN ( + 31 ) AS col0 FROM tab0
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= - 9 - ( - 40 )
----

query I rowsort
SELECT + 53 * - - 48 FROM tab1 AS cor0
----
2544
2544
2544

query II rowsort
SELECT DISTINCT - col2 * ( + 55 ) + - + 17 + col1 * - - 23, + col0 FROM tab0 AS cor0
----
-5439
97
-739
15
-84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 12 col1 FROM tab2 AS cor0
----
-276
-480
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT ( + + 75 ) * + - COUNT( * ) AS col2 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT ( + + 75 ) * + - COUNT ( * ) AS col2 FROM tab1
----
-225

query I rowsort
SELECT DISTINCT col1 + + - col2 * + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT + 88 * - col0 + ( - col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-3384
-3999
4728

query I rowsort
SELECT - 46 FROM tab1 WHERE + 44 * - col1 + + 37 * + - col2 / col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT - 92 DIV + - 47 - col2 AS col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-6607
SELECT - 92 / + - 47 - col2 AS col2 FROM tab0
----
-46
-9
-98

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 69 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT + 81 * - 74 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-5994
3

skipif mysql # not compatible
query II rowsort label-6612
SELECT + 81 * - 74 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-5994
3

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

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

query II rowsort
SELECT ALL col2 AS col2, + col1 * - col0 * - ( 16 ) FROM tab1 AS cor0
----
59
6800
68
68432
96
11424

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

skipif mysql # not compatible
query I rowsort label-6616
SELECT SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
223

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

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

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * + col2 * - 60 + col0, + col2, col0, col2 * + col2, - + 52 )
----

query I rowsort
SELECT DISTINCT - 45 + - col0 AS col1 FROM tab2 AS cor0 WHERE 43 > NULL
----

query II rowsort
SELECT - col1 AS col1, - col1 + - ( + + col2 ) * - - 46 FROM tab2 AS cor0
----
-51
-1109
-67
-2735
-77
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT DISTINCT MIN( CAST( + 11 AS SIGNED ) ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT MIN ( CAST ( + 11 AS INTEGER ) ) AS col2 FROM tab1
----
11

query I rowsort
SELECT - ( + + 9 ) AS col1 FROM tab2
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - COUNT( DISTINCT - - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6624
SELECT - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT - COUNT( - col0 ) DIV + 98 * - COUNT( * ) + 74, + 26 * + 69 AS col2 FROM tab1
----
74
1794

skipif mysql # not compatible
query II rowsort label-6625
SELECT - COUNT ( - col0 ) / + 98 * - COUNT ( * ) + 74, + 26 * + 69 AS col2 FROM tab1
----
74
1794

query II rowsort
SELECT + 93 + col0 AS col0, col1 * + col0 + - + col1 * 44 FROM tab1
----
144
98
178
205
184
2209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - - 79 * - MIN( ALL col2 ) FROM tab0 AS cor0
----
-790

skipif mysql # not compatible
query I rowsort label-6628
SELECT - - 79 * - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-790

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

query II rowsort
SELECT - 35 AS col0, - 37 + - col2 AS col1 FROM tab1
----
-35
-105
-35
-133
-35
-96

query I rowsort
SELECT + 25 * - col0 FROM tab1
----
-1275
-2125
-2275

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col0 col1 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT ALL - col1 + + col2 + - 93 + - - 23 * + 6 FROM tab0 AS cor0
----
11
143
34

query I rowsort
SELECT - col0 + - - 41 + - col0 AS col1 FROM tab2
----
-109
-51
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT COUNT( * ) * - + COUNT( * ) + - - 28 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6637
SELECT COUNT ( * ) * - + COUNT ( * ) + - - 28 FROM tab2
----
19

query I rowsort
SELECT - 70 * - col0 + + + col2 FROM tab1
----
3666
6009
6438

query I rowsort
SELECT col1 + col0 * - col0 + + col0 + - 35 FROM tab1
----
-2571
-7170
-8178

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT col0 DIV col2 * 75 AS col2 FROM tab2
----
150
75
75

skipif mysql # not compatible
query I rowsort label-6640
SELECT col0 / col2 * 75 AS col2 FROM tab2
----
150
75
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT ( CAST( 96 AS SIGNED ) ) FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-6642
SELECT ( CAST ( 96 AS INTEGER ) ) FROM tab1
----
96
96
96

query I rowsort
SELECT - col2 * - + col0 FROM tab1 WHERE - 69 + - 35 > ( + - 95 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6644
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1, + SUM( - 32 ) AS col2 FROM tab2 AS cor0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-6644
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1, + SUM ( - 32 ) AS col2 FROM tab2 AS cor0
----
-3
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ALL + col2 + 65 DIV 54 AS col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + col2 + 65 / 54 AS col0 FROM tab2 AS cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col2 FROM tab1 AS cor0 WHERE col1 IN ( col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + COUNT( * ) * 37 - ( + COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
324

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + COUNT ( * ) * 37 - ( + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
324

query I rowsort
SELECT + 5 * 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6652
SELECT DISTINCT + SUM( ALL - + ( - col1 ) ) DIV SUM( 23 ) + - 76 FROM tab2 AS cor0 WHERE NOT ( col0 ) + - + col0 IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + SUM ( ALL - + ( - col1 ) ) / SUM ( 23 ) + - 76 FROM tab2 AS cor0 WHERE NOT ( col0 ) + - + col0 IS NULL
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT DISTINCT COUNT( - + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT COUNT ( - + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

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

query II rowsort
SELECT ALL - - col2 AS col2, - 2 FROM tab1 AS cor0
----
59
-2
68
-2
96
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - + col0 ) col0, - col1 * + col1 FROM tab2
----
-46
-2601
-64
-5929
-75
-4489

query II rowsort
SELECT ALL 38 AS col1, + 16 * + col0 FROM tab0
----
38
1392
38
1552
38
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT COUNT( + 6 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6658
SELECT COUNT ( + 6 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT 27 * 11 DIV + + col1 AS col1 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-6659
SELECT 27 * 11 / + + col1 AS col1 FROM tab2 AS cor0
----
3
4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT ( - - col0 ) + - 65 DIV ( + - 58 ) + + - col1 - - - 29 * + col0 FROM tab0 AS cor0
----
-2456
-2716
-500

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT ( - - col0 ) + - 65 / ( + - 58 ) + + - col1 - - - 29 * + col0 FROM tab0 AS cor0
----
-2456
-2716
-500

query I rowsort
SELECT ( col2 ) + + 72 AS col2 FROM tab0 AS cor0
----
119
171
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6662
SELECT DISTINCT + 13, + COUNT( * ) * - - 57 AS col0 FROM tab2 AS cor0
----
13
171

skipif mysql # not compatible
query II rowsort label-6662
SELECT DISTINCT + 13, + COUNT ( * ) * - - 57 AS col0 FROM tab2 AS cor0
----
13
171

query I rowsort
SELECT ALL 80 * - - 99 + - col1 AS col1 FROM tab2
----
7843
7853
7869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6664
SELECT 83 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

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

query I rowsort
SELECT DISTINCT - 51 + - + col1 * - col0 FROM tab0
----
1164
1776
46

query I rowsort
SELECT ALL - + col1 + 8 AS col1 FROM tab2 AS cor0
----
-43
-59
-69

query I rowsort
SELECT DISTINCT + 72 + + 1 + + col1 + - + col2 FROM tab1 AS cor0
----
-9
19
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 - 96 - + + col0 * - col0 / - - 16 NOT IN ( - - ( + col0 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6668
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 - 96 - + + col0 * - col0 / - - 16 NOT IN ( - - ( + col0 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - - 22 + - ( + SUM( + ( - col1 ) ) ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - - 22 + - ( + SUM ( + ( - col1 ) ) ) AS col0 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT 38 * col0 FROM tab2 cor0 WHERE + col0 * + col1 + - col1 IS NOT NULL
----
1748
2432
2850

query I rowsort
SELECT DISTINCT + 30 * - - col2 * + 42 FROM tab0
----
124740
12600
59220

query II rowsort
SELECT DISTINCT col1, + 41 FROM tab2
----
51
41
67
41
77
41

query I rowsort
SELECT - 14 + - col2 + - + col0 AS col1 FROM tab1
----
-158
-161
-173

query I rowsort
SELECT ALL - col1 * + 19 AS col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT 53 + - - col0 * - col1 * + col0 * - col2 AS col2 FROM tab2
----
12615733
21858803
2482121

query II rowsort
SELECT DISTINCT + col0 + + col0 + + col2, col1 FROM tab1
----
198
14
229
5
250
47

query I rowsort
SELECT + col2 + - 46 AS col2 FROM tab2
----
-23
-6
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT ALL + - col0 DIV - ( - - 92 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + - col0 / - ( - - 92 ) FROM tab0 AS cor0
----
0
0
1

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

query II rowsort
SELECT + + 22 AS col0, + col0 AS col0 FROM tab0 AS cor0
----
22
15
22
87
22
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + col2 ) <= ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT MAX( ALL - + col1 ) AS col1 FROM tab0 WHERE NOT NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT MAX ( ALL - + col1 ) AS col1 FROM tab0 WHERE NOT NULL >= col1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 15 ) * + 40 + + ( - - col0 ) + - col2 IS NOT NULL
----

query II rowsort
SELECT - 59 * + 78, - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-4602
10
-4602
47
-4602
99

query I rowsort
SELECT + + ( - - col0 ) * + 62 + 2 AS col1 FROM tab2 AS cor0
----
2854
3970
4652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT DISTINCT - - 17 + - - ( + MIN( CAST( NULL AS SIGNED ) ) ) + ( COUNT( * ) ) * + 34 + - 41 col1 FROM tab2 WHERE + ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT DISTINCT - - 17 + - - ( + MIN ( CAST ( NULL AS INTEGER ) ) ) + ( COUNT ( * ) ) * + 34 + - 41 col1 FROM tab2 WHERE + ( + col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT ALL + COUNT( * ) AS col1, + 7 * + COUNT( * ) AS col0 FROM tab2
----
3
21

skipif mysql # not compatible
query II rowsort label-6688
SELECT ALL + COUNT ( * ) AS col1, + 7 * + COUNT ( * ) AS col0 FROM tab2
----
3
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT - col1 * + + col1 FROM tab1 WHERE NOT NULL <> CAST( + 22 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6689
SELECT - col1 * + + col1 FROM tab1 WHERE NOT NULL <> CAST ( + 22 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ( - + 35 ) + + COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-6690
SELECT ( - + 35 ) + + COUNT ( * ) FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT DISTINCT 66 DIV - + 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT 66 / - + 95 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ( + + 74 ) + + COUNT( * ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6693
SELECT ( + + 74 ) + + COUNT ( * ) AS col0 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT ALL col1 * - + CAST( NULL AS SIGNED ) - + + 75 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 * col0 - - - col1 AS col1 FROM tab1
----
4882
5010
6141

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col0 * - col2
----

query I rowsort
SELECT ALL + col2 - - 10 + + 63 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT DISTINCT - 66 - - col2 FROM tab0 AS cor0
----
-19
-56
33

query I rowsort
SELECT ALL - 16 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-11
-2
31

query I rowsort
SELECT ALL col2 * - - col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT COUNT( DISTINCT + + 87 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT COUNT ( DISTINCT + + 87 ) col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 * + + 44 / - col1 + - 26 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 * + + 44 / - col1 + - 26 IS NULL
----
-3

query I rowsort
SELECT ALL - 26 - 11 + - ( + col2 ) * + + col2 + - + col1 * - + col0 - + col0 + + + col0 + - col0 + - col0 / col0 * - + col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - - ( - col2 ) AND - 95 + - + col2
----

query I rowsort
SELECT col0 * + - col0 * + 57 FROM tab1
----
-148257
-411825
-472017

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT MAX( 74 ) * + MAX( ALL + col2 ) FROM tab1
----
7104

skipif mysql # not compatible
query I rowsort label-6706
SELECT MAX ( 74 ) * + MAX ( ALL + col2 ) FROM tab1
----
7104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - ( - MIN( ALL + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6708
SELECT - ( - MIN ( ALL + col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT COUNT( - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6709
SELECT COUNT ( - - col0 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 68 col2, col2 AS col0 FROM tab1
----
-68
59
-68
68
-68
96

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 * - - col2 col0 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT 93 * + SUM( + 30 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
8370

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT 93 * + SUM ( + 30 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
8370

query I rowsort
SELECT ALL - - col2 * + 24 AS col1 FROM tab2 cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - 31 * - col0 FROM tab1 AS cor0
----
1581
2635
2821

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 20 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT 35 DIV col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6720
SELECT 35 / col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + col2 * 34 AS col2 FROM tab0 AS cor0
----
1598
3366
340

query I rowsort
SELECT - ( + col2 ) * col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col2 * - col1 * + col1 + 49 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-237111
-260313
-59774

query III rowsort
SELECT * FROM tab1 WHERE + 82 + + - col0 NOT BETWEEN + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT ALL + col2 DIV col1 DIV - col1 + - - 65 * + 29 AS col1 FROM tab0 cor0
----
1786
1885
1885

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + col2 / col1 / - col1 + - - 65 * + 29 AS col1 FROM tab0 cor0
----
1786
1885
1885

query I rowsort
SELECT + + col0 + + - col0 + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + + col0 + - - 85 + + 12 AS col0 FROM tab2 AS cor0
----
143
161
172

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - - col1
----

query I rowsort
SELECT - - 48 + + + 15 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col2 - 83 + + - col2 - - 33 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6732
SELECT + COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - COUNT( - col0 ) * - MIN( ( + col1 ) ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6735
SELECT - COUNT ( - col0 ) * - MIN ( ( + col1 ) ) FROM tab2 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + 77 + - col1 * col1 + - + col0 col0 FROM tab0 AS cor0
----
-21
-339
1089

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT + + COUNT( * ) * + + COUNT( * ) * ( - COUNT( * ) ) - + 26 AS col2, SUM( - + col2 ) AS col2 FROM tab0 cor0
----
-53
-156

skipif mysql # not compatible
query II rowsort label-6737
SELECT + + COUNT ( * ) * + + COUNT ( * ) * ( - COUNT ( * ) ) - + 26 AS col2, SUM ( - + col2 ) AS col2 FROM tab0 cor0
----
-53
-156

query I rowsort
SELECT ALL + col1 * - col1 - - 59 FROM tab0 AS cor0
----
-382
-6502
58

query II rowsort
SELECT ( + col2 ) AS col0, col0 AS col2 FROM tab1 AS cor0 WHERE col1 * col2 > + col0 * - 32 + - col1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + 76 * 71 - + + col0 + - 31 FROM tab2 AS cor0
----
5290
5301
5319

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + col0 AS col1, - 87 AS col1 FROM tab0
----
15
-87
87
-87
97
-87

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

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT COUNT( * ) * + MIN( col2 ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6745
SELECT COUNT ( * ) * + MIN ( col2 ) AS col1 FROM tab1
----
177

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

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + + ( + 65 ) <> - 21
----

query I rowsort
SELECT ALL + + col0 * + col2 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * - + col0
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT 16 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT - + ( + + col0 ) DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT + + 39 DIV + col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6752
SELECT + + 39 / + col1 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT - 61 * COUNT( * ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - 61 * COUNT ( * ) FROM tab1
----
-183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT - MIN( ALL - CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6755
SELECT - MIN ( ALL - CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT 92 * - col2 AS col2, + ( col0 ) FROM tab0 cor0
----
-4324
15
-9108
97
-920
87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT DISTINCT + col1 DIV + 7 FROM tab2 AS cor0
----
11
7
9

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + col1 / + 7 FROM tab2 AS cor0
----
11
7
9

query I rowsort
SELECT ALL + 5 * + col1 + + col1 AS col0 FROM tab2 cor0
----
306
402
462

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT DISTINCT + col2 DIV 33 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + col2 / 33 FROM tab1 AS cor0
----
1
2

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

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

query I rowsort
SELECT ALL - - 93 * - col2 AS col1 FROM tab1 cor0
----
-5487
-6324
-8928

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - col0 ) > 99 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL - + MIN( + col0 ) * - 51 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - + MIN ( + col0 ) * - 51 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 3 * + col1 * - + col1 + + 94 FROM tab1
----
169
6721
682

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT MIN( + - 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6767
SELECT MIN ( + - 36 ) FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6768
SELECT - 16, CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-16
14
-16
47
-16
5

skipif mysql # not compatible
query II rowsort label-6768
SELECT - 16, CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-16
14
-16
47
-16
5

query I rowsort
SELECT ALL - 80 - - + col2 FROM tab0 AS cor0
----
-33
-70
19

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

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

query I rowsort
SELECT DISTINCT - + ( + col1 ) - 56 FROM tab2 cor0
----
-107
-123
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL - COUNT( * ) + ( + MIN( col2 ) ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - COUNT ( * ) + ( + MIN ( col2 ) ) FROM tab1
----
56

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 BETWEEN + 69 * col0 * + col1 AND + col2 * + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - SUM( col2 ) * + 49 AS col2 FROM tab0
----
-7644

skipif mysql # not compatible
query I rowsort label-6776
SELECT - SUM ( col2 ) * + 49 AS col2 FROM tab0
----
-7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6777
SELECT - COUNT( * ) AS col1, 38 DIV + 38 AS col1 FROM tab1
----
-3
1

skipif mysql # not compatible
query II rowsort label-6777
SELECT - COUNT ( * ) AS col1, 38 / + 38 AS col1 FROM tab1
----
-3
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + COUNT( * ) * 34 AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-6779
SELECT + COUNT ( * ) * 34 AS col1 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ( + SUM( + col2 ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6780
SELECT ( + SUM ( + col2 ) ) AS col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - - 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6782
SELECT ALL * FROM tab1 WHERE - + ( CAST( + + ( + col1 ) AS SIGNED ) ) <= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6782
SELECT ALL * FROM tab1 WHERE - + ( CAST ( + + ( + col1 ) AS INTEGER ) ) <= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL - + COUNT( * ) + - 95 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - + COUNT ( * ) + - 95 FROM tab2 AS cor0
----
-98

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

query I rowsort
SELECT DISTINCT + + 73 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT DISTINCT + - 52 DIV + 21 + 4 AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT + - 52 / + 21 + 4 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT col0 * - ( + + col2 ) * - - 32 AS col1 FROM tab0 cor0
----
-22560
-27840
-307296

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT ( + + 94 ) + + SUM( + 27 ) + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT ( + + 94 ) + + SUM ( + 27 ) + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
184

query II rowsort
SELECT ALL col1, col1 + col0 AS col1 FROM tab2 AS cor0
----
51
97
67
142
77
141

query I rowsort
SELECT ALL - col1 * col2 * - + 20 AS col2 FROM tab0 AS cor0
----
1980
4200
76140

query I rowsort
SELECT + 52 * - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-4524
-5044
-780

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6793
SELECT col2 - + CAST( NULL AS DECIMAL ) FROM tab2 WHERE col2 - + col0 * - + col1 + 23 - - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT col2 - + CAST ( NULL AS REAL ) FROM tab2 WHERE col2 - + col0 * - + col1 + 23 - - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab0 WHERE NULL > - col1 * + col1
----

query I rowsort
SELECT ALL - col2 * ( - 81 ) FROM tab2
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT + SUM( ALL col0 ) + ( 78 ) FROM tab0
----
277

skipif mysql # not compatible
query I rowsort label-6796
SELECT + SUM ( ALL col0 ) + ( 78 ) FROM tab0
----
277

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

query I rowsort
SELECT 60 + col1 FROM tab1 cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - + SUM( + col1 ) col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT - + SUM ( + col1 ) col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT ALL - - col0 - CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - - col0 - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT col0 FROM tab1 WHERE + 10 = - col2 - ( - col1 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 * - ( + col2 ) + + col1 + col1 IS NULL
----
-10
-47
-99

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 cor0
----
1

query II rowsort
SELECT + col0 AS col1, 50 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
51
50
85
50
91
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 52 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT DISTINCT + + MIN( - ( + 83 ) ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 20 - - + col1 + + - 90 * - col1 BETWEEN + + 12 AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 + - 28 >= 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + col1 * col1 AS col0 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT - col2 * - CAST( NULL AS SIGNED ) * - + 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT SUM( 43 ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT SUM ( 43 ) AS col0 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - - COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - - COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + col2 + 35 * + - col2 - - - col1 * - col0 + - + col1 + 95 * - - col2 * + 69 FROM tab1 WHERE NOT col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - - 89 AS col2 FROM tab0 AS cor0
----
-8
2
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - 65 * + COUNT( * ) + + 73 + MAX( - 66 ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - 65 * + COUNT ( * ) + + 73 + MAX ( - 66 ) FROM tab2 AS cor0
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT - COUNT( * ) + + 48 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - COUNT ( * ) + + 48 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT + - ( - - col2 ) - col0 + - - ( + - ( col1 ) ) + 97 AS col2 FROM tab1 cor0
----
-109
-52
-64

query I rowsort
SELECT + - col1 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT + SUM( 59 ) + - MAX( DISTINCT - col1 ) + COUNT( * ) FROM tab1
----
185

skipif mysql # not compatible
query I rowsort label-6826
SELECT + SUM ( 59 ) + - MAX ( DISTINCT - col1 ) + COUNT ( * ) FROM tab1
----
185

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6828
SELECT + SUM( ALL + col0 ) DIV - 68 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6828
SELECT + SUM ( ALL + col0 ) / - 68 FROM tab2
----
-2

query I rowsort
SELECT ALL + 64 * + 93 AS col0 FROM tab1
----
5952
5952
5952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT + col2 DIV + + col1 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT MAX( - col2 ) * COUNT( * ) FROM tab2 WHERE NULL BETWEEN - - 27 AND - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT MAX ( - col2 ) * COUNT ( * ) FROM tab2 WHERE NULL BETWEEN - - 27 AND - + 98
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - 23 NOT IN ( + col0 * - - col1 + + col1, - col0 + - col2, + 44 + + col0 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 87 ) * - - 29 col0 FROM tab2
----
-2523
-2523
-2523

query I rowsort
SELECT DISTINCT + - 32 AS col0 FROM tab1 WHERE NOT - - col1 * + 15 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT ALL - col1 DIV - - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - col1 / - - col2 FROM tab0
----
-1
-2
0

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

query I rowsort
SELECT ALL - - col2 * + ( col2 ) FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - col1 + - col1 FROM tab1 AS cor0 WHERE NOT - CAST( 1 AS SIGNED ) + + + ( 95 ) IN ( + col1 * - col0 + + CAST( NULL AS SIGNED ), 45, + - col1 + 72 )
----

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - col1 + - col1 FROM tab1 AS cor0 WHERE NOT - CAST ( 1 AS INTEGER ) + + + ( 95 ) IN ( + col1 * - col0 + + CAST ( NULL AS INTEGER ), 45, + - col1 + 72 )
----

query II rowsort
SELECT DISTINCT col1 * col2 AS col0, - col0 FROM tab2 AS cor0
----
1173
-46
3080
-64
3886
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT ALL + + SUM( - + col2 ), + 96 AS col0 FROM tab2 AS cor0
----
-121
96

skipif mysql # not compatible
query II rowsort label-6846
SELECT ALL + + SUM ( - + col2 ), + 96 AS col0 FROM tab2 AS cor0
----
-121
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + COUNT( * ) * 85 * - COUNT( * ) col1 FROM tab1 AS cor0
----
-765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6847
SELECT ALL + COUNT ( * ) * 85 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT COUNT( ALL ( + 92 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT COUNT ( ALL ( + 92 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT 26, COUNT( * ) AS col0 FROM tab2
----
26
3

skipif mysql # not compatible
query II rowsort label-6849
SELECT 26, COUNT ( * ) AS col0 FROM tab2
----
26
3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col0 + col0 + col2 + - 74 FROM tab0 cor0
----
110
219
3

query I rowsort
SELECT DISTINCT + - col2 + + 41 FROM tab0 AS cor0
----
-58
-6
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6853
SELECT + 84 * - SUM( ALL col0 ) AS col2, - 45 AS col0 FROM tab0 AS cor0
----
-16716
-45

skipif mysql # not compatible
query II rowsort label-6853
SELECT + 84 * - SUM ( ALL col0 ) AS col2, - 45 AS col0 FROM tab0 AS cor0
----
-16716
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT DISTINCT - + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT ALL - col2 DIV - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL 86 + ( CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
133
185
96

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 86 + ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
133
185
96

query I rowsort
SELECT 28 + col0 * - col2 FROM tab1
----
-4868
-4987
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT COUNT( * ) * - 28 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-6859
SELECT COUNT ( * ) * - 28 FROM tab2
----
-84

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 99
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6862
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 * col1 + - col1 >= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT COUNT( * ) + 18 AS col1 FROM tab0 WHERE ( + 27 * col1 ) = + 56 + + col2
----
18

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( * ) + 18 AS col1 FROM tab0 WHERE ( + 27 * col1 ) = + 56 + + col2
----
18

query I rowsort
SELECT DISTINCT - 60 + - col2 AS col1 FROM tab0
----
-107
-159
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT - 0 + + 34 DIV - COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-6866
SELECT - 0 + + 34 / - COUNT ( * ) FROM tab1
----
-11

query I rowsort
SELECT - col1 + + 86 * + 6 FROM tab2
----
439
449
465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col2 col2 FROM tab2
----
-1122
-3003
-3819

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col0 ) + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col2 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 - col2 col0 FROM tab1
----
-2697
-7284
-8349

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

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

query I rowsort
SELECT ALL col2 * - 2 AS col0 FROM tab0
----
-198
-20
-94

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

query I rowsort
SELECT ALL + ( 9 ) AS col0 FROM tab1
----
9
9
9

query I rowsort
SELECT DISTINCT - 88 * + ( col0 ) FROM tab2
----
-4048
-5632
-6600

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT IN ( + 72 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col1 FROM tab0 WHERE NULL IS NULL
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT DISTINCT + col1 DIV - ( + col0 * + 43 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + col1 / - ( + col0 * + 43 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6881
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 78 * + 52 + col1 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
4107
4123
4133

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT + 98 * MIN( DISTINCT + col0 ) + MAX( - 0 ) FROM tab2
----
4508

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + 98 * MIN ( DISTINCT + col0 ) + MAX ( - 0 ) FROM tab2
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ( ( col0 ) ) DIV 23 AS col0 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-6884
SELECT ( ( col0 ) ) / 23 AS col0 FROM tab0
----
0
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * col0 + - ( - col2 ) col1 FROM tab2
----
1064
1258
759

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COUNT( * ) * + 5 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6886
SELECT COUNT ( * ) * + 5 AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT 3 * - 87 + + COUNT( * ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-6887
SELECT 3 * - 87 + + COUNT ( * ) FROM tab1
----
-258

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col2 - 69 / 70 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT 77 + - col1 FROM tab1 AS cor0
----
30
63
72

query I rowsort
SELECT + 0 * col1 + col2 * col1 FROM tab1 AS cor0
----
1344
295
3196

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

query I rowsort
SELECT ALL ( col0 ) * + ( 83 ) - + col1 FROM tab0 AS cor0
----
1164
7200
8050

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

query I rowsort
SELECT + 83 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT ALL - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT DISTINCT - 31 DIV + col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT - 31 / + col2 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT MIN( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6900
SELECT MIN ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + - COUNT( DISTINCT - 38 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6901
SELECT + - COUNT ( DISTINCT - 38 ) AS col0 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT + - col0 * + 38 AS col2 FROM tab1 cor0
----
-1938
-3230
-3458

query I rowsort
SELECT ALL + col1 * 53 FROM tab0 AS cor0
----
1113
4293
53

query I rowsort
SELECT DISTINCT col1 * 46 FROM tab0 AS cor0
----
3726
46
966

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 63 / + 62 NOT BETWEEN - col1 + 50 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - 35 * + 86 FROM tab2 WHERE 72 + col1 * 86 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 85 ) NOT BETWEEN ( 29 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ( - 15 ) + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6911
SELECT ( - 15 ) + COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT 50 IS NULL
----
1
21
81

query I rowsort
SELECT col2 * + 33 + + col1 FROM tab1
----
1952
2291
3182

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT + ( - col1 ) DIV 2 FROM tab0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + ( - col1 ) / 2 FROM tab0
----
-10
-40
0

query I rowsort
SELECT ALL - ( - 26 ) FROM tab2 WHERE col2 + + col1 BETWEEN 8 * + 94 AND ( + ( + 54 ) )
----

query I rowsort
SELECT DISTINCT + col0 + - 26 AS col2 FROM tab2
----
20
38
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL 46 * + 66 - SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
3139

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL 46 * + 66 - SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
3139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL = ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6919
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = ( col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / col1 + 5 NOT BETWEEN NULL AND ( + 2 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT - SUM( + - col0 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - SUM ( + - col0 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 AS cor0 WHERE ( + ( col0 ) ) <= - col0 * 10
----

query I rowsort
SELECT 92 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + ( + COUNT( DISTINCT + + col1 ) ) * 40 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-6924
SELECT + ( + COUNT ( DISTINCT + + col1 ) ) * 40 FROM tab2
----
120

query I rowsort
SELECT ALL 35 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6927
SELECT * FROM tab0 WHERE ( NOT col1 * + 15 + col2 * col2 <> + ( CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-6927
SELECT * FROM tab0 WHERE ( NOT col1 * + 15 + col2 * col2 <> + ( CAST ( NULL AS REAL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - ( + + 87 ) col1 FROM tab0
----
-12
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - + COUNT( * ) + + 4 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT - + COUNT ( * ) + + 4 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6930
SELECT col2 DIV + CAST( + + col2 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6930
SELECT col2 / + CAST ( + + col2 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT - + col2 + + 24 AS col1 FROM tab2 AS cor0
----
-16
-34
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - + col0 * 56 * 67 col0 FROM tab1 AS cor0
----
-191448
-318979
-341500

query I rowsort
SELECT ALL + - col2 - col2 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT ALL - col1 + - 74 FROM tab0 AS cor0
----
-155
-75
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT col0 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT + 85 FROM tab2 AS cor0 WHERE ( 30 * - 45 ) NOT IN ( 93 * + col1 )
----
85
85
85

query I rowsort
SELECT DISTINCT col0 - + 21 AS col2 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT ALL + col2 + 59 FROM tab2
----
117
82
99

query II rowsort
SELECT 24 * col0 AS col0, 56 FROM tab2
----
1104
56
1536
56
1800
56

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 30 < - - col0
----
-47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 41 + col1 BETWEEN NULL AND - - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT DISTINCT - col0 * - col0 FROM tab2 WHERE NULL <> CAST( - - 86 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT - col0 * - col0 FROM tab2 WHERE NULL <> CAST ( - - 86 AS INTEGER )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6946
SELECT DISTINCT + + 66 AS col1, col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-6946
SELECT DISTINCT + + 66 AS col1, col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 23 NOT BETWEEN ( col1 - col1 ) AND ( + col0 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 * + - ( - 54 ) * + 74 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT - col0 DIV - 2 AS col0 FROM tab2 AS cor0
----
23
32
37

skipif mysql # not compatible
query I rowsort label-6950
SELECT - col0 / - 2 AS col0 FROM tab2 AS cor0
----
23
32
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col0 / col1 * + + 89 + 7 AND NOT col1 IN ( - ( - 4 ) * - 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT - - CAST( - ( - - col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6952
SELECT - - CAST ( - ( - - col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT - 54 * - COUNT( * ) col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6953
SELECT - 54 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT - + col0 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + COUNT( * ) * - + 7 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + COUNT ( * ) * - + 7 FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6956
SELECT ALL + CAST( - 88 AS SIGNED ) + - col2 DIV + col0 * - col2 AS col1 FROM tab2
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + CAST ( - 88 AS INTEGER ) + - col2 / + col0 * - col2 AS col1 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col2 + col0 - col2 <> ( col0 * 89 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 77 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 / col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT ALL 20 DIV + - ( + 63 ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT - 23 + + - 26 AS col1 FROM tab0 cor0
----
-49
-49
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE - col1 / 71 * col1 IS NOT NULL
----
23
40
58

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

query I rowsort
SELECT ALL - + col1 + + ( - col0 ) * - col2 FROM tab2 AS cor0
----
1007
2483
4283

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6971
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6971
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + ( - + col0 ) - + + col0 * - col2 + - 46 * + col0 FROM tab1 AS cor0
----
1020
1911
2499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6973
SELECT DISTINCT - + 65 + + 19 DIV + + 57 - - COUNT( * ) * + - 9 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - + 65 + + 19 / + + 57 - - COUNT ( * ) * + - 9 FROM tab1 AS cor0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + ( - ( - + ( + - 56 ) ) ) col2 FROM tab1
----
115
124
152

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6976
SELECT DISTINCT + COUNT( * ), 11 DIV - - 22 AS col1 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT + COUNT ( * ), 11 / - - 22 AS col1 FROM tab0
----
3
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6977
SELECT ALL col0, - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL col0, - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6978
SELECT + col2, - CAST( NULL AS SIGNED ) + - + 64 col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6978
SELECT + col2, - CAST ( NULL AS INTEGER ) + - + 64 col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - + MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

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

query II rowsort
SELECT + 70 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
70
-46
70
-64
70
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col0, 69 col0 FROM tab2 AS cor0
----
46
69
64
69
75
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT + COUNT( * ) + + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + COUNT ( * ) + + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( ( NOT NULL BETWEEN NULL AND ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( * ) * - - 87 AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-6986
SELECT - COUNT ( * ) * - - 87 AS col0 FROM tab0
----
-261

query I rowsort
SELECT col2 * - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-205379
-314432
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + - + col2 + + + col1 col1 FROM tab0 AS cor0 WHERE - 54 IS NULL
----

query I rowsort
SELECT ALL - 90 * + col0 + - + col1 + + ( + 33 ) FROM tab2 AS cor0
----
-4158
-5804
-6784

query I rowsort
SELECT + col0 + 69 AS col1 FROM tab0 cor0 WHERE NOT + col0 - + col2 IS NULL
----
156
166
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT ALL COUNT( * ) + - + COUNT( * ) + + 57 DIV MAX( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL COUNT ( * ) + - + COUNT ( * ) + + 57 / MAX ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT 41 * COUNT( * ) + + 12 AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-6993
SELECT 41 * COUNT ( * ) + + 12 AS col0 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL - COUNT( * ) col2 FROM tab2 WHERE NOT - 13 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6994
SELECT ALL - COUNT ( * ) col2 FROM tab2 WHERE NOT - 13 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT - col1 / col0 + - 28 + + 45 + - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT - col1 / col0 + - 28 + + 45 + - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - COUNT( * ) + - - ( - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6996
SELECT - COUNT ( * ) + - - ( - COUNT ( * ) ) FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT CAST( NULL AS SIGNED ) + + + 77 + col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 75 + + col2 AS col1 FROM tab0
----
122
174
85

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7000
SELECT * FROM tab0 WHERE NULL BETWEEN 96 - + + 25 + - 94 + + col2 AND - 25 * ( - col0 ) + CAST( col1 AS SIGNED ) + col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-7000
SELECT * FROM tab0 WHERE NULL BETWEEN 96 - + + 25 + - 94 + + col2 AND - 25 * ( - col0 ) + CAST ( col1 AS INTEGER ) + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT DISTINCT - 42 DIV col2 + + - 22 AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT - 42 / col2 + + - 22 AS col1 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL 68 * - - SUM( DISTINCT col2 ) + COUNT( * ) col2 FROM tab0
----
10611

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT ALL 68 * - - SUM ( DISTINCT col2 ) + COUNT ( * ) col2 FROM tab0
----
10611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT DISTINCT CAST( NULL AS SIGNED ) + 64 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7004
SELECT col1 - col0 - + + CAST( NULL AS SIGNED ) + - - 72, col2 col2 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-7004
SELECT col1 - col0 - + + CAST ( NULL AS INTEGER ) + - - 72, col2 col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT 60 + - col2 * - - col0 FROM tab0
----
-645
-810
-9543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) * - col2 + + 89 + - col1 col0 FROM tab0
----
-697
-802
-9515

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + 70 AND NULL OR NOT - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL ( MIN( ALL col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL ( MIN ( ALL col0 ) ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT COUNT( * ) + - MIN( DISTINCT + 23 ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-7009
SELECT COUNT ( * ) + - MIN ( DISTINCT + 23 ) AS col2 FROM tab1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT DISTINCT + 31 + - 88 * - + MIN( - 47 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-12377

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT + 31 + - 88 * - + MIN ( - 47 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12377

query III rowsort
SELECT * FROM tab1 cor0 WHERE 67 + + 50 * col0 * col0 IS NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE 13 + - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT + 83 / - CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE - 42 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 83 / - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE - 42 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT DISTINCT + CAST( + - 25 AS SIGNED ) * + col0 AS col2 FROM tab0
----
-2175
-2425
-375

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + CAST ( + - 25 AS INTEGER ) * + col0 AS col2 FROM tab0
----
-2175
-2425
-375

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 71 = - - ( col2 ) - - + col0 + + + 0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 * + col0 * - - 85 AS col2, col0 * - col0 FROM tab1
----
416160
-2601
426275
-7225
525980
-8281

query I rowsort
SELECT DISTINCT + col0 * - 44 AS col0 FROM tab1
----
-2244
-3740
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT col0 DIV + - 6 FROM tab0 cor0
----
-14
-16
-2

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT col0 / + - 6 FROM tab0 cor0
----
-14
-16
-2

query II rowsort
SELECT + col1 * - 50 * - 43, col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 61 ) AS col1 FROM tab2 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT - 68 DIV SUM( DISTINCT + ( - - 37 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7024
SELECT - 68 / SUM ( DISTINCT + ( - - 37 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT 61 DIV 88 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT 61 / 88 FROM tab0
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7028
SELECT + MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
81

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

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE 57 / - 81 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT 28 DIV + + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT 28 / + + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7032
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 96 / - 16 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 WHERE + col1 + - 86 - - 74 * - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7035
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( - 61 AS DECIMAL ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( - 61 AS REAL ) AND - col2
----

query I rowsort
SELECT DISTINCT + 91 + + 31 + + - ( + - 23 ) FROM tab0
----
145

query I rowsort
SELECT - col1 + + 41 + - col0 FROM tab1
----
-24
-49
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT ALL + CAST( - ( + col1 ) AS SIGNED ) + + col1 + 46 * 73 AS col2 FROM tab2
----
3358
3358
3358

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + CAST ( - ( + col1 ) AS INTEGER ) + + col1 + 46 * 73 AS col2 FROM tab2
----
3358
3358
3358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE + col1 IN ( col0 * + 79 * - 31 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + + 44 AS col2 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT + col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7041
SELECT + col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - col2 + - + col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT ALL 37 * + - col2 * 26 AS col2 FROM tab2
----
-22126
-38480
-55796

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

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

query I rowsort
SELECT + + col1 - - 46 * col2 AS col1 FROM tab1 WHERE + - col2 * + col2 IS NULL
----

query I rowsort
SELECT ALL + - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT - col1 * - 79 + + + 70 FROM tab0 AS cor0
----
149
1729
6469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT - MIN( ALL CAST( - col2 AS SIGNED ) ) - + MAX( ALL - 67 ) FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-7048
SELECT - MIN ( ALL CAST ( - col2 AS INTEGER ) ) - + MAX ( ALL - 67 ) FROM tab2 AS cor0
----
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col0 * col0 col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7050
SELECT - COUNT( * ) AS col1, ( + 75 ) * + 64 + + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7050
SELECT - COUNT ( * ) AS col1, ( + 75 ) * + 64 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT 72 * - - col0 * col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7051
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT 72 * - - col0 * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT ALL 66, + MIN( - + col1 ) AS col0 FROM tab2
----
66
-77

skipif mysql # not compatible
query II rowsort label-7052
SELECT ALL 66, + MIN ( - + col1 ) AS col0 FROM tab2
----
66
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT ALL COUNT( * ) col1, 0 FROM tab2
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7053
SELECT ALL COUNT ( * ) col1, 0 FROM tab2
----
3
0

query I rowsort
SELECT DISTINCT col1 * - - ( + col0 ) AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + 58 * - 45 AS col1 FROM tab2
----
-2610
-2610
-2610

query I rowsort
SELECT 77 * - col2 AS col2 FROM tab1
----
-4543
-5236
-7392

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + ( CAST( + col2 AS SIGNED ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + ( CAST ( + col2 AS INTEGER ) ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + 62 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 49 * col0 * - 11 + + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1401225
-3893850
-4459182

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - - MAX( - + 77 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT - - MAX ( - + 77 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL + 0 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + 0 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + - - col1 * - + 72 * - - col1 AS col2 FROM tab1 AS cor0
----
-14016
-158980
-1741

query I rowsort
SELECT DISTINCT + + 98 FROM tab0 cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7065
SELECT - + 85 DIV + CAST( - 8 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
11
31
91

skipif mysql # not compatible
query I rowsort label-7065
SELECT - + 85 / + CAST ( - 8 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
11
31
91

query I rowsort
SELECT ALL col1 + - col2 * + - col1 FROM tab0 cor0
----
100
231
3888

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT + 59 / + + col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + ( + col2 ) / 82 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - ( + COUNT( * ) ) * - SUM( - - 78 ) col2 FROM tab1
----
702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT - ( + COUNT ( * ) ) * - SUM ( - - 78 ) col2 FROM tab1
----
702

query I rowsort
SELECT DISTINCT 16 FROM tab2 WHERE NOT ( NOT ( NOT 73 IN ( col0 + 0 ) ) )
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7072
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - + 50 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT + ( - CAST ( NULL AS REAL ) ) * - + 50 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NULL AND ( NULL ) <> - 64 * 95
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7078
SELECT ALL col2 * - col2 DIV + - CAST( - - col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

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

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

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

query I rowsort
SELECT ALL + col2 * 74 + + col0 AS col0 FROM tab2 AS cor0
----
1748
3024
4367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL + CAST( + + col2 AS SIGNED ) * + col1 * col0 AS col0 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + CAST ( + + col2 AS INTEGER ) * + col1 * col0 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - ( 37 ) FROM tab2
----
-37

query I rowsort
SELECT ALL ( - col2 ) * + ( col2 ) AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - COUNT( - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7084
SELECT - COUNT ( - col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 97 * - ( + 34 ) FROM tab2
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - ( - ( + + COUNT( - - 31 ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - ( - ( + + COUNT ( - - 31 ) ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7087
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( 93 AS DECIMAL ) < ( + col2 )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-7087
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( 93 AS REAL ) < ( + col2 )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT - col1 DIV + col0 col1 FROM tab2 AS cor0
----
-1
-1
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT ALL - 65 DIV - MIN( ALL - + 1 ) + + 9 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - 65 / - MIN ( ALL - + 1 ) + + 9 FROM tab1 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-7090
SELECT DISTINCT + 87 DIV col0 AS col1, - col2 AS col1 FROM tab0
----
0
-99
1
-10
5
-47

skipif mysql # not compatible
query II rowsort label-7090
SELECT DISTINCT + 87 / col0 AS col1, - col2 AS col1 FROM tab0
----
0
-99
1
-10
5
-47

query I rowsort
SELECT ( - + ( - ( + + col1 ) ) ) * col1 + + - col1 AS col0 FROM tab2
----
2550
4422
5852

query I rowsort
SELECT ALL - 97 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT ALL 78 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3666
7722
780

query I rowsort
SELECT col1 * + + 97 - col1 AS col1 FROM tab1 AS cor0
----
1344
4512
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT DISTINCT + MAX( - col1 ) * CAST( NULL AS SIGNED ) + 84 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + MAX ( - col1 ) * CAST ( NULL AS INTEGER ) + 84 AS col1 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL + - col2 + - col2 + 29 AS col1 FROM tab2 AS cor0
----
-17
-51
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT + col1 AS col2, col1 - + - CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
110
47
115
5
64

skipif mysql # not compatible
query II rowsort label-7099
SELECT + col1 AS col2, col1 - + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
110
47
115
5
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT col2 * CAST( - + 81 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1863
-3240
-4698

skipif mysql # not compatible
query I rowsort label-7100
SELECT col2 * CAST ( - + 81 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1863
-3240
-4698

query I rowsort
SELECT ALL ( col2 ) * col0 * + - ( col1 ) FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + 25 > + - col2
----

query I rowsort
SELECT ALL + col0 - - col2 - - col2 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT DISTINCT - + ( - + 29 ) + + 54 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL - col1 - col2 - + 35 * + 63 FROM tab1 AS cor0
----
-2269
-2315
-2320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * + col1 * - col0 * col2 col1 FROM tab1 AS cor0 WHERE ( NOT + + 65 + col1 * + col2 IS NULL )
----
-300900
-3490032
-822528

query I rowsort
SELECT DISTINCT + - 60 - - col1 FROM tab1 AS cor0
----
-13
-46
-55

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL 31 * + COUNT( DISTINCT - col2 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL 31 * + COUNT ( DISTINCT - col2 ) FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ( + col0 ) / - col2 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - + COUNT( * ) * + 15 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7112
SELECT - + COUNT ( * ) * + 15 FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7113
SELECT ALL * FROM tab0 cor0 WHERE NOT - 51 * - - CAST( NULL AS SIGNED ) * + col2 - + 94 BETWEEN NULL AND + col2 - - 68
----

skipif mysql # not compatible
query III rowsort label-7113
SELECT ALL * FROM tab0 cor0 WHERE NOT - 51 * - - CAST ( NULL AS INTEGER ) * + col2 - + 94 BETWEEN NULL AND + col2 - - 68
----

query II rowsort
SELECT ALL col1 AS col0, - 81 * col0 AS col0 FROM tab2 AS cor0
----
51
-3726
67
-6075
77
-5184

query I rowsort
SELECT DISTINCT - col2 * - + 73 FROM tab2 AS cor0 WHERE 96 * + + col1 BETWEEN col2 / - 23 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 / 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 * + + 9, + col0 * col2 AS col2 FROM tab1
----
-126
4896
-423
6188
-45
5015

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT + 98 + 76 DIV + - col2 + - col0 + - - col2 FROM tab1
----
143
71
74

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 98 + 76 / + - col2 + - col0 + - - col2 FROM tab1
----
143
71
74

query I rowsort
SELECT DISTINCT col1 + - - 28 AS col0 FROM tab0 AS cor0
----
109
29
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * + 7 col2 FROM tab2 AS cor0
----
392
392
392

query I rowsort
SELECT col0 * + col1 - + col0 - - 56 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2356
4920
5006

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

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + SUM ( ALL - col2 ) AS col0 FROM tab2 cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 + col0 AS col0 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7126
SELECT - 90 + - - col0 * - col1 col2, - 6 DIV - col1 col2 FROM tab0 cor0
----
-1305
0
-187
6
-1917
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7126
SELECT - 90 + - - col0 * - col1 col2, - 6 / - col1 col2 FROM tab0 cor0
----
-1305
0
-187
6
-1917
0

query II rowsort
SELECT col1 + + + 91 * + + 18 AS col1, 48 FROM tab0 AS cor0
----
1639
48
1659
48
1719
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 + - col2 + 82 col0, col2 * + 90 * - 96 FROM tab0 cor0
----
-18
-855360
-46
-406080
51
-86400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT + COUNT( DISTINCT - - ( - col2 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7130
SELECT DISTINCT + COUNT ( DISTINCT - - ( - col2 ) ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 * + 70 * - + col0 FROM tab0
----
127890
6790
85050

query I rowsort
SELECT - - 1 - 98 AS col0 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 68 * - - col2 * - col0 AND + - 62
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL - CAST( 95 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - CAST ( 95 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7137
SELECT col0 * + col1 / - + col1 AS col0, - col0 - + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL < + CAST( - ( - 97 ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7137
SELECT col0 * + col1 / - + col1 AS col0, - col0 - + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL < + CAST ( - ( - 97 ) AS INTEGER )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col0, - 92, - 45 * - col1 + 51 + 74, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT + col2, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT ALL - col0 AS col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT 98 DIV - COUNT( + col2 ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7144
SELECT 98 / - COUNT ( + col2 ) AS col2 FROM tab0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + 8 = col0 * col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7146
SELECT + col2, - 18 DIV + 84 + - 48 FROM tab1
----
59
-48
68
-48
96
-48

skipif mysql # not compatible
query II rowsort label-7146
SELECT + col2, - 18 / + 84 + - 48 FROM tab1
----
59
-48
68
-48
96
-48

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

query II rowsort
SELECT + + col2 AS col1, col1 FROM tab1 WHERE NOT NULL = - - col2
----

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE ( + col1 < - - col2 / + - col0 )
----

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

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

query II rowsort
SELECT + + ( + - col0 ) * col0 + - - col0 AS col0, + col2 * - col0 FROM tab2 AS cor0
----
-2070
-1058
-4032
-2560
-5550
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT + - 93 DIV + col2 + + - col2 DIV + col1 AS col0 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7153
SELECT + - 93 / + col2 + + - col2 / + col1 AS col0 FROM tab2 cor0
----
-1
-2
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - + + 99 + + col0 NOT BETWEEN ( - col1 ) AND + col1 / + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT + SUM( ALL + col2 ) col2 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND + 82
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7156
SELECT + SUM ( ALL + col2 ) col2 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND + 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7157
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) + + 16 + + col2 * - col1 DIV + ( + + col1 ), col1 FROM tab1 cor0
----
-38
5
-5
47
-66
14

skipif mysql # not compatible
query II rowsort label-7157
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) + + 16 + + col2 * - col1 / + ( + + col1 ), col1 FROM tab1 cor0
----
-38
5
-5
47
-66
14

query II rowsort
SELECT - col2 - - - col0 * + + col0 + - 41 AS col0, + 34 * - col2 AS col1 FROM tab0 AS cor0
----
-313
-1598
-7620
-340
-9549
-3366

query I rowsort
SELECT DISTINCT - 66 - + col2 AS col2 FROM tab2 AS cor0
----
-106
-124
-89

query I rowsort
SELECT col1 - - - 89 * - + 82 AS col0 FROM tab0
----
7299
7319
7379

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7161
SELECT ALL - col2 - - + CAST( NULL AS SIGNED ) * - - col1 AS col0, - 88 AS col0 FROM tab1
----
NULL
-88
NULL
-88
NULL
-88

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL - col2 - - + CAST ( NULL AS INTEGER ) * - - col1 AS col0, - 88 AS col0 FROM tab1
----
NULL
-88
NULL
-88
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT - MIN( 0 ) * + + 13 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - MIN ( 0 ) * + + 13 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 - 25 FROM tab0
----
-24
-4
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT col0 * + col0 * ( + + CAST( + 73 AS SIGNED ) ) + - 32 * - + 0 + + col0 AS col1 FROM tab1 AS cor0
----
189924
527510
604604

skipif mysql # not compatible
query I rowsort label-7164
SELECT col0 * + col0 * ( + + CAST ( + 73 AS INTEGER ) ) + - 32 * - + 0 + + col0 AS col1 FROM tab1 AS cor0
----
189924
527510
604604

query I rowsort
SELECT DISTINCT - + col1 * - 16 FROM tab2 AS cor0
----
1072
1232
816

query II rowsort
SELECT 38 AS col1, + col0 + + col2 * + col0 FROM tab1
----
38
4947
38
5100
38
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT 13 * - - MAX( ALL col2 ) col2 FROM tab0
----
1287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7167
SELECT 13 * - - MAX ( ALL col2 ) col2 FROM tab0
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7168
SELECT + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL + CAST( - ( + col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + 92 ), col2 * - col0 col2 FROM tab0 AS cor0
----
92
-705
92
-870
92
-9603

query II rowsort
SELECT - + col1, - 30 + + col1 AS col2 FROM tab2 AS cor0
----
-51
21
-67
37
-77
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7172
SELECT DISTINCT * FROM tab0 WHERE - col1 + CAST( NULL AS SIGNED ) BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7172
SELECT DISTINCT * FROM tab0 WHERE - col1 + CAST ( NULL AS INTEGER ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 1 FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT + col2 + - - 57, + col2 AS col2 FROM tab2
----
115
58
80
23
97
40

query I rowsort
SELECT - col1 + + col2 + - - col2 - + col1 FROM tab1
----
108
164
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT + 91 + - - COUNT( * ) + - 28 DIV - 24 AS col0 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-7176
SELECT + 91 + - - COUNT ( * ) + - 28 / - 24 AS col0 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT 67 + - COUNT( * ) FROM tab0 WHERE + 51 * - col1 IS NOT NULL
----
64

skipif mysql # not compatible
query I rowsort label-7177
SELECT 67 + - COUNT ( * ) FROM tab0 WHERE + 51 * - col1 IS NOT NULL
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL - MAX( - 35 ) + + 33 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - MAX ( - 35 ) + + 33 FROM tab0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT - + col1 * - col1 * ( + CAST( - + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-7179
SELECT - + col1 * - col1 * ( + CAST ( - + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7180
SELECT DISTINCT CAST( 3 AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) * + col0 * - col1 + - col1 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7180
SELECT DISTINCT CAST ( 3 AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) * + col0 * - col1 + - col1 FROM tab0 cor0
----
3
NULL

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

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col1 = + col2 * - col1 * + + col0 - - col1
----

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

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

query II rowsort
SELECT - 1, 95 AS col0 FROM tab2
----
-1
95
-1
95
-1
95

query I rowsort
SELECT ( col1 ) - + - 57 FROM tab0
----
138
58
78

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND - 56 * + + 73 * + + col2 + 3 - col0 + + col0
----

query I rowsort
SELECT 5 + - col0 AS col2 FROM tab0
----
-10
-82
-92

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 80 < + - col2 * col1
----

query I rowsort
SELECT ALL col1 + 37 FROM tab0 AS cor0
----
118
38
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT DISTINCT - col2 - + - col1 + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-22
-55
-82

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT - col2 - + - col1 + - col0 / col2 AS col1 FROM tab1 AS cor0
----
-22
-55
-82

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

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

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

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

query I rowsort
SELECT DISTINCT 15 * + col2 FROM tab1
----
1020
1440
885

query I rowsort
SELECT + col0 * - + col2 * + - 62 AS col0 FROM tab2
----
158720
269700
65596

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < 82 * - + 58
----

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - 31 AS col0 FROM tab1 AS cor0
----
13175
132587
22134

query I rowsort
SELECT ALL + col1 * + 63 * - 95 * - 32 FROM tab0
----
15513120
191520
4021920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL - ( + CAST( - col1 AS SIGNED ) ) * - ( - col0 ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - ( + CAST ( - col1 AS INTEGER ) ) * - ( - col0 ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT + 77 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

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

query I rowsort
SELECT DISTINCT + - 71 * + 20 FROM tab1 AS cor0
----
-1420

query I rowsort
SELECT col2 * - 46 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT + - col0 DIV 33 * - - col1 FROM tab2 AS cor0
----
-134
-51
-77

skipif mysql # not compatible
query I rowsort label-7206
SELECT + - col0 / 33 * - - col1 FROM tab2 AS cor0
----
-134
-51
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT + MAX( + col2 ) * + - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + MAX ( + col2 ) * + - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
522

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT COUNT( * ) AS col1, + MAX( ALL - 76 ) AS col1 FROM tab1 AS cor0
----
3
-76

skipif mysql # not compatible
query II rowsort label-7208
SELECT COUNT ( * ) AS col1, + MAX ( ALL - 76 ) AS col1 FROM tab1 AS cor0
----
3
-76

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

skipif mysql # not compatible
query I rowsort label-7209
SELECT MAX ( ALL - col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT DISTINCT - 25 DIV col2 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT - 25 / col2 AS col0 FROM tab0
----
-2
0

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

query I rowsort
SELECT 84 + - col2 AS col1 FROM tab1 AS cor0
----
-12
16
25

query I rowsort
SELECT DISTINCT col1 + 28 + + ( - col1 ) * + 45 * - - col1 + + - 87 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 36 * + col1 + + - 63 FROM tab2 AS cor0
----
-1899
-2475
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL - 60 + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - 60 + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL 55 - col2 * - + 2 FROM tab0
----
149
253
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7219
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 < - ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 < - ( - - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7220
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - col1, - col2 * - col2, CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7220
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - col1, - col2 * - col2, CAST ( NULL AS INTEGER ) * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab1 WHERE NOT 22 * col1 * - - col0 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT col1 + + 13 + + CAST( + + 29 AS SIGNED ) + - - col1 + - - 76 + - - col0 * + + col1 FROM tab0 AS cor0
----
1495
1987
217

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT col1 + + 13 + + CAST ( + + 29 AS INTEGER ) + - - col1 + - - 76 + - - col0 * + + col1 FROM tab0 AS cor0
----
1495
1987
217

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT MIN( ALL - 12 ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-7226
SELECT MIN ( ALL - 12 ) AS col1 FROM tab2
----
-12

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

query I rowsort
SELECT ALL ( 18 ) * - col2 AS col1 FROM tab2
----
-1044
-414
-720

query II rowsort
SELECT + col1 AS col2, 85 * + 26 * col1 AS col1 FROM tab1
----
14
30940
47
103870
5
11050

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

query I rowsort
SELECT + col2 * - 91 FROM tab0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT COUNT( - 52 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT COUNT ( - 52 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7233
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) / - + col2 + - - col0 IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / - + col2 + - - col0 IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7234
SELECT DISTINCT - col0, - col1 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7234
SELECT DISTINCT - col0, - col1 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL + 47 * COUNT( * ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + 47 * COUNT ( * ) FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE 49 + + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7238
SELECT * FROM tab2 WHERE NOT + col0 + - CAST( - 99 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7238
SELECT * FROM tab2 WHERE NOT + col0 + - CAST ( - 99 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= - 67
----

query II rowsort
SELECT DISTINCT ( - 77 ) * col2 + - col0, + 49 AS col2 FROM tab1 AS cor0
----
-4628
49
-5327
49
-7443
49

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

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

query I rowsort
SELECT ALL - + col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT col1 + - 10 AS col0 FROM tab0
----
-9
11
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 78 AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT 25 FROM tab1 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL - MIN( ALL + - 22 ) col2 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7247
SELECT ALL - MIN ( ALL + - 22 ) col2 FROM tab1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 3 col2 FROM tab2
----
138
192
225

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 3 + + col0 * + col0
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7252
SELECT DISTINCT ( - col0 ) + col1, + col0 + + - CAST( + 15 AS SIGNED ) col2 FROM tab1 AS cor0
----
-37
36
-44
76
-80
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7252
SELECT DISTINCT ( - col0 ) + col1, + col0 + + - CAST ( + 15 AS INTEGER ) col2 FROM tab1 AS cor0
----
-37
36
-44
76
-80
70

query I rowsort
SELECT DISTINCT - 43 + + col1 AS col0 FROM tab0 AS cor0
----
-22
-42
38

query I rowsort
SELECT DISTINCT + - ( + col2 ) * 16 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7255
SELECT ALL CAST( NULL AS DECIMAL ) - - - 34 FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col0 - - col0 AS col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT - col1 + CAST( + + col1 AS SIGNED ) AS col2 FROM tab1
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT - col1 DIV col2 * - 90 + col0 col0 FROM tab0
----
105
267
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7258
SELECT - col1 / col2 * - 90 + col0 col0 FROM tab0
----
105
267
97

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

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

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT DISTINCT - 27 AS col0, - col1 * + ( col2 ) * + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-27
-1375929
-27
-15100996
-27
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL + MIN( DISTINCT - 16 ) AS col0 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + MIN ( DISTINCT - 16 ) AS col0 FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7264
SELECT ALL + 58 DIV - col1 FROM tab1 cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL + 58 / - col1 FROM tab1 cor0
----
-1
-11
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT DISTINCT - 90 * + SUM( DISTINCT CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-20430

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - 90 * + SUM ( DISTINCT CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-20430

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT - ( SUM ( ALL + col2 ) ) col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL - MIN( ALL - 29 ) col1 FROM tab2
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7269
SELECT ALL - MIN ( ALL - 29 ) col1 FROM tab2
----
29

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

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

query I rowsort
SELECT + - ( col2 ) * - col2 * + + col2 AS col0 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= 99
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL col0 DIV + 14 AS col1 FROM tab1 AS cor0
----
3
6
6

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL col0 / + 14 AS col1 FROM tab1 AS cor0
----
3
6
6

query I rowsort
SELECT DISTINCT + - 38 AS col2 FROM tab1 cor0 WHERE NOT - col1 - + - 11 IS NULL
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT DISTINCT + MAX( - + 40 ), - 74 AS col2 FROM tab2
----
-40
-74

skipif mysql # not compatible
query II rowsort label-7276
SELECT DISTINCT + MAX ( - + 40 ), - 74 AS col2 FROM tab2
----
-40
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7277
SELECT col2 * + col0 - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - col0 >= NULL
----

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 44 = NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - - 93 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL COUNT( * ) * - - ( + - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL COUNT ( * ) * - - ( + - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + ( + SUM( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7285
SELECT + ( + SUM ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + col2 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT DISTINCT - MAX( ( - col2 ) ) DIV 87 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - MAX ( ( - col2 ) ) / 87 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query II rowsort
SELECT + + 31, ( + + col0 ) FROM tab0 cor0
----
31
15
31
87
31
97

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT NULL < - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT col1, 52 AS col2, - - col1 AS col0 FROM tab2
----
9 values hashing to c5d1f2b2086c0cb312419760eb927a31

query II rowsort
SELECT ALL col2, ( + col0 ) - - ( - 68 ) * - ( - + col0 ) + - 29 AS col2 FROM tab1
----
59
-5724
68
-6126
96
-3446

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT ALL - 60, MIN( - col2 ) AS col1 FROM tab2
----
-60
-58

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL - 60, MIN ( - col2 ) AS col1 FROM tab2
----
-60
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT + COUNT( DISTINCT + - ( 14 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT + COUNT ( DISTINCT + - ( 14 ) ) AS col2 FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT - + 38 + - + col0 FROM tab1 AS cor0
----
-123
-129
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT - 86 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7301
SELECT - 86 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
28

query II rowsort
SELECT col1 * + - 73 AS col1, - col1 FROM tab2
----
-3723
-51
-4891
-67
-5621
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) - - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT 41 + 28, 90 AS col0 FROM tab0 AS cor0
----
69
90
69
90
69
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT ALL + - col2 + - - ( + - col2 ) DIV 79 + - + 29 * - col0 FROM tab2 AS cor0
----
1311
1816
2117

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + - col2 + - - ( + - col2 ) / 79 + - + 29 * - col0 FROM tab2 AS cor0
----
1311
1816
2117

query I rowsort
SELECT + col0 + col1 + + 87 + + col0 FROM tab1 AS cor0
----
203
262
316

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

query II rowsort
SELECT - col0 AS col2, - col0 + + col2 AS col0 FROM tab2
----
-46
-23
-64
-24
-75
-17

query II rowsort
SELECT DISTINCT 7 AS col1, col1 * - col0 + + col0 FROM tab0
----
7
-1200
7
-1740
7
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT 68 AS col0, COUNT( * ) FROM tab2
----
68
3

skipif mysql # not compatible
query II rowsort label-7310
SELECT 68 AS col0, COUNT ( * ) FROM tab2
----
68
3

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

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

query I rowsort
SELECT DISTINCT - ( - 29 ) * + - col0 - - col2 FROM tab2
----
-1311
-1816
-2117

query I rowsort
SELECT - ( col0 ) * + 46 FROM tab2
----
-2116
-2944
-3450

query I rowsort
SELECT - 71 * + + col2 AS col1 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT COUNT( * ) - + 21 col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7315
SELECT DISTINCT COUNT ( * ) - + 21 col2 FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 80 * - CAST( NULL AS SIGNED ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 80 * - CAST ( NULL AS INTEGER ) AND ( NULL )
----
0

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

query I rowsort
SELECT - col2 + 32 AS col2 FROM tab2
----
-26
-8
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT DISTINCT 83 DIV + col0 FROM tab2 WHERE NOT - col0 IN ( 53 - col0 )
----
1

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT 83 / + col0 FROM tab2 WHERE NOT - col0 IN ( 53 - col0 )
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col2 ) * - col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT - COUNT( ALL - ( - col0 ) ) AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-7321
SELECT - COUNT ( ALL - ( - col0 ) ) AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( - col1 )
----
-3

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL > + 11 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 + col1 * 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - SUM( ALL 56 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - SUM ( ALL 56 ) FROM tab0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT COUNT( - ( col2 ) ) AS col2 FROM tab0 WHERE NULL <> ( col2 + 7 )
----
0

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT COUNT ( - ( col2 ) ) AS col2 FROM tab0 WHERE NULL <> ( col2 + 7 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 > - 6 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 32 * - 18 - col1 AS col1 FROM tab1
----
-581
-590
-623

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

query I rowsort
SELECT ALL + 81 + - 31 FROM tab1
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 76 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT - col0 <> + col2 / col2 - + col0 * - col0
----

query I rowsort
SELECT 10 * + 4 FROM tab0 WHERE NOT col0 <> col0
----
40
40
40

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE col1 NOT IN ( 1 )
----
-10
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7337
SELECT * FROM tab1 WHERE NOT - col1 >= ( - CAST( - col2 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7337
SELECT * FROM tab1 WHERE NOT - col1 >= ( - CAST ( - col2 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7338
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) IN ( col2 + ( + 84 + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7338
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IN ( col2 + ( + 84 + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab0 WHERE NOT + 99 / col0 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL col2 * + 17 + col1 AS col2 FROM tab2 AS cor0
----
1053
442
757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( 44 ) * col1 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( 44 ) * col1 NOT IN ( + col0 )
----

query I rowsort
SELECT 60 + 63 FROM tab2 AS cor0
----
123
123
123

query I rowsort
SELECT - 23 * - col2 + col0 FROM tab0 AS cor0
----
1096
2374
317

query I rowsort
SELECT - ( + ( col2 ) ) + 84 AS col0 FROM tab1 AS cor0
----
-12
16
25

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

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

query I rowsort
SELECT 8 + 41 * 58 FROM tab0
----
2386
2386
2386

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7350
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE + col2 BETWEEN ( + 26 ) AND ( + col2 + 64 )
----
2

skipif mysql # not compatible
query I rowsort label-7351
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE + col2 BETWEEN ( + 26 ) AND ( + col2 + 64 )
----
2

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN col1 AND ( col2 + - col1 )
----
51
14
96
85
5
59

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

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

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

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

query I rowsort
SELECT 84 FROM tab1 cor0 WHERE - 41 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + 17 + - col1 * + ( - col2 - col2 * col0 ) AS col1 FROM tab0 AS cor0
----
18497
60929
9719

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - ( col0 ) - - ( - 59 ) AS col0 FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT 1 + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT 1 + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL COUNT( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT ( + 99 * col2 ) IN ( + 7 * + 29 )
----
3

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT ( + 99 * col2 ) IN ( + 7 * + 29 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - + MAX( - ( col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7361
SELECT - + MAX ( - ( col1 ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - SUM( ALL 4 ) + 86 AS col1 FROM tab0 AS cor0 WHERE + 65 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT - SUM ( ALL 4 ) + 86 AS col1 FROM tab0 AS cor0 WHERE + 65 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + - SUM( DISTINCT 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7363
SELECT + - SUM ( DISTINCT 18 ) FROM tab1 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT ALL + ( + col1 ) - + 17 DIV - col2 AS col2 FROM tab0
----
1
22
81

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL + ( + col1 ) - + 17 / - col2 AS col2 FROM tab0
----
1
22
81

query I rowsort
SELECT - col2 + + ( ( 53 ) ) AS col2 FROM tab1
----
-15
-43
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL + MAX( - + 86 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + MAX ( - + 86 ) FROM tab2
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT MAX( 32 ) + 45 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT MAX ( 32 ) + 45 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT COUNT( * ) * - 24 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT COUNT ( * ) * - 24 FROM tab1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT - 54 + - + 72 DIV 87 AS col1 FROM tab2
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-7372
SELECT - 54 + - + 72 / 87 AS col1 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT col2 * 26 + 29 * 91 FROM tab2
----
3237
3679
4147

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT COUNT( DISTINCT + + col1 ) + + 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7374
SELECT COUNT ( DISTINCT + + col1 ) + + 55 FROM tab0
----
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT + col0 DIV - 86 FROM tab1 AS cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT - col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
36125
36414
389207

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND ( 45 - - 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + col2 <> ( col1 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL 85 * col1 DIV + 2 FROM tab2
----
2167
2847
3272

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL 85 * col1 / + 2 FROM tab2
----
2167
2847
3272

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - + 6 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7382
SELECT - + 6 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - col1 * - - 62 IS NULL
----
46
64
75

query I rowsort
SELECT + ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT - 96 DIV + - col1 + 94 col0 FROM tab2 AS cor0
----
95
95
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT - 96 / + - col1 + 94 col0 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT 44 + 38 * + ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 83 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - COUNT( * ) * - 21 AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - COUNT ( * ) * - 21 AS col0 FROM tab2 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 9 * - - 68 > NULL
----

query I rowsort
SELECT ALL + ( + - 59 ) * - 57 FROM tab2
----
3363
3363
3363

query I rowsort
SELECT ALL + 60 * - 15 * - + 61 * + col2 AS col1 FROM tab1
----
3239100
3733200
5270400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT + col0 + - CAST( - 98 AS SIGNED ) AS col1 FROM tab2
----
144
162
173

skipif mysql # not compatible
query I rowsort label-7392
SELECT + col0 + - CAST ( - 98 AS INTEGER ) AS col1 FROM tab2
----
144
162
173

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7393
SELECT col1 + + 31 AS col1, CAST( + + col2 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
112
NULL
32
NULL
52
NULL

skipif mysql # not compatible
query II rowsort label-7393
SELECT col1 + + 31 AS col1, CAST ( + + col2 AS INTEGER ) + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
112
NULL
32
NULL
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT - 49 * + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 WHERE + col2 NOT IN ( - + col2 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - + ( - MAX( + col1 ) ) * + 97 AS col0 FROM tab0 AS cor0
----
7857

skipif mysql # not compatible
query I rowsort label-7396
SELECT - + ( - MAX ( + col1 ) ) * + 97 AS col0 FROM tab0 AS cor0
----
7857

query I rowsort
SELECT ALL - 53 * - col0 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT ALL - col0 * + col0 + - col2 AS col0 FROM tab2
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL MIN( col0 ) / COUNT( * ) col2 FROM tab0 WHERE NOT NULL NOT IN ( - 71 - + 16 - - col0 + 84 * + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7399
SELECT ALL MIN ( col0 ) / COUNT ( * ) col2 FROM tab0 WHERE NOT NULL NOT IN ( - 71 - + 16 - - col0 + 84 * + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 2 col0 FROM tab2 AS cor0
----
-21
-38
-56

query I rowsort
SELECT ALL 45 * - - 42 + + col0 FROM tab1 AS cor0
----
1941
1975
1981

query I rowsort
SELECT DISTINCT - col0 + + 98 AS col0 FROM tab1 AS cor0
----
13
47
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + - ( + + COUNT( * ) ) + - 47 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + - ( + + COUNT ( * ) ) + - 47 FROM tab0 cor0
----
-50

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab2 AS cor0 WHERE ( - col2 * - col1 + - 62 + - col1 * + col2 ) IS NOT NULL
----
29

query I rowsort
SELECT ALL col0 - - 37 * - col2 FROM tab2
----
-1416
-2071
-805

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT - COUNT( ALL ( 55 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - COUNT ( ALL ( 55 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ( COUNT( - - 44 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7410
SELECT ( COUNT ( - - 44 ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col0 * - - col1 col1 FROM tab2
----
46
2346
64
4928
75
5025

query III rowsort
SELECT ALL * FROM tab0 WHERE 32 * + 40 <= - + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 17 col2 FROM tab1 WHERE - col0 * - - col1 + col2 + + col0 BETWEEN + 22 AND ( col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) - - + ( + + 70 ) + + 37 - + 57 / - 59 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) - - + ( + + 70 ) + + 37 - + 57 / - 59 IS NULL
----

query I rowsort
SELECT col0 * + ( col1 ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT ALL 92 DIV - 45 + - 13 * - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( 24 * col0 + - col1 ) IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL 92 / - 45 + - 13 * - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( 24 * col0 + - col1 ) IS NULL
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7418
SELECT - COUNT( * ), - 3 DIV - COUNT( * ) AS col2 FROM tab0
----
-3
1

skipif mysql # not compatible
query II rowsort label-7418
SELECT - COUNT ( * ), - 3 / - COUNT ( * ) AS col2 FROM tab0
----
-3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT CAST( + 90 AS SIGNED ) * + col0 FROM tab1
----
4590
7650
8190

skipif mysql # not compatible
query I rowsort label-7419
SELECT CAST ( + 90 AS INTEGER ) * + col0 FROM tab1
----
4590
7650
8190

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 = col0 + + 86
----
3

skipif mysql # not compatible
query I rowsort label-7422
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 = col0 + + 86
----
3

query I rowsort
SELECT ALL col1 * 73 AS col2 FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT MAX( 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT MAX ( 71 ) FROM tab1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT DISTINCT + ( + col1 ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT DISTINCT + ( + col1 ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT + MIN( + col2 ) * + CAST( NULL AS SIGNED ) + + 26 FROM tab1 AS cor0 WHERE NOT + 38 * - - 76 + + + col0 NOT BETWEEN - col0 AND + 10 / + col2 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) + + 26 FROM tab1 AS cor0 WHERE NOT + 38 * - - 76 + + + col0 NOT BETWEEN - col0 AND + 10 / + col2 + - col2
----
NULL

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 + - col0 ) BETWEEN ( - ( ( - col1 ) ) ) - col2 AND + 57 * col1
----
-15
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7431
SELECT - 65 DIV col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT - 65 / col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT ALL SUM( - col2 ) AS col1, 99 AS col1 FROM tab2 AS cor0
----
-121
99

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL SUM ( - col2 ) AS col1, 99 AS col1 FROM tab2 AS cor0
----
-121
99

query I rowsort
SELECT - col2 * + + col0 * + + 94 FROM tab1 AS cor0
----
-460224
-471410
-581672

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

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

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

query I rowsort
SELECT ALL - col1 * - 26 - ( - ( - col2 ) ) * + col2 FROM tab1 AS cor0
----
-3351
-3402
-8852

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) IN ( 1 )
----

query I rowsort
SELECT DISTINCT - col1 * - 81 AS col0 FROM tab0
----
1701
6561
81

query II rowsort
SELECT col2, 38 AS col0 FROM tab1
----
59
38
68
38
96
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7441
SELECT - col0 AS col0, 72 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7441
SELECT - col0 AS col0, 72 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + SUM( ALL + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7442
SELECT + SUM ( ALL + col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - COUNT( * ) * - MAX( ALL + 95 ) AS col1 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-7443
SELECT - COUNT ( * ) * - MAX ( ALL + 95 ) AS col1 FROM tab0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT DISTINCT + col0 DIV - 48 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + col0 / - 48 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE + - col0 <= + - 62
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 < 70
----
46
51
23
75
67
58

query I rowsort
SELECT ( - col1 ) / col1 * - - col1 AS col2 FROM tab0 WHERE + - 4 < NULL
----

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

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

query I rowsort
SELECT col2 + + col2 * - 8 + + 96 FROM tab0 cor0
----
-233
-597
26

query I rowsort
SELECT - 96 + + 58 FROM tab2 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 80 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

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

query I rowsort
SELECT + + col2 * 78 FROM tab1 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT - 70 - + col1 AS col2 FROM tab2 AS cor0
----
-121
-137
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL 37 + + col0 + col2 + + - 71 * - 18 - col1 DIV - 91 * col1 FROM tab2 AS cor0
----
1384
1419
1448

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 37 + + col0 + col2 + + - 71 * - 18 - col1 / - 91 * col1 FROM tab2 AS cor0
----
1384
1419
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + - COUNT( * ) - + 54 AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7456
SELECT + - COUNT ( * ) - + 54 AS col1 FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL - COUNT( * ) - - - 32 + - SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - COUNT ( * ) - - - 32 + - SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + COUNT( * ) + - 44 AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7458
SELECT + COUNT ( * ) + - 44 AS col0 FROM tab1 AS cor0
----
-41

query II rowsort
SELECT DISTINCT - col1 AS col1, ( + - col1 ) * - + col2 FROM tab0
----
-1
99
-21
210
-81
3807

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + 80 DIV + 86 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT + 80 / + 86 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 12 FROM tab1
----
51
12
85
12
91
12

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + + SUM( + - col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + SUM ( + - col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7465
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-7465
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7466
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7466
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> CAST ( - + col0 AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT + COUNT ( * ) - - COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 33 * + COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7469
SELECT 33 * + COUNT ( * ) FROM tab0 AS cor0
----
99

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

query I rowsort
SELECT - 37 * - 81 FROM tab2 AS cor0
----
2997
2997
2997

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 - + col1 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT col0 DIV + - 91 + - + 40 + + col1 FROM tab1
----
-26
-35
6

skipif mysql # not compatible
query I rowsort label-7475
SELECT col0 / + - 91 + - + 40 + + col1 FROM tab1
----
-26
-35
6

query I rowsort
SELECT - ( - col2 ) + + 74 AS col1 FROM tab0
----
121
173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT COUNT( * ) * + + 72 * + ( - - 56 ) + - MIN( DISTINCT col1 ) + - 96 AS col0 FROM tab1
----
11995

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT COUNT ( * ) * + + 72 * + ( - - 56 ) + - MIN ( DISTINCT col1 ) + - 96 AS col0 FROM tab1
----
11995

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - SUM( ALL - 49 ) AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-7478
SELECT - SUM ( ALL - 49 ) AS col0 FROM tab0
----
147

query I rowsort
SELECT DISTINCT col1 + ( col1 ) FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT 84 * + + col0 + + col2 AS col2 FROM tab2 cor0
----
3887
5416
6358

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN + col2 + + col2 * + col2 * - + col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL col0 AS col1, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT DISTINCT + col2 + - CAST( col1 AS SIGNED ) * - ( + ( + 54 ) ) FROM tab1
----
2606
329
852

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT + col2 + - CAST ( col1 AS INTEGER ) * - ( + ( + 54 ) ) FROM tab1
----
2606
329
852

query II rowsort
SELECT DISTINCT 92, col0 AS col2 FROM tab2
----
92
46
92
64
92
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT + COUNT( * ) * 18 AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + COUNT ( * ) * 18 AS col2 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT + + CAST( COUNT( * ) AS SIGNED ) + AVG ( col1 ) + - + 0 * - CAST( NULL AS SIGNED ) * - 34 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) + AVG ( col1 ) + - + 0 * - CAST ( NULL AS INTEGER ) * - 34 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + col0 / - - col1 + + 17
----

query I rowsort
SELECT ALL + - 15 * 22 - - col0 - col0 AS col1 FROM tab2 AS cor0
----
-330
-330
-330

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL + 7 - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL = - 54 * - + col0 + - col0 - 60
----
7

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + 7 - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL = - 54 * - + col0 + - col0 - 60
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 48 col1 FROM tab1
----
-2448
-4080
-4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * + 40 col2 FROM tab1
----
2840
2840
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT col1 * col0 DIV col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7495
SELECT col1 * col0 / col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT ( MIN( DISTINCT - + 11 ) ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT ( MIN ( DISTINCT - + 11 ) ) FROM tab0
----
-11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 IN ( 49 * + + 32, col2 + + - col1 * + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 76 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 54 + + - col0 * - - col0 + - - 38 * - col1 + - col1, + col0 * - col2 + - ( - col2 ) * 21 * col0 )
----

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

skipif mysql # not compatible
query I rowsort label-7500
SELECT + + MAX ( ALL + - 4 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT 61 * - 6 AS col2 FROM tab1
----
-366
-366
-366

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

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

query I rowsort
SELECT - 63 * + 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 66dac63b8c29c93718dbd0d183404c45

query I rowsort
SELECT ALL col2 + - + 27 AS col0 FROM tab1
----
32
41
69

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

query I rowsort
SELECT ALL - col1 + - 81 AS col2 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT - col0 DIV + - 47 AS col2 FROM tab0 AS cor0
----
0
1
2

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

query I rowsort
SELECT - - 37 FROM tab1 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + 20 * - - MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7509
SELECT + 20 * - - MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 73 * - COUNT( * ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7510
SELECT 73 * - COUNT ( * ) FROM tab2 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL CAST( + 53 AS SIGNED ) FROM tab1
----
53
53
53

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, 50 AS col1 FROM tab1
----
14
50
47
50
5
50

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col2 AS col0, - col0 * col2 col0 FROM tab2
----
0
-1058
0
-2560
0
-4350

query I rowsort
SELECT 38 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 24 NOT BETWEEN - + col0 AND + 47
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ( - + MIN( - + col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7520
SELECT ( - + MIN ( - + col1 ) ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE - col0 * - + col1 * - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7522
SELECT * FROM tab0 WHERE 6 NOT BETWEEN NULL AND + 96 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7522
SELECT * FROM tab0 WHERE 6 NOT BETWEEN NULL AND + 96 + - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COUNT( * ) * + - MAX( col0 ) FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COUNT ( * ) * + - MAX ( col0 ) FROM tab2 cor0
----
-225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 43 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT COUNT( * ) * - + 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT COUNT ( * ) * - + 17 FROM tab2
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT col1 DIV col2 * - 21 AS col1 FROM tab2
----
-21
-42

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT col1 / col2 * - 21 AS col1 FROM tab2
----
-21
-42

query II rowsort
SELECT + col1 AS col1, - 72 * + 93 * col0 FROM tab0
----
1
-649512
21
-582552
81
-100440

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7532
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7532
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT ALL COUNT( * ) AS col0, 30 AS col1 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL COUNT ( * ) AS col0, 30 AS col1 FROM tab2 AS cor0
----
3
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 * + col1 col1 FROM tab2 AS cor0
----
3672
4824
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + + MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7535
SELECT + + MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - 53 * - COUNT( * ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - 53 * - COUNT ( * ) FROM tab1 AS cor0
----
159

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col1 + 3 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL + COUNT( * ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT ALL + COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + 62 AS col0 FROM tab0 cor0
----
143
63
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT + 77 + - - 87 + + CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT + 77 + - - 87 + + CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 9 FROM tab1 cor0
----
459
765
819

query I rowsort
SELECT DISTINCT + col2 / + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + + MAX( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + + MAX ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
47

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

query III rowsort
SELECT * FROM tab1 WHERE 36 / - - col1 + 12 NOT BETWEEN - 88 / + ( - 28 ) + col0 AND + - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 86 * col1 AS col1 FROM tab1
----
1204
4042
430

query I rowsort
SELECT DISTINCT col1 + col2 * + + 63 AS col0 FROM tab0
----
3042
6238
651

query I rowsort
SELECT 55 * + col0 FROM tab0
----
4785
5335
825

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT col2 DIV - 56 AS col1 FROM tab0 WHERE + col0 * - - col1 IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT col2 / - 56 AS col1 FROM tab0 WHERE + col0 * - - col1 IS NOT NULL
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col2 FROM tab0 WHERE NOT + 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 25 + 34 * + col2 col1 FROM tab2 AS cor0
----
1357
2360
3422

query I rowsort
SELECT 55 * + + col1 - - 6 + - 15 FROM tab0 AS cor0 WHERE - col1 * col1 IS NOT NULL
----
1146
4446
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT ALL - 49 + - 42 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - 49 + - 42 / + - COUNT ( * ) FROM tab2 AS cor0
----
-35

query I rowsort
SELECT + + col1 - 68 FROM tab1 AS cor0
----
-21
-54
-63

query II rowsort
SELECT ALL - 92, + col1 AS col0 FROM tab0
----
-92
1
-92
21
-92
81

query II rowsort
SELECT - 63, col0 AS col2 FROM tab2
----
-63
46
-63
64
-63
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT SUM( ALL + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT SUM ( ALL + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + ( + + col2 ) > + 3
----

query I rowsort
SELECT + col1 + + - col0 FROM tab2 cor0 WHERE NOT + 68 * + + 76 = 41 * + ( col0 ) + - ( 81 )
----
-8
13
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT + col2 + - CAST( - - 42 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7569
SELECT + col2 + - CAST ( - - 42 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - - 69 * - - col2 FROM tab2
----
-110400
-232116
-36501

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL - MAX( ALL - col2 ) * + + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - MAX ( ALL - col2 ) * + + COUNT ( * ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT MAX( ALL + col2 ) * + 67 AS col0 FROM tab2
----
3886

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT MAX ( ALL + col2 ) * + 67 AS col0 FROM tab2
----
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7573
SELECT 24 AS col1, CAST( - col0 AS SIGNED ) - - - col1 AS col2 FROM tab2 WHERE NOT + 50 + + + ( + 14 ) BETWEEN + 61 + 89 + - + col2 + - 36 * - 33 * - col1 AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-7573
SELECT 24 AS col1, CAST ( - col0 AS INTEGER ) - - - col1 AS col2 FROM tab2 WHERE NOT + 50 + + + ( + 14 ) BETWEEN + 61 + 89 + - + col2 + - 36 * - 33 * - col1 AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab0
----
-1
-21
-81

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 36 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 27 * - col0 col1 FROM tab2 WHERE NOT - col0 + + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN col0 AND + + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT CAST( + ( 6 ) AS SIGNED ) + + + ( COUNT( * ) ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7580
SELECT CAST ( + ( 6 ) AS INTEGER ) + + + ( COUNT ( * ) ) AS col0 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 60 IS NULL
----

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

query I rowsort
SELECT ALL - + 47 + col2 AS col2 FROM tab2 AS cor0
----
-24
-7
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 8 col1 FROM tab2 cor0
----
-408
-536
-616

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 = - ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT col0 DIV col0 + - ( + 52 ) AS col0 FROM tab0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-7588
SELECT col0 / col0 + - ( + 52 ) AS col0 FROM tab0
----
-51
-51
-51

query II rowsort
SELECT ALL - col0, - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * + 82 - - col0 - col2 + - ( - 19 ) FROM tab1 AS cor0
----
-1174
-365
-3812

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL 2 * - - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL 2 * - - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + ( - MIN( DISTINCT - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + ( - MIN ( DISTINCT - col0 ) ) FROM tab0
----
97

query I rowsort
SELECT 31 * - 28 AS col0 FROM tab1
----
-868
-868
-868

query I rowsort
SELECT ALL - + ( 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + ( - - 12 ) FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL - MAX( DISTINCT - - 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - MAX ( DISTINCT - - 54 ) FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7597
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 + - + CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7597
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 + - + CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT SUM( ALL - - 89 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7598
SELECT SUM ( ALL - - 89 ) FROM tab1 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT DISTINCT + CAST( 30 AS SIGNED ) + 63 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + CAST ( 30 AS INTEGER ) + 63 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT - COUNT( - 82 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - COUNT ( - 82 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7601
SELECT DISTINCT col0 AS col1, 64 DIV + ( + 30 ) AS col0 FROM tab2
----
46
2
64
2
75
2

skipif mysql # not compatible
query II rowsort label-7601
SELECT DISTINCT col0 AS col1, 64 / + ( + 30 ) AS col0 FROM tab2
----
46
2
64
2
75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL - MAX( - + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - MAX ( - + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT - 73 AS col0, COUNT( * ) + - + 15 col2 FROM tab0
----
-73
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7603
SELECT - 73 AS col0, COUNT ( * ) + - + 15 col2 FROM tab0
----
-73
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 NOT BETWEEN - col2 AND - + 81
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 <= ( + 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL + 48, col2 AS col0 FROM tab0 AS cor0
----
48
10
48
47
48
99

query I rowsort
SELECT + col1 * - 58 FROM tab0 AS cor0
----
-1218
-4698
-58

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 40 = 23
----

query I rowsort
SELECT - 53 + + ( col0 ) AS col0 FROM tab1 cor0
----
-2
32
38

query I rowsort
SELECT ALL - col0 + - + col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT ALL + - COUNT( * ) + - 6, - MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
-9
-10

skipif mysql # not compatible
query II rowsort label-7613
SELECT ALL + - COUNT ( * ) + - 6, - MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
-9
-10

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

query I rowsort
SELECT + 58 + col1 FROM tab0 AS cor0
----
139
59
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7616
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - 82 - + - col0 + 15 + + CAST( - col2 AS SIGNED ) FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT CAST ( NULL AS REAL ) / - - 82 - + - col0 + 15 + + CAST ( - col2 AS INTEGER ) FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT ALL - - col1 * - 2 - + col0 DIV col1 FROM tab2 AS cor0
----
-102
-135
-154

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL - - col1 * - 2 - + col0 / col1 FROM tab2 AS cor0
----
-102
-135
-154

query I rowsort
SELECT ALL col1 + - + 89 FROM tab2 AS cor0
----
-12
-22
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7619
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) + col1 NOT IN ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-7619
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) + col1 NOT IN ( - + col2 )
----

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

query I rowsort
SELECT - col0 * - ( - + 15 ) AS col0 FROM tab0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - ( + 97 ) * COUNT( * ) * + ( + MAX( ALL + col2 ) ) FROM tab2
----
-16878

skipif mysql # not compatible
query I rowsort label-7622
SELECT - ( + 97 ) * COUNT ( * ) * + ( + MAX ( ALL + col2 ) ) FROM tab2
----
-16878

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL - 93 - - + ( - SUM( DISTINCT - ( col1 ) ) ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - 93 - - + ( - SUM ( DISTINCT - ( col1 ) ) ) AS col1 FROM tab2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT - col1 * - CAST( NULL AS SIGNED ) * - - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + 19 AS col1, - 99 + col1 * + col1 FROM tab1
----
19
-74
19
2110
19
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7627
SELECT col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + ( + - 74 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7627
SELECT col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT + ( + - 74 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT 31 + - + 48 FROM tab2 AS cor0 WHERE NOT + CAST( - 61 AS SIGNED ) - + + col1 - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7628
SELECT 31 + - + 48 FROM tab2 AS cor0 WHERE NOT + CAST ( - 61 AS INTEGER ) - + + col1 - CAST ( NULL AS INTEGER ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT CAST( NULL AS SIGNED ) - + - col1 + 73 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 / + ( - ( + 66 ) ) + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7630
SELECT CAST ( NULL AS INTEGER ) - + - col1 + 73 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 / + ( - ( + 66 ) ) + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL COUNT( - + 75 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL COUNT ( - + 75 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + ( + + ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL 0 * + 47 + ( - + COUNT( - col2 ) ) + - - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL 0 * + 47 + ( - + COUNT ( - col2 ) ) + - - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - + 84 AS col0 FROM tab1 WHERE NOT - - col0 >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT COUNT( * ) + - 93 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT COUNT ( * ) + - 93 FROM tab2
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-7637
SELECT ALL + ( col0 ) + + 37 + - col0 + + col1 AS col2, col2 DIV - 94 col2 FROM tab1 AS cor0
----
42
0
51
-1
84
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7637
SELECT ALL + ( col0 ) + + 37 + - col0 + + col1 AS col2, col2 / - 94 col2 FROM tab1 AS cor0
----
42
0
51
-1
84
0

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

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 + col2 + - col1 <> NULL
----
0

query I rowsort
SELECT + + 23 + + - col2 + ( col1 ) + 50 AS col1 FROM tab0 AS cor0
----
-25
107
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT MAX( 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT MAX ( 21 ) FROM tab2
----
21

query II rowsort
SELECT DISTINCT + 9 AS col1, 56 * 63 AS col2 FROM tab2
----
9
3528

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7642
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7642
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT ( + 74 ) * + SUM( ALL - - col1 ) FROM tab2 WHERE NULL >= col0 * + ( ( + 29 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT ( + 74 ) * + SUM ( ALL - - col1 ) FROM tab2 WHERE NULL >= col0 * + ( ( + 29 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT MIN( DISTINCT - 7 ) AS col0 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7644
SELECT MIN ( DISTINCT - 7 ) AS col0 FROM tab1 AS cor0
----
-7

query III rowsort
SELECT + + col0 AS col1, col2, col1 AS col1 FROM tab0 cor0
----
9 values hashing to c2a2f4ae83f0371e77424d455eab9c92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL > + - 50 / col2 )
----

query II rowsort
SELECT - 24 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-24
59
-24
68
-24
96

query II rowsort
SELECT - col1 - + + col0 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-108
21
-96
81
-98
1

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7650
SELECT 43 * col0 * + + CAST( + + 64 AS SIGNED ) - - ( - + 72 ) AS col1, col1 col2 FROM tab2 AS cor0
----
126520
51
176056
77
206328
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7650
SELECT 43 * col0 * + + CAST ( + + 64 AS INTEGER ) - - ( - + 72 ) AS col1, col1 col2 FROM tab2 AS cor0
----
126520
51
176056
77
206328
67

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

query I rowsort
SELECT col1 - - 85 AS col1 FROM tab1 AS cor0
----
132
90
99

query I rowsort
SELECT DISTINCT - col1 * - - col1 FROM tab0
----
-1
-441
-6561

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

query I rowsort
SELECT DISTINCT 43 - + + col2 FROM tab2
----
-15
20
3

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7656
SELECT 75 DIV + 66 AS col1, + 22 + - + ( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-7656
SELECT 75 / + 66 AS col1, + 22 + - + ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT DISTINCT - - ( + - col2 ) * col1 + + col1 * + - 51 * - 38 - + col1 AS col2 FROM tab2 AS cor0
----
125893
146069
97614

query I rowsort
SELECT DISTINCT + 85 * + col2 AS col2 FROM tab0 cor0 WHERE - 45 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 BETWEEN - - ( ( - col0 ) ) + + 11 * + col2 - + - col1 * - col1 + col0 AND - - col0 * - col0 - + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT 79, COUNT( * ) AS col2 FROM tab0
----
79
3

skipif mysql # not compatible
query II rowsort label-7660
SELECT 79, COUNT ( * ) AS col2 FROM tab0
----
79
3

query I rowsort
SELECT + 94 * + col1 FROM tab2 AS cor0
----
4794
6298
7238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7662
SELECT + col0 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7662
SELECT + col0 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

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

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

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col0 FROM tab0 WHERE NOT + col1 * col1 - + 32 * + 51 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT DISTINCT col1 + + 54 + col0 DIV ( - 61 ) + + 39 AS col2 FROM tab1
----
107
139
97

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT col1 + + 54 + col0 / ( - 61 ) + + 39 AS col2 FROM tab1
----
107
139
97

query I rowsort
SELECT ALL - 40 AS col0 FROM tab1 AS cor0 WHERE ( ( col0 IS NULL ) )
----

query I rowsort
SELECT col1 * + 44 + + col1 AS col0 FROM tab2 cor0
----
2295
3015
3465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT ALL - COUNT( * ) DIV - 57 - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - COUNT ( * ) / - 57 - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----
0

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

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

query I rowsort
SELECT ALL col1 * + 89 FROM tab1
----
1246
4183
445

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + + ( - 21 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col0 + - + 6 AS col1 FROM tab1 AS cor0
----
-4902
-5021
-6194

query I rowsort
SELECT DISTINCT col2 * - - 61 + col2 + col0 + + - ( col0 ) * + col2 - + 72 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-10253
-6417
1191

query II rowsort
SELECT DISTINCT - + col2 + ( - col2 ) AS col0, + col2 + - - 83 FROM tab2 AS cor0
----
-116
141
-46
106
-80
123

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ALL - + 41 * 86 DIV + + col2 + + + col0 FROM tab2 cor0
----
-107
-24
15

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - + 41 * 86 / + + col2 + + + col0 FROM tab2 cor0
----
-107
-24
15

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - 20 > 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - - 15 AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col1 * 33 FROM tab1
----
1551
165
462

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT 57 * - 77 FROM tab0
----
-4389
-4389
-4389

query II rowsort
SELECT col2, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 + + col2 col2 FROM tab2
----
46
74
64
117
75
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col2 FROM tab1 WHERE NOT + 34 + + col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 28 >= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col0 AS col2, col2 - + - ( - - col2 ) col1 FROM tab2 AS cor0
----
-13
80
-5
46
8
116

query I rowsort
SELECT ALL - 16 + - - col2 AS col0 FROM tab1 AS cor0
----
43
52
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 85
----

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

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

query I rowsort
SELECT ALL + col1 * - col2 * - ( - col1 ) FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT - + 3 * + + 78 * 34 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-23868

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - + 3 * + + 78 * 34 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-23868

query I rowsort
SELECT ALL + col2 * + 51 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT ALL - COUNT( * ) DIV - 64 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - COUNT ( * ) / - 64 AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - 90 * - - col0 AS col1 FROM tab2
----
-4140
-5760
-6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - 15 FROM tab0
----
10
-15
47
-15
99
-15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7702
SELECT - + MIN( - col1 ) + + - COUNT( * ) col1, COUNT( * ) DIV + 99 + - COUNT( * ) FROM tab1 cor0
----
44
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7702
SELECT - + MIN ( - col1 ) + + - COUNT ( * ) col1, COUNT ( * ) / + 99 + - COUNT ( * ) FROM tab1 cor0
----
44
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL col1 + + - col2 DIV col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL col1 + + - col2 / col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
21
81

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

query I rowsort
SELECT col0 * col2 - + + col1 AS col2 FROM tab0
----
624
849
9602

query I rowsort
SELECT DISTINCT - + col1 * + col0 + + 64 FROM tab0 AS cor0
----
-1151
-1763
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT 1 DIV - + 85 FROM tab1 AS cor0 WHERE col1 * + col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT 1 / - + 85 FROM tab1 AS cor0 WHERE col1 * + col2 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 42 col0 FROM tab1 AS cor0
----
43
49
9

query I rowsort
SELECT 12 - + + col0 AS col2 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT ALL col1 DIV col0 * - col2 - - - 11 FROM tab2 AS cor0
----
-11
-34
-51

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL col1 / col0 * - col2 - - - 11 FROM tab2 AS cor0
----
-11
-34
-51

query II rowsort
SELECT 26, col2 AS col0 FROM tab1
----
26
59
26
68
26
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7713
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * col0 * - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-7713
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * col0 * - col1 < NULL
----

query I rowsort
SELECT 26 * ( col2 ) AS col2 FROM tab1
----
1534
1768
2496

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + col1 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) / - + col1 * col1 + - + col1 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7716
SELECT + col1 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) / - + col1 * col1 + - + col1 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 / col1 - - col0 - 23 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 85 NOT BETWEEN 80 AND NULL
----

query I rowsort
SELECT 75 * - 11 FROM tab2
----
-825
-825
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT + COUNT( * ) * + COUNT( + + col2 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + COUNT ( * ) * + COUNT ( + + col2 ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col1 * 69 AS col1 FROM tab2 AS cor0
----
-3519
-4623
-5313

query I rowsort
SELECT col2 * + + 60 * - + col1 + - 5 AS col0 FROM tab0 AS cor0
----
-12605
-228425
-5945

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ( SUM( - col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7723
SELECT ( SUM ( - col2 ) ) FROM tab2
----
-121

query II rowsort
SELECT DISTINCT - 5, + col0 FROM tab0
----
-5
15
-5
87
-5
97

query I rowsort
SELECT - - 38 FROM tab2 WHERE NOT - col1 IS NULL
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 10 col1 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT + CAST( NULL AS SIGNED ) AS col2, - MAX( DISTINCT + 34 ) + - COUNT( * ) AS col0 FROM tab0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-7728
SELECT + CAST ( NULL AS INTEGER ) AS col2, - MAX ( DISTINCT + 34 ) + - COUNT ( * ) AS col0 FROM tab0
----
NULL
-37

query I rowsort
SELECT DISTINCT - col1 + 79 + - - 82 AS col0 FROM tab0 AS cor0
----
140
160
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - 58 - + 97 * + col2 FROM tab0 AS cor0
----
-1038
-4664
-9760

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - 58 - + 97 * + col2 FROM tab0 AS cor0
----
-1038
-4664
-9760

query I rowsort
SELECT - col0 * - col1 + + + 74 AS col2 FROM tab0 AS cor0
----
1289
171
1901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT DISTINCT - + col0 + + 22 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT ALL + col0 * col0 + - + 30 + + - col1 FROM tab1 AS cor0
----
2557
7190
8204

query I rowsort
SELECT ALL - 95 * + 63 + - col2 FROM tab0 AS cor0
----
-5995
-6032
-6084

query II rowsort
SELECT DISTINCT + - 32 * + 48 AS col2, - col0 FROM tab0 AS cor0
----
-1536
-15
-1536
-87
-1536
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT - - 39 DIV + ( - col0 ) AS col0 FROM tab0 WHERE + col1 * - col2 NOT IN ( + + col1, - ( + col2 ) + + + ( col2 ) DIV col0 * + 5 + + 66 )
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT - - 39 / + ( - col0 ) AS col0 FROM tab0 WHERE + col1 * - col2 NOT IN ( + + col1, - ( + col2 ) + + + ( col2 ) / col0 * + 5 + + 66 )
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT ( MIN( col2 ) ) FROM tab0 WHERE - + 58 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT ( MIN ( col2 ) ) FROM tab0 WHERE - + 58 IS NOT NULL
----
10

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - + col1 ) <= - 19
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL COUNT( * ) * - 18 + + - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL COUNT ( * ) * - 18 + + - COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7742
SELECT ALL + AVG ( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE + 91 * col1 IN ( + - ( + col2 ), - col1 + CAST( NULL AS DECIMAL ) + + col2, - col2, ( - + ( col0 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + AVG ( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE + 91 * col1 IN ( + - ( + col2 ), - col1 + CAST ( NULL AS REAL ) + + col2, - col2, ( - + ( col0 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) + + col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - + 69 * - - col1 AS col0 FROM tab2 cor0
----
-3519
-4623
-5313

query II rowsort
SELECT DISTINCT + + 60, ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
60
-1173
60
-3080
60
-3886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7746
SELECT - CAST( NULL AS DECIMAL ) AS col1, + COUNT( * ) col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7746
SELECT - CAST ( NULL AS REAL ) AS col1, + COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7747
SELECT ALL - col2 AS col0, col1 DIV + 30 FROM tab1 cor0
----
-59
0
-68
1
-96
0

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL - col2 AS col0, col1 / + 30 FROM tab1 cor0
----
-59
0
-68
1
-96
0

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

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

query I rowsort
SELECT - ( + 16 ) * + col2 AS col1 FROM tab2 cor0
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + SUM( DISTINCT + + ( + - 19 ) ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7750
SELECT + SUM ( DISTINCT + + ( + - 19 ) ) FROM tab1
----
-19

query I rowsort
SELECT + ( + + 18 ) AS col1 FROM tab1
----
18
18
18

query I rowsort
SELECT ALL + ( - + col0 ) AS col2 FROM tab1
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT DISTINCT - COUNT( * ) DIV + - 30 col0 FROM tab2, tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT DISTINCT - COUNT ( * ) / + - 30 col0 FROM tab2, tab2 cor0
----
0

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

query I rowsort
SELECT DISTINCT 31 * 1 + ( col2 ) FROM tab0 cor0
----
130
41
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - COUNT( * ) * + 76 AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - COUNT ( * ) * + 76 AS col2 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT 80 * - 77 FROM tab0 AS cor0
----
-6160
-6160
-6160

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 * + - col1 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + MIN( - col0 ) * - + COUNT( * ) - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + MIN ( - col0 ) * - + COUNT ( * ) - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
225

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7763
SELECT + - col2 DIV + 94 + col0 * - 90 * - 30 col2, col2 AS col2 FROM tab0 AS cor0
----
234900
10
261899
99
40500
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7763
SELECT + - col2 / + 94 + col0 * - 90 * - 30 col2, col2 AS col2 FROM tab0 AS cor0
----
234900
10
261899
99
40500
47

query I rowsort
SELECT - col0 * - + 70 * + col2 + col0 FROM tab1 AS cor0
----
342771
351135
433251

query III rowsort
SELECT * FROM tab0 WHERE - col1 + col2 * 75 <= col0 * 55
----
87
21
10

query I rowsort
SELECT + 68 + + ( - col0 ) FROM tab2 AS cor0
----
-7
22
4

query I rowsort
SELECT + - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT - - col1 + - - 73 DIV + + col0 + + + 4 * col2 - col2 AS col1 FROM tab1 AS cor0
----
182
251
303

skipif mysql # not compatible
query I rowsort label-7768
SELECT - - col1 + - - 73 / + + col0 + + + 4 * col2 - col2 AS col1 FROM tab1 AS cor0
----
182
251
303

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 * col0 AS col0 FROM tab0 WHERE NOT NULL <> - 65
----

query I rowsort
SELECT ALL 52 * + + col1 FROM tab1
----
2444
260
728

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

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

query I rowsort
SELECT - ( 57 ) * - col2 FROM tab2 AS cor0
----
1311
2280
3306

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

query I rowsort
SELECT ALL col2 * + 79 * - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 * 14 * - 34 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT 32 + 55 AS col2 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - ( + COUNT( ALL - 98 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - ( + COUNT ( ALL - 98 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + ( 93 ) * + col2 FROM tab2 WHERE NOT col2 < - col1
----
2139
3720
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL + MAX( DISTINCT col1 ) + - COUNT( * ) FROM tab2 WHERE NOT ( col2 ) + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + MAX ( DISTINCT col1 ) + - COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) + - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7784
SELECT * FROM tab1 WHERE NOT - ( 62 ) * CAST( NULL AS SIGNED ) < ( col1 + - 11 )
----

skipif mysql # not compatible
query III rowsort label-7784
SELECT * FROM tab1 WHERE NOT - ( 62 ) * CAST ( NULL AS INTEGER ) < ( col1 + - 11 )
----

query I rowsort
SELECT ALL + col0 * - ( col2 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - 61 + - 79 AS col1 FROM tab2
----
-140

query I rowsort
SELECT ALL col0 * + ( ( col0 ) ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - col2 * + 10 + - col1 * - 5 AS col0 FROM tab1
----
-445
-565
-890

query I rowsort
SELECT col2 * ( col0 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT col2 + + 20 AS col2 FROM tab1
----
116
79
88

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 93 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) BETWEEN + col0 * col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 WHERE col1 BETWEEN col0 * col1 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + 54 * - COUNT( * ) col2 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT + 54 * - COUNT ( * ) col2 FROM tab2
----
-162

query I rowsort
SELECT + 88 * 70 AS col1 FROM tab0
----
6160
6160
6160

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

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

skipif mysql # not compatible
query I rowsort label-7799
SELECT + ( + COUNT ( * ) ) * + ( + COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT - ( 72 ) FROM tab1
----
-72
-72
-72

query I rowsort
SELECT ( - ( col0 ) ) * col2 + col1 AS col2 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL - MAX( DISTINCT 38 ) AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-38

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - MAX ( DISTINCT 38 ) AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-38

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT + col2 >= 59
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT COUNT( * ) - + COUNT( * ) * - 25 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7804
SELECT COUNT ( * ) - + COUNT ( * ) * - 25 FROM tab2
----
78

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

query I rowsort
SELECT 45 - + 57 AS col2 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab2
----
64

query I rowsort
SELECT DISTINCT - 30 * 64 AS col1 FROM tab0
----
-1920

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT - col1 - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 - col0 * - col0 col2 FROM tab1 AS cor0
----
2638
7262
8318

query I rowsort
SELECT col2 * - col1 - + 28 AS col1 FROM tab2 AS cor0
----
-1201
-3108
-3914

query I rowsort
SELECT ALL col0 + - 30 FROM tab1 AS cor0
----
21
55
61

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE 82 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 59 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
59
59

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

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

query I rowsort
SELECT 86 * col0 AS col1 FROM tab1
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT COUNT( ALL - col2 ) * 71 AS col0 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-7818
SELECT COUNT ( ALL - col2 ) * 71 AS col0 FROM tab2
----
213

query I rowsort
SELECT - 46 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT - 59 * CAST( - 44 * + ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 29 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 59 * CAST ( - 44 * + ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 29 ) IS NOT NULL
----
0

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

query I rowsort
SELECT ALL - ( - 56 ) AS col1 FROM tab2 cor0
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT - 87 DIV + 66 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7823
SELECT - 87 / + 66 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - - SUM ( DISTINCT 53 ) FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT DISTINCT ( - COUNT( * ) ) * 31 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT ( - COUNT ( * ) ) * 31 FROM tab0 AS cor0
----
-93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 85 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT col0 DIV - - col0 AS col0 FROM tab1
----
1
1
1

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN col0 AND col0 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

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

query I rowsort
SELECT col0 / - 37 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT - ( + + MIN( + 57 ) ) + - 17 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - ( + + MIN ( + 57 ) ) + - 17 FROM tab2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT col0 * 60 FROM tab2 WHERE NOT ( col0 + col2 * 6 ) < CAST( NULL AS SIGNED ) * 38
----

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT col0 * 60 FROM tab2 WHERE NOT ( col0 + col2 * 6 ) < CAST ( NULL AS INTEGER ) * 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7835
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7835
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - 48 * + COUNT( * ) + 30 + ( - ( COUNT( * ) ) ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7837
SELECT - 48 * + COUNT ( * ) + 30 + ( - ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
-117

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE + 28 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT SUM( ALL ( + - 65 ) ) + 14 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT SUM ( ALL ( + - 65 ) ) + 14 FROM tab1
----
-181

query I rowsort
SELECT ALL - col0 + 46 FROM tab0 AS cor0
----
-41
-51
31

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL + - 77 DIV 7 * col0 - col1 FROM tab1 AS cor0
----
-1048
-575
-940

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + - 77 / 7 * col0 - col1 FROM tab1 AS cor0
----
-1048
-575
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT + - 0 DIV col0 * 16 + + 49 * col1 - - col0 FROM tab2 AS cor0
----
2545
3358
3837

skipif mysql # not compatible
query I rowsort label-7847
SELECT + - 0 / col0 * 16 + + 49 * col1 - - col0 FROM tab2 AS cor0
----
2545
3358
3837

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

query I rowsort
SELECT + - col1 * col2 - - - col2 * 81 FROM tab0 cor0
----
-1020
-7614
-8118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT ALL + 76 DIV - + col2 + + col0 - - 78 * 67 AS col0 FROM tab0 AS cor0
----
5240
5306
5323

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + 76 / - + col2 + + col0 - - 78 * 67 AS col0 FROM tab0 AS cor0
----
5240
5306
5323

query I rowsort
SELECT 90 * + col1 + + - col2 AS col0 FROM tab2
----
4567
5972
6890

query I rowsort
SELECT + col2 + col1 * col2 * col0 * + 30 FROM tab2
----
1618763
5913640
8743558

query II rowsort
SELECT DISTINCT col1 * + col0 AS col1, 96 FROM tab1
----
425
96
4277
96
714
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL + CAST( NULL AS SIGNED ) - + CAST( + ( - col0 ) AS SIGNED ) + 6 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT 2 + + + 50 FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7857
SELECT * FROM tab1 WHERE + - col1 * + 28 * col0 + + col0 NOT BETWEEN NULL AND col2 / - CAST( col1 * - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7857
SELECT * FROM tab1 WHERE + - col1 * + 28 * col0 + + col0 NOT BETWEEN NULL AND col2 / - CAST ( col1 * - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ( - - 13 ) + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7858
SELECT ( - - 13 ) + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 + + ( - 24 ) * col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - ( - 96 ) * - col2 FROM tab2
----
-2157
-3763
-5501

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

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

query I rowsort
SELECT ALL - 58 + + 4 * col2 FROM tab1 AS cor0
----
178
214
326

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - MIN( - ( - - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7863
SELECT - MIN ( - ( - - col2 ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - col0 + col0 * + 93 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
4794
7990
8554

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 * 0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + 82 ), - ( col2 ) col1 FROM tab0 AS cor0
----
-82
-10
-82
-47
-82
-99

query I rowsort
SELECT 77 FROM tab1 AS cor0 WHERE NOT - col2 < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( + col1 * - col1 * + ( col1 ) * - col2 ) IN ( + 47 )
----
14
47
5

query I rowsort
SELECT + 87 * - - col0 FROM tab2 AS cor0
----
4002
5568
6525

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT - + 99 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-7871
SELECT - + 99 / + col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-99

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - 80 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT 64 * + SUM( - col2 ) * + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7874
SELECT + + col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 11 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7878
SELECT ALL + MIN( col2 ) DIV - 65 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL + MIN ( col2 ) / - 65 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT + + SUM( - 2 ) AS col1, - COUNT( * ) * + 27 AS col2 FROM tab1 AS cor0
----
-6
-81

skipif mysql # not compatible
query II rowsort label-7879
SELECT + + SUM ( - 2 ) AS col1, - COUNT ( * ) * + 27 AS col2 FROM tab1 AS cor0
----
-6
-81

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

query I rowsort
SELECT DISTINCT + col0 * - - 61 + - col0 * 83 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT 50 * + - SUM( - col2 ) FROM tab2
----
6050

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT 50 * + - SUM ( - col2 ) FROM tab2
----
6050

onlyif mysql # DIV for integer division: 
query II rowsort label-7883
SELECT ALL 68 DIV + col2, 19 * - col0 * - + 37 AS col1 FROM tab2
----
1
44992
1
52725
2
32338

skipif mysql # not compatible
query II rowsort label-7883
SELECT ALL 68 / + col2, 19 * - col0 * - + 37 AS col1 FROM tab2
----
1
44992
1
52725
2
32338

query I rowsort
SELECT ALL + + ( 86 ) + - col1 FROM tab1 AS cor0
----
39
72
81

query I rowsort
SELECT ALL - + col0 + + col1 - - col1 AS col1 FROM tab2 cor0
----
56
59
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT col2 + + - CAST( 66 AS SIGNED ) * - col2 - + 89 FROM tab2 cor0
----
1452
2591
3797

skipif mysql # not compatible
query I rowsort label-7886
SELECT col2 + + - CAST ( 66 AS INTEGER ) * - col2 - + 89 FROM tab2 cor0
----
1452
2591
3797

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 14 + ( col1 ) * + col2 * - 2 FROM tab1 AS cor0
----
-2492
-520
-5734

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 52 ) NOT BETWEEN NULL AND - col0
----
64
77
40
75
67
58

query II rowsort
SELECT col1 AS col1, - 3 + - col2 FROM tab1
----
14
-99
47
-71
5
-62

query I rowsort
SELECT ALL - ( - 59 ) AS col1 FROM tab2
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 - + col2 col0 FROM tab2
----
-17
1
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ALL + 14 AS col2, MAX( - 48 ) * ( - - 97 ) * 67 FROM tab2
----
14
-311952

skipif mysql # not compatible
query II rowsort label-7894
SELECT ALL + 14 AS col2, MAX ( - 48 ) * ( - - 97 ) * 67 FROM tab2
----
14
-311952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52, col2 col0 FROM tab1
----
52
59
52
68
52
96

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

query I rowsort
SELECT - col1 * + ( - + col0 ) AS col0 FROM tab1
----
425
4277
714

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT MAX( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7900
SELECT MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-7901
SELECT + col0 AS col2, + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-7901
SELECT + col0 AS col2, + col1 / - col2 AS col1 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 6 )
----

query I rowsort
SELECT ALL - col2 * - + 12 AS col1 FROM tab1
----
1152
708
816

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

query I rowsort
SELECT ALL + + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

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

query II rowsort
SELECT DISTINCT - 39 * 38, col1 AS col2 FROM tab1 cor0
----
-1482
14
-1482
47
-1482
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT + col2 DIV - col1 * - col1 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7909
SELECT + col2 / - col1 * - col1 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT 54 DIV col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7910
SELECT 54 / col0 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT + 21 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT ALL + 8 DIV 47 * + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + 8 / 47 * + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 - - col1 FROM tab0 WHERE NOT - col0 NOT IN ( + + ( + - ( + col2 ) ) / ( + 62 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - MIN( + 60 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7914
SELECT - MIN ( + 60 ) AS col1 FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT + 69 + + col1 * - 78 + + col0 + col2 DIV col2 AS col1 FROM tab1
----
-235
-3505
-971

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + 69 + + col1 * - 78 + + col0 + col2 / col2 AS col1 FROM tab1
----
-235
-3505
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + col2 + col2 FROM tab1
----
141
33
45

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + col2 + col2 FROM tab1
----
141
33
45

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 WHERE NULL < + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + MIN( DISTINCT - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + MIN ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE - 10 / col0 * 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE + col2 IS NULL
----

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

query I rowsort
SELECT + + 15 + + col1 * col0 + - 33 AS col2 FROM tab0 AS cor0 WHERE 33 = NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7924
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( 5 * - CAST( NULL AS SIGNED ) + - 5 )
----

skipif mysql # not compatible
query III rowsort label-7924
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( 5 * - CAST ( NULL AS INTEGER ) + - 5 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7925
SELECT ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 16 AS col0, - col0 * + - 57 AS col0 FROM tab1
----
-16
2907
-16
4845
-16
5187

query I rowsort
SELECT col0 * + - col1 + ( - + col2 ) + - col1 + - 79 AS col0 FROM tab0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + 28 - - - COUNT( * ) + - MAX( DISTINCT - ( ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 28 - - - COUNT ( * ) + - MAX ( DISTINCT - ( ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
40

query I rowsort
SELECT ALL - 84 - + col2 * - - col2 FROM tab1 AS cor0
----
-3565
-4708
-9300

query I rowsort
SELECT DISTINCT - + col2 - + + ( 22 ) AS col2 FROM tab0 AS cor0
----
-121
-32
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT - 25 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT + COUNT( - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + COUNT ( - + col1 ) FROM tab1
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT + - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + MIN( + + 78 ) * 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT + MIN ( + + 78 ) * 0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL + + MAX( col1 ) * + + 23 FROM tab2 AS cor0
----
1771

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + + MAX ( col1 ) * + + 23 FROM tab2 AS cor0
----
1771

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 97 <> 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1, - 6 AS col0 FROM tab0
----
-1
-6
-21
-6
-81
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col2 * - - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT - 71 AS col1, + 32 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-71
NULL
-71
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-7940
SELECT - 71 AS col1, + 32 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-71
NULL
-71
NULL
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL + + col1 + - - CAST( NULL AS SIGNED ) / - - 64 + + CAST( - + 15 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + + col1 + - - CAST ( NULL AS INTEGER ) / - - 64 + + CAST ( - + 15 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + + col2 + + col2 + + + 46 * - - ( - col1 ) - - col2 + - + 38 * col0 * - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 / - + col1 * - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7943
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 / - + col1 * - col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 49 FROM tab0 AS cor0
----
136
146
64

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

query I rowsort
SELECT - - col2 + 5 AS col1 FROM tab2 AS cor0
----
28
45
63

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

query I rowsort
SELECT + col1 * - ( - col2 ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT 74 * - - col2 + + col0 + + - col2 AS col0 FROM tab1
----
4392
5055
7059

query I rowsort
SELECT DISTINCT + col0 + 77 * - col0 AS col1 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT 33 - + 89 * - 95 FROM tab0 AS cor0
----
8488
8488
8488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL - col0 * - 46 + + col1 * + + 0 FROM tab0 WHERE NOT ( + col0 + ( CAST( NULL AS SIGNED ) ) + + col2 IS NOT NULL )
----
4002
4462
690

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - col0 * - 46 + + col1 * + + 0 FROM tab0 WHERE NOT ( + col0 + ( CAST ( NULL AS INTEGER ) ) + + col2 IS NOT NULL )
----
4002
4462
690

query II rowsort
SELECT - - col0 + - ( 21 ) * + + 31 * - + 30, col0 * - 41 AS col0 FROM tab2 AS cor0
----
19576
-1886
19594
-2624
19605
-3075

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = + + 20
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT DISTINCT - - 80 DIV + col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT - - 80 / + col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT ALL - col1 * + ( - col1 ) * 83 * - + col0 + col1 - + col2 FROM tab0 AS cor0 WHERE + 41 IN ( + + col1 / - ( col1 ), ( + 90 ), - col1, col2 )
----

query II rowsort
SELECT + col2, + col1 + + col0 AS col1 FROM tab0
----
10
108
47
96
99
98

query II rowsort
SELECT - 12, col1 FROM tab1
----
-12
14
-12
47
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT 14 * + - COUNT( * ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT 14 * + - COUNT ( * ) AS col0 FROM tab1
----
-42

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT col0 * - + 67 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT + col2, + 88 FROM tab1
----
59
88
68
88
96
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL - MAX( - ( col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - MAX ( - ( col2 ) ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL SUM( ALL - ( 58 ) ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL SUM ( ALL - ( 58 ) ) FROM tab0
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT DISTINCT COUNT( * ), - 95 AS col0 FROM tab2
----
3
-95

skipif mysql # not compatible
query II rowsort label-7967
SELECT DISTINCT COUNT ( * ), - 95 AS col0 FROM tab2
----
3
-95

query II rowsort
SELECT DISTINCT col1, + 65 AS col1 FROM tab0
----
1
65
21
65
81
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + + COUNT( DISTINCT + - 20 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7970
SELECT + + COUNT ( DISTINCT + - 20 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT 49 DIV - 90 * 92 + col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7971
SELECT 49 / - 90 * 92 + col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT col2 * - col1 + - col1 AS col0 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT col0 + + 62 AS col0 FROM tab0
----
149
159
77

query II rowsort
SELECT DISTINCT + col2 + - col0 AS col1, - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-77
1827
2
97
32
1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col2 * + + col0 AS col2 FROM tab2 cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL 81 + + SUM( - ( 73 ) ) AS col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL 81 + + SUM ( - ( 73 ) ) AS col0 FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT - ( - 3 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7978
SELECT - ( - 3 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT COUNT( 9 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT COUNT ( 9 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL AVG ( ALL + 64 ) * + 2 FROM tab2 WHERE + 20 + CAST( NULL AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL AVG ( ALL + 64 ) * + 2 FROM tab2 WHERE + 20 + CAST ( NULL AS INTEGER ) > NULL
----
NULL

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

query I rowsort
SELECT - 47 + - - 88 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 - - - 85 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 70 * - 54 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 99 * col2 * + 36 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT 44 * + + CAST( + - 69 AS SIGNED ) * - ( - + col2 ) col0 FROM tab0 AS cor0
----
-142692
-300564
-30360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7987
SELECT 44 * + + CAST ( + - 69 AS INTEGER ) * - ( - + col2 ) col0 FROM tab0 AS cor0
----
-142692
-300564
-30360

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 - - col2 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - - SUM( - col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7989
SELECT - - SUM ( - col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 + + CAST( NULL AS DECIMAL ), - ( + 22 ) * col2 / + col0 + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 + + CAST ( NULL AS REAL ), - ( + 22 ) * col2 / + col0 + + - col2 )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 6 NOT BETWEEN ( + 84 ) AND ( 41 ) + - + col2
----

query I rowsort
SELECT ALL - col1 * - col1 * + + col0 FROM tab1 cor0
----
201019
2125
9996

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE + 17 * + col2 / - col0 <> - - 72 * + 68 * + col1
----
15
87
97

query I rowsort
SELECT DISTINCT 11 * - 85 AS col0 FROM tab0
----
-935

query II rowsort
SELECT col0 AS col2, - 3 FROM tab2
----
46
-3
64
-3
75
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT ALL col1 DIV - - col2 AS col0 FROM tab0
----
0
1
2

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

query I rowsort
SELECT - 19 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) * - col2 + - col0 = + 39 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 1 * - + 86 * col2 AS col0 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT - + col1 DIV - col2 col0 FROM tab2 WHERE - + col0 + - ( col1 ) * + col0 IS NOT NULL
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8001
SELECT - + col1 / - col2 col0 FROM tab2 WHERE - + col0 + - ( col1 ) * + col0 IS NOT NULL
----
1
1
2

query I rowsort
SELECT - + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 AS cor0 WHERE - 4 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT 94 + col2, - 13 + + + col0 AS col0, + + col1 FROM tab1 AS cor0
----
9 values hashing to 95f9e9f518934c34eb0ca6743bd8b9f7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 14 + 40 FROM tab0 AS cor0
----
1426
180
698

query I rowsort
SELECT + + col0 + + 22 FROM tab0 AS cor0
----
109
119
37

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

query II rowsort
SELECT ALL - col1, - col0 + - 12 AS col2 FROM tab1 AS cor0
----
-14
-63
-47
-103
-5
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8012
SELECT ALL 55 - + - col2 * - col2 DIV + col2 AS col1, 23 * - + 90 * - - col1 FROM tab1 cor0
----
-13
-97290
-4
-10350
-41
-28980

skipif mysql # not compatible
query II rowsort label-8012
SELECT ALL 55 - + - col2 * - col2 / + col2 AS col1, 23 * - + 90 * - - col1 FROM tab1 cor0
----
-13
-97290
-4
-10350
-41
-28980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT - + col1 - + + col1 + - col2 col0 FROM tab2 WHERE col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND col2 - + ( - - col2 )
----
-125
-192
-194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8013
SELECT - + col1 - + + col1 + - col2 col0 FROM tab2 WHERE col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col2 - + ( - - col2 )
----
-125
-192
-194

query I rowsort
SELECT ALL + col1 * - 8 FROM tab2
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT COUNT( DISTINCT + + 83 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( DISTINCT + + 83 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT - ( + 8 ) + - col2 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-107
-18
-55

query I rowsort
SELECT DISTINCT col1 + - 62 FROM tab2
----
-11
15
5

query II rowsort
SELECT ( + col2 ) - + - col2 AS col0, 12 * col2 FROM tab1 AS cor0
----
118
708
136
816
192
1152

query I rowsort
SELECT DISTINCT col2 * col0 - - + col2 - - col0 - 24 FROM tab2 AS cor0
----
1103
2640
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT - MIN( - col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 + - col1 IN ( - col1 * + + col2, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 + - col1 IN ( - col1 * + + col2, - col1 )
----
NULL

query I rowsort
SELECT ALL - 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query II rowsort
SELECT - col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

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

skipif mysql # not compatible
query I rowsort label-8023
SELECT + MAX ( + + col1 ) FROM tab1 AS cor0
----
47

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

query I rowsort
SELECT ALL + 36 * - + col1 FROM tab2
----
-1836
-2412
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL SUM( ALL - - col1 ) + + 50 * - ( - COUNT( * ) ) AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL SUM ( ALL - - col1 ) + + 50 * - ( - COUNT ( * ) ) AS col1 FROM tab1
----
216

query I rowsort
SELECT DISTINCT + col2 * + 7 * + col0 FROM tab0 AS cor0
----
4935
6090
67221

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 54 + + + col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - 17 * COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 17 * COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT col0 + - + col1 - col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT ALL MIN( DISTINCT - 94 ) DIV 73 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL MIN ( DISTINCT - 94 ) / 73 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT - 49 AS col0, col2 FROM tab1
----
-49
59
-49
68
-49
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + COUNT( * ) col1 FROM tab1 cor0 WHERE + 65 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8034
SELECT + COUNT ( * ) col1 FROM tab1 cor0 WHERE + 65 <= NULL
----
0

query I rowsort
SELECT 24 * + + 48 + col1 AS col2 FROM tab2 AS cor0
----
1203
1219
1229

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0 WHERE col1 + - 57 BETWEEN NULL AND ( + 39 ) * 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - COUNT( * ) + 49 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - COUNT ( * ) + 49 FROM tab1 AS cor0
----
46

query III rowsort
SELECT 89 AS col2, - col0 + + col2 + + ( + 8 ) * + col2, col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to 32da034709828b6bb31136e99ad9ddc6

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + COUNT( * ) - + 44 + + + 43 * COUNT( * ) col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8039
SELECT + COUNT ( * ) - + 44 + + + 43 * COUNT ( * ) col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT col2 + - + col1 - + - 83 AS col2 FROM tab2 AS cor0 WHERE NOT - 99 * - ( + - col2 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 - col1 - col2 * col0 FROM tab2 AS cor0
----
-1063
-2573
-4342

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT COUNT( * ) + + COUNT( * ) * - 47 AS col0 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-8043
SELECT COUNT ( * ) + + COUNT ( * ) * - 47 AS col0 FROM tab0
----
-138

query I rowsort
SELECT col0 + + 75 * + - 65 AS col1 FROM tab1
----
-4784
-4790
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL 91 * - + COUNT( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
-273

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL 91 * - + COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + - col1 * + - col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 > col0
----
51
14
96

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE + 99 >= + col2
----
-51
-85
-91

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) <= - 86
----

query I rowsort
SELECT ALL + 87 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query II rowsort label-8052
SELECT MIN( DISTINCT - 2 ) * COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
-9

skipif mysql # not compatible
query II rowsort label-8052
SELECT MIN ( DISTINCT - 2 ) * COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8053
SELECT DISTINCT * FROM tab0 WHERE NULL < - 88 * + col1 * + ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8053
SELECT DISTINCT * FROM tab0 WHERE NULL < - 88 * + col1 * + ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL + ( - COUNT( + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + ( - COUNT ( + col2 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL - + COUNT( * ) col0 FROM tab1 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-8055
SELECT ALL - + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 54 * COUNT( * ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 54 * COUNT ( * ) FROM tab0 AS cor0
----
162

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 5 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL + 62 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + 62 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-186

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

query II rowsort
SELECT - 5 AS col0, + col1 FROM tab1
----
-5
14
-5
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 AS col1, col0 col0 FROM tab2
----
61
46
61
64
61
75

query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 FROM tab0
----
2
462
6642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8064
SELECT DISTINCT - col0, col1 * 81 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8064
SELECT DISTINCT - col0, col1 * 81 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL - COUNT( * ) * 98 AS col2 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - COUNT ( * ) * 98 AS col2 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT 29 + 13 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT + + col1 + - + col2 * 23 FROM tab1 AS cor0
----
-1352
-1517
-2194

query I rowsort
SELECT DISTINCT col1 + + 50 - + col1 * col0 FROM tab1 AS cor0
----
-370
-4180
-650

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

query II rowsort
SELECT + col0, col1 FROM tab2 WHERE + col2 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8071
SELECT ALL 56 + - COUNT( * ) DIV COUNT( DISTINCT 62 ) AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL 56 + - COUNT ( * ) / COUNT ( DISTINCT 62 ) AS col0 FROM tab0
----
53

query I rowsort
SELECT 82 * 51 AS col0 FROM tab2
----
4182
4182
4182

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT - col1 DIV 25 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT - col1 / 25 FROM tab1
----
-1
0
0

query I rowsort
SELECT - col2 - + - 84 AS col1 FROM tab0
----
-15
37
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8075
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - + CAST( + 55 AS SIGNED ) AND - + col1
----

skipif mysql # not compatible
query III rowsort label-8075
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - + CAST ( + 55 AS INTEGER ) AND - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 + col2 col0 FROM tab2 AS cor0 WHERE + 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN ( - col0 ) + + 15 + - col1 - + col1 AND 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + COUNT( * ) * + 34 AS col1 FROM tab1 WHERE + col2 IN ( + col0, + 75, - - 98 / - col2 - - + ( - 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + COUNT ( * ) * + 34 AS col1 FROM tab1 WHERE + col2 IN ( + col0, + 75, - - 98 / - col2 - - + ( - 90 ) )
----
0

query I rowsort
SELECT ( + col2 ) * - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL col0 AS col2, + 29 AS col2 FROM tab0
----
15
29
87
29
97
29

query II rowsort
SELECT 21 AS col0, - col0 FROM tab2 AS cor0
----
21
-46
21
-64
21
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT 6 * CAST( NULL AS SIGNED ) + - + 50 / col2 * - + col0 col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8082
SELECT DISTINCT 6 * CAST ( NULL AS INTEGER ) + - + 50 / col2 * - + col0 col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - SUM( ALL 81 ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8083
SELECT - SUM ( ALL 81 ) AS col1 FROM tab0 AS cor0
----
-243

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

query I rowsort
SELECT ALL + col2 * + col0 - + + 62 FROM tab0 AS cor0
----
643
808
9541

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT + col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8087
SELECT + col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( - 83 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( - 83 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL - COUNT( ( 59 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - COUNT ( ( 59 ) ) FROM tab2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT COUNT( * ) + - 77 AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8091
SELECT COUNT ( * ) + - 77 AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT 81 * 33 + + ( - ( - 12 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2cc9b6889de721de91042cbf79db8f64

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT ALL + - 46 DIV - col0 * col2 * 17 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + - 46 / - col0 * col2 * 17 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT + 9 + + MIN( ALL - col0 ) AS col1 FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + 9 + + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0
----
-82

query I rowsort
SELECT 16 - col2 AS col2 FROM tab0 AS cor0
----
-31
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + + ( + 66 ) + + COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + + ( + 66 ) + + COUNT ( * ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT + col0 - + 35 AS col2 FROM tab2 cor0
----
11
29
40

query I rowsort
SELECT - col0 * col0 + + col2 * col1 - 83 + - col1 FROM tab2 AS cor0
----
-1077
-1176
-1889

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + 50 - + MAX( ALL + col0 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + 50 - + MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT + col1 - - - 33 * + col1 + - 48 + - 39 DIV - + 47 AS col2 FROM tab0 AS cor0
----
-2640
-720
-80

skipif mysql # not compatible
query I rowsort label-8100
SELECT + col1 - - - 33 * + col1 + - 48 + - 39 / - + 47 AS col2 FROM tab0 AS cor0
----
-2640
-720
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 67 AS col2, col0 col0 FROM tab1 AS cor0
----
-67
51
-67
85
-67
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 15 col0 FROM tab1
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ALL 53 * + col1 DIV - - col1 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL 53 * + col1 / - - col1 FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT + SUM( - 21 ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + SUM ( - 21 ) AS col0 FROM tab1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8106
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + - col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-8106
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT 20 * - - COUNT( * ) * COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
540

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT 20 * - - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
540

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + col0 DIV + - ( + col2 ) FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT + col0 / + - ( + col2 ) FROM tab0 cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 * - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 + + col0 * + - 48, - col0 * + col1 + - + col0 / + col1, - + 24 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <> 83 + - col1
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 * + 16 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT ALL - + COUNT( ALL + ( - col2 ) ), COUNT( * ) * 61 AS col2 FROM tab2 cor0 WHERE NOT 92 <= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL - + COUNT ( ALL + ( - col2 ) ), COUNT ( * ) * 61 AS col2 FROM tab2 cor0 WHERE NOT 92 <= NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + MAX( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8116
SELECT + MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8117
SELECT ALL - 96 + + CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - 96 + + CAST ( NULL AS REAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8119
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 / col2 * CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8119
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 / col2 * CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab2 WHERE + - col0 > 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT + col1 DIV + - col1 + - 78 AS col2 FROM tab0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-8122
SELECT + col1 / + - col1 + - 78 AS col2 FROM tab0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT MIN( DISTINCT + col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT MIN ( DISTINCT + col2 ) col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL 71 + - ( MIN( ALL + 60 ) ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL 71 + - ( MIN ( ALL + 60 ) ) AS col1 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 + + - 9 FROM tab2
----
NULL

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

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

query II rowsort
SELECT - 35 AS col0, - col2 * 36 FROM tab1
----
-35
-2124
-35
-2448
-35
-3456

query I rowsort
SELECT + 25 + + col2 * - col1 AS col2 FROM tab1
----
-1319
-270
-3171

query I rowsort
SELECT - col2 + + - col0 AS col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL 44 + col2 + 64 AS col2 FROM tab0
----
118
155
207

query II rowsort
SELECT DISTINCT col0 + col1 AS col1, + 95 FROM tab2 AS cor0
----
141
95
142
95
97
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + + ( + 1 ) FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 + + col2 col0 FROM tab0 cor0
----
127
179
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8136
SELECT ALL + col2 DIV + ( + col2 ) + - - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL + col2 / + ( + col2 ) + - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - COUNT( * ) * - 71 AS col0 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-8137
SELECT - COUNT ( * ) * - 71 AS col0 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT DISTINCT + 23 AS col0, COUNT( * ) FROM tab1
----
23
3

skipif mysql # not compatible
query II rowsort label-8138
SELECT DISTINCT + 23 AS col0, COUNT ( * ) FROM tab1
----
23
3

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + col1 * - col2 * - + col1 + + col1 >= - - col1 * col2 + 90 + - col0 / col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT + col0 / - col1 AS col1 FROM tab2 WHERE NOT NULL = CAST( - + 90 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8141
SELECT + col0 / - col1 AS col1 FROM tab2 WHERE NOT NULL = CAST ( - + 90 AS INTEGER )
----

query II rowsort
SELECT col2, + col0 + 75 FROM tab0
----
10
162
47
90
99
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT - 30 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + ( - col0 ) * - col0 * - col0 + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-132637
-614120
-753524

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT + COUNT( - col0 ) DIV + COUNT( * ) + - MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8146
SELECT + COUNT ( - col0 ) / + COUNT ( * ) + - MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
16

query I rowsort
SELECT col1 * 40 FROM tab0 cor0
----
3240
40
840

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - + 24 * - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8151
SELECT - + 24 * - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
69

query II rowsort
SELECT + + col2 * + col2, + 23 AS col2 FROM tab2 AS cor0
----
1600
23
3364
23
529
23

query I rowsort
SELECT + 24 * - 33 AS col2 FROM tab2 AS cor0
----
-792
-792
-792

query I rowsort
SELECT col1 * - - col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT + col0 DIV - 54 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT + col0 / - 54 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN + - col0 AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT 37 * + COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8157
SELECT 37 * + COUNT ( * ) FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT 55 AS col1, - COUNT( * ) AS col1 FROM tab2
----
55
-3

skipif mysql # not compatible
query II rowsort label-8158
SELECT 55 AS col1, - COUNT ( * ) AS col1 FROM tab2
----
55
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT COUNT( * ) + - 83 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT COUNT ( * ) + - 83 FROM tab1
----
-80

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

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + 57 + - COUNT ( * ) * - MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT + 4 + + col1 * 74 AS col1 FROM tab0 AS cor0
----
1558
5998
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8162
SELECT - CAST( NULL AS DECIMAL ) * - - 83 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8162
SELECT - CAST ( NULL AS REAL ) * - - 83 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - ( + + col2 ) * - 92 + - - col1 + + - col2 + 50 + col1 FROM tab0 AS cor0
----
1002
4489
9061

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL - COUNT( - 99 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - COUNT ( - 99 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8165
SELECT - 93 + - COUNT( * ) + - MAX( - col2 ) * + CAST( NULL AS DECIMAL ) col1, - CAST( + 88 AS SIGNED ) FROM tab0 AS cor0
----
NULL
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8165
SELECT - 93 + - COUNT ( * ) + - MAX ( - col2 ) * + CAST ( NULL AS REAL ) col1, - CAST ( + 88 AS INTEGER ) FROM tab0 AS cor0
----
NULL
-88

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON + - 49 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query II rowsort
SELECT DISTINCT + col2 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

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

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

query I rowsort
SELECT + col2 * 1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT + 73 DIV + + ( - 3 ) AS col2 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 73 / + + ( - 3 ) AS col2 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8173
SELECT - 90 col1, - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-90
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8173
SELECT - 90 col1, - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-90
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + + 40 * - - COUNT( + + col1 ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + + 40 * - - COUNT ( + + col1 ) FROM tab2 AS cor0
----
120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT COUNT( * ) * - 8 * - 88 col2 FROM tab2
----
2112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8178
SELECT COUNT ( * ) * - 8 * - 88 col2 FROM tab2
----
2112

query I rowsort
SELECT - - ( col2 ) AS col0 FROM tab2 WHERE NOT + 60 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT SUM( - col1 ) * + - 5 FROM tab0
----
515

skipif mysql # not compatible
query I rowsort label-8180
SELECT SUM ( - col1 ) * + - 5 FROM tab0
----
515

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT col2 DIV + - 42 FROM tab0 AS cor0
----
-1
-2
0

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

query II rowsort
SELECT col0 AS col1, 17 AS col2 FROM tab1
----
51
17
85
17
91
17

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col1 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - 81 * + - col0 + - 74 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-2310
432
6297

query I rowsort
SELECT ALL col1 + - col1 + + col2 + col2 AS col1 FROM tab1 cor0
----
118
136
192

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

query I rowsort
SELECT + 43 + - col0 FROM tab2 AS cor0
----
-21
-3
-32

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

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

query I rowsort
SELECT ALL + + 13 FROM tab0 AS cor0 WHERE NOT 94 NOT IN ( - col2 + - col0, + 14 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8192
SELECT 6 DIV col2 AS col1, + col0 * + col2 + + 93 * col0 AS col1 FROM tab1
----
0
12920
0
14651
0
9639

skipif mysql # not compatible
query II rowsort label-8192
SELECT 6 / col2 AS col1, + col0 * + col2 + + 93 * col0 AS col1 FROM tab1
----
0
12920
0
14651
0
9639

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * 48 * 47 col1 FROM tab2
----
31584
31584
31584

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8195
SELECT + + CAST( NULL AS DECIMAL ) AS col2, col1 FROM tab0 AS cor0 WHERE 53 IS NULL AND NOT NULL >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-8195
SELECT + + CAST ( NULL AS REAL ) AS col2, col1 FROM tab0 AS cor0 WHERE 53 IS NULL AND NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT + CAST( - MAX( ALL - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8196
SELECT + CAST ( - MAX ( ALL - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 <> + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT + CAST( - 20 AS SIGNED ) * - col2 + col0 - ( CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + ( 42 ) * COUNT( * ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8200
SELECT + ( 42 ) * COUNT ( * ) FROM tab2 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - 55 * - ( - MIN( ALL - 9 ) ) col1 FROM tab1 AS cor0
----
495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8201
SELECT ALL - 55 * - ( - MIN ( ALL - 9 ) ) col1 FROM tab1 AS cor0
----
495

query II rowsort
SELECT + 18, col2 - + col2 AS col2 FROM tab0
----
18
0
18
0
18
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT COUNT( * ) * - + 45 AS col2 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8203
SELECT COUNT ( * ) * - + 45 AS col2 FROM tab0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 12 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + SUM( DISTINCT 85 ) AS col2 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + SUM ( DISTINCT 85 ) AS col2 FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 + - col2 * + 96 + - - col1 AS col0, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4350
15
-918
87
-9502
97

query II rowsort
SELECT col1 * - - col1, + 63 * 79 AS col0 FROM tab2
----
2601
4977
4489
4977
5929
4977

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT - 1 AS col2, COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
3

skipif mysql # not compatible
query II rowsort label-8210
SELECT - 1 AS col2, COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT + MIN( col0 ) FROM tab2 cor0 WHERE NOT + 36 - + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + MIN ( col0 ) FROM tab2 cor0 WHERE NOT + 36 - + col0 >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8212
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ), - 14 AS col2 FROM tab0 AS cor0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-8212
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ), - 14 AS col2 FROM tab0 AS cor0
----
NULL
-14

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 88 * 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT + 9 + + + MIN( - col0 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + 9 + + + MIN ( - col0 ) FROM tab0 AS cor0
----
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + col0 BETWEEN + + 12 AND 9 / col1
----

query II rowsort
SELECT - - col2 * 0, 75 AS col1 FROM tab1 AS cor0
----
0
75
0
75
0
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT DISTINCT + - 20 DIV COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT + - 20 / COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
-6

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8219
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 10 ) - - + col0 NOT IN ( + col1, col2, + + col1 * - + 22, - - CAST( NULL AS DECIMAL ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8219
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 10 ) - - + col0 NOT IN ( + col1, col2, + + col1 * - + 22, - - CAST ( NULL AS REAL ) + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8220
SELECT + 22 + - CAST( + 81 AS SIGNED ) AS col0, + SUM( - ( - 99 ) ) FROM tab0
----
-59
297

skipif mysql # not compatible
query II rowsort label-8220
SELECT + 22 + - CAST ( + 81 AS INTEGER ) AS col0, + SUM ( - ( - 99 ) ) FROM tab0
----
-59
297

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

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT ( col1 ) + + 0 AS col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE + + 0 * - 52 + - + 99 > + 50
----

query I rowsort
SELECT - - 40 AS col0 FROM tab0 WHERE + col0 + - 26 + + - col0 < + col2
----
40
40
40

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

query III rowsort
SELECT * FROM tab1 WHERE ( 9 < + col1 + - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + + 6 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8229
SELECT + + 6 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8230
SELECT ALL + col1 - + 68 + - ( + + col1 ) + - CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8230
SELECT ALL + col1 - + 68 + - ( + + col1 ) + - CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE ( + col0 * ( + - col1 ) ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT ALL + - COUNT( * ) AS col0, + MAX( ALL + + 71 ) * COUNT( * ) + - 53 FROM tab1 AS cor0
----
-3
160

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL + - COUNT ( * ) AS col0, + MAX ( ALL + + 71 ) * COUNT ( * ) + - 53 FROM tab1 AS cor0
----
-3
160

query I rowsort
SELECT DISTINCT 68 - - 16 * + col1 * + col2 * - col1 FROM tab2 cor0
----
-3794492
-4165724
-957100

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT + col0 DIV 17 + 24 FROM tab1
----
27
29

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT + col0 / 17 + 24 FROM tab1
----
27
29

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + 26 + - ( 20 - col2 * col2 ) AS col2 FROM tab0
----
106
2215
9807

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - col1 NOT IN ( col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * 66 col2 FROM tab1
----
245
3011
873

query III rowsort
SELECT ALL * FROM tab0 WHERE + 60 >= ( NULL )
----

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

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

query I rowsort
SELECT col0 * + col2 FROM tab1 WHERE NOT ( col0 + - 88 ) IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + ( MIN( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + ( MIN ( + col0 ) ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 30 * - col2 ) >= + col2 * + 13 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8248
SELECT * FROM tab2 WHERE NOT CAST( + col2 AS SIGNED ) / + col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8248
SELECT * FROM tab2 WHERE NOT CAST ( + col2 AS INTEGER ) / + col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT CAST( - 27 AS SIGNED ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT CAST ( - 27 AS INTEGER ) FROM tab0
----
-27

query I rowsort
SELECT ALL 85 AS col2 FROM tab2 WHERE NOT NULL > ( + 42 + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8251
SELECT ALL - col2 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - col2 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT col2 FROM tab2 WHERE col2 = + CAST( NULL AS SIGNED )
----

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

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - col0 ) = NULL
----

query I rowsort
SELECT 0 - - 77 AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT 38 + col2 * - col1 AS col1 FROM tab1
----
-1306
-257
-3158

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + 91 ) FROM tab1
----
91
91
91

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

query I rowsort
SELECT DISTINCT - col1 * - 13 FROM tab1 AS cor0
----
182
611
65

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 54 AND + 49
----

query I rowsort
SELECT ALL 43 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL BETWEEN 74 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8263
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL BETWEEN 74 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + 3 * col0 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE col1 * col0 BETWEEN ( 64 ) AND NULL
----

query I rowsort
SELECT ALL 67 + col1 FROM tab0
----
148
68
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT DISTINCT - col1 + 30 DIV + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - col1 + 30 / + col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) <> NULL
----

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

query I rowsort
SELECT ALL + + col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ( + COUNT( * ) ) + - 30 AS col0 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8271
SELECT ( + COUNT ( * ) ) + - 30 AS col0 FROM tab0 cor0
----
-27

query I rowsort
SELECT DISTINCT - 2 + col0 AS col2 FROM tab1 AS cor0
----
49
83
89

query I rowsort
SELECT - ( - 89 ) + col1 * + col2 FROM tab1 AS cor0
----
1433
3285
384

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL 95 + MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 95 + MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
100

query I rowsort
SELECT DISTINCT - - col2 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT 57 * COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT 57 * COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----
0

query I rowsort
SELECT - col2 + 21 FROM tab1 AS cor0
----
-38
-47
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8278
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8278
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col0 FROM tab2 cor0
----
-17
-23
-24

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8281
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + col2 * CAST( NULL AS SIGNED ) ) AND - CAST( 96 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8281
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + col2 * CAST ( NULL AS INTEGER ) ) AND - CAST ( 96 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) IS NULL OR ( NULL ) = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + ( COUNT( * ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8283
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT + 7 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT + 7 / col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT - ( CAST( NULL AS SIGNED ) ) * 45 AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT + 73 DIV col1 * + col2 AS col1 FROM tab0
----
0
30
7227

skipif mysql # not compatible
query I rowsort label-8286
SELECT + 73 / col1 * + col2 AS col1 FROM tab0
----
0
30
7227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col1 col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col2 - + 39 FROM tab0
----
-29
60
8

query I rowsort
SELECT ALL + ( ( col1 ) ) + - col2 * + col2 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT - 53 - + - col0 + + col1 * + 69 AS col0 FROM tab2
----
3512
4645
5324

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT - + MIN( col2 ) + - 54 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - + MIN ( col2 ) + - 54 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col2 * + 93 + + col2 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL - + CAST( 73 AS SIGNED ) + + 13 FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - + CAST ( 73 AS INTEGER ) + + 13 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) / + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) / + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT + 77 * SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT + 77 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, col1 col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT - SUM( ALL - 94 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-8298
SELECT - SUM ( ALL - 94 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
846

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT + COUNT( * ) * 15 - 70 DIV 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
135

skipif mysql # not compatible
query I rowsort label-8300
SELECT + COUNT ( * ) * 15 - 70 / 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - COUNT( DISTINCT 71 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

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

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

query II rowsort
SELECT DISTINCT + 87 AS col0, 5 FROM tab1 AS cor0
----
87
5

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( col0 - + 87 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT ALL col0 DIV 83 * - 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL col0 / 83 * - 76 FROM tab2 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab2 WHERE - + col2 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT ALL col1 + + - 84 AS col0 FROM tab0
----
-3
-63
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT + CAST( + - AVG ( DISTINCT ( + ( - col2 ) ) ) AS SIGNED ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + CAST ( + - AVG ( DISTINCT ( + ( - col2 ) ) ) AS INTEGER ) FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - COUNT( * ) + - ( + + 22 ) AS col2 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8315
SELECT - COUNT ( * ) + - ( + + 22 ) AS col2 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + MIN( 86 ) col1 FROM tab0 AS cor0 WHERE NOT 87 - - col1 NOT IN ( + col2 * + 50 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8316
SELECT DISTINCT + MIN ( 86 ) col1 FROM tab0 AS cor0 WHERE NOT 87 - - col1 NOT IN ( + col2 * + 50 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL - 95 + - COUNT( * ) * + + 92 + + SUM( + col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - 95 + - COUNT ( * ) * + + 92 + + SUM ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 1 + col1 AS col0 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL - COUNT( * ) + AVG ( col0 ) AS col0 FROM tab0 WHERE NOT 7 + + 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - COUNT ( * ) + AVG ( col0 ) AS col0 FROM tab0 WHERE NOT 7 + + 6 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * + 25 FROM tab0
----
1175
2475
250

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

query I rowsort
SELECT ALL + 98 + + + col2 FROM tab1
----
157
166
194

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8324
SELECT - col0 AS col0, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8324
SELECT - col0 AS col0, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT DISTINCT - col1 + 18 FROM tab2 cor0
----
-33
-49
-59

query I rowsort
SELECT DISTINCT - + col2 * + - 32 + + 70 AS col1 FROM tab2 AS cor0
----
1350
1926
806

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 74 - + col2 * + col0 * - 16 * - col0 col1 FROM tab1 AS cor0
----
-3996172
-6820770
-9013206

query I rowsort
SELECT ALL + + 21 - + - 41 AS col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + 96 / + col0 FROM tab1 cor0 WHERE NOT NULL >= NULL AND ( ( NOT col2 - + col0 IN ( col0 ) ) )
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( col0 + + 10 ) NOT BETWEEN col2 + col2 AND 85
----
-59
-68
-96

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 27 * + - 39 NOT BETWEEN ( + col2 * - 21 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + - 18 * ( + col1 ) FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8338
SELECT - + CAST( NULL AS DECIMAL ) col0, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8338
SELECT - + CAST ( NULL AS REAL ) col0, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + - 1 / col1 + - ( - ( 79 ) ) + + 78 * 23 IS NULL OR NOT NULL NOT IN ( col2 * - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 84 FROM tab1 WHERE NOT - 41 IS NULL
----
84
84
84

query I rowsort
SELECT + 58 * - 60 + - col0 + - col0 FROM tab1 AS cor0
----
-3582
-3650
-3662

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8342
SELECT + ( + - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + 98 * + col2, 96 * col1 * - - ( - 60 ) AS col1 FROM tab0 AS cor0
----
4606
-466560
9702
-5760
980
-120960

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL + 88 * - ( + + COUNT( - col0 ) ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + 88 * - ( + + COUNT ( - col0 ) ) FROM tab2 AS cor0
----
-264

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

skipif mysql # not compatible
query I rowsort label-8345
SELECT - col0 / + ( + - 89 ) AS col0 FROM tab0 AS cor0
----
0
0
1

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

query II rowsort
SELECT DISTINCT 48 * + - col0 AS col0, col2 + + col2 FROM tab2 AS cor0
----
-2208
46
-3072
80
-3600
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - COUNT( * ) + MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8348
SELECT - COUNT ( * ) + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 / - col0 / + + col2 + - + 50 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 / - col0 / + + col2 + - + 50 + - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8350
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN ( + + col0 + + CAST( NULL AS SIGNED ) + + col0 + col1 ) AND CAST( + 79 AS DECIMAL )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-8350
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN ( + + col0 + + CAST ( NULL AS INTEGER ) + + col0 + col1 ) AND CAST ( + 79 AS REAL )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + col2 * - + col2 * + col2 FROM tab0
----
-1000
-103823
-970299

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT SUM( - col2 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT SUM ( - col2 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8353
SELECT DISTINCT + AVG ( + + CAST( NULL AS DECIMAL ) ) col1 FROM tab2 WHERE - col2 BETWEEN ( - - col0 ) AND ( col1 + + - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8353
SELECT DISTINCT + AVG ( + + CAST ( NULL AS REAL ) ) col1 FROM tab2 WHERE - col2 BETWEEN ( - - col0 ) AND ( col1 + + - col2 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + - ( ( - col2 ) ) FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 55 * - col2 col2 FROM tab1
----
-3250
-3787
-5294

query I rowsort
SELECT + 64 AS col2 FROM tab1 WHERE - - col2 IS NULL
----

query I rowsort
SELECT ALL col2 / - col0 * + 83 FROM tab1 WHERE 72 BETWEEN + col0 AND - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 35
----

query I rowsort
SELECT DISTINCT - col0 + - col0 * + 30 FROM tab2 AS cor0
----
-1426
-1984
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 11 > - 51 * + + CAST( NULL AS SIGNED ) * + - col0 * + 44
----

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 11 > - 51 * + + CAST ( NULL AS INTEGER ) * + - col0 * + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT ALL - + col1 DIV col2 * - + col0 AS col0 FROM tab2 cor0
----
64
75
92

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - + col1 / col2 * - + col0 AS col0 FROM tab2 cor0
----
64
75
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( col2 * + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT + 82 + + + 83 * + - MIN( - col2 ) AS col2 FROM tab0
----
8299

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + 82 + + + 83 * + - MIN ( - col2 ) AS col2 FROM tab0
----
8299

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - 59 + + - MIN( + + col0 ) col0 FROM tab2
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8364
SELECT - 59 + + - MIN ( + + col0 ) col0 FROM tab2
----
-105

query I rowsort
SELECT col0 * - ( - col1 ) * - - 77 + 52 AS col2 FROM tab1
----
32777
329381
55030

query I rowsort
SELECT - ( + + col0 ) + + + 5 + - col0 * - col1 AS col1 FROM tab2
----
2305
4869
4955

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + MAX( + - 59 ) - ( + + 60 ) + - ( + 58 ) AS col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + MAX ( + - 59 ) - ( + + 60 ) + - ( + 58 ) AS col0 FROM tab0 AS cor0
----
-177

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT MIN( + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8370
SELECT MIN ( + + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) NOT BETWEEN + ( - col1 ) - - col0 AND 27 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT + ( - col1 ) - + col2 + - 36 + - col2 + + col1 + 68 + - col1 + col0 * 28 DIV col1 FROM tab2
----
-102
-120
-40

skipif mysql # not compatible
query I rowsort label-8372
SELECT + ( - col1 ) - + col2 + - 36 + - col2 + + col1 + 68 + - col1 + col0 * 28 / col1 FROM tab2
----
-102
-120
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 1 ) <> ( 91 * + + col1 )
----

query I rowsort
SELECT 39 * + + 61 AS col0 FROM tab1
----
2379
2379
2379

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

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

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT col0 AS col2, - 29 AS col2 FROM tab2
----
46
-29
64
-29
75
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8378
SELECT - ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 86 AS col0 FROM tab1
----
1204
4042
430

query I rowsort
SELECT 88 * 46 AS col1 FROM tab2
----
4048
4048
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT - ( - COUNT( - col2 ) ) * COUNT( * ) DIV 62 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL + MAX( DISTINCT col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT ALL + 21 * 43 + + col0 AS col2 FROM tab1 AS cor0
----
954
988
994

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL COUNT( * ) FROM tab0 WHERE - col2 * - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col2 * - col2 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT COUNT( ALL - - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8385
SELECT COUNT ( ALL - - col1 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT + 96, 83 AS col1 FROM tab1
----
96
83
96
83
96
83

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

query I rowsort
SELECT - - 30 * ( col2 ) * 32 AS col2 FROM tab1 AS cor0
----
56640
65280
92160

query I rowsort
SELECT ALL 96 + - 35 FROM tab1 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT - CAST( NULL AS SIGNED ) / - 17 / - - 46 + + - 1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT - CAST ( NULL AS INTEGER ) / - 17 / - - 46 + + - 1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + - 61 * col0 * - - col2 FROM tab1 cor0
----
-298656
-305915
-377468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL CAST( + MIN( + 80 ) AS SIGNED ) * + 33 FROM tab1 cor0
----
2640

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL CAST ( + MIN ( + 80 ) AS INTEGER ) * + 33 FROM tab1 cor0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + MAX( DISTINCT - - col2 ) * + SUM( + - col0 ) col1 FROM tab2 AS cor0
----
-10730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8394
SELECT + MAX ( DISTINCT - - col2 ) * + SUM ( + - col0 ) col1 FROM tab2 AS cor0
----
-10730

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8396
SELECT DISTINCT - + col0 col0, col2 - - - 17 + + CAST( 90 AS SIGNED ) FROM tab2 AS cor0
----
-46
96
-64
113
-75
131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8396
SELECT DISTINCT - + col0 col0, col2 - - - 17 + + CAST ( 90 AS INTEGER ) FROM tab2 AS cor0
----
-46
96
-64
113
-75
131

query I rowsort
SELECT - - col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT ALL - col0 DIV + + col0 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT ALL - col0 + + + 67 + + - col1 FROM tab2
----
-30
-74
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - 59 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - 59 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL + SUM( - - 70 ) * - COUNT( * ) + CAST( + 75 AS SIGNED ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL + SUM ( - - 70 ) * - COUNT ( * ) + CAST ( + 75 AS INTEGER ) FROM tab2
----
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + + col1 col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + 56 + - col2 - + col2 AS col1 FROM tab0 cor0
----
-142
-38
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT - COUNT( * ) + + 61 * - 6 AS col0 FROM tab2 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT - COUNT ( * ) + + 61 * - 6 AS col0 FROM tab2 AS cor0
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT 43 + - col1 + 88 + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
14
57
6

skipif mysql # not compatible
query I rowsort label-8405
SELECT 43 + - col1 + 88 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
14
57
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 >= - - col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT ALL - 47 + + 36 col1, + MIN( ALL 46 ) AS col0 FROM tab2 AS cor0
----
-11
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8408
SELECT ALL - 47 + + 36 col1, + MIN ( ALL 46 ) AS col0 FROM tab2 AS cor0
----
-11
46

query I rowsort
SELECT + AVG ( ALL - - col1 ) AS col2 FROM tab0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT + - 52 - COUNT( * ) + + 29 col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8411
SELECT DISTINCT + - 52 - COUNT ( * ) + + 29 col2 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL col1 + + 38 FROM tab2 AS cor0
----
105
115
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 - - col1 * + col0 col2 FROM tab1 AS cor0
----
397
4249
686

query I rowsort
SELECT + 99 - + col2 FROM tab2 AS cor0
----
41
59
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 43 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 43 > NULL
----
0

query I rowsort
SELECT ALL - + ( col0 ) - + + col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( ( NOT 9 / 33 * - col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT COUNT( * ) AS col0, - 59 FROM tab1 AS cor0
----
3
-59

skipif mysql # not compatible
query II rowsort label-8420
SELECT COUNT ( * ) AS col0, - 59 FROM tab1 AS cor0
----
3
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 + - - 97 IS NULL
----

query I rowsort
SELECT ( - 95 ) FROM tab0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8423
SELECT ALL - col1, + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 WHERE col2 - - col0 + + col1 / + - 7 * + 81 NOT IN ( - + ( + 56 ) )
----
-14
96
-47
68
-5
59

skipif mysql # not compatible
query II rowsort label-8423
SELECT ALL - col1, + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 WHERE col2 - - col0 + + col1 / + - 7 * + 81 NOT IN ( - + ( + 56 ) )
----
-14
96
-47
68
-5
59

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT + 2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + 91 = col1
----

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + 91 = col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8428
SELECT + 68 * ( SUM( DISTINCT + 62 ) ), - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
4216
0

skipif mysql # not compatible
query II rowsort label-8428
SELECT + 68 * ( SUM ( DISTINCT + 62 ) ), - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4216
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 17 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + 89 + 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
147

query I rowsort
SELECT + col1 * - + col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT 24 * col2 AS col0 FROM tab1 AS cor0
----
1416
1632
2304

query I rowsort
SELECT col0 + 38 AS col0 FROM tab0 AS cor0
----
125
135
53

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT 72 + 1 - + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

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

query I rowsort
SELECT ALL + 76 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 55 AND + 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col1 col2 FROM tab1 AS cor0
----
425
4277
714

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

query II rowsort
SELECT - col1 AS col2, + 18 FROM tab1
----
-14
18
-47
18
-5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL 23 * + COUNT( * ) * 50 * - 38 AS col2 FROM tab0 WHERE ( + 3 ) NOT BETWEEN ( 78 ) AND NULL
----
-131100

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL 23 * + COUNT ( * ) * 50 * - 38 AS col2 FROM tab0 WHERE ( + 3 ) NOT BETWEEN ( 78 ) AND NULL
----
-131100

query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 AS col0 FROM tab2
----
-2065
-4019
-5558

query I rowsort
SELECT - ( 80 ) AS col1 FROM tab1
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT + 38 + + + COUNT( * ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + 38 + + + COUNT ( * ) FROM tab2 AS cor0
----
41

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 59 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - SUM( DISTINCT - - 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8451
SELECT - SUM ( DISTINCT - - 28 ) FROM tab0 AS cor0
----
-28

query I rowsort
SELECT 54 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + col2 + - 38 + - 39 NOT IN ( + col2, col1 )
----

query I rowsort
SELECT ALL + 65 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE - 38 + + 38 IS NOT NULL
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT col0 DIV - 31 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8457
SELECT col0 / - 31 FROM tab0
----
-2
-3
0

query I rowsort
SELECT + col2 * + - 29 * - - 50 FROM tab1 AS cor0
----
-139200
-85550
-98600

query II rowsort
SELECT ALL + - 32 AS col0, - 74 FROM tab1 cor0
----
-32
-74
-32
-74
-32
-74

query I rowsort
SELECT - col2 * ( 23 ) + - col1 AS col0 FROM tab2 AS cor0
----
-1401
-580
-997

query I rowsort
SELECT DISTINCT + - ( + col0 ) + col2 * + col1 FROM tab2 AS cor0
----
1127
3016
3811

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL IN ( + col1, - ( + col0 ) + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8464
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col1 + CAST( NULL AS DECIMAL ) + + - col2 AS col0 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 10 FROM tab1 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT COUNT( * ) * - - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8466
SELECT COUNT ( * ) * - - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col0 + 44 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

query II rowsort
SELECT ALL + 86 AS col2, - col2 FROM tab0
----
86
-10
86
-47
86
-99

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + + col2 > col0
----
64
77
40
75
67
58

query I rowsort
SELECT col1 * col0 + 92 FROM tab0
----
1307
189
1919

query I rowsort
SELECT DISTINCT 57 * - 6 FROM tab2
----
-342

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 27 + - col0 * + + 55 + + 18 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 WHERE + - col2 + + - 34 / + col2 + - - col2 * + col2 IS NULL
----
0

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

query I rowsort
SELECT + ( - + col0 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - 21 * - - col1 FROM tab2 AS cor0 WHERE col0 * - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT DISTINCT - col1 + + col0 + - col2 DIV + 30 col0 FROM tab0 AS cor0
----
-67
66
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT DISTINCT - col1 + + col0 + - col2 / + 30 col0 FROM tab0 AS cor0
----
-67
66
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - 53 * + - MAX( DISTINCT - 17 ) FROM tab1
----
-901

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - 53 * + - MAX ( DISTINCT - 17 ) FROM tab1
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT 30 * - + ( - CAST( COUNT( col1 ) AS SIGNED ) ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 30 * - + ( - CAST ( COUNT ( col1 ) AS INTEGER ) ) AS col0 FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-8482
SELECT ALL col1 DIV + - 61 col0, + col1 FROM tab2
----
-1
67
-1
77
0
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8482
SELECT ALL col1 / + - 61 col0, + col1 FROM tab2
----
-1
67
-1
77
0
51

query I rowsort
SELECT - col0 * - col1 * + 35 FROM tab0 AS cor0
----
3395
42525
63945

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8486
SELECT ALL + + 70, - COUNT ( * ) col0 FROM tab2 AS cor0
----
70
-3

query II rowsort
SELECT DISTINCT - 4, col0 - 81 * col2 AS col2 FROM tab2 AS cor0
----
-4
-1817
-4
-3176
-4
-4623

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT - + SUM( + - 93 ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8488
SELECT - + SUM ( + - 93 ) FROM tab1 AS cor0
----
279

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, ( - col1 ) AS col1 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT col2 * col0 * + 2 AS col1 FROM tab2 AS cor0 WHERE NOT 0 / 36 * col1 IS NOT NULL OR 61 > + ( - - 69 ) - + col1
----
2116
5120
8700

query III rowsort
SELECT ALL * FROM tab0 WHERE + 2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8494
SELECT ALL CAST( - 15 AS SIGNED ) AS col1, + 17 AS col2 FROM tab0
----
-15
17
-15
17
-15
17

skipif mysql # not compatible
query II rowsort label-8494
SELECT ALL CAST ( - 15 AS INTEGER ) AS col1, + 17 AS col2 FROM tab0
----
-15
17
-15
17
-15
17

query I rowsort
SELECT DISTINCT - col0 * - + 94 AS col1 FROM tab2
----
4324
6016
7050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8496
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( * ), 31 AS col1 FROM tab1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-8496
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( * ), 31 AS col1 FROM tab1
----
NULL
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8497
SELECT + + COUNT( * ) * + ( + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + - 53 * - ( + 89 ) AS col0 FROM tab2 AS cor0
----
4717
4717
4717

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8500
SELECT ALL - - col2, + CAST( - + 95 AS DECIMAL ) - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL <= col1
----

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL - - col2, + CAST ( - + 95 AS REAL ) - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + col2 + - col0 + - col1 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT + col0 + + 26 AS col1 FROM tab0 cor0
----
113
123
41

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 AS col2 FROM tab2 cor0
----
-1224
-3157
-3953

query I rowsort
SELECT DISTINCT col0 * - 60 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3060
-5100
-5460

query I rowsort
SELECT - 81 * + 5 + - col1 + col1 AS col0 FROM tab0 AS cor0
----
-405
-405
-405

query I rowsort
SELECT ( - 61 ) FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT ALL col1 + CAST( 30 AS SIGNED ) col2 FROM tab0
----
111
31
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8507
SELECT ALL col1 + CAST ( 30 AS INTEGER ) col2 FROM tab0
----
111
31
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT + 21 - CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
120
31
68

skipif mysql # not compatible
query I rowsort label-8509
SELECT + 21 - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
120
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8510
SELECT - col2 * + - ( CAST( NULL AS SIGNED ) ) - 59, + col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8510
SELECT - col2 * + - ( CAST ( NULL AS INTEGER ) ) - 59, + col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

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

query I rowsort
SELECT + 53 FROM tab0 AS cor0 WHERE NULL > 13
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8513
SELECT col2, 69 DIV + ( - col2 ) col1 FROM tab2
----
23
-3
40
-1
58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8513
SELECT col2, 69 / + ( - col2 ) col1 FROM tab2
----
23
-3
40
-1
58
-1

query II rowsort
SELECT DISTINCT + - 29, col0 * - col0 AS col1 FROM tab1 AS cor0
----
-29
-2601
-29
-7225
-29
-8281

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8518
SELECT MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL - 42 * - 59 * - MIN( DISTINCT - + 19 ) FROM tab2 AS cor0
----
47082

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - 42 * - 59 * - MIN ( DISTINCT - + 19 ) FROM tab2 AS cor0
----
47082

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8520
SELECT ALL - CAST( + col2 AS SIGNED ) DIV + 83 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - CAST ( + col2 AS INTEGER ) / + 83 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 26 * + + ( + 20 ) FROM tab2
----
520
520
520

onlyif mysql # aggregate syntax: 
query II rowsort label-8522
SELECT 25 AS col0, COUNT( * ) AS col2 FROM tab0
----
25
3

skipif mysql # not compatible
query II rowsort label-8522
SELECT 25 AS col0, COUNT ( * ) AS col2 FROM tab0
----
25
3

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col1 * - + col1 AS col2 FROM tab0 WHERE NOT + 34 IS NULL
----
-1
-441
-6561

query I rowsort
SELECT ( 88 ) AS col1 FROM tab0
----
88
88
88

query I rowsort
SELECT + - 15 AS col0 FROM tab0 WHERE NOT + + col2 + + 62 IS NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT DISTINCT COUNT( * ) DIV 76 + - - 95 * - ( + COUNT( * ) ) - + 77 AS col2 FROM tab0 AS cor0 WHERE ( col1 * 94 ) IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT COUNT ( * ) / 76 + - - 95 * - ( + COUNT ( * ) ) - + 77 AS col2 FROM tab0 AS cor0 WHERE ( col1 * 94 ) IS NULL
----
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT DISTINCT + col0 * - + 7 FROM tab1 AS cor0
----
-357
-595
-637

query I rowsort
SELECT 97 + col0 * - col0 FROM tab1 AS cor0
----
-2504
-7128
-8184

query I rowsort
SELECT + 27 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query II rowsort label-8532
SELECT ALL + 17 * + col2 + - + col1, - 22 DIV - + col1 AS col2 FROM tab2 AS cor0
----
340
0
603
0
919
0

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL + 17 * + col2 + - + col1, - 22 / - + col1 AS col2 FROM tab2 AS cor0
----
340
0
603
0
919
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + - 91 * - col1 col2 FROM tab1 AS cor0
----
1310
4313
491

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

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

query I rowsort
SELECT ALL + 7 + - col0 FROM tab0 cor0
----
-8
-80
-90

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

query II rowsort
SELECT ALL col1, - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 17 + 16 FROM tab1
----
33
33
33

query I rowsort
SELECT col2 * - - 5 + - + col2 FROM tab1
----
236
272
384

query I rowsort
SELECT DISTINCT 5 - - col0 FROM tab0
----
102
20
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - COUNT( DISTINCT - + col2 ) + - - 1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - COUNT ( DISTINCT - + col2 ) + - - 1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT - + col1 + - - col0 * + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - + col1 + - - col0 * + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT + + col2 + + 86 AS col0 FROM tab2 AS cor0
----
109
126
144

query III rowsort
SELECT * FROM tab2 WHERE NOT 29 + col2 + - col2 * + col1 IS NOT NULL
----

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

query I rowsort
SELECT 81 * - ( 20 ) FROM tab2 AS cor0
----
-1620
-1620
-1620

query I rowsort
SELECT - - 13 * + col1 * + - col0 AS col1 FROM tab0 cor0
----
-1261
-15795
-23751

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

query II rowsort
SELECT col1 * + 33, + 97 AS col2 FROM tab2 AS cor0
----
1683
97
2211
97
2541
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) <= ( NULL )
----

query II rowsort
SELECT DISTINCT col1 * - col1 * + col1 + 89, ( - + ( - + col0 ) ) AS col2 FROM tab2 AS cor0
----
-132562
46
-300674
75
-456444
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * - col2 * col0 col1 FROM tab1 AS cor0
----
-48960
-50150
-61880

query I rowsort
SELECT ALL - + 50 * - + col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
2550
4250
4550

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

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT + + 72 AS col2, col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - 97 IS NULL
----
72
425
72
4277
72
714

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT ALL + 80 DIV - + col1 + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL + 80 / - + col1 + col0 FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8559
SELECT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT - 55 * CAST( - col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-42
1068
4440

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 55 * CAST ( - col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-42
1068
4440

query I rowsort
SELECT ALL + 40 * + col1 FROM tab2 AS cor0
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL - COUNT( + + ( + 21 ) ) * + + MAX( ALL col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - COUNT ( + + ( + 21 ) ) * + + MAX ( ALL col1 ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT - - 40 + col0 FROM tab2 AS cor0
----
104
115
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col1 - + 96 * + col1 FROM tab1
----
-1330
-4465
-475

query I rowsort
SELECT ALL col1 * - 80 FROM tab1
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT ALL + CAST( 50 AS SIGNED ) FROM tab2 AS cor0
----
50
50
50

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

query I rowsort
SELECT - 56 / + 68 FROM tab0 AS cor0 WHERE NOT 74 >= NULL
----

query I rowsort
SELECT - 92 * + 72 AS col2 FROM tab2 AS cor0
----
-6624
-6624
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT + COUNT( * ) * - 62 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + COUNT ( * ) * - 62 FROM tab1 AS cor0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT CAST( NULL AS SIGNED ) / + MAX( + + col2 ) * COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col0 * - col1 + - 18 AND ( - 93 ) / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT CAST ( NULL AS INTEGER ) / + MAX ( + + col2 ) * COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col0 * - col1 + - 18 AND ( - 93 ) / col2
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 98 ) AS col0 FROM tab2 AS cor0
----
-98

query II rowsort
SELECT ALL - col0, - 67 + + - 43 AS col0 FROM tab1 AS cor0
----
-51
-110
-85
-110
-91
-110

query I rowsort
SELECT ALL ( - col0 ) * - + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL ( 50 ) AS col1 FROM tab2
----
50
50
50

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 56 <= 96
----

query II rowsort
SELECT - 97 AS col1, col0 FROM tab1
----
-97
51
-97
85
-97
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8579
SELECT ALL col2 * ( col0 ), col2 DIV + 54 AS col0 FROM tab2
----
1058
0
2560
0
4350
1

skipif mysql # not compatible
query II rowsort label-8579
SELECT ALL col2 * ( col0 ), col2 / + 54 AS col0 FROM tab2
----
1058
0
2560
0
4350
1

query I rowsort
SELECT DISTINCT ( + col1 ) - 44 AS col0 FROM tab2 cor0
----
23
33
7

query I rowsort
SELECT col1 * 49 + ( + 75 ) AS col1 FROM tab2 cor0
----
2574
3358
3848

query I rowsort
SELECT DISTINCT - 89 - col1 AS col1 FROM tab1 AS cor0
----
-103
-136
-94

query II rowsort
SELECT - 80 * - - 20 + - 71 * - - 50, col0 AS col0 FROM tab1
----
-5150
51
-5150
85
-5150
91

query I rowsort
SELECT ALL - 5 * - ( - col1 ) * 3 - - col2 AS col2 FROM tab0
----
-1168
-305
84

query I rowsort
SELECT DISTINCT 44 - + 55 FROM tab2
----
-11

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - + col1 >= + + col0
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 48 + - - 31 NOT IN ( - 54 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * 29 * + - col1 FROM tab0
----
-2813
-35235
-52983

query II rowsort
SELECT DISTINCT + 44 AS col0, 69 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
44
69

query I rowsort
SELECT DISTINCT ( - + col2 ) * - 43 + + + 26 FROM tab0
----
2047
4283
456

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL IN ( col1 / col1, - col0 * - - ( - 1 ) + + col0, - - col1 * + col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT ALL - COUNT( ALL - - 16 ) * - + SUM( ALL + + 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-8593
SELECT ALL - COUNT ( ALL - - 16 ) * - + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT - ( + 90 ) DIV + col2 AS col0 FROM tab1
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8595
SELECT ALL - - col1 DIV - CAST( col0 AS SIGNED ) col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8595
SELECT ALL - - col1 / - CAST ( col0 AS INTEGER ) col0 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8596
SELECT - col2 DIV 31 AS col1, + 90 FROM tab2 AS cor0
----
-1
90
-1
90
0
90

skipif mysql # not compatible
query II rowsort label-8596
SELECT - col2 / 31 AS col1, + 90 FROM tab2 AS cor0
----
-1
90
-1
90
0
90

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT 4 + - ( col2 ) / - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8601
SELECT ALL + col2, 6 + + col0 DIV - + 42 FROM tab0 AS cor0
----
10
4
47
6
99
4

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL + col2, 6 + + col0 / - + 42 FROM tab0 AS cor0
----
10
4
47
6
99
4

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

query II rowsort
SELECT + 8 AS col2, - col2 + 11 AS col0 FROM tab0 AS cor0
----
8
-36
8
-88
8
1

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab1
----
59
68
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT + CAST( + - 4 AS SIGNED ) FROM tab2 AS cor0
----
-4
-4
-4

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8607
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT CAST( NULL AS SIGNED ) + - + MIN( DISTINCT - - 33 ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8612
SELECT ALL - 26 + + + CAST( NULL AS SIGNED ) * + col2 * - + col1 AS col0, - col0 AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-8612
SELECT ALL - 26 + + + CAST ( NULL AS INTEGER ) * + col2 * - + col1 AS col0, - col0 AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT 31 DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8613
SELECT 31 / col2 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT 36 + - col1 AS col2 FROM tab1
----
-11
22
31

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8617
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8617
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 36 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ( + ( col1 ) ) * + 62 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - - col1 * + 83 FROM tab0 cor0
----
-16
1733
6676

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - col1 ) * 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

query II rowsort
SELECT DISTINCT col2 AS col0, col1 * + col0 + + col0 * ( 70 ) FROM tab1
----
59
6375
68
10647
96
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * - - col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8625
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN 45 AND - col1 + - ( col2 ) + + + CAST( NULL AS SIGNED ) * + col0
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-8625
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN 45 AND - col1 + - ( col2 ) + + + CAST ( NULL AS INTEGER ) * + col0
----
46
51
23
64
77
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - COUNT( * ) col0 FROM tab1 WHERE NOT 47 + + - col0 + + col1 + col2 * - + col0 * + col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8627
SELECT - COUNT ( * ) col0 FROM tab1 WHERE NOT 47 + + - col0 + + col1 + col2 * - + col0 * + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT - - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8628
SELECT - - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT - 2 DIV col2 * + + 91 * - col2 + - - col1 AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 2 / col2 * + + 91 * - col2 + - - col1 AS col2 FROM tab0 cor0
----
1
21
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT DISTINCT col1 / + col2 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT MAX( - col0 ) * - COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8632
SELECT MAX ( - col0 ) * - COUNT ( * ) FROM tab1
----
153

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT 74 * - 87 - + COUNT( * ) FROM tab0 AS cor0
----
-6441

skipif mysql # not compatible
query I rowsort label-8634
SELECT 74 * - 87 - + COUNT ( * ) FROM tab0 AS cor0
----
-6441

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

query I rowsort
SELECT + col2 * - col0 - col0 * col2 * col0 AS col1 FROM tab1 AS cor0
----
-254592
-431290
-569296

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

query I rowsort
SELECT DISTINCT 28 + + 23 AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + 5 * + - SUM( DISTINCT - 45 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8639
SELECT + 5 * + - SUM ( DISTINCT - 45 ) FROM tab2
----
225

query I rowsort
SELECT - 58 + col2 * - col0 FROM tab1
----
-4954
-5073
-6246

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

query I rowsort
SELECT ( col1 ) + - 97 FROM tab0
----
-16
-76
-96

query II rowsort
SELECT - col2 + + ( + 15 ), + 79 AS col0 FROM tab2
----
-25
79
-43
79
-8
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + CAST( NULL AS SIGNED ) + - + col2 * - col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - 27 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - 27 FROM tab1
----
-24

query I rowsort
SELECT ALL + ( ( + + col0 ) ) AS col1 FROM tab0 WHERE ( NOT - col1 = + + col0 )
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 + col0 * - 27 * + + col0 AS col0 FROM tab0
----
-204450
-254140
-6090

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT ALL col0 + col0 DIV + - ( + 94 ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL col0 + col0 / + - ( + 94 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - 5 + col0 + + 5 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + - col1 + col2 * 8 AS col2 FROM tab2 cor0
----
133
243
397

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE + col1 <= - 52 + col0
----
59

query I rowsort
SELECT + - ( + + col2 ) * col0 + + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8653
SELECT DISTINCT - + col1 AS col1, - col0 + - CAST( + 36 AS SIGNED ) - 49 FROM tab0 AS cor0
----
-1
-182
-21
-172
-81
-100

skipif mysql # not compatible
query II rowsort label-8653
SELECT DISTINCT - + col1 AS col1, - col0 + - CAST ( + 36 AS INTEGER ) - 49 FROM tab0 AS cor0
----
-1
-182
-21
-172
-81
-100

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

query II rowsort
SELECT ALL col1, col1 * 30 + col2 FROM tab2 AS cor0
----
51
1553
67
2068
77
2350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT DISTINCT + ( - SUM( + 22 ) ) * 97 FROM tab0 AS cor0
----
-6402

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + ( - SUM ( + 22 ) ) * 97 FROM tab0 AS cor0
----
-6402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8658
SELECT + COUNT( col0 ) DIV 7 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT + COUNT ( col0 ) / 7 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 25 FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT - SUM( + col2 ) * + 42 FROM tab1
----
-9366

skipif mysql # not compatible
query I rowsort label-8660
SELECT - SUM ( + col2 ) * + 42 FROM tab1
----
-9366

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

query I rowsort
SELECT - 4 * + col0 AS col2 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8663
SELECT + 70 * - + col0, col1 * ( + ( - 83 ) ) * - - 90 * - CAST( - col1 AS SIGNED ) - ( + + col2 ) AS col0 FROM tab1
----
-3570
-1464216
-5950
-186809
-6370
-16501298

skipif mysql # not compatible
query II rowsort label-8663
SELECT + 70 * - + col0, col1 * ( + ( - 83 ) ) * - - 90 * - CAST ( - col1 AS INTEGER ) - ( + + col2 ) AS col0 FROM tab1
----
-3570
-1464216
-5950
-186809
-6370
-16501298

query I rowsort
SELECT DISTINCT - ( 86 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL - col1 + CAST( NULL AS SIGNED ) - - col2 * 40 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) - - col2 * 40 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + 85 col1 FROM tab1, tab1 cor0
----
9 values hashing to 65c9ae6c67bc1ffeb0d12f1a2efbeebd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT + CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-8669
SELECT + CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT 19 * - COUNT( * ) + - 71 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-8670
SELECT 19 * - COUNT ( * ) + - 71 FROM tab1 AS cor0
----
-128

query I rowsort
SELECT - ( + col0 ) + col2 - + col1 FROM tab0 cor0
----
-49
-98
1

query I rowsort
SELECT DISTINCT - - col1 * 50 FROM tab1 AS cor0
----
2350
250
700

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8674
SELECT DISTINCT + - 8 * + CAST( - 64 AS SIGNED ) col1, 9 + - + 24 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
512
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8674
SELECT DISTINCT + - 8 * + CAST ( - 64 AS INTEGER ) col1, 9 + - + 24 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
512
-15

query I rowsort
SELECT + 10 AS col1 FROM tab2 WHERE - col1 * 22 + col2 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( col2 ) * - 69 + - 75 AS col1 FROM tab0 WHERE NULL IS NULL
----
-3318
-6906
-765

query I rowsort
SELECT DISTINCT + col1 + - 32 AS col2 FROM tab0
----
-11
-31
49

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

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

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

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

query I rowsort
SELECT col1 + 31 * - 70 FROM tab2
----
-2093
-2103
-2119

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

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8683
SELECT MIN( + 95 ) DIV - ( 72 ) - - 73 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8683
SELECT MIN ( + 95 ) / - ( 72 ) - - 73 AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + 60 + col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 28 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT - 87 * 63 + col0 / + col2 * col0 + - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + 8 * - MIN( - 66 ) FROM tab0 AS cor0
----
528

skipif mysql # not compatible
query I rowsort label-8686
SELECT + 8 * - MIN ( - 66 ) FROM tab0 AS cor0
----
528

query II rowsort
SELECT 78, col2 * - ( col0 ) * - - col2 AS col1 FROM tab1
----
78
-295885
78
-420784
78
-470016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8688
SELECT 52, - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * + - 53 AS col2 FROM tab1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-8688
SELECT 52, - CAST ( NULL AS REAL ) * - + COUNT ( * ) * + - 53 AS col2 FROM tab1
----
52
NULL

query I rowsort
SELECT ALL col2 * + + col2 * + + 34 AS col0 FROM tab0
----
333234
3400
75106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT + + CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT + ( + ( - 16 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8690
SELECT + + CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT + ( + ( - 16 ) ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-8691
SELECT + COUNT ( ( - col0 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * col2 col1 FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * + + col1 FROM tab2 WHERE NOT + col1 * - col0 + - col0 * 51 BETWEEN + 14 + col1 AND NULL
----
2392
4992
5100

query I rowsort
SELECT ALL ( + 75 ) FROM tab0
----
75
75
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT + - col0 * + col1 * + 19 + + col0 + - - 26 + - col1 - + 53 - col0 * col1 * - col0 / + + CAST( NULL AS SIGNED ) * + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - COUNT( * ) + SUM( ALL 48 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-8697
SELECT - COUNT ( * ) + SUM ( ALL 48 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT ( - COUNT( * ) ) + + 43 AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT ( - COUNT ( * ) ) + + 43 AS col2 FROM tab1
----
40

query I rowsort
SELECT + col1 + + 10 FROM tab1
----
15
24
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * col2 col0 FROM tab1
----
1344
826
952

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + ( COUNT( * ) ) + + 83 FROM tab1 WHERE NOT - col2 <> + col0
----
83

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + ( COUNT ( * ) ) + + 83 FROM tab1 WHERE NOT - col2 <> + col0
----
83

query I rowsort
SELECT DISTINCT - col1 * 2 FROM tab1
----
-10
-28
-94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT + col2 DIV + ( col2 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8706
SELECT DISTINCT + col2 / + ( col2 ) col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT 89 DIV - 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT 89 / - 98 FROM tab0
----
0
0
0

query I rowsort
SELECT 57 + col0 * + col1 FROM tab1
----
4334
482
771

query I rowsort
SELECT - 62 * - col1 FROM tab1
----
2914
310
868

query I rowsort
SELECT 32 + col2 AS col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT - col0 + + col0 DIV col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-8711
SELECT - col0 + + col0 / col0 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 / col1 >= ( - col1 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - 76 * - COUNT( * ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-8715
SELECT - 76 * - COUNT ( * ) FROM tab0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT ALL - ( 19 ) * col0 + col1 DIV col1 AS col1 FROM tab1
----
-1614
-1728
-968

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - ( 19 ) * col0 + col1 / col1 AS col1 FROM tab1
----
-1614
-1728
-968

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8719
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 34 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col1 BETWEEN 63 AND ( - col2 + + 42 * 39 )
----

query I rowsort
SELECT 66 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 88 * + col2 + 87 * + col1 FROM tab1 WHERE NOT + col0 NOT IN ( 2 )
----

query I rowsort
SELECT 52 AS col2 FROM tab1 WHERE NOT NULL > 3 + - 16
----

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

query I rowsort
SELECT - col2 / 66 + + 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( 87 ) * 12 FROM tab2 AS cor0
----
1044
1044
1044

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT + CAST( ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - ( - col0 ) * - 34 AS col1 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + col0 IS NULL
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-8734
SELECT - - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab2 cor0 WHERE NOT - 69 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 43 / col0 ) AND 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - + COUNT( ALL + 10 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8737
SELECT - + COUNT ( ALL + 10 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ( 35 ) FROM tab1
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 11 - 44 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * ( + col1 * col2 ) < ( - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT - SUM( col2 ) + 41 AS col2 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - SUM ( col2 ) + 41 AS col2 FROM tab1
----
-182

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT 75 <= 72
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT MAX( DISTINCT + 29 ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8743
SELECT MAX ( DISTINCT + 29 ) AS col2 FROM tab1
----
29

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 6 * + col0 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 91 + + col2 FROM tab0
----
-1318
-7907
-8728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8749
SELECT - CAST( NULL AS DECIMAL ) + - col1 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL + ( - 84 ) * - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + ( - 84 ) * - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
249

query I rowsort
SELECT ALL - + 98 - - col2 FROM tab0 AS cor0
----
-51
-88
1

query I rowsort
SELECT - col0 + + 37 AS col0 FROM tab0 AS cor0
----
-50
-60
22

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

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

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

query I rowsort
SELECT col1 * - - col2 + col0 AS col1 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) - + 31 AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) - + 31 AS col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL + + col1 + - 1 + - ( - col1 ) + - col2 * col1 * + 4 FROM tab0 AS cor0
----
-15067
-395
-799

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 * - col2 ) IS NULL
----

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 WHERE - col2 + + col2 / col2 <> col0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - SUM( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT - SUM ( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL + MIN( ALL - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + MIN ( ALL - + col1 ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 * - col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT ALL + - col1 DIV col1 + col0 FROM tab2 WHERE NOT 84 IS NULL
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + - col1 / col1 + col0 FROM tab2 WHERE NOT 84 IS NULL
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL MAX( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL MAX ( + - col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT 56 DIV - COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-8766
SELECT 56 / - COUNT ( * ) AS col0 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) - + col2 >= col2
----
46
51
23

query II rowsort
SELECT col0 * - col2, 2 AS col1 FROM tab0
----
-705
2
-870
2
-9603
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT MIN( DISTINCT - - col0 ) - - ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + 94 IS NULL AND 1 / + col0 IN ( 27 )
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 94 IS NULL AND 1 / + col0 IN ( 27 )
----
0

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

query I rowsort
SELECT ALL + col2 + + - col0 * - col1 AS col0 FROM tab2
----
2369
4968
5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab1 AS cor0 WHERE 45 + - - col0 + + - col0 <> col0
----
34
34
34

query I rowsort
SELECT ALL col0 + + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - + col1 AND 76 * col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT ALL + CAST( - col0 AS SIGNED ) * col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + CAST ( - col0 AS INTEGER ) * col1 FROM tab0
----
-1215
-1827
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT + CAST( - - AVG ( - 30 ) AS SIGNED ) * - - COUNT( * ) col2 FROM tab0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT + CAST ( - - AVG ( - 30 ) AS INTEGER ) * - - COUNT ( * ) col2 FROM tab0
----
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / - + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 62 * + col2 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT - col0 + + 91 / 69 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + col1 ) * + - CAST( NULL AS SIGNED ) - - + col2 )
----

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - col0 + + 91 / 69 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + col1 ) * + - CAST ( NULL AS INTEGER ) - - + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + - - 37 + col1 ) IN ( col2 + + 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT + 57 FROM tab2 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) * - col2 + + + col1 IS NULL
----
57
57
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + 54 * + SUM( ALL + col1 ) * + - 66 AS col2 FROM tab0 cor0
----
-367092

skipif mysql # not compatible
query I rowsort label-8786
SELECT + 54 * + SUM ( ALL + col1 ) * + - 66 AS col2 FROM tab0 cor0
----
-367092

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

query II rowsort
SELECT ALL 5 AS col2, col2 AS col1 FROM tab2 AS cor0 WHERE ( - 73 ) IS NOT NULL
----
5
23
5
40
5
58

query I rowsort
SELECT ALL ( + - 9 ) FROM tab2
----
-9
-9
-9

query II rowsort
SELECT ALL col1 AS col1, - 63 + - + 77 FROM tab1
----
14
-140
47
-140
5
-140

query I rowsort
SELECT col0 * + - 45 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT col0 * + - 2 * + + col0 AS col0 FROM tab2
----
-11250
-4232
-8192

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT COUNT( * ) * + + COUNT( col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT COUNT ( * ) * + + COUNT ( col2 ) FROM tab1
----
9

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 + - + col0 * + 42 FROM tab2
----
-1978
-2752
-3225

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT ( + col2 ) * - col0 IS NULL )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8798
SELECT * FROM tab0 cor0 WHERE col2 / + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8798
SELECT * FROM tab0 cor0 WHERE col2 / + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT + 83 * + CAST( col2 AS SIGNED ) + - col1 + - col0 FROM tab2 AS cor0
----
1812
3179
4672

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 83 * + CAST ( col2 AS INTEGER ) + - col1 + - col0 FROM tab2 AS cor0
----
1812
3179
4672

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT ALL SUM( - col0 ) AS col2, - 2 AS col0 FROM tab0
----
-199
-2

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL SUM ( - col0 ) AS col2, - 2 AS col0 FROM tab0
----
-199
-2

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL CAST( - - col0 AS SIGNED ) + - 19 FROM tab1
----
32
66
72

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL CAST ( - - col0 AS INTEGER ) + - 19 FROM tab1
----
32
66
72

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN NULL AND - + 59 / - col2
----

query I rowsort
SELECT DISTINCT col1 + ( 63 ) + - col0 FROM tab0
----
-3
-33
129

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

query I rowsort
SELECT - 68 - - col0 FROM tab1 AS cor0
----
-17
17
23

query I rowsort
SELECT DISTINCT + - 81 + col1 FROM tab1 AS cor0
----
-34
-67
-76

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

query I rowsort
SELECT + col2 * + 51 + - 83 * 29 FROM tab2 AS cor0
----
-1234
-367
551

query I rowsort
SELECT ALL col1 + + col0 * + - col2 AS col1 FROM tab0 cor0 WHERE NOT col2 IN ( - col2 + - 29 )
----
-624
-849
-9602

query I rowsort
SELECT ALL - 64 + - 36 + 8 AS col0 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT 15 * - col2 DIV col2 + 11 * col1 FROM tab1 AS cor0
----
139
40
502

skipif mysql # not compatible
query I rowsort label-8814
SELECT 15 * - col2 / col2 + 11 * col1 FROM tab1 AS cor0
----
139
40
502

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - 59 + - SUM( ALL - 13 ) - - + MAX( - - 11 ) * + - SUM( ALL + col2 ) * + MIN( ALL ( col1 ) ) FROM tab1
----
-12285

skipif mysql # not compatible
query I rowsort label-8816
SELECT - 59 + - SUM ( ALL - 13 ) - - + MAX ( - - 11 ) * + - SUM ( ALL + col2 ) * + MIN ( ALL ( col1 ) ) FROM tab1
----
-12285

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - MIN( DISTINCT col1 ) FROM tab2 WHERE + col2 >= - - col2
----
-51

skipif mysql # not compatible
query I rowsort label-8817
SELECT - MIN ( DISTINCT col1 ) FROM tab2 WHERE + col2 >= - - col2
----
-51

query I rowsort
SELECT ALL + 66 - - col0 FROM tab1
----
117
151
157

query I rowsort
SELECT ALL col1 * + 18 FROM tab0
----
1458
18
378

query I rowsort
SELECT + 75 FROM tab2 WHERE ( - 2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col1 FROM tab1 WHERE NOT ( NULL ) < ( - 44 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col1 FROM tab1 WHERE NOT ( NULL ) < ( - 44 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT - 89 * - 28 FROM tab2
----
2492

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 82 ) NOT IN ( + 30 )
----

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

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

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

query I rowsort
SELECT - - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + ( - 67 ) * - ( - col0 ) + 86 + + + col0 FROM tab2
----
-2950
-4138
-4864

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT + col0 DIV - 78 FROM tab1 AS cor0
----
-1
-1
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT + 31 DIV - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8832
SELECT + 31 / - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8834
SELECT CAST( + AVG ( DISTINCT + + col2 ) AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8834
SELECT CAST ( + AVG ( DISTINCT + + col2 ) AS INTEGER ) / COUNT ( * ) AS col0 FROM tab1 cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 - - 49 col2 FROM tab0 AS cor0
----
-656
-821
-9554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 8 * + - col1 + - 55 * + - 33 + - - col2 col1 FROM tab0 AS cor0
----
1922
5353
54350

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL MAX( DISTINCT 38 ) + 64 AS col2 FROM tab2 cor0 WHERE NOT NULL < - 17 / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL MAX ( DISTINCT 38 ) + 64 AS col2 FROM tab2 cor0 WHERE NOT NULL < - 17 / 98
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - SUM( - - col1 ) + - - 57 AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8839
SELECT - SUM ( - - col1 ) + - - 57 AS col1 FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE + 18 * - ( ( - 74 ) ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8842
SELECT * FROM tab0 WHERE NOT + 82 - - 54 <= + CAST( 65 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8842
SELECT * FROM tab0 WHERE NOT + 82 - - 54 <= + CAST ( 65 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 67 / + - 96 IN ( - ( - - 32 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT - + col1 FROM tab2 WHERE + - 56 BETWEEN - - CAST( + + 85 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8846
SELECT - + col1 FROM tab2 WHERE + - 56 BETWEEN - - CAST ( + + 85 AS INTEGER ) AND NULL
----

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

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

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

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

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

query II rowsort
SELECT ALL col0 AS col2, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 * - + 67 + col0 col1 FROM tab0 WHERE + 20 * col0 - + col0 IS NOT NULL
----
4370
4442
4452

query II rowsort
SELECT + - col0, + col2 * - ( 53 ) AS col1 FROM tab1 cor0
----
-51
-5088
-85
-3127
-91
-3604

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT - + MIN( DISTINCT ( - + 48 ) ) + - 89 AS col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT - + MIN ( DISTINCT ( - + 48 ) ) + - 89 AS col1 FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT DISTINCT - + COUNT( * ) + 18 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - + COUNT ( * ) + 18 FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 17 * + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT + ( + col0 ) AS col0, 50 FROM tab0 AS cor0
----
15
50
87
50
97
50

query I rowsort
SELECT ALL ( + - 6 ) + 1 AS col1 FROM tab2 cor0
----
-5
-5
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8860
SELECT ALL col0 AS col0, ( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 WHERE ( + col2 IS NOT NULL )
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL col0 AS col0, ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 WHERE ( + col2 IS NOT NULL )
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 9 col1 FROM tab2
----
459
603
693

query I rowsort
SELECT ALL 36 * - + col2 FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT - col2 * - + col0 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + col1 + - + ( + ( col2 ) ) + + col2 * + + 31 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8865
SELECT ALL col1 DIV + + col1 AS col0, + col0 * + 89 FROM tab0
----
1
1335
1
7743
1
8633

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL col1 / + + col1 AS col0, + col0 * + 89 FROM tab0
----
1
1335
1
7743
1
8633

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 57 <> col1 * + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 * - + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + - SUM( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2 + + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT + - SUM ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2 + + + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8869
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 69 AND + 8 * CAST( NULL AS SIGNED ) * - 89
----

skipif mysql # not compatible
query III rowsort label-8869
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 69 AND + 8 * CAST ( NULL AS INTEGER ) * - 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + 76 col0, col0 * - 26 * + 33 FROM tab0 AS cor0 WHERE NOT 74 NOT BETWEEN NULL AND 74
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * - + col0 AND + 48 + - col2
----

query I rowsort
SELECT DISTINCT + 44 * - col0 * - col1 * + + col1 FROM tab1 AS cor0
----
439824
8844836
93500

query II rowsort
SELECT - 11 AS col1, 18 FROM tab0
----
-11
18
-11
18
-11
18

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

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

query I rowsort
SELECT + ( - + 45 ) FROM tab0
----
-45
-45
-45

query II rowsort
SELECT ALL + col2 + col1 AS col1, col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT 65 * - - col2 FROM tab0 AS cor0
----
3055
6435
650

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

query I rowsort
SELECT - 94 * - - col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT - 22 * + col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8882
SELECT CAST( + 40 AS SIGNED ) AS col1, 16 FROM tab0
----
40
16
40
16
40
16

skipif mysql # not compatible
query II rowsort label-8882
SELECT CAST ( + 40 AS INTEGER ) AS col1, 16 FROM tab0
----
40
16
40
16
40
16

query I rowsort
SELECT - + col1 * col0 FROM tab1 WHERE NULL IS NULL
----
-425
-4277
-714

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

query I rowsort
SELECT ALL col1 + - 42 - + col2 AS col1 FROM tab0
----
-140
-31
-8

query II rowsort
SELECT col2 + col1 AS col2, 36 AS col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 42 + - + col2 + - 26 FROM tab0
----
-115
-167
-78

query I rowsort
SELECT DISTINCT - + col1 / - 27 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT + - 59 * - - 62 * - col1 * - - col2 + + col1 + col1 DIV - col1 + + col2 FROM tab0 cor0
----
13926133
362241
768210

skipif mysql # not compatible
query I rowsort label-8889
SELECT + - 59 * - - 62 * - col1 * - - col2 + + col1 + col1 / - col1 + + col2 FROM tab0 cor0
----
13926133
362241
768210

query I rowsort
SELECT ALL + - col2 * - col2 - col1 AS col0 FROM tab2 AS cor0
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + 39 * + + COUNT( * ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8891
SELECT + 39 * + + COUNT ( * ) FROM tab0 AS cor0
----
117

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT CAST( - 75 AS SIGNED ) * + COUNT( DISTINCT - 45 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT CAST ( - 75 AS INTEGER ) * + COUNT ( DISTINCT - 45 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL + MIN( DISTINCT - - 5 ) * - 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-275

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + MIN ( DISTINCT - - 5 ) * - 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-275

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT - col2 - + 21 FROM tab0 AS cor0
----
-120
-31
-68

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col2 FROM tab1
----
-36

query II rowsort
SELECT ALL 32, - col0 AS col2 FROM tab1
----
32
-51
32
-85
32
-91

query I rowsort
SELECT + col1 + + - col0 + + 95 * 86 FROM tab1 WHERE NOT + + col0 IS NULL
----
8090
8126
8133

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT + 87 DIV - col0 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 87 / - col0 AS col1 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + ( - - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8905
SELECT + ( - - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT DISTINCT + 20 + COUNT( * ) + - COUNT( * ) - + - 11 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT DISTINCT + 20 + COUNT ( * ) + - COUNT ( * ) - + - 11 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL - col0 + + ( 13 ) DIV - + col2 AS col0 FROM tab0 AS cor0
----
-15
-88
-97

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - col0 + + ( 13 ) / - + col2 AS col0 FROM tab0 AS cor0
----
-15
-88
-97

query I rowsort
SELECT ALL 94 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT + 72 + - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 72 + - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 22 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + - 32 AS col0 FROM tab1 AS cor0
----
-117
-123
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + ( + + col1 ), + 15 )
----

query I rowsort
SELECT DISTINCT + ( - + 72 ) AS col1 FROM tab2
----
-72

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
51
67
77

query I rowsort
SELECT + 59 * - 9 AS col0 FROM tab2
----
-531
-531
-531

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 * + ( - - col2 ) ) >= NULL
----

query I rowsort
SELECT ALL 0 * + - 30 + + col2 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 51 - + col0 AS col0 FROM tab1 AS cor0
----
-102
-136
-142

query I rowsort
SELECT DISTINCT + col2 + col1 * + - 13 AS col1 FROM tab1 AS cor0
----
-543
-6
-86

query I rowsort
SELECT ALL 22 - - + col2 AS col0 FROM tab0 AS cor0
----
121
32
69

query II rowsort
SELECT DISTINCT col0 - 99 * - col2 + + - col2 AS col2, col1 FROM tab1
----
5867
5
6755
47
9459
14

query I rowsort
SELECT DISTINCT - - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8923
SELECT ( - CAST( NULL AS SIGNED ) ) * + - MIN( + col2 ) + 15 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - MIN ( + col2 ) + 15 FROM tab0
----
NULL

query I rowsort
SELECT ( + - 75 ) FROM tab1
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT COUNT( ALL + 93 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8925
SELECT COUNT ( ALL + 93 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( - col1 ) * - - col0 + col1 AS col2 FROM tab2 AS cor0
----
2397
5005
5092

query II rowsort
SELECT + - ( + - 79 ), col0 AS col1 FROM tab1 AS cor0
----
79
51
79
85
79
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL 54 + + COUNT( * ) FROM tab2 AS cor0 WHERE - col1 - col0 IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 54 + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 - col0 IS NOT NULL
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8929
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8929
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - col0 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
-3
3

query I rowsort
SELECT DISTINCT + + 13 * 1 * - col0 - ( col2 ) FROM tab2 AS cor0
----
-1033
-621
-872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 0 col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + COUNT( col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8935
SELECT + COUNT ( col1 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab1, tab0 cor0
----
20

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT - ( - COUNT( * ) ), 83 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9
83

skipif mysql # not compatible
query II rowsort label-8939
SELECT - ( - COUNT ( * ) ), 83 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9
83

query I rowsort
SELECT - 25 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query II rowsort label-8942
SELECT ALL + + COUNT( * ) AS col0, 60 FROM tab1 AS cor0 WHERE NOT - 80 >= + + col2 / - col0 - - 39
----
3
60

skipif mysql # not compatible
query II rowsort label-8942
SELECT ALL + + COUNT ( * ) AS col0, 60 FROM tab1 AS cor0 WHERE NOT - 80 >= + + col2 / - col0 - - 39
----
3
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8943
SELECT ALL + CAST( - - col0 AS SIGNED ) + 90 + + + 66 DIV + col0 - - 92 + 31 * + col1 AS col2 FROM tab2 AS cor0
----
1810
2334
2634

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + CAST ( - - col0 AS INTEGER ) + 90 + + + 66 / + col0 - - 92 + 31 * + col1 AS col2 FROM tab2 AS cor0
----
1810
2334
2634

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT COUNT( * ) + COUNT( ALL + ( + - 21 ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT COUNT ( * ) + COUNT ( ALL + ( + - 21 ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 * + ( + col2 ) + + 3 AS col1, col0 col2 FROM tab0 AS cor0
----
2118
15
4458
97
453
87

query I rowsort
SELECT col0 + - - 92 FROM tab1 AS cor0
----
143
177
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8947
SELECT ALL - - 79 * - COUNT( 16 ) + 98 + COUNT( DISTINCT 19 ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-138
NULL

skipif mysql # not compatible
query II rowsort label-8947
SELECT ALL - - 79 * - COUNT ( 16 ) + 98 + COUNT ( DISTINCT 19 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-138
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT DISTINCT - + COUNT( * ) AS col2, + 69 col1 FROM tab1 AS cor0
----
-3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8948
SELECT DISTINCT - + COUNT ( * ) AS col2, + 69 col1 FROM tab1 AS cor0
----
-3
69

onlyif mysql # DIV for integer division: 
query II rowsort label-8949
SELECT ALL - - 59, - ( + - 98 ) DIV + col1 col0 FROM tab2 AS cor0
----
59
1
59
1
59
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8949
SELECT ALL - - 59, - ( + - 98 ) / + col1 col0 FROM tab2 AS cor0
----
59
1
59
1
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT 45 * - 69 + - COUNT( * ) FROM tab1 AS cor0
----
-3108

skipif mysql # not compatible
query I rowsort label-8950
SELECT 45 * - 69 + - COUNT ( * ) FROM tab1 AS cor0
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + COUNT( * ) * + 80 + 43 col2 FROM tab1
----
283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8951
SELECT + COUNT ( * ) * + 80 + 43 col2 FROM tab1
----
283

query I rowsort
SELECT + col0 * 92 + + col1 FROM tab0
----
1461
8025
8925

query II rowsort
SELECT col1 + 52 AS col0, 93 * - col2 AS col2 FROM tab2
----
103
-2139
119
-5394
129
-3720

query I rowsort
SELECT ALL 22 * + col0 FROM tab1
----
1122
1870
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL + - CAST( NULL AS SIGNED ) - col1 + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8955
SELECT ALL + - CAST ( NULL AS INTEGER ) - col1 + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT + COUNT( * ) - + MIN( DISTINCT - 52 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT + COUNT ( * ) - + MIN ( DISTINCT - 52 ) AS col0 FROM tab2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT + MIN( DISTINCT - CAST( + CAST( + + col2 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + MIN ( DISTINCT - CAST ( + CAST ( + + col2 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT ALL 60 DIV - 20 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL 60 / - 20 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT col0 * + col1 * + col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8960
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - - 57 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8960
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - 57 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT col1 DIV 43 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8961
SELECT col1 / 43 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
18

query II rowsort
SELECT DISTINCT 19, + col0 AS col0 FROM tab1 AS cor0
----
19
51
19
85
19
91

query I rowsort
SELECT - + ( - 73 ) FROM tab2 cor0
----
73
73
73

query II rowsort
SELECT 75, + col0 AS col1 FROM tab1 AS cor0
----
75
51
75
85
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab0 WHERE NOT col1 + - + col2 * - col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 13 + - col2 IN ( 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT col0 * col0 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT col0 * col0 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT DISTINCT + ( SUM( - col2 ) ) DIV - MAX( + col2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + ( SUM ( - col2 ) ) / - MAX ( + col2 ) FROM tab1 AS cor0
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 13 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 84 * col2 * + ( + - col1 ) col0 FROM tab2
----
258760
326482
98555

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + - COUNT( + 43 ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT + - COUNT ( + 43 ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 - + 39 + + col1 + 84 * + col2 AS col1, col1 AS col1 FROM tab0 cor0
----
4005
81
8375
1
909
21

query III rowsort
SELECT * FROM tab2 WHERE col2 = + + 26
----

query I rowsort
SELECT + col2 * 86 AS col0 FROM tab1
----
5074
5848
8256

onlyif mysql # DIV for integer division: 
query II rowsort label-8978
SELECT DISTINCT + col0, + col0 DIV 7 FROM tab0
----
15
2
87
12
97
13

skipif mysql # not compatible
query II rowsort label-8978
SELECT DISTINCT + col0, + col0 / 7 FROM tab0
----
15
2
87
12
97
13

query II rowsort
SELECT 86, + 92 AS col2 FROM tab0
----
86
92
86
92
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL COUNT( * ) + + 92 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL COUNT ( * ) + + 92 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT COUNT( * ) * - 93 col1 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT COUNT ( * ) * - 93 col1 FROM tab2
----
-279

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 + - + col2 FROM tab0
----
15
-128
87
-31
97
-100

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - - COUNT( * ) + - - MIN( DISTINCT - 99 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - - COUNT ( * ) + - - MIN ( DISTINCT - 99 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8985
SELECT - 79 - ( + + COUNT( ALL - + 87 ) ) + - ( + 9 ), CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-8985
SELECT - 79 - ( + + COUNT ( ALL - + 87 ) ) + - ( + 9 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-91
NULL

query I rowsort
SELECT ALL 32 + - col1 FROM tab1
----
-15
18
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - + 8 IS NULL AND NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - + 8 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8988
SELECT ALL + ( + ( + 68 ) ) - + - COUNT( - col1 ) DIV + 15 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + ( + ( + 68 ) ) - + - COUNT ( - col1 ) / + 15 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + - ( - MAX( 76 ) ) FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + - ( - MAX ( 76 ) ) FROM tab1 cor0
----
76

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT col0 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8991
SELECT col0 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + ( + 61 ) FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT ( + + 16 ) FROM tab2 cor0
----
16

query I rowsort
SELECT DISTINCT + 51 * + col2 FROM tab1
----
3009
3468
4896

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT ALL - col1 DIV + + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - col1 / + + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT 50 * MAX( ALL - + ( - 90 ) ) FROM tab0
----
4500

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT 50 * MAX ( ALL - + ( - 90 ) ) FROM tab0
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * + + col2 col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT ALL + col0 + - col0 * + + col2 FROM tab1
----
-4845
-4930
-6097

query II rowsort
SELECT 8, col0 AS col0 FROM tab2
----
8
46
8
64
8
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + MIN( - + 12 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9001
SELECT + MIN ( - + 12 ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) DIV MIN( ALL - 1 ) + + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) / MIN ( ALL - 1 ) + + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL + + 74 AS col2 FROM tab2 AS cor0
----
74
74
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - ( - + col1 ) NOT BETWEEN NULL AND + col1 + + ( - ( col2 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = - ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT DISTINCT - + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT - + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - 90 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9008
SELECT DISTINCT - 40 + CAST( NULL AS SIGNED ) / col0 * - + col2 AS col0, + 92 FROM tab1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT - 40 + CAST ( NULL AS INTEGER ) / col0 * - + col2 AS col0, + 92 FROM tab1
----
NULL
92

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 15 * + col1 - - 7 FROM tab1 AS cor0
----
-203
-68
-698

query I rowsort
SELECT DISTINCT - 30 + col2 AS col1 FROM tab2 cor0
----
-7
10
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT - - col2 + col1 DIV + - col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9013
SELECT - - col2 + col1 / + - col2 FROM tab2 AS cor0
----
21
39
57

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN NULL AND ( + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - MAX( - - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - MAX ( - - 73 ) FROM tab0
----
-73

query I rowsort
SELECT col2 + - 21 * - col2 + - + col1 FROM tab1
----
1293
1449
2098

query II rowsort
SELECT + - col0 AS col2, + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-15
1215
-87
1827
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT - ( - col1 ) DIV + + ( + col0 ) FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9018
SELECT - ( - col1 ) / + + ( + col0 ) FROM tab0 cor0
----
0
0
5

query I rowsort
SELECT 2 * + 5 + - + AVG ( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - + 85 AS col0 FROM tab2 cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL 40 * MIN( - - col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
600

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL 40 * MIN ( - - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
600

query I rowsort
SELECT ALL - col1 * - - 67 FROM tab1 AS cor0
----
-3149
-335
-938

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN - - col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT + ( - - col0 ) DIV - col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT + ( - - col0 ) / - col2 col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - + MAX( ALL col2 ) * + MAX( DISTINCT - + col2 ) col0 FROM tab1 AS cor0
----
5664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9025
SELECT - + MAX ( ALL col2 ) * + MAX ( DISTINCT - + col2 ) col0 FROM tab1 AS cor0
----
5664

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 NOT BETWEEN 29 AND - col2
----

query II rowsort
SELECT 77 AS col1, + col2 AS col1 FROM tab0 cor0
----
77
10
77
47
77
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + MIN( DISTINCT 91 ) * 67 FROM tab0 AS cor0
----
6097

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + MIN ( DISTINCT 91 ) * 67 FROM tab0 AS cor0
----
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT 81 * + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) > + col0
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT 81 * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) > + col0
----
0

query II rowsort
SELECT - col2, 0 + + col2 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
-23
1109
-40
2637
-58
4417

query I rowsort
SELECT DISTINCT - col1 * ( - + 97 ) AS col0 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT CAST( NULL AS SIGNED ) + + col2 * + col2 * - col2 col0 FROM tab1 WHERE NOT + col0 + + col1 / col2 + - + ( - 3 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9032
SELECT CAST ( NULL AS INTEGER ) + + col2 * + col2 * - col2 col0 FROM tab1 WHERE NOT + col0 + + col1 / col2 + - + ( - 3 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT + 73 ) FROM tab1 WHERE NULL IN ( - 11 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL - ( + + AVG ( + - col2 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - ( + + AVG ( + - col2 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 65 * + col0 AS col1 FROM tab0
----
-5655
-6305
-975

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - ( - MAX( DISTINCT 30 ) ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - ( - MAX ( DISTINCT 30 ) ) FROM tab1
----
30

query I rowsort
SELECT 45 + 74 FROM tab0
----
119
119
119

query I rowsort
SELECT ALL - 79 + + col1 AS col2 FROM tab1
----
-32
-65
-74

query I rowsort
SELECT ( + 53 ) + + + col2 * + + col0 - - 97 FROM tab1
----
5046
5165
6338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT - col0 * + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9041
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 71 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
71

query I rowsort
SELECT DISTINCT col1 * - col1 + - + 67 + 29 * - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * - 56 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT + COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9044
SELECT + COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE col2 + - 75 / col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT + MAX( ALL - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + MAX ( ALL - col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT ALL col1 * 56 * - col0 FROM tab1
----
-23800
-239512
-39984

query I rowsort
SELECT col0 * + 44 FROM tab2
----
2024
2816
3300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN - col2 + 13 + - 16 * - col2 AND + col1
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL > NULL
----

query I rowsort
SELECT - 92 * + col0 FROM tab0 AS cor0
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT SUM( - col0 ) + + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT SUM ( - col0 ) + + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-230

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + + col2 col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT COUNT( * ) * + 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT COUNT ( * ) * + 77 FROM tab1 AS cor0
----
231

query I rowsort
SELECT DISTINCT - 49 * ( - col1 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col1 * + + col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + 24 * - - COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 24 * - - COUNT ( * ) FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - SUM( DISTINCT + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9062
SELECT - SUM ( DISTINCT + 73 ) FROM tab2
----
-73

query II rowsort
SELECT DISTINCT 95, col1 * col2 AS col0 FROM tab0
----
95
210
95
3807
95
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT - COUNT( * ) * ( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT - COUNT ( * ) * ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT - 57 AS col1, - SUM( - col0 ) FROM tab2
----
-57
185

skipif mysql # not compatible
query II rowsort label-9065
SELECT - 57 AS col1, - SUM ( - col0 ) FROM tab2
----
-57
185

query I rowsort
SELECT ( - 70 ) + + col1 FROM tab2
----
-19
-3
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT + - col1 AS col1 FROM tab0 WHERE - 17 * - + CAST( + + 48 AS SIGNED ) - - - ( + - col0 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9067
SELECT + - col1 AS col1 FROM tab0 WHERE - 17 * - + CAST ( + + 48 AS INTEGER ) - - - ( + - col0 ) > NULL
----

query I rowsort
SELECT ALL + 23 + col1 + col1 FROM tab0
----
185
25
65

query I rowsort
SELECT ( 35 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - + 68 / 46 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - col0
----

query I rowsort
SELECT - + col0 * + ( + - col0 ) FROM tab2 cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 4 * + - 90 col0 FROM tab0
----
31320
34920
5400

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT DISTINCT col1 DIV + + 25 + + 41 FROM tab2
----
43
44

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT col1 / + + 25 + + 41 FROM tab2
----
43
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
174
21
194
1
30
81

query II rowsort
SELECT ALL col1 - + col1 - + - col0 AS col0, + col2 * - - col0 * - - col1 * + 52 FROM tab1 AS cor0
----
51
3564288
85
1303900
91
15123472

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL ( - col2 ) - + col2 * + col0 + - col0 FROM tab0 AS cor0
----
-767
-967
-9799

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + - 2 + + + MIN( DISTINCT + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9080
SELECT + - 2 + + + MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT + col2 * - + col1 * + + CAST( - col0 AS SIGNED ) FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-9081
SELECT + col2 * - + col1 * + + CAST ( - col0 AS INTEGER ) FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - 17 * - + col2 AS col2 FROM tab1
----
1003
1156
1632

query II rowsort
SELECT ALL - col2 * - ( + - col2 ) AS col1, col2 AS col2 FROM tab0
----
-100
10
-2209
47
-9801
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 17 FROM tab1
----
-51
17
-85
17
-91
17

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE NOT NULL <> + + col1 * 65 - - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - + 87 = + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - + 87 = + col1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col0, col0 * col0 AS col0 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT - - ( ( + + ( MIN( + + ( + 11 ) ) ) ) ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - - ( ( + + ( MIN ( + + ( + 11 ) ) ) ) ) AS col2 FROM tab1 AS cor0
----
11

query I rowsort
SELECT + col1 * - col1 + 43 + + + col1 * - + 31 AS col1 FROM tab2 AS cor0
----
-4139
-6523
-8273

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col2 * + col0 + + col1 + col1 + 47 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT + ( - MIN( DISTINCT - + col2 ) ) / - MIN( - ( + - col2 ) ) AS col2 FROM tab1 WHERE NOT col2 <> ( + 87 / - ( - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT + ( - MIN ( DISTINCT - + col2 ) ) / - MIN ( - ( + - col2 ) ) AS col2 FROM tab1 WHERE NOT col2 <> ( + 87 / - ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col1 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT + - col1 + - 96 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT - col1 + 36 * + col2 - col2 + - 92 FROM tab0 AS cor0
----
1472
237
3372

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT + - col0 * + 64 + col1 DIV ( + - 41 ) * - 18 AS col2 FROM tab2 AS cor0
----
-2926
-4078
-4782

skipif mysql # not compatible
query I rowsort label-9095
SELECT + - col0 * + 64 + col1 / ( + - 41 ) * - 18 AS col2 FROM tab2 AS cor0
----
-2926
-4078
-4782

query II rowsort
SELECT ALL col0 AS col0, 34 FROM tab2 cor0 WHERE ( col2 ) < ( NULL )
----

query II rowsort
SELECT + + col2 + - - col1 AS col2, ( col2 ) + - - col2 + - + col1 FROM tab0 AS cor0
----
100
197
128
13
31
-1

query I rowsort
SELECT DISTINCT - + 47 AS col2 FROM tab0 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT DISTINCT CAST( 69 AS SIGNED ) * + col0 + - col1 * 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT CAST ( 69 AS INTEGER ) * + col0 + - col1 * 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL + - SUM( ALL - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL + MIN( + 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + MIN ( + 73 ) FROM tab1
----
73

query I rowsort
SELECT DISTINCT col2 * col0 * - col2 + col0 AS col1 FROM tab0
----
-33120
-8613
-950600

query I rowsort
SELECT DISTINCT col2 + - 82 FROM tab2
----
-24
-42
-59

query II rowsort
SELECT col0 AS col1, - 0 AS col1 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT ALL col1 + + col2 * 6 DIV - 72 FROM tab1
----
1
42
6

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL col1 + + col2 * 6 / - 72 FROM tab1
----
1
42
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + MAX( ALL - + 56 ) - 24 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-9106
SELECT + MAX ( ALL - + 56 ) - 24 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-128

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + - 43 - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT - 96 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT - 96 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - - col2 * - col0 AS col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT + col0 * - ( - col0 ) AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT - 93 - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - 93 - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT ALL - col1 + col0 + - + 29 FROM tab1 AS cor0
----
15
51
8

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN - col2 AND 53
----

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE - col2 - col1 + 19 * + ( - 1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9115
SELECT DISTINCT + + ( - 73 ) AS col1, + CAST( + - CAST( + SUM( + col2 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-73
-223

skipif mysql # not compatible
query II rowsort label-9115
SELECT DISTINCT + + ( - 73 ) AS col1, + CAST ( + - CAST ( + SUM ( + col2 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-73
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * ( + ( - - col2 ) ) * + col2 col0 FROM tab1
----
-107911
-143344
-285696

query I rowsort
SELECT ALL + col0 * - + 15 AS col0 FROM tab1
----
-1275
-1365
-765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col1, col2 * - 13 )
----

query I rowsort
SELECT - col0 + + col0 + - + 2 * + col2 / + 11 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT ALL COUNT( col1 ) AS col2, 53 * - 36 AS col0 FROM tab0 cor0
----
3
-1908

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL COUNT ( col1 ) AS col2, 53 * - 36 AS col0 FROM tab0 cor0
----
3
-1908

query I rowsort
SELECT - + 67 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9123
SELECT + COUNT( * ) AS col2, + 86 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9123
SELECT + COUNT ( * ) AS col2, + 86 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9124
SELECT DISTINCT 17 + - - CAST( - - 71 AS SIGNED ) AS col2, + COUNT( * ) * - - MIN( DISTINCT - - col1 ) AS col1, - 25 FROM tab2
----
88
153
-25

skipif mysql # not compatible
query III rowsort label-9124
SELECT DISTINCT 17 + - - CAST ( - - 71 AS INTEGER ) AS col2, + COUNT ( * ) * - - MIN ( DISTINCT - - col1 ) AS col1, - 25 FROM tab2
----
88
153
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab2
----
41

query I rowsort
SELECT ALL - col1 + + 65 + + col1 AS col2 FROM tab1
----
65
65
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT - col1 DIV + 66 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT - col1 / + 66 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col2 + col2 FROM tab0 AS cor0 WHERE 62 IS NOT NULL
----
198
20
94

query II rowsort
SELECT - col1 AS col0, - 7 FROM tab0 cor0
----
-1
-7
-21
-7
-81
-7

query I rowsort
SELECT - 2 FROM tab1 AS cor0 WHERE ( NOT NULL <> + col1 )
----

query I rowsort
SELECT + col2 + + 52 AS col0 FROM tab1
----
111
120
148

query I rowsort
SELECT col1 + + - col1 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT CAST( - + col1 AS SIGNED ) + - + col2 AS col1 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( - + col1 AS INTEGER ) + - + col2 AS col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + 41 * - 82 * col1 + - col1 + + - 38 * + - col0 + + 71 * - col0 FROM tab0 AS cor0
----
-272898
-6564
-73494

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9137
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IN ( 5 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-9137
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IN ( 5 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 - - col0 col2 FROM tab2
----
-4
14
25

query I rowsort
SELECT 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - + col2 * 25 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9141
SELECT + - CAST( ( col1 ) AS SIGNED ), - col0 AS col2 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-9141
SELECT + - CAST ( ( col1 ) AS INTEGER ), - col0 AS col2 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT - col0 * + - 26 FROM tab2 AS cor0
----
1196
1664
1950

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col1 ) < 32 * + - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 91 * + col2 AS col2 FROM tab2 AS cor0
----
2093
3640
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col0, + ( + col1 ) * + col0 * col2 * + col0 + + + col0 FROM tab0 AS cor0
----
52
1589577
52
856590
52
931588

query I rowsort
SELECT ALL ( col1 ) * - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + + CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-9147
SELECT + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - - col1 * - col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 * col1 * 89 FROM tab1
----
17444
196601
2225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - 90 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - 90 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 40 * col2 AS col1 FROM tab0
----
1880
3960
400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 39 AND 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT MAX( - + 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT MAX ( - + 4 ) FROM tab0
----
-4

query II rowsort
SELECT + col0, + col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9156
SELECT + COUNT( * ) * - - CAST( NULL AS DECIMAL ) + + 70 + - ( + 95 ) / - - ( COUNT( * ) ) * - + 25 + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + COUNT ( * ) * - - CAST ( NULL AS REAL ) + + 70 + - ( + 95 ) / - - ( COUNT ( * ) ) * - + 25 + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 17 - - col0 FROM tab2 AS cor0
----
121
150
86

query II rowsort
SELECT + - col1 + - + col0 AS col2, - col2 * col1 + + + col1 FROM tab2 cor0
----
-141
-3003
-142
-3819
-97
-1122

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT col0 DIV - + col2 + col1 AS col0 FROM tab1 cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-9159
SELECT col0 / - + col2 + col1 AS col0 FROM tab1 cor0
----
14
4
46

query I rowsort
SELECT 59 + - 72 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - MAX( + 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9161
SELECT - MAX ( + 33 ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT DISTINCT col0 * col1 + + 64 FROM tab1 AS cor0 WHERE NOT col2 * - + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + col0 * + 19 BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL MIN( + 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL MIN ( + 70 ) FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0, ( - col2 ) + - + 84 + - col2 AS col0 FROM tab2
----
-46
-130
-64
-164
-75
-200

query I rowsort
SELECT DISTINCT - ( + ( 53 ) ) + col1 FROM tab0
----
-32
-52
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT DISTINCT - ( 62 ) - 85 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - ( 62 ) - 85 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9170
SELECT col1 * + col1 + - col1 + + CAST( - 66 AS SIGNED ) DIV - + col1 AS col1 FROM tab1 AS cor0
----
186
2163
33

skipif mysql # not compatible
query I rowsort label-9170
SELECT col1 * + col1 + - col1 + + CAST ( - 66 AS INTEGER ) / - + col1 AS col1 FROM tab1 AS cor0
----
186
2163
33

query I rowsort
SELECT ALL - 92 * col2 + col0 FROM tab1
----
-5343
-6165
-8781

query I rowsort
SELECT ( col1 ) + + 94 AS col0 FROM tab0
----
115
175
95

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) FROM tab2 WHERE NOT ( col1 + + col1 ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT col2 * col0 + col0 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT DISTINCT 77 DIV + col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT 77 / + col1 AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( 6 ) > col2
----
3

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( 6 ) > col2
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( - 27 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT DISTINCT + 32 DIV 37 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + 32 / 37 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT COUNT( * ) * + SUM( + CAST( col1 AS SIGNED ) ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT COUNT ( * ) * + SUM ( + CAST ( col1 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 35 - col1 * 66 FROM tab1
----
-295
-3067
-889

query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab0 WHERE - 31 >= + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9182
SELECT ALL col0 AS col1 FROM tab0 WHERE - ( col2 ) + - col2 * + CAST( NULL AS DECIMAL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL col0 AS col1 FROM tab0 WHERE - ( col2 ) + - col2 * + CAST ( NULL AS REAL ) IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 72 - - col1 / col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT DISTINCT col2 * + col0 + + col2 DIV + ( - 15 ) FROM tab2
----
1057
2558
4347

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT col2 * + col0 + + col2 / + ( - 15 ) FROM tab2
----
1057
2558
4347

query I rowsort
SELECT DISTINCT - 6 - col1 * col0 FROM tab2
----
-2352
-4934
-5031

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col2 + 94 FROM tab1
----
-2
26
35

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col2 - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL MIN( col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL MIN ( col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT 36 - - 41 AS col2 FROM tab2
----
77
77
77

query I rowsort
SELECT ALL + 93 + + col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / 55 BETWEEN ( - col0 / - col0 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT 4 - 46 IN ( col0 )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 87 * col0 NOT IN ( - 83 - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT MIN( DISTINCT - 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9197
SELECT MIN ( DISTINCT - 19 ) FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9198
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT ( col2 ) * + ( - col1 * 39 ) FROM tab1 AS cor0
----
-11505
-124644
-52416

query I rowsort
SELECT - col1 * + 55 + + col1 AS col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9201
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / col0 NOT IN ( CAST( - col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9201
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / col0 NOT IN ( CAST ( - col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE col2 / + col2 < ( col2 * 92 + ( 99 ) )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE ( 4 - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 60 * col0 + + col2 AS col1 FROM tab1
----
3156
5159
5528

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT - MIN( DISTINCT - col0 ) + COUNT( * ) * - 57 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - MIN ( DISTINCT - col0 ) + COUNT ( * ) * - 57 FROM tab2 cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT + - 94 + - col2 DIV col1 FROM tab0 AS cor0
----
-193
-94

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + - 94 + - col2 / col1 FROM tab0 AS cor0
----
-193
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT - ( COUNT( * ) ) + 32 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - ( COUNT ( * ) ) + 32 FROM tab2 AS cor0
----
29

query I rowsort
SELECT 2 - 15 AS col2 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT 31 * col1 FROM tab0 AS cor0 WHERE NOT ( - 8 * 16 ) >= 39 * + col1 + + col1
----
2511
31
651

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col2 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL + col1 * ( + col0 + CAST( NULL AS SIGNED ) ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + col1 * ( + col0 + CAST ( NULL AS INTEGER ) ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 82 - - col0 FROM tab0 AS cor0
----
169
179
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - 67 * 72 + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-4833

skipif mysql # not compatible
query I rowsort label-9213
SELECT - 67 * 72 + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-4833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT + col2 * - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + col2 * - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT col0 * + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT col0 * + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT 33 + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9217
SELECT 33 + COUNT ( * ) FROM tab1
----
36

query III rowsort
SELECT * FROM tab0 WHERE col1 * + 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT DISTINCT 57 DIV - + col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT 57 / - + col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * + col0 + 76 AS col0 FROM tab0
----
301
7645
9485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT DISTINCT + MAX( 29 ) * - AVG ( ALL col2 ) + + CAST( SUM( DISTINCT col1 ) AS SIGNED ) FROM tab2 WHERE NOT col0 NOT IN ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + MAX ( 29 ) * - AVG ( ALL col2 ) + + CAST ( SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab2 WHERE NOT col0 NOT IN ( 81 )
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 * + col0 + + 87 FROM tab1
----
249783
426362
563195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + col0 IS NOT NULL OR NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 + + 65 FROM tab1 AS cor0
----
-3
-31
6

query I rowsort
SELECT ALL - - 13 + 55 AS col0 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT + SUM( DISTINCT - + col0 ) * 73 col1 FROM tab1 AS cor0
----
-16571

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT DISTINCT + SUM ( DISTINCT - + col0 ) * 73 col1 FROM tab1 AS cor0
----
-16571

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT ALL col1 DIV - 14 AS col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL col1 / - 14 AS col1 FROM tab1 AS cor0
----
-1
-3
0

query I rowsort
SELECT - 10 + - 35 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 71160abf09589695379a70558726f0ba

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT MIN( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 77 + 59 * 89 col0 FROM tab2 AS cor0
----
23
5328
40
5328
58
5328

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 87 / col2 ) NOT IN ( + 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT ALL + CAST( - 87 AS SIGNED ) FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + CAST ( - 87 AS INTEGER ) FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT - col0 / 70 - col2 / - col2 FROM tab0 cor0 WHERE NOT ( - 41 ) * 6 NOT BETWEEN + CAST( NULL AS SIGNED ) * ( - ( ( ( - col2 ) ) ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9235
SELECT - col0 / 70 - col2 / - col2 FROM tab0 cor0 WHERE NOT ( - 41 ) * 6 NOT BETWEEN + CAST ( NULL AS INTEGER ) * ( - ( ( ( - col2 ) ) ) ) AND NULL
----

query II rowsort
SELECT 54 AS col0, + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
54
-8
54
13
54
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT SUM( ALL + col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9237
SELECT SUM ( ALL + col2 ) col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * col1 IS NOT NULL
----

query II rowsort
SELECT - - col2 AS col2, - col1 FROM tab2 cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT DISTINCT 17 * col2 * - - CAST( NULL AS SIGNED ) / + 86 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT 17 * col2 * - - CAST ( NULL AS INTEGER ) / + 86 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - 10 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + COUNT( ALL + 69 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + COUNT ( ALL + 69 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 30 - col0 * - col1 FROM tab1 WHERE NOT col0 < NULL
----

query I rowsort
SELECT DISTINCT 3 + col0 - + ( 35 ) AS col2 FROM tab1
----
19
53
59

query I rowsort
SELECT + col2 * 63 * + + col1 AS col1 FROM tab2
----
194040
244818
73899

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL - - 64 * + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - - 64 * + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT ( - 92 ) FROM tab1 AS cor0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 WHERE NOT ( + ( + col1 ) * - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL - MIN( ALL - - 86 ) AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - MIN ( ALL - - 86 ) AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT - 5 AS col0 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9252
SELECT + CAST( NULL AS DECIMAL ) * + ( + col0 ) * CAST( - 84 AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT + CAST ( NULL AS REAL ) * + ( + col0 ) * CAST ( - 84 AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + col1 + - col0 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9254
SELECT * FROM tab2 WHERE ( - col1 * + CAST( - ( col1 ) AS SIGNED ) * - col0 - col2 - col1 ) <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9254
SELECT * FROM tab2 WHERE ( - col1 * + CAST ( - ( col1 ) AS INTEGER ) * - col0 - col2 - col1 ) <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT + 15 + - - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 15 + - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT ( + 52 ) + + SUM( ALL - 39 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT ( + 52 ) + + SUM ( ALL - 39 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 / + + 9 * col0 col0 FROM tab2 AS cor0 WHERE NOT ( 35 ) <> 57
----

query I rowsort
SELECT ALL - + 27 + + + col0 FROM tab0 AS cor0
----
-12
60
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9259
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL + col1 * ( + col2 ) - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + col1 * ( + col2 ) - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( 24 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + - col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT + ( + col0 ) - + 8 BETWEEN ( 69 ) AND NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + col2 * - col1 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT + 72 - col0 AS col1 FROM tab0
----
-15
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + MAX( DISTINCT - col0 ) - 32 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9267
SELECT + MAX ( DISTINCT - col0 ) - 32 FROM tab0
----
-47

query I rowsort
SELECT 53 + + - col2 + col0 + - 84 FROM tab0
----
-33
-63
46

query II rowsort
SELECT DISTINCT 90, col0 FROM tab0 AS cor0
----
90
15
90
87
90
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT DISTINCT 2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT 2 / + col0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + + MAX( ALL - 5 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-5

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + + MAX ( ALL - 5 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL SUM( DISTINCT + ( col0 ) ) * - + 15 FROM tab1
----
-3405

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL SUM ( DISTINCT + ( col0 ) ) * - + 15 FROM tab1
----
-3405

query I rowsort
SELECT ALL + col1 * - 20 + - - 32 * + + col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - 71 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( - - col1 ) AND col0
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( + col2 ) NOT BETWEEN NULL AND ( 31 / - col0 / + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + col1 ) col2, - 34 AS col0 FROM tab1 AS cor0
----
-14
-34
-47
-34
-5
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - COUNT( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9278
SELECT ALL - COUNT ( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 49 AS col2 FROM tab2 cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT + CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9280
SELECT + CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9281
SELECT ALL - + MIN( DISTINCT + col2 ), - 21 * - CAST( 56 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
1176

skipif mysql # not compatible
query II rowsort label-9281
SELECT ALL - + MIN ( DISTINCT + col2 ), - 21 * - CAST ( 56 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
1176

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - COUNT( ALL - + 37 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9283
SELECT - COUNT ( ALL - + 37 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT + col0 + - CAST( 14 AS SIGNED ) AS col0 FROM tab2
----
32
50
61

skipif mysql # not compatible
query I rowsort label-9284
SELECT + col0 + - CAST ( 14 AS INTEGER ) AS col0 FROM tab2
----
32
50
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - MIN( ALL - col2 ) AS col1 FROM tab2 WHERE - col2 BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab2 WHERE - col2 BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT - 29 / 88 AS col2 FROM tab0 AS cor0 WHERE NULL > 53
----

query I rowsort
SELECT ALL + + col1 + + col2 * col2 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 29 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 29 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, + col2 + + col1 col1 FROM tab0 cor0
----
-10
31
-47
128
-99
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 WHERE + - col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9290
SELECT + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 WHERE + - col2 >= NULL
----

query I rowsort
SELECT - 8 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT + - COUNT( * ) * ( - + 9 ) - + - COUNT( * ) * - 84 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-9292
SELECT + - COUNT ( * ) * ( - + 9 ) - + - COUNT ( * ) * - 84 FROM tab0 AS cor0
----
-225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 / + col0 + + col1 * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 / col2 BETWEEN - - col1 * col0 AND + col1 + - col0
----

query I rowsort
SELECT ALL + + 6 * - + 73 + 75 AS col0 FROM tab1 AS cor0
----
-363
-363
-363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 - - col0 + + col2 + + 83 col2 FROM tab2 AS cor0
----
183
218
247

query I rowsort
SELECT ALL - 96 + + col1 FROM tab1 AS cor0
----
-49
-82
-91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9298
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + - col1 > + + col2 * - col0 - - CAST( - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9298
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + - col1 > + + col2 * - col0 - - CAST ( - col1 AS REAL )
----

query I rowsort
SELECT + - col0 * 41 FROM tab2 cor0 WHERE col2 * + - 56 + 0 IS NOT NULL
----
-1886
-2624
-3075

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 + + col0 col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT + ( ( col1 ) ) * - col0 + - 49 * + - col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 - - + ( + 61 ) AS col2 FROM tab2 AS cor0
----
-14
-3
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT 23 DIV col2 + - col1 FROM tab0 AS cor0
----
-1
-19
-81

skipif mysql # not compatible
query I rowsort label-9304
SELECT 23 / col2 + - col1 FROM tab0 AS cor0
----
-1
-19
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9305
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL = + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9307
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV - col1 AS col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT CAST ( col0 AS INTEGER ) / - col1 AS col0 FROM tab1
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9308
SELECT ALL * FROM tab0 WHERE NOT + - col2 * CAST( - 30 AS SIGNED ) + - 89 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9308
SELECT ALL * FROM tab0 WHERE NOT + - col2 * CAST ( - 30 AS INTEGER ) + - 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT + COUNT( * ) AS col0, + 75 + - 26 FROM tab2 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-9310
SELECT + COUNT ( * ) AS col0, + 75 + - 26 FROM tab2 AS cor0
----
3
49

query I rowsort
SELECT ALL + - ( - - 94 ) + + + col1 + col2 FROM tab1 AS cor0
----
-30
16
21

query I rowsort
SELECT ALL + + ( + 81 ) * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9313
SELECT - col0 * col0 + - col2 - - col0 AS col0, 93 * - - col2 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-2646
NULL
-7199
NULL
-8258
NULL

skipif mysql # not compatible
query II rowsort label-9313
SELECT - col0 * col0 + - col2 - - col0 AS col0, 93 * - - col2 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-2646
NULL
-7199
NULL
-8258
NULL

query I rowsort
SELECT col0 + - + 37 * - col0 AS col2 FROM tab1 AS cor0
----
1938
3230
3458

query I rowsort
SELECT DISTINCT - + 13 AS col2 FROM tab2 cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL COUNT( ALL 14 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL COUNT ( ALL 14 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - col1 - - + 51 NOT IN ( - col0, col0 - - col2, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + col1 col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL col2 + - col0 + + 7 + 78 AS col1 FROM tab0
----
117
8
87

query I rowsort
SELECT DISTINCT 26 + - + 90 + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 60 + - - col2 FROM tab1
----
-1
36
8

query I rowsort
SELECT + col0 + - 42 AS col1 FROM tab2
----
22
33
4

query I rowsort
SELECT ALL - col1 + - 41 FROM tab2
----
-108
-118
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL 9 + - 37 + 87 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 9 + - 37 + 87 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query II rowsort
SELECT + col2 AS col1, + 82 FROM tab1
----
59
82
68
82
96
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT - + MIN( DISTINCT + col2 ) * - + COUNT( * ) - + 22 AS col2 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - + MIN ( DISTINCT + col2 ) * - + COUNT ( * ) - + 22 AS col2 FROM tab1 AS cor0
----
155

query I rowsort
SELECT ALL + col0 + + 38 AS col0 FROM tab1 AS cor0
----
123
129
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL - 62 * - + COUNT( * ) + - - 12 - + + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - 62 * - + COUNT ( * ) + - - 12 - + + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
201

query I rowsort
SELECT DISTINCT + 75 * col1 AS col0 FROM tab1
----
1050
3525
375

query I rowsort
SELECT ALL 28 * - 42 * - col1 AS col0 FROM tab2
----
59976
78792
90552

query II rowsort
SELECT ALL ( - + 49 ) AS col2, col0 AS col2 FROM tab0
----
-49
15
-49
87
-49
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( * ) * + + MIN( ALL - col1 ) AS col2 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-9333
SELECT COUNT ( * ) * + + MIN ( ALL - col1 ) AS col2 FROM tab1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL + COUNT( ALL + ( - col1 ) ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + COUNT ( ALL + ( - col1 ) ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT 94 * - COUNT( * ) * + MIN( DISTINCT col0 ) AS col1 FROM tab0
----
-4230

skipif mysql # not compatible
query I rowsort label-9335
SELECT 94 * - COUNT ( * ) * + MIN ( DISTINCT col0 ) AS col1 FROM tab0
----
-4230

query I rowsort
SELECT 12 * - col1 AS col1 FROM tab1
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT ( + + COUNT( * ) ) AS col2, + 7 AS col0 FROM tab2
----
3
7

skipif mysql # not compatible
query II rowsort label-9337
SELECT ( + + COUNT ( * ) ) AS col2, + 7 AS col0 FROM tab2
----
3
7

query I rowsort
SELECT 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT + + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT 19 * - col1 AS col0 FROM tab1
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT MAX( 97 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT MAX ( 97 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL + col2 * - col0 + + + 27 AS col1 FROM tab0
----
-678
-843
-9576

query I rowsort
SELECT ALL + + 31 + - col0 FROM tab2 AS cor0
----
-15
-33
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT - CAST( 25 AS SIGNED ) * + - col2 - + col2 FROM tab1 AS cor0 WHERE NOT 52 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - CAST ( 25 AS INTEGER ) * + - col2 - + col2 FROM tab1 AS cor0 WHERE NOT 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 85 * col1 <= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * - 2 + + col2, - col1 col2 FROM tab1 AS cor0
----
198
-14
229
-5
250
-47

query I rowsort
SELECT ALL + - 97 * col2 AS col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT + 82 * + COUNT( * ) FROM tab0 cor0
----
246

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT + 82 * + COUNT ( * ) FROM tab0 cor0
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT 89 DIV - MIN( ALL - col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT 89 / - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT COUNT( * ) * - 66 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) * - 66 FROM tab0 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT DISTINCT + col1 DIV - - col1 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9352
SELECT DISTINCT + col1 / - - col1 col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - 54 + - 64 + - COUNT( * ) + - MIN( + col2 ) AS col0 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9353
SELECT - 54 + - 64 + - COUNT ( * ) + - MIN ( + col2 ) AS col0 FROM tab1
----
-180

query II rowsort
SELECT DISTINCT 1, 58 AS col2 FROM tab0
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT COUNT( * ) + 0 + + 69 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9355
SELECT COUNT ( * ) + 0 + + 69 FROM tab1
----
72

query I rowsort
SELECT DISTINCT + col2 * + 21 + + col0 AS col2 FROM tab2
----
1293
529
904

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT 26 * - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9357
SELECT 26 * - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
-75

query III rowsort
SELECT * FROM tab1 WHERE + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT DISTINCT + col1 DIV + + 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + col1 / + + 78 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9361
SELECT COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT DISTINCT 46 + + - 7 DIV 95 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT 46 + + - 7 / 95 FROM tab0 AS cor0
----
46

query I rowsort
SELECT + ( - 81 ) AS col0 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9364
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col0 * - + 19 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + + 96 * - col1 * col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 43 + - col1 * + col1 AS col1 FROM tab1 cor0
----
-2252
-239
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 * + 81 col0 FROM tab1 AS cor0
----
6723
6723
6723

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * - - col1 col1 FROM tab0
----
10
210
810

query II rowsort
SELECT col2 AS col1, - col2 - - col2 AS col0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT - 91 AS col1, COUNT( * ) FROM tab2
----
-91
3

skipif mysql # not compatible
query II rowsort label-9372
SELECT - 91 AS col1, COUNT ( * ) FROM tab2
----
-91
3

query I rowsort
SELECT DISTINCT - col1 + col0 * - 87 FROM tab2 WHERE - 77 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab1, tab0 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT 81 * COUNT( * ) AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9375
SELECT 81 * COUNT ( * ) AS col2 FROM tab2
----
243

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 WHERE + - col1 + + + col1 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT SUM( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT SUM ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9378
SELECT ALL + + 63 DIV + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + + 63 / + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) >= NULL
----

query I rowsort
SELECT ALL + 12 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 - col2 IS NOT NULL
----

query I rowsort
SELECT + + 83 + - 50 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + COUNT( * ) + + SUM( col1 ) * MIN( DISTINCT + - ( + 45 ) ) AS col0 FROM tab1 AS cor0
----
-2967

skipif mysql # not compatible
query I rowsort label-9383
SELECT + COUNT ( * ) + + SUM ( col1 ) * MIN ( DISTINCT + - ( + 45 ) ) AS col0 FROM tab1 AS cor0
----
-2967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 50 ) AND + col2 * + col0 * + + 65
----

query I rowsort
SELECT - col2 + + - col0 + - 40 AS col2 FROM tab1 AS cor0
----
-184
-187
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT DISTINCT COUNT( * ) * - 61 AS col0, 86 AS col2 FROM tab2 AS cor0
----
-183
86

skipif mysql # not compatible
query II rowsort label-9386
SELECT DISTINCT COUNT ( * ) * - 61 AS col0, 86 AS col2 FROM tab2 AS cor0
----
-183
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 <= + ( - col1 ) - - - 93 + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - - 77 AS col0 FROM tab0 cor0
----
124
176
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT DISTINCT + - COUNT( * ) DIV + 19 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + - COUNT ( * ) / + 19 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + COUNT( * ) * - + 90 col0 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT + COUNT ( * ) * - + 90 col0 FROM tab1 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT col2 DIV + 75 AS col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT col2 / + 75 AS col2 FROM tab0 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT ALL col1 DIV - 44 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL col1 / - 44 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 17 + - + col1 FROM tab0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL SUM( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL SUM ( ALL - col2 ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + 86 + + 73 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - COUNT( * ) - 76 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-9396
SELECT - COUNT ( * ) - 76 FROM tab1
----
-79

query I rowsort
SELECT col0 - - 70 AS col2 FROM tab2
----
116
134
145

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - 88 - - col2
----

query I rowsort
SELECT ALL 75 * + col2 - + col1 * 47 + - 52 AS col1 FROM tab2 AS cor0
----
-671
-724
1149

query I rowsort
SELECT DISTINCT - - ( - 60 ) - + + 43 AS col0 FROM tab1 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - COUNT( * ) + 67 - - 78 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
136

skipif mysql # not compatible
query I rowsort label-9401
SELECT - COUNT ( * ) + 67 - - 78 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT - 21 DIV + col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 21 / + col0 AS col1 FROM tab0
----
-1
0
0

query II rowsort
SELECT DISTINCT + 3 AS col0, ( col2 ) AS col2 FROM tab2 AS cor0
----
3
23
3
40
3
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT - CAST( + 33 AS SIGNED ) FROM tab0 cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-9404
SELECT - CAST ( + 33 AS INTEGER ) FROM tab0 cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 7, - col2 col2 FROM tab0 AS cor0
----
-7
-10
-7
-47
-7
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT ALL col1 * + + 72 + col0 DIV + - col2 + + 97 AS col2 FROM tab2 AS cor0
----
3767
4920
5640

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL col1 * + + 72 + col0 / + - col2 + + 97 AS col2 FROM tab2 AS cor0
----
3767
4920
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - MAX( DISTINCT - col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9407
SELECT - MAX ( DISTINCT - col1 ) col0 FROM tab2
----
51

query I rowsort
SELECT + 0 * - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - - ( + MAX( + 23 ) ) col2 FROM tab1 AS cor0 WHERE NOT 46 / 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9409
SELECT - - ( + MAX ( + 23 ) ) col2 FROM tab1 AS cor0 WHERE NOT 46 / 43 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT COUNT( DISTINCT + + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9410
SELECT COUNT ( DISTINCT + + col0 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL - col2 + - + col0 + - + 68 AS col1, - col0 AS col0 FROM tab0
----
-130
-15
-165
-87
-264
-97

query I rowsort
SELECT ALL + + 93 * - + 45 * + - ( + ( col2 ) ) + 52 + - col1 * + - 2 + - 27 FROM tab1 cor0
----
246950
284699
401813

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT + 60 * 33 + COUNT( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
1983

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT + 60 * 33 + COUNT ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
1983

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 13 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT DISTINCT - col1 DIV - col1 col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9416
SELECT DISTINCT - col1 / - col1 col0 FROM tab2 AS cor0
----
1

query II rowsort
SELECT ALL col1 AS col1, + col1 + - col0 FROM tab2 AS cor0
----
51
5
67
-8
77
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT + col2 / - + col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT + col2 / - + col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 + ( + - col0 ) FROM tab2
----
-3
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 65 ) + + 82 + - 38 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT - 73 + - col0 FROM tab1
----
-124
-158
-164

query I rowsort
SELECT - col1 + + - 62 + + col1 * + col0 FROM tab1
----
358
4168
638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 20 col0 FROM tab2
----
-71
-87
-97

query I rowsort
SELECT ALL 59 + + col1 FROM tab0
----
140
60
80

query I rowsort
SELECT ALL + col0 - + col1 - col0 * + 58 AS col2 FROM tab1 AS cor0
----
-2921
-4850
-5234

query I rowsort
SELECT DISTINCT + 82 - - col1 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT DISTINCT - - col0 - 62 FROM tab0 AS cor0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 41 * + 97 AS col0 FROM tab1
----
-3977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT DISTINCT col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT DISTINCT + 2 DIV - + col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + 2 / - + col1 FROM tab0 AS cor0
----
-2
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - 42 * - COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9435
SELECT - 42 * - COUNT ( * ) FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + COUNT( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 94 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 94 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT - + CAST( - 84 AS SIGNED ) col2 FROM tab0 cor0
----
84
84
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9437
SELECT - + CAST ( - 84 AS INTEGER ) col2 FROM tab0 cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT ALL - col0 DIV - - 55 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - col0 / - - 55 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT MIN( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT MIN ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT - ( - ( + ( + + CAST( NULL AS SIGNED ) ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT - ( - ( + ( + + CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL + SUM( + 82 ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + SUM ( + 82 ) AS col0 FROM tab2
----
246

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 4 <= + col0 - - - 25 + col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 - - 74 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 - - 74 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col0 * + col0 + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9445
SELECT ALL col1 DIV - col0 AS col1, - 63 + - 46 FROM tab1
----
0
-109
0
-109
0
-109

skipif mysql # not compatible
query II rowsort label-9445
SELECT ALL col1 / - col0 AS col1, - 63 + - 46 FROM tab1
----
0
-109
0
-109
0
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9446
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, MIN( + - ( col1 ) ) FROM tab1 AS cor0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-9446
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, MIN ( + - ( col1 ) ) FROM tab1 AS cor0
----
NULL
-47

query II rowsort
SELECT DISTINCT col1 AS col1, col0 * - col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - COUNT( * ) * 34 AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9448
SELECT - COUNT ( * ) * 34 AS col1 FROM tab0 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT 46 * + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
138

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT 46 * + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
138

query II rowsort
SELECT - - 96, 63 AS col2 FROM tab2 AS cor0
----
96
63
96
63
96
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9451
SELECT ALL col2 AS col1, - CAST( - col0 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
23
97
40
141
58
142

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL col2 AS col1, - CAST ( - col0 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
23
97
40
141
58
142

query II rowsort
SELECT + + 66, col1 FROM tab1 AS cor0
----
66
14
66
47
66
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL 36 + + col1 DIV 32 FROM tab2
----
37
38
38

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 36 + + col1 / 32 FROM tab2
----
37
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT COUNT( * ) * + ( - - 78 ) + - - MAX( DISTINCT - col2 ) FROM tab2
----
211

skipif mysql # not compatible
query I rowsort label-9454
SELECT COUNT ( * ) * + ( - - 78 ) + - - MAX ( DISTINCT - col2 ) FROM tab2
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT COUNT( - col1 ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9455
SELECT COUNT ( - col1 ) + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT CAST( NULL AS SIGNED ) + + MIN( DISTINCT + - 27 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + - 27 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 77 + 42 * - col2 * + 14 FROM tab1
----
-34615
-39907
-56371

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT COUNT( - 2 ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9458
SELECT COUNT ( - 2 ) FROM tab0, tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col0 + + + col2 + - 75 * + - 78 * - col1 AS col2, 50 * - 87 + + col1 AS col1 FROM tab2 AS cor0
----
-298281
-4299
-391817
-4283
-450346
-4273

query I rowsort
SELECT col2 + + + col2 + + + col0 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT DISTINCT ( - - ( 80 ) ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - ( + MAX( + CAST( NULL AS SIGNED ) ) ) - - 89 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) - - 89 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= 95 / col2
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= 95 / col2
----
0

query I rowsort
SELECT ALL - 3 * - + col2 * - col0 AS col2 FROM tab0
----
-2115
-2610
-28809

query I rowsort
SELECT + 90 * - col0 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT - 55 * - col0 - + - 88 AS col2 FROM tab1
----
2893
4763
5093

query I rowsort
SELECT + 75 - + - col2 FROM tab0
----
122
174
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT 46 - CAST( col1 AS SIGNED ) + + col2 * - col2 FROM tab0
----
-2244
-75
-9756

skipif mysql # not compatible
query I rowsort label-9468
SELECT 46 - CAST ( col1 AS INTEGER ) + + col2 * - col2 FROM tab0
----
-2244
-75
-9756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL CAST( NULL AS SIGNED ) + + + AVG ( + + 47 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL CAST ( NULL AS INTEGER ) + + + AVG ( + + 47 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col2 + + 92 FROM tab1 AS cor0
----
151
160
188

query I rowsort
SELECT DISTINCT - 6 * col0 AS col0 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT + col2 * 63 FROM tab1 WHERE NOT + ( - col0 ) NOT BETWEEN - col2 AND - col0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 0 * - col1 * - - 50 * + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + ( 95 ) > ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-9475
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + ( 95 ) > ( col0 )
----
-3

query I rowsort
SELECT ( + - 90 ) FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 9 * 19 * + - col1 * col1 AS col0 FROM tab1
----
-33516
-377739
-4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT ALL - col2 DIV - - col1 * + col2 * + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - col2 / - - col1 * + col2 * + 75 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 BETWEEN col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT 60 * COUNT( * ) AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT 60 * COUNT ( * ) AS col2 FROM tab0
----
180

query II rowsort
SELECT - 26, + col1 AS col0 FROM tab1 WHERE NOT + col2 > - + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL NOT BETWEEN - col0 / + col2 + + 93 - + 67 / + col2 AND + 58 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT col0 FROM tab1 WHERE col1 * + col1 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9487
SELECT ALL * FROM tab0 WHERE NULL <= + - CAST( NULL AS DECIMAL ) + - + 49
----

skipif mysql # not compatible
query III rowsort label-9487
SELECT ALL * FROM tab0 WHERE NULL <= + - CAST ( NULL AS REAL ) + - + 49
----

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + + col2, - 30 * + ( + col0 ) + 65 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND col1
----
59
-2485
68
-2665
96
-1465

query I rowsort
SELECT ALL - col2 + 9 + + col0 AS col0 FROM tab0 AS cor0 WHERE + ( 33 ) IS NOT NULL
----
-23
7
86

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + COUNT( * ) + + - 15 AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9493
SELECT + COUNT ( * ) + + - 15 AS col1 FROM tab0 AS cor0
----
-12

query II rowsort
SELECT + col2 + + 80 AS col1, + ( + + col0 ) + + col1 - + 39 FROM tab0
----
127
57
179
59
90
69

query III rowsort
SELECT * FROM tab1 WHERE - 42 - + col0 IS NULL
----

query I rowsort
SELECT 8 + - + 88 FROM tab0
----
-80
-80
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9497
SELECT ALL - COUNT( * ) + + ( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - COUNT ( * ) + + ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( col1 ) + + - 14 < + - col1 / - - col2 - + ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT - col1 * - 62 BETWEEN 11 AND NULL OR NULL <> + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT - - 28 * COUNT( * ) * COUNT( * ) DIV + - 24 AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9500
SELECT - - 28 * COUNT ( * ) * COUNT ( * ) / + - 24 AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9501
SELECT - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9501
SELECT - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 / + 90 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - 62 + + col0 * - + ( - col2 )
----

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT + 96 DIV - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 96 / - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT - - col0 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT - - col0 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9506
SELECT CAST( NULL AS SIGNED ), col2 col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9506
SELECT CAST ( NULL AS INTEGER ), col2 col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - SUM( + + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9507
SELECT - SUM ( + + col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - - 21 AS col2 FROM tab2 cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
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-9509
SELECT col1 / + + col1 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT + col1 DIV 18 FROM tab2 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + col1 / 18 FROM tab2 cor0
----
2
3
4

query II rowsort
SELECT ( + + col2 ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT ALL 62 * - 21 + 13 DIV + COUNT( * ) FROM tab0
----
-1298

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 62 * - 21 + 13 / + COUNT ( * ) FROM tab0
----
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + 32 + MIN( - 37 ) - + + 35 FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9513
SELECT + 32 + MIN ( - 37 ) - + + 35 FROM tab0 cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 73 + - col0 AS col2 FROM tab1 AS cor0
----
59
-12
68
-18
96
22

onlyif mysql # DIV for integer division: 
query II rowsort label-9515
SELECT ALL - + col2 * - col1 * col1 * - 0 DIV col2 + - - 90 AS col0, + col2 - - ( + + col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
90
3540
90
4692
90
9312

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL - + col2 * - col1 * col1 * - 0 / col2 + - - 90 AS col0, + col2 - - ( + + col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
90
3540
90
4692
90
9312

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab2 AS cor0 WHERE - 43 IS NOT NULL
----
30

query I rowsort
SELECT DISTINCT + + 68 - 3 FROM tab2 cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - - ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE col2 + - + 11 * - - 60 / ( + + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - - ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE col2 + - + 11 * - - 60 / ( + + col0 ) IS NULL
----
0

query I rowsort
SELECT - - col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT 97 - + - col2 + 47 - + CAST( NULL AS SIGNED ) + + + 22 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9521
SELECT 97 - + - col2 + 47 - + CAST ( NULL AS INTEGER ) + + + 22 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT col2 * - CAST( 99 AS SIGNED ) AS col2 FROM tab1
----
-5841
-6732
-9504

skipif mysql # not compatible
query I rowsort label-9522
SELECT col2 * - CAST ( 99 AS INTEGER ) AS col2 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + MAX( - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9523
SELECT + MAX ( - col2 ) AS col1 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE NOT - - 46 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9526
SELECT * FROM tab0 WHERE NOT - col2 + + CAST( NULL AS DECIMAL ) / - col1 + + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9526
SELECT * FROM tab0 WHERE NOT - col2 + + CAST ( NULL AS REAL ) / - col1 + + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 4, col1 FROM tab0
----
4
1
4
21
4
81

query I rowsort
SELECT DISTINCT ( + 73 ) AS col2 FROM tab0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 44 col1, + ( col0 ) AS col1 FROM tab0 AS cor0
----
-44
15
-44
87
-44
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND + 92
----

query III rowsort
SELECT * FROM tab2 WHERE col0 IS NOT NULL AND NOT 7 NOT BETWEEN 30 * 35 + 73 * - col1 AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col0 / + - 19 + - - col0 + 17 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 7 * + col0 * 38 FROM tab2 cor0
----
12236
17024
19950

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - ( + 54 ) ) BETWEEN 42 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 18 * - col0 AND + col0 * - - col1
----

query II rowsort
SELECT ALL - col2 + - col1, - 52 + - - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + - ( - col1 ) AS col1, - col1 FROM tab0 cor0
----
1
-1
21
-21
81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT col2 DIV + - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9541
SELECT col2 / + - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT DISTINCT 35 * + + col1 FROM tab0
----
2835
35
735

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 + - 20 > NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col1 + col1 * - 80 FROM tab0
----
-1659
-6399
-79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - - 53 / col2 IS NULL
----

query I rowsort
SELECT ALL - col0 + col1 * - + ( - + 62 ) AS col2 FROM tab0
----
-35
1215
5007

onlyif mysql # aggregate syntax: 
query II rowsort label-9548
SELECT - COUNT( ALL col1 ) * COUNT( * ) + - 33, MAX( DISTINCT + col0 ) col0 FROM tab0
----
-42
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9548
SELECT - COUNT ( ALL col1 ) * COUNT ( * ) + - 33, MAX ( DISTINCT + col0 ) col0 FROM tab0
----
-42
97

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE NULL >= - + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 - 15 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9551
SELECT * FROM tab1 AS cor0 WHERE col2 * - CAST( - - 21 AS SIGNED ) BETWEEN NULL AND 23
----

skipif mysql # not compatible
query III rowsort label-9551
SELECT * FROM tab1 AS cor0 WHERE col2 * - CAST ( - - 21 AS INTEGER ) BETWEEN NULL AND 23
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT DISTINCT + 33 col1, - MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
33
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9552
SELECT DISTINCT + 33 col1, - MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
33
96

query I rowsort
SELECT col1 * + col0 * 15 FROM tab1
----
10710
6375
64155

query I rowsort
SELECT col1 + + + 63 FROM tab1 AS cor0
----
110
68
77

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 78 IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - ( col1 ) AS col2 FROM tab2 cor0
----
-2624
-4547
-5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + 66 col1 FROM tab1 AS cor0
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - MAX( ALL + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-9558
SELECT - MAX ( ALL + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
59

query I rowsort
SELECT - col0 * + 43 AS col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + SUM( ALL - 79 ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + SUM ( ALL - 79 ) AS col1 FROM tab1
----
-237

query I rowsort
SELECT 7 * + col2 * + - col2 FROM tab2
----
-11200
-23548
-3703

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9562
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - col0 AS SIGNED ) <> ( - - 22 )
----

skipif mysql # not compatible
query III rowsort label-9562
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - col0 AS INTEGER ) <> ( - - 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 8 * col1 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT + MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9565
SELECT CAST( col2 AS DECIMAL ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9565
SELECT CAST ( col2 AS REAL ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT CAST( - 41 AS SIGNED ) AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT CAST ( - 41 AS INTEGER ) AS col2 FROM tab1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9568
SELECT DISTINCT AVG ( - col1 ) + ( ( - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT AVG ( - col1 ) + ( ( - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - 56 IN ( + 48, col1 / - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - 56 IN ( + 48, col1 / - col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 45 FROM tab0 AS cor0
----
-3915
-4365
-675

query I rowsort
SELECT ( - 62 ) + - 82 FROM tab1 cor0
----
-144
-144
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9573
SELECT + - col0 AS col2, + col1 + + col2 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-9573
SELECT + - col0 AS col2, + col1 + + col2 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query II rowsort
SELECT - col2 AS col0, - 50 FROM tab1 AS cor0
----
-59
-50
-68
-50
-96
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - COUNT( ALL - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - COUNT ( ALL - col0 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + - col1 * + 40 col1 FROM tab1
----
-184240
-19600
-54880

query II rowsort
SELECT - 16 * - col0 * col2, 76 + col2 + - 8 AS col2 FROM tab0
----
11280
115
13920
78
153648
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9578
SELECT * FROM tab1 WHERE ( - 40 ) / + col0 * + 71 * + - col2 / 77 * 83 * - col1 * - CAST( NULL AS SIGNED ) + + + col0 * + 45 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9578
SELECT * FROM tab1 WHERE ( - 40 ) / + col0 * + 71 * + - col2 / 77 * 83 * - col1 * - CAST ( NULL AS INTEGER ) + + + col0 * + 45 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 65 + - 52 col0, ( + col1 ) AS col2 FROM tab1
----
13
14
13
47
13
5

query II rowsort
SELECT ALL - col2 + - 34, col2 FROM tab0
----
-133
99
-44
10
-81
47

query II rowsort
SELECT DISTINCT - 41 AS col2, - col2 AS col2 FROM tab1
----
-41
-59
-41
-68
-41
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - MIN( ALL - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9582
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT + ( col0 ) + col2 + - + col0 * + CAST( + - ( + ( + col0 ) ) AS SIGNED ) * col1 AS col1 FROM tab1
----
36269
36561
389366

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + ( col0 ) + col2 + - + col0 * + CAST ( + - ( + ( + col0 ) ) AS INTEGER ) * col1 AS col1 FROM tab1
----
36269
36561
389366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 - - col0 + - col2 col0 FROM tab0 AS cor0
----
-27
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col2 * - col1 + + + col1, - col0 AS col2 FROM tab1 AS cor0
----
1358
-51
300
-85
3243
-91

query I rowsort
SELECT ALL + 28 FROM tab1 AS cor0 WHERE NOT ( NULL = + + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 36 * ( + col0 ) AS col2 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT - col1 * - 25 FROM tab0
----
2025
25
525

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - - col0 + - col0
----

query I rowsort
SELECT DISTINCT ( + 75 ) AS col1 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 30 - + ( + - col0 ) - - + col0 + col1 < + col1 * + col0
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT + SUM( ALL - col1 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + SUM ( ALL - col1 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT DISTINCT - ( col2 ) DIV + 80 * + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - ( col2 ) / + 80 * + col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 14 / + 82 IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL + COUNT( CAST( + - col1 AS SIGNED ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9598
SELECT ALL + COUNT ( CAST ( + - col1 AS INTEGER ) ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + + 59 FROM tab0 WHERE col1 * col1 * ( + col2 ) + + 10 * + 90 IS NOT NULL
----
59

query I rowsort
SELECT 73 * - col0 AS col2 FROM tab0
----
-1095
-6351
-7081

query I rowsort
SELECT 3 + col1 * + 10 AS col0 FROM tab2 AS cor0
----
513
673
773

query III rowsort
SELECT * FROM tab0 WHERE + + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT 50 + col2 DIV + col0 + + 34 FROM tab1
----
84
84
85

skipif mysql # not compatible
query I rowsort label-9603
SELECT 50 + col2 / + col0 + + 34 FROM tab1
----
84
84
85

query I rowsort
SELECT - col2 + - 25 * - col0 FROM tab2
----
1127
1560
1817

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9605
SELECT col1 * - CAST( NULL AS DECIMAL ) + 8 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT col1 * - CAST ( NULL AS REAL ) + 8 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 44 * col2 * col0 FROM tab0
----
-31020
-38280
-422532

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - - 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - - 50 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + col2 col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + col2 - + + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + - 90 * 52 + - + col0 + ( - - col2 ) FROM tab2 AS cor0
----
-4697
-4703
-4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT - COUNT( * ) DIV 18 DIV 87 - + 76 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - COUNT ( * ) / 18 / 87 - + 76 FROM tab2 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL col0 - + - CAST( NULL AS SIGNED ) + - col1 * col2 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL col0 - + - CAST ( NULL AS INTEGER ) + - col1 * col2 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - - - col2 + + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT col0 - + 72 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT col0 - + 72 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 21 * + + col2 AS col1, col0 AS col0 FROM tab0
----
2079
97
210
87
987
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + - col0 * - + ( 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9617
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + MIN( + - 26 ) * + COUNT( * ) AS col0 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-9620
SELECT + MIN ( + - 26 ) * + COUNT ( * ) AS col0 FROM tab1
----
-78

query I rowsort
SELECT ALL 66 * col2 AS col1 FROM tab1
----
3894
4488
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 40 ) * + 28 col0 FROM tab2
----
1120
1120
1120

query I rowsort
SELECT ALL 32 * - 96 FROM tab0
----
-3072
-3072
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 28 - + 78 FROM tab2 WHERE - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 95 >= - - col2 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT 66 DIV COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT 66 / COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( + col0 ) * + - 19 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( + col0 ) * + - 19 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT SUM( col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9631
SELECT SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL ( - COUNT( - col1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL ( - COUNT ( - col1 ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL COUNT( * ) * + 98 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL COUNT ( * ) * + 98 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - COUNT( ALL + 49 ) * - MIN( DISTINCT + 84 ) - - 44 FROM tab1
----
296

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - COUNT ( ALL + 49 ) * - MIN ( DISTINCT + 84 ) - - 44 FROM tab1
----
296

query I rowsort
SELECT - ( 48 ) + col1 AS col1 FROM tab2
----
19
29
3

query I rowsort
SELECT + ( - col1 ) + col0 / 81 FROM tab2 WHERE col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 67 / col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9638
SELECT DISTINCT col1 / col0 FROM tab0 WHERE CAST( NULL AS DECIMAL ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT col1 / col0 FROM tab0 WHERE CAST ( NULL AS REAL ) <= ( NULL )
----

query I rowsort
SELECT + 77 * ( + ( + col1 ) ) FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE col0 * - 8 + - 33 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE col0 * - 8 + - 33 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - ( 63 - col2 * col0 ) col2 FROM tab2
----
1046
2574
4354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 88 col1 FROM tab2
----
11
21
37

query I rowsort
SELECT + 1 * col2 + col2 AS col2 FROM tab1 WHERE NOT col1 * ( 58 ) + ( col2 - 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + MIN( ALL + 76 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT + MIN ( ALL + 76 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9645
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col0 + - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9645
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col0 + - CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE col0 NOT IN ( col1 + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE col0 NOT IN ( col1 + col0 )
----
3

query I rowsort
SELECT - col1 + + col0 * 77 AS col2 FROM tab1
----
3913
6540
6960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - MAX( ALL col0 ) + - COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9649
SELECT - MAX ( ALL col0 ) + - COUNT ( * ) FROM tab2
----
-78

query I rowsort
SELECT + 31 * ( col1 * col0 ) - col2 FROM tab0 WHERE NOT col0 IS NULL
----
2908
37618
56627

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE + 22 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + col1 ) + - 24 * 33 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + 14 * + 57 AS col0 FROM tab2
----
798

query I rowsort
SELECT - 24 AS col1 FROM tab1 WHERE 22 / - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT - col2 DIV - col1 + 34 col0 FROM tab2
----
34
34
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9655
SELECT - col2 / - col1 + 34 col0 FROM tab2
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 75 * - col1 col0 FROM tab1
----
1146
3593
434

query I rowsort
SELECT DISTINCT + 55 * + col2 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT ALL + ( ( + col2 ) ) + - col0 FROM tab0 WHERE col1 IS NOT NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT + AVG ( ALL col2 ) FROM tab0 WHERE NULL < ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL - ( col1 ) - col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL col2 / - col0 AS col2 FROM tab1 WHERE NOT col2 / + CAST( col1 AS SIGNED ) BETWEEN - col2 AND + 28
----

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL col2 / - col0 AS col2 FROM tab1 WHERE NOT col2 / + CAST ( col1 AS INTEGER ) BETWEEN - col2 AND + 28
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 6 AS col0 FROM tab2 AS cor0 WHERE NOT 0 NOT BETWEEN 51 / + col0 + col0 AND NULL
----

query I rowsort
SELECT + 69 * + ( 90 * + 44 + ( - 85 ) * - col2 ) AS col0 FROM tab1 AS cor0
----
619275
672060
836280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 45 * - 97 NOT BETWEEN - 12 AND ( - CAST( - 7 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-9668
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 45 * - 97 NOT BETWEEN - 12 AND ( - CAST ( - 7 AS INTEGER ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL + col0 * 65 FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT - 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9672
SELECT SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT CAST( - 37 AS SIGNED ) col0 FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9674
SELECT CAST ( - 37 AS INTEGER ) col0 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + ( + col0 ) * - ( col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + ( + + ( col2 ) ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT ( ( - col2 ) ) FROM tab1 WHERE NOT ( CAST( col1 AS SIGNED ) ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9677
SELECT ( ( - col2 ) ) FROM tab1 WHERE NOT ( CAST ( col1 AS INTEGER ) ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - MIN( DISTINCT 26 ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - MIN ( DISTINCT 26 ) AS col2 FROM tab2
----
-26

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT col1 + - 34 * - 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( 39 ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 21 ) <= - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab1 cor0 WHERE col2 + + - 88 + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT DISTINCT + - MIN( DISTINCT - 13 ) * + - 78 FROM tab1 AS cor0
----
-1014

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + - MIN ( DISTINCT - 13 ) * + - 78 FROM tab1 AS cor0
----
-1014

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL OR NOT NULL BETWEEN NULL AND ( 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 11 + - col0 + 41 * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 11 + - col0 + 41 * + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9687
SELECT DISTINCT + 80 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9687
SELECT DISTINCT + 80 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
80
NULL

query I rowsort
SELECT ALL - col2 - + 80 * + - col0 - 39 FROM tab0 AS cor0
----
1114
6911
7622

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + 56 + + SUM( + - col2 ) AS col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 56 + + SUM ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9690
SELECT col0 + - 13 DIV CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9690
SELECT col0 + - 13 / CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ( - 62 ) + - - 12 + - 1 * - col1 FROM tab1
----
-3
-36
-45

query I rowsort
SELECT ALL ( - ( + col1 ) ) + col2 + + col2 AS col2 FROM tab0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 98 + + COUNT( * ) FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-9693
SELECT 98 + + COUNT ( * ) FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + 16 + - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 16 + - COUNT ( * ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9695
SELECT DISTINCT * FROM tab2 WHERE NOT - 22 * + CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9695
SELECT DISTINCT * FROM tab2 WHERE NOT - 22 * + CAST ( NULL AS INTEGER ) IN ( col0 )
----

query I rowsort
SELECT ( + 79 ) * ( col0 ) + col0 AS col2 FROM tab2
----
3680
5120
6000

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 48 + + + col1 + + col1 * col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT - COUNT( DISTINCT - 60 ) FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - COUNT ( DISTINCT - 60 ) FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
-1

query I rowsort
SELECT DISTINCT - 53 - - 88 + + col1 FROM tab2 cor0
----
102
112
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT DISTINCT 45 * + - 66 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-2970

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT 45 * + - 66 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-2970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 62 + 48 col2 FROM tab0 AS cor0
----
13
23
95

query I rowsort
SELECT ALL 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT - + col0 DIV - + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT - + col0 / - + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - - col1 / col1 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col2 col0 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT - 47 * - 39 FROM tab0 AS cor0
----
1833
1833
1833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + 1 * - col0 col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 col1, + 43 * col1 FROM tab2 AS cor0
----
74
2193
74
2881
74
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT 24 * - COUNT( * ) FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT 24 * - COUNT ( * ) FROM tab2 cor0
----
-72

query II rowsort
SELECT DISTINCT + col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE col1 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE col1 < - col0
----
0

query I rowsort
SELECT ALL col0 * - 44 FROM tab2 WHERE - + 0 NOT IN ( col2 * 4 - + - 59 - - col0 )
----
-2024
-2816
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + + col1 - 17 AS col1 FROM tab1 WHERE CAST( - + col1 AS SIGNED ) * 69 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + + col1 - 17 AS col1 FROM tab1 WHERE CAST ( - + col1 AS INTEGER ) * 69 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 62 <= ( - ( - col0 ) ) * - col0 - + 6 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT 47 AS col2, + SUM( DISTINCT + 60 ) FROM tab2
----
47
60

skipif mysql # not compatible
query II rowsort label-9716
SELECT 47 AS col2, + SUM ( DISTINCT + 60 ) FROM tab2
----
47
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - 52 / + 30
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + col1
----

query I rowsort
SELECT ALL col1 * + col2 + + + col2 + col2 FROM tab0
----
230
297
3901

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COUNT( ALL + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9721
SELECT COUNT ( ALL + + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT + 93 DIV - + 38 + - col0 FROM tab1 AS cor0
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 93 / - + 38 + - col0 FROM tab1 AS cor0
----
-53
-87
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 * - col1 IS NULL OR + col2 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9724
SELECT ALL + col2 col2, + col2 DIV + - col1 col2 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-9724
SELECT ALL + col2 col2, + col2 / + - col1 col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9725
SELECT * FROM tab1 AS cor0 WHERE ( + - 92 ) * + - CAST( NULL AS DECIMAL ) / + 28 + col1 / - CAST( - col0 AS SIGNED ) + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9725
SELECT * FROM tab1 AS cor0 WHERE ( + - 92 ) * + - CAST ( NULL AS REAL ) / + 28 + col1 / - CAST ( - col0 AS INTEGER ) + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + col0 <> + col0 + + 75
----
51
85
91

query I rowsort
SELECT DISTINCT + + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT + CAST( NULL AS SIGNED ) / AVG ( col2 ) + - - 3 + COUNT( + col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT + CAST ( NULL AS INTEGER ) / AVG ( col2 ) + - - 3 + COUNT ( + col1 ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT + col2 + col1, - col2 AS col0 FROM tab1
----
110
-96
115
-68
64
-59

query I rowsort
SELECT ( + col1 ) + col2 AS col2 FROM tab2 WHERE col2 + - - 23 + - col1 + - 52 * - - col0 > col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col1 / - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT + col0 > + col2 + col1 - - 19 / - 56 ) )
----
-47
-99

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT + col0 > + col2 + col1 - - 19 / - 56 ) )
----
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT - COUNT( * ) + - MIN( ALL 53 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT - COUNT ( * ) + - MIN ( ALL 53 ) FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT + MIN( CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9734
SELECT + MIN ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT ( + 8 ) col0, + 32 * COUNT( * ) + - 24 AS col0 FROM tab1 cor0
----
8
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9735
SELECT ( + 8 ) col0, + 32 * COUNT ( * ) + - 24 AS col0 FROM tab1 cor0
----
8
72

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 28 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 72 * - - col2 / - 71 + - - col2 * + 45 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9739
SELECT ALL SUM( - col0 ) * 86 col1, + CAST( NULL AS DECIMAL ) * + 5 FROM tab0
----
-17114
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9739
SELECT ALL SUM ( - col0 ) * 86 col1, + CAST ( NULL AS REAL ) * + 5 FROM tab0
----
-17114
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT COUNT( * ) DIV - ( - 96 ) + - 68 AS col2 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-9740
SELECT COUNT ( * ) / - ( - 96 ) + - 68 AS col2 FROM tab1
----
-68

query II rowsort
SELECT DISTINCT col2 AS col2, 82 AS col2 FROM tab2 WHERE NOT NULL >= 64
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL <> - 92
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
80

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 81 IS NOT NULL
----

query I rowsort
SELECT ALL + 96 FROM tab1 WHERE + - 49 BETWEEN NULL AND + 19 + + 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT 41 * - 36 * MIN( ALL + col2 ) - + + CAST( 89 AS SIGNED ) FROM tab0 AS cor0
----
-14849

skipif mysql # not compatible
query I rowsort label-9746
SELECT 41 * - 36 * MIN ( ALL + col2 ) - + + CAST ( 89 AS INTEGER ) FROM tab0 AS cor0
----
-14849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT + - 57 / 55 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + - 57 / 55 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 91 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL <= 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT + ( + col2 ) DIV col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9750
SELECT + ( + col2 ) / col1 FROM tab0
----
0
0
99

query I rowsort
SELECT 91 + + col1 + + col0 FROM tab1 WHERE NOT NULL <= - col2 + + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9752
SELECT - 67 DIV - 95 + col0 + - - 14 * + col1 AS col1, col2 FROM tab0
----
111
99
1149
47
381
10

skipif mysql # not compatible
query II rowsort label-9752
SELECT - 67 / - 95 + col0 + - - 14 * + col1 AS col1, col2 FROM tab0
----
111
99
1149
47
381
10

query I rowsort
SELECT col2 + - 23 FROM tab0
----
-13
24
76

query I rowsort
SELECT ALL + 72 + col2 AS col0 FROM tab2
----
112
130
95

query I rowsort
SELECT ALL + 67 * 61 AS col2 FROM tab1
----
4087
4087
4087

query I rowsort
SELECT DISTINCT col1 + + + col1 * 4 AS col0 FROM tab1
----
235
25
70

query I rowsort
SELECT + 78 + - + 20 AS col2 FROM tab1 WHERE - col0 + - 82 / - col1 NOT IN ( + col0 - + + col0 )
----
58
58
58

query I rowsort
SELECT ALL col2 + + + col2 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 53 AS col0, + col2 col0 FROM tab1 AS cor0
----
53
59
53
68
53
96

query III rowsort
SELECT * FROM tab1 WHERE + 65 <= + ( col2 )
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT 68 + 59 AS col1 FROM tab2
----
127

query I rowsort
SELECT DISTINCT - col1 * - - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + col0 + 69 FROM tab0 cor0
----
156
166
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - + 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT - 75 * + - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - 75 * + - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
228

query I rowsort
SELECT - col1 / col2 + + col2 + 17 / - 84 * + col0 * 12 * + col2 FROM tab1 AS cor0 WHERE col0 BETWEEN - col2 AND 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT 85 + 2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT 85 + 2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL ( COUNT( * ) ) + + + 45 col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT ALL ( COUNT ( * ) ) + + + 45 col1 FROM tab0 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 - + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 91 + + SUM( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 91 + + SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col1 col1 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT COUNT( - - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT COUNT ( - - col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT + col1 DIV + + col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9776
SELECT + col1 / + + col2 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - - MAX( ALL + ( + 9 ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9777
SELECT - - MAX ( ALL + ( + 9 ) ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT col2, col0 + - col2 AS col2 FROM tab2
----
23
23
40
24
58
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( - 64 ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9780
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( - 64 ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL MIN( ALL col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL MIN ( ALL col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT - col0 * - - ( 63 ) + - ( + - col0 ) FROM tab0 AS cor0
----
-5394
-6014
-930

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 - col0 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT - 57 - - - col1 = ( - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT - 57 - - - col1 = ( - col1 )
----
-3

query I rowsort
SELECT + col1 * - col0 - col2 * - col1 + - 72 FROM tab1 AS cor0
----
-1153
-202
558

query II rowsort
SELECT DISTINCT 19 AS col1, + col2 - 25 * - col1 FROM tab1 AS cor0
----
19
1243
19
184
19
446

onlyif mysql # DIV for integer division: 
query II rowsort label-9788
SELECT - 83 * - col0 DIV col0 AS col2, + 99 AS col1 FROM tab2 AS cor0
----
83
99
83
99
83
99

skipif mysql # not compatible
query II rowsort label-9788
SELECT - 83 * - col0 / col0 AS col2, + 99 AS col1 FROM tab2 AS cor0
----
83
99
83
99
83
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 / - + CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9789
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 / - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL ( SUM( DISTINCT col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL ( SUM ( DISTINCT col0 ) ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT + ( ( - + 43 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 3 ) <= + col0 * - - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT MAX( DISTINCT - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9794
SELECT MAX ( DISTINCT - - col0 ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT ALL col0 + - + col1 DIV - - col0 AS col2 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL col0 + - + col1 / - - col0 AS col2 FROM tab2
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT ( ( col0 ) ) * col1 * - + 73 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT ( ( col0 ) ) * col1 * - + 73 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + + col0 + - 4 + col1 * 13 col1 FROM tab2
----
-1641
-3867
-4083

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9798
SELECT MAX( - col0 ) AS col0, + MIN( - 43 ) + SUM( + - col2 ) DIV - - COUNT( * ) AS col2 FROM tab1
----
-51
-117

skipif mysql # not compatible
query II rowsort label-9798
SELECT MAX ( - col0 ) AS col0, + MIN ( - 43 ) + SUM ( + - col2 ) / - - COUNT ( * ) AS col2 FROM tab1
----
-51
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT + COUNT( * ) - - ( - - 76 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT + COUNT ( * ) - - ( - - 76 ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT + col1 * col2 - col0 AS col2 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT ALL 47 * - ( - col1 ) FROM tab2
----
2397
3149
3619

query I rowsort
SELECT + + 9 AS col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + 76 - col1 AS col1 FROM tab1 AS cor0
----
29
62
71

query I rowsort
SELECT DISTINCT + - 91 + - col1 FROM tab2 AS cor0
----
-142
-158
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 AS cor0 WHERE ( + 98 ) >= - col2
----
10
47
99

query I rowsort
SELECT ALL + col2 - + + 12 AS col1 FROM tab0 AS cor0
----
-2
35
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT ALL + - MIN( + - col2 ) col2, + COUNT( * ) FROM tab0 AS cor0 WHERE col0 <= + 3
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9807
SELECT ALL + - MIN ( + - col2 ) col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 <= + 3
----
NULL
0

query II rowsort
SELECT 81 AS col0, col1 AS col0 FROM tab0
----
81
1
81
21
81
81

query II rowsort
SELECT DISTINCT col2, - col0 * + - 34 * + col2 + col0 FROM tab0
----
10
29667
47
23985
99
326599

query I rowsort
SELECT - 52 * + col0 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT + col0 * - col1 * 1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 15 ) FROM tab2
----
15
15
15

query I rowsort
SELECT ALL 38 * + - 2 AS col1 FROM tab1
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 9 IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) > - col1 * - 98 - + col1 - col2 / + 36
----

query II rowsort
SELECT + - col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT CAST( + - COUNT( col1 ) AS SIGNED ) * - 71 FROM tab1 AS cor0 WHERE NOT ( NOT col0 * + col2 + + CAST( + col1 AS SIGNED ) + 47 IS NOT NULL )
----
213

skipif mysql # not compatible
query I rowsort label-9819
SELECT CAST ( + - COUNT ( col1 ) AS INTEGER ) * - 71 FROM tab1 AS cor0 WHERE NOT ( NOT col0 * + col2 + + CAST ( + col1 AS INTEGER ) + 47 IS NOT NULL )
----
213

query I rowsort
SELECT + ( + col2 ) * + - col1 * - col1 * + - 67 AS col0 FROM tab2
----
-15889720
-17444254
-4008141

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( + + col0 * - col0 ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 = 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + ( - + col0 ) ) * + col1 * - 42 FROM tab0 AS cor0
----
4074
51030
76734

query I rowsort
SELECT DISTINCT 10 + + col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT - + col0 + + 18 * - col1 FROM tab2 AS cor0
----
-1281
-1450
-964

query I rowsort
SELECT + col0 + - + col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL + 36 * col2 + - 17 + + col1 + + col0 FROM tab2
----
1564
2213
908

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL col0 DIV + 3 AS col0 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL col0 / + 3 AS col0 FROM tab2
----
15
21
25

query I rowsort
SELECT DISTINCT - col1 * - 94 * + - 21 + - col1 AS col1 FROM tab1
----
-27650
-92825
-9875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 84 col2, col1 * + + col1 * + col1 * col1 FROM tab0 AS cor0 WHERE col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - + col0 col2 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT ALL - 9 * + col0 DIV - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
106
24
96

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - 9 * + col0 / - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT MIN( DISTINCT 31 ) AS col2 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-9833
SELECT MIN ( DISTINCT 31 ) AS col2 FROM tab1 cor0
----
31

query I rowsort
SELECT - 2 * 59 FROM tab2 cor0
----
-118
-118
-118

onlyif mysql # DIV for integer division: 
query II rowsort label-9835
SELECT ALL + col1 * - col0 - - col2 + - - ( + col0 ) * + col0, + col0 DIV + col2 col0 FROM tab0 AS cor0
----
-943
0
5752
8
9411
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9835
SELECT ALL + col1 * - col0 - - col2 + - - ( + col0 ) * + col0, + col0 / + col2 col0 FROM tab0 AS cor0
----
-943
0
5752
8
9411
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ( + + ( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ( + + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT 96 - COUNT( * ) - + 4 AS col0 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-9837
SELECT 96 - COUNT ( * ) - + 4 AS col0 FROM tab1
----
89

query I rowsort
SELECT - - 25 * - - 56 AS col0 FROM tab0 WHERE - - 24 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 * + col0 + + col1 + col1 <> + ( + ( + - col2 ) ) * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + + 49 * - + col2 col0 FROM tab1 AS cor0
----
-239904
-245735
-303212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) * - COUNT( ALL + ( + col0 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL + ( + col0 ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL + ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 6 ) * col0 + - - col0 * 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 77 * + + col1 AS col0 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( + - col0 + + col1 + - 3 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= col2 + + + 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT - col0 DIV 2 FROM tab2 AS cor0
----
-23
-32
-37

skipif mysql # not compatible
query I rowsort label-9849
SELECT - col0 / 2 FROM tab2 AS cor0
----
-23
-32
-37

query II rowsort
SELECT ALL col1 + 48 AS col0, col0 AS col1 FROM tab0
----
129
15
49
97
69
87

query I rowsort
SELECT 74 + + ( - 70 ) + + - 10 * - col2 * col0 * 37 FROM tab2
----
1609504
391464
947204

onlyif mysql # DIV for integer division: 
query II rowsort label-9852
SELECT DISTINCT + 95 * + - col2 * - col2 + - col2 AS col0, - col2 DIV col2 AS col1 FROM tab2 AS cor0
----
151960
-1
319522
-1
50232
-1

skipif mysql # not compatible
query II rowsort label-9852
SELECT DISTINCT + 95 * + - col2 * - col2 + - col2 AS col0, - col2 / col2 AS col1 FROM tab2 AS cor0
----
151960
-1
319522
-1
50232
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL 77 - - 12 - - COUNT( - + 60 ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0
----
89

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL 77 - - 12 - - COUNT ( - + 60 ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL + SUM( col0 ) * + 58 col1 FROM tab2 AS cor0
----
10730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9854
SELECT ALL + SUM ( col0 ) * + 58 col1 FROM tab2 AS cor0
----
10730

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 5 - - col2 BETWEEN - col0 * + col2 / col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 2 - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT + + col1 DIV - - col0 * + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT + + col1 / - - col0 * + col2 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT - col2 * col2 AS col2, col2 AS col0 FROM tab2 cor0
----
-1600
40
-3364
58
-529
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL - 57 DIV - col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - 57 / - col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9860
SELECT - + CAST( col1 AS SIGNED ) DIV - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9860
SELECT - + CAST ( col1 AS INTEGER ) / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9861
SELECT - + CAST( + + col0 AS SIGNED ) * ( + 87 ), 12 AS col0 FROM tab0 AS cor0
----
-1305
12
-7569
12
-8439
12

skipif mysql # not compatible
query II rowsort label-9861
SELECT - + CAST ( + + col0 AS INTEGER ) * ( + 87 ), 12 AS col0 FROM tab0 AS cor0
----
-1305
12
-7569
12
-8439
12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - col0 * + - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT + COUNT( + - 82 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + COUNT ( + - 82 ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT + - 75 FROM tab2 WHERE 49 IS NOT NULL
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-9865
SELECT DISTINCT 39 DIV + col2 AS col0, 69 - 54 + ( - col0 ) * col2 FROM tab1
----
0
-4881
0
-5000
0
-6173

skipif mysql # not compatible
query II rowsort label-9865
SELECT DISTINCT 39 / + col2 AS col0, 69 - 54 + ( - col0 ) * col2 FROM tab1
----
0
-4881
0
-5000
0
-6173

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - MIN( ALL + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9866
SELECT - MIN ( ALL + col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT + 93 + + col2 + - col2 * col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col0 + 4 col0 FROM tab2
----
2120
4100
5629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col0 - + col0 col1 FROM tab2
----
1012
2496
4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9870
SELECT CAST( NULL AS DECIMAL ) - - 48 * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT CAST ( NULL AS REAL ) - - 48 * - col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( col2 ), 41 * - col2 AS col0 FROM tab2
----
23
-943
40
-1640
58
-2378

query I rowsort
SELECT - col0 * col1 - - 5 + - - col0 + col0 FROM tab1
----
-250
-4090
-607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9873
SELECT CAST( + - MIN( + col0 ) AS SIGNED ) + + 67 + - 90, + 41 col0 FROM tab2 cor0
----
-69
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9873
SELECT CAST ( + - MIN ( + col0 ) AS INTEGER ) + + 67 + - 90, + 41 col0 FROM tab2 cor0
----
-69
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL + CAST( + + col0 AS SIGNED ) - - + 63 AS col1 FROM tab2 AS cor0
----
109
127
138

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + CAST ( + + col0 AS INTEGER ) - - + 63 AS col1 FROM tab2 AS cor0
----
109
127
138

query II rowsort
SELECT DISTINCT + + col1 + - 31 AS col2, 88 * col2 FROM tab2 AS cor0
----
20
2024
36
5104
46
3520

query I rowsort
SELECT ALL col1 - col2 * + - col2 FROM tab1 AS cor0
----
3486
4671
9230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - ( + 86 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 * + col2 * + 98 + - 1, - col2 FROM tab2 AS cor0 WHERE col2 + - - 68 IS NULL
----

query II rowsort
SELECT ALL - col2 * + 9 - - + 19, ( - col1 ) AS col2 FROM tab2
----
-188
-51
-341
-77
-503
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 60 col2 FROM tab0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT SUM( DISTINCT 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT SUM ( DISTINCT 91 ) FROM tab2
----
91

query II rowsort
SELECT - 41, + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-41
-1344
-41
-295
-41
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + - MAX( - - 4 ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9884
SELECT + - MAX ( - - 4 ) AS col2 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + col0 * + col2 + 3 = NULL
----

query II rowsort
SELECT DISTINCT col0, + 54 AS col2 FROM tab0 AS cor0
----
15
54
87
54
97
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - - col0 FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN - 57 * - - 78 AND + ( - + col0 ) * - 2 * 83
----

skipif mysql # not compatible
query I rowsort label-9887
SELECT - - col0 FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN - 57 * - - 78 AND + ( - + col0 ) * - 2 * 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL + COUNT( * ) * MAX( DISTINCT + col2 ) + + + 41 AS col2 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL + COUNT ( * ) * MAX ( DISTINCT + col2 ) + + + 41 AS col2 FROM tab2 AS cor0
----
215

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9889
SELECT ALL - 51, + ( - CAST( NULL AS DECIMAL ) ) * 0 + - 95 col1 FROM tab0 AS cor0
----
-51
NULL
-51
NULL
-51
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9889
SELECT ALL - 51, + ( - CAST ( NULL AS REAL ) ) * 0 + - 95 col1 FROM tab0 AS cor0
----
-51
NULL
-51
NULL
-51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT DISTINCT - 59 DIV + col0 AS col0 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - 59 / + col0 AS col0 FROM tab2 cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT - + ( + - col2 ) DIV + + 72 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT - + ( + - col2 ) / + + 72 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, + 48 - col0 col2 FROM tab2 AS cor0
----
-23
2
-40
-16
-58
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9893
SELECT CAST( NULL AS DECIMAL ) * - - COUNT( * ) * + CAST( NULL AS SIGNED ) * + COUNT( - - col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT CAST ( NULL AS REAL ) * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + COUNT ( - - col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + 41 FROM tab1 WHERE NOT NULL < ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT ALL - MIN( + col0 ) AS col1, 94 * + COUNT( * ) FROM tab2
----
-46
282

skipif mysql # not compatible
query II rowsort label-9895
SELECT ALL - MIN ( + col0 ) AS col1, 94 * + COUNT ( * ) FROM tab2
----
-46
282

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT COUNT( * ) * - 87 AS col1 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT COUNT ( * ) * - 87 AS col1 FROM tab0
----
-261

query II rowsort
SELECT ALL - - col0 * - ( col1 ), - 6 AS col0 FROM tab0 cor0
----
-1215
-6
-1827
-6
-97
-6

query I rowsort
SELECT + - col2 * 47 + - col2 + - col2 FROM tab2 AS cor0
----
-1127
-1960
-2842

query I rowsort
SELECT - col0 + + col2 + - - col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 76 )
----

query I rowsort
SELECT ALL + col1 + 25 FROM tab2 AS cor0
----
102
76
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - 45 * + COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - 45 * + COUNT ( * ) FROM tab1 AS cor0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * 81 col0 FROM tab2
----
1914
3317
4765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT CAST( NULL AS SIGNED ) + + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT CAST ( NULL AS INTEGER ) + + + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + 86 FROM tab0
----
-1
-11
71

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + 86 FROM tab0
----
-1
-11
71

query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab2 AS cor0
----
1109
2637
4417

query II rowsort
SELECT ALL - ( - col1 ), + col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL SUM( - + ( col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL SUM ( - + ( col2 ) ) AS col0 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col0 + 66 + - + col1 NOT IN ( - col1, col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9911
SELECT + col0 DIV col1 AS col1, 32 FROM tab2 AS cor0
----
0
32
0
32
1
32

skipif mysql # not compatible
query II rowsort label-9911
SELECT + col0 / col1 AS col1, 32 FROM tab2 AS cor0
----
0
32
0
32
1
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT 37 DIV col0 * + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT 37 / col0 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 70 FROM tab2 cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9914
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 + + 82 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 + + 82 IS NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9915
SELECT DISTINCT + + 27 / - CAST( NULL AS SIGNED ) * + col0 * col1 * + col0 + - 75 * - 73, + col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9915
SELECT DISTINCT + + 27 / - CAST ( NULL AS INTEGER ) * + col0 * col1 * + col0 + - 75 * - 73, + col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT 88 AS col0, - col0 - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
88
-196
88
-62
88
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col2 / + col2 AND + col2
----

query I rowsort
SELECT ALL col0 / + col0 + + ( - col2 ) + - 9 * col0 FROM tab0 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9919
SELECT 31 * + - CAST( NULL AS SIGNED ) * 85, + 50 AS col0, ( - + col2 ) DIV + + 55 AS col0 FROM tab2
----
9 values hashing to 8f0b9eeb092dc48275b22185307d79a3

skipif mysql # not compatible
query III rowsort label-9919
SELECT 31 * + - CAST ( NULL AS INTEGER ) * 85, + 50 AS col0, ( - + col2 ) / + + 55 AS col0 FROM tab2
----
9 values hashing to 8f0b9eeb092dc48275b22185307d79a3

query I rowsort
SELECT - - 70 / col0 FROM tab1 WHERE NOT NULL IN ( col1, col1 * - 75 / - ( + 11 ) )
----

query I rowsort
SELECT + - col1 * + 57 FROM tab2 AS cor0
----
-2907
-3819
-4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col1 col0, ( - 99 ) * + col1 FROM tab0
----
-11
-2079
-34
-8019
98
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 + + + ( - 61 ) col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + col0 + - 63 * + + 6 FROM tab1 AS cor0
----
-287
-293
-327

query I rowsort
SELECT - col2 * - 32 * - col2 FROM tab2 AS cor0
----
-107648
-16928
-51200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col1 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9927
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) <= + col2 / col2 * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9927
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) <= + col2 / col2 * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL + - AVG ( col1 ) * - 12 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + - AVG ( col1 ) * - 12 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-9929
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT DISTINCT 98 - col1 DIV col2 DIV col1 * + col1 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT 98 - col1 / col2 / col1 * + col1 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT col0 - + - 91 * + col1 + - col1 AS col1 FROM tab0
----
187
1977
7305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col0 > + + CAST( NULL AS SIGNED ) * + - col1
----

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col0 > + + CAST ( NULL AS INTEGER ) * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT col1 + + col0 * + 21 * + 59 AS col2 FROM tab0
----
107814
120184
18666

query I rowsort
SELECT + - col2 + + col0 * col0 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT DISTINCT + ( col2 ) + + + col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT col2 - - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL + SUM( DISTINCT + 6 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + SUM ( DISTINCT + 6 ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col0, col1 * - col0 * + 89 AS col1 FROM tab2 AS cor0
----
46
-208794
64
-438592
75
-447225

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + COUNT( * ) * + COUNT( - 89 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9941
SELECT + COUNT ( * ) * + COUNT ( - 89 ) AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT + COUNT( ALL col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT + COUNT ( ALL col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * 27 AS col0 FROM tab0
----
2187
27
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT + CAST( SUM( ALL + 83 ) AS SIGNED ) * SUM( ALL - col2 ) FROM tab1 AS cor0
----
-55527

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT + CAST ( SUM ( ALL + 83 ) AS INTEGER ) * SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-55527

query I rowsort
SELECT DISTINCT col2 + - - col1 / + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + COUNT( - 81 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9946
SELECT + COUNT ( - 81 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * + - 3 FROM tab0 cor0
----
141
297
30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 = ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col1, col0 + col1 AS col1 FROM tab1 AS cor0
----
14
65
47
138
5
90

query I rowsort
SELECT DISTINCT - 65 * + - col2 AS col1 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT ALL 50 * col1 FROM tab2
----
2550
3350
3850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + col0 * + 21 col0 FROM tab0
----
179046
199626
30870

query II rowsort
SELECT 34 + col2 * + 58, 67 + ( 70 ) AS col0 FROM tab0
----
2760
137
5776
137
614
137

query I rowsort
SELECT + col0 + - col0 * 49 AS col1 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + + col1 ) AND 83
----

query I rowsort
SELECT - 92 FROM tab0 WHERE NOT + - ( - 37 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 87 + + + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * + ( 26 ) - - col2 * + - 97 / - ( 48 ) + + ( + 5 ) + + + 20
----

query I rowsort
SELECT - ( - 78 ) + col0 - + - 21 FROM tab2
----
145
163
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL 52 + COUNT( * ) + COUNT( * ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL 52 + COUNT ( * ) + COUNT ( * ) FROM tab0
----
58

query II rowsort
SELECT + col0 + - col1 AS col2, - col2 AS col2 FROM tab2
----
-13
-40
-5
-23
8
-58

query I rowsort
SELECT + + col0 + 32 AS col0 FROM tab0 cor0
----
119
129
47

query I rowsort
SELECT DISTINCT 41 * 95 * col0 FROM tab2 AS cor0
----
179170
249280
292125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col1 col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL 70 + - COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL 70 + - COUNT ( * ) FROM tab2
----
67

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT col0 DIV + col2 + + 19 AS col1 FROM tab1 AS cor0
----
19
20
20

skipif mysql # not compatible
query I rowsort label-9966
SELECT col0 / + col2 + + 19 AS col1 FROM tab1 AS cor0
----
19
20
20

query I rowsort
SELECT DISTINCT + col1 + col1 - + col1 AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT ( + 9 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT - col2 + + + ( - CAST( NULL AS SIGNED ) ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT - col2 + + + ( - CAST ( NULL AS INTEGER ) ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 53 + + ( + col0 ) * + - ( - col1 ) AS col2 FROM tab2 cor0
----
2293
4875
4972

query II rowsort
SELECT ALL col1 AS col0, - 11 FROM tab0 AS cor0
----
1
-11
21
-11
81
-11

query I rowsort
SELECT + 62 + - + col2 FROM tab0 AS cor0
----
-37
15
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - ( COUNT( * ) ) - + - 25 * + COUNT( * ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - ( COUNT ( * ) ) - + - 25 * + COUNT ( * ) AS col1 FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT ALL - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 * 50 AS col2 FROM tab1
----
3500

query I rowsort
SELECT 91 + - col2 FROM tab1
----
-5
23
32

query I rowsort
SELECT col1 * + - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT ( 8 ) * 42 * + 59 FROM tab0
----
19824

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT + 0 + COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + 0 + COUNT ( * ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL + CAST( + col0 AS SIGNED ) * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + CAST ( + col0 AS INTEGER ) * - col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 19 * + col2 AS col2 FROM tab0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) * - + SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) * - + SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 65 * col2 + 11 col1 FROM tab1 AS cor0
----
3846
4431
6251

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT DISTINCT + CAST( - - 8 AS SIGNED ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + CAST ( - - 8 AS INTEGER ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT MIN( ALL - - 42 ) * - 92 FROM tab2 AS cor0
----
-3864

skipif mysql # not compatible
query I rowsort label-9987
SELECT MIN ( ALL - - 42 ) * - 92 FROM tab2 AS cor0
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT col1 DIV + - col2 - - ( - 5 ) FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9988
SELECT col1 / + - col2 - - ( - 5 ) FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9989
SELECT ALL - ( - col2 ) * col1 * + CAST( - col1 AS DECIMAL ) * CAST( NULL AS DECIMAL ) * - 85 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - ( - col2 ) * col1 * + CAST ( - col1 AS REAL ) * CAST ( NULL AS REAL ) * - 85 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 * - 9 + - + 3 AS col2 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col1 * 19 + + col1 * + + 99 FROM tab2
----
6018
7906
9086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL CAST( NULL AS SIGNED ) + + - ( + col1 ) * + col2 + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL CAST ( NULL AS INTEGER ) + + - ( + col1 ) * + col2 + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT + 90 * - CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
1260
4230
450

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 90 * - CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT - + 73 + MIN( 63 ) + COUNT( * ), 43 AS col0 FROM tab1 cor0
----
-7
43

skipif mysql # not compatible
query II rowsort label-9995
SELECT - + 73 + MIN ( 63 ) + COUNT ( * ), 43 AS col0 FROM tab1 cor0
----
-7
43

query I rowsort
SELECT ALL 0 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * 22 + + col0 AS col2 FROM tab0 AS cor0
----
-1019
-133
-2081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT CAST( - 29 AS SIGNED ) + 85 + col1 FROM tab2
----
107
123
133

skipif mysql # not compatible
query I rowsort label-9998
SELECT CAST ( - 29 AS INTEGER ) + 85 + col1 FROM tab2
----
107
123
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
6

