sqllogictest
Artifact Content
Not logged in

Artifact 8c60265489e37171b4a4056e7e8992b03df8bdd4:


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)

query I rowsort
SELECT ALL col2 * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT 16 * COUNT( * ) AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1
SELECT 16 * COUNT ( * ) AS col1 FROM tab2 cor0
----
48

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

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

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

query I rowsort
SELECT ALL + col1 * - 66 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT - SUM( + + 38 ) AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT - SUM ( + + 38 ) AS col2 FROM tab2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT ALL MIN( ALL + - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL MIN ( ALL + - col1 ) AS col0 FROM tab0
----
-81

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

query III rowsort
SELECT * FROM tab0 WHERE 47 > + col0 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col1 ) * col1 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-541
-8770
-9802

query I rowsort
SELECT - - 23 + + col1 FROM tab1 cor0
----
28
37
70

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + - MAX( DISTINCT + 31 ) * - 63 AS col0 FROM tab2 AS cor0
----
1953

skipif mysql # not compatible
query I rowsort label-11
SELECT + - MAX ( DISTINCT + 31 ) * - 63 AS col0 FROM tab2 AS cor0
----
1953

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - + ( - 31 ), - col0, + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - col0 col1 FROM tab2 AS cor0
----
2392
3328
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT - MAX( DISTINCT + - 22 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT - MAX ( DISTINCT + - 22 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + 38 AS col2 FROM tab1 AS cor0
----
106
134
97

query I rowsort
SELECT DISTINCT - 31 * + col0 + + - col0 + + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-1728
-2779
-2980

query I rowsort
SELECT - - col1 FROM tab1 cor0 WHERE - col1 * + - col2 + col1 + - + 39 + 24 + - col2 / - col1 * + col1 >= - - ( + col2 )
----
14
47
5

query I rowsort
SELECT 6 - col1 FROM tab0 AS cor0
----
-15
-75
5

query II rowsort
SELECT DISTINCT + - col1 - - col2 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-28
46
-37
64
-9
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 BETWEEN col0 * + + col1 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + - MAX( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT + - MAX ( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE - 87 + + + col0 / - 71 * - col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT + 26 col1, + COUNT( ALL - 5 ) FROM tab0
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-25
SELECT + 26 col1, + COUNT ( ALL - 5 ) FROM tab0
----
26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT + 94 * col1 DIV - + col1 FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-26
SELECT + 94 * col1 / - + col1 FROM tab2
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-27
SELECT ALL 87 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
87
NULL
87
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-27
SELECT ALL 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
87
NULL
87
NULL
87
NULL

query I rowsort
SELECT 91 * - 60 FROM tab1
----
-5460
-5460
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + 70 * + COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + 70 * + COUNT ( * ) AS col2 FROM tab2
----
210

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

onlyif mysql # DIV for integer division: 
query II rowsort label-31
SELECT - ( - + 90 ) * - + 14 col0, + col2 DIV - 82 AS col2 FROM tab2
----
-1260
0
-1260
0
-1260
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-31
SELECT - ( - + 90 ) * - + 14 col0, + col2 / - 82 AS col2 FROM tab2
----
-1260
0
-1260
0
-1260
0

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

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

query I rowsort
SELECT + - 42 * + + col1 FROM tab0 AS cor0
----
-3402
-42
-882

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col2 col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-36
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NOT col2 BETWEEN + col2 AND col2 * + + col0 + - col0 + - CAST( NULL AS DECIMAL ) - 99 + ( + - col2 ) + + col0 * - - 85
----
0

skipif mysql # not compatible
query I rowsort label-36
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 BETWEEN + col2 AND col2 * + + col0 + - col0 + - CAST ( NULL AS REAL ) - 99 + ( + - col2 ) + + col0 * - - 85
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 50 col0, + col2 AS col1 FROM tab0 AS cor0
----
50
10
50
47
50
99

query I rowsort
SELECT ALL + 23 + + col1 * + + col2 + - 86 AS col1 FROM tab0 AS cor0
----
147
36
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + + - 73 AS col0 FROM tab2 AS cor0
----
-22
-6
4

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

query I rowsort
SELECT col1 * + - col1 * 27 + col1 - - col1 FROM tab1
----
-5264
-59549
-665

query II rowsort
SELECT col2 + - col0 AS col2, col1 * - col0 FROM tab1
----
-23
-4277
-26
-425
45
-714

query I rowsort
SELECT - 80 + ( - 10 ) FROM tab0
----
-90
-90
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT 92 + + MIN( ALL 16 ) AS col2 FROM tab2, tab0 cor0
----
108

skipif mysql # not compatible
query I rowsort label-47
SELECT 92 + + MIN ( ALL 16 ) AS col2 FROM tab2, tab0 cor0
----
108

query I rowsort
SELECT DISTINCT - 0 FROM tab2 WHERE ( NOT col0 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 49 ) * + - 77 * + 41 <= NULL
----

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

query II rowsort
SELECT + col0 AS col2, col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 - + + col0 AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + + ( + 28 ) + + COUNT( * ) FROM tab2 WHERE NULL <= NULL
----
28

skipif mysql # not compatible
query I rowsort label-53
SELECT + + ( + 28 ) + + COUNT ( * ) FROM tab2 WHERE NULL <= NULL
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + ( + 17 ) - + - COUNT( * ) AS col2 FROM tab2
----
20

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

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

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

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

query I rowsort
SELECT DISTINCT + 79 + + col0 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT DISTINCT - 10 DIV - 47 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - 10 / - 47 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + ( + + ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT CAST( - ( AVG ( col0 ) ) AS SIGNED ) AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-61
SELECT CAST ( - ( AVG ( col0 ) ) AS INTEGER ) AS col2 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + MIN( DISTINCT 3 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-62
SELECT + MIN ( DISTINCT 3 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT + ( - + col1 ), + 81 * col2 - - - col1 AS col1 FROM tab0
----
-1
8018
-21
789
-81
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT MIN( - ( - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-64
SELECT MIN ( - ( - col2 ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ( - COUNT( DISTINCT col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-65
SELECT ( - COUNT ( DISTINCT col0 ) ) FROM tab0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT - 95 + + - COUNT( * ) * + 80 FROM tab0 AS cor0 WHERE NOT 59 + + + col1 = - col0 * 75
----
-335

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - 95 + + - COUNT ( * ) * + 80 FROM tab0 AS cor0 WHERE NOT 59 + + + col1 = - col0 * 75
----
-335

query I rowsort
SELECT ALL + col0 * col0 - col1 AS col0 FROM tab1 AS cor0
----
2587
7220
8234

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT 78 DIV - 54 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT 78 / - 54 AS col0 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT + - MIN( DISTINCT + 9 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-70
SELECT + - MIN ( DISTINCT + 9 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( + 26 ) * - col2 + + col1 + + + 2 AS col2 FROM tab1 AS cor0
----
-1527
-1719
-2480

query I rowsort
SELECT 78 + - 34 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - ( - + 30 ) + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT DISTINCT - + col0 * col2 DIV col0 + - + 49 + - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-146
-206
-232

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT - + col0 * col2 / col0 + - + 49 + - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-146
-206
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT + MAX( + 23 ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT + MAX ( + 23 ) AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - 37 + + - col2 AS col1 FROM tab0 AS cor0
----
-136
-47
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-78
SELECT - MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - + 21 * - col2 * col1 + + col1 / ( + - col0 ) + - 53 + + ( - 65 ) - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-80
SELECT - - col1 * + CAST( NULL AS SIGNED ) + - col2 AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-80
SELECT - - col1 * + CAST ( NULL AS INTEGER ) + - col2 AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT ( - col1 ) DIV 46 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-81
SELECT ( - col1 ) / 46 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 10 + - + col0 * - col1 * - - col1 AS col0 FROM tab0 AS cor0
----
107
38377
98425

query I rowsort
SELECT + + col2 * - col2 * + - col0 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-87
SELECT ALL - col0 + + col1, + 54 - - 41 DIV + 32 AS col0 FROM tab0
----
-66
55
-96
55
66
55

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL - col0 + + col1, + 54 - - 41 / + 32 AS col0 FROM tab0
----
-66
55
-96
55
66
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-88
SELECT DISTINCT - - COUNT ( * ) col0, + 83 AS col0 FROM tab1 cor0
----
3
83

query I rowsort
SELECT - col0 + + col2 * - 27 AS col0 FROM tab0 cor0
----
-1284
-2770
-357

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

skipif mysql # not compatible
query I rowsort label-90
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 + + ( + COUNT ( * ) ) + - SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT COUNT( DISTINCT + 26 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-94
SELECT COUNT ( DISTINCT + 26 ) FROM tab2
----
1

query I rowsort
SELECT ALL 49 * - + 48 AS col2 FROM tab0
----
-2352
-2352
-2352

query II rowsort
SELECT col1, 26 * - + 81 + - - col2 AS col1 FROM tab1
----
14
-2010
47
-2038
5
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT MAX( DISTINCT - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-97
SELECT MAX ( DISTINCT - col1 ) AS col2 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + 88 * - col0 col2 FROM tab0 WHERE NOT - - col1 / + col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-99
SELECT ALL * FROM tab2 WHERE NOT + - col0 <> + CAST( + col0 AS SIGNED ) * - 79 * + - col2
----

skipif mysql # not compatible
query III rowsort label-99
SELECT ALL * FROM tab2 WHERE NOT + - col0 <> + CAST ( + col0 AS INTEGER ) * - 79 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72 AS col2, 38 col1 FROM tab1
----
-72
38
-72
38
-72
38

query I rowsort
SELECT ALL + 60 * + - col0 AS col2 FROM tab2 AS cor0
----
-2760
-3840
-4500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 33 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 33 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab0 WHERE ( 16 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab0 WHERE ( 16 ) IS NULL
----
NULL

query I rowsort
SELECT ALL ( col2 ) * - col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT + 28 + ( 91 ) DIV - col1 FROM tab0
----
-63
24
27

skipif mysql # not compatible
query I rowsort label-107
SELECT + 28 + ( 91 ) / - col1 FROM tab0
----
-63
24
27

query I rowsort
SELECT DISTINCT - 67 * - 10 FROM tab0
----
670

query I rowsort
SELECT - 36 + col0 AS col1 FROM tab1
----
15
49
55

query I rowsort
SELECT - col2 * 78 AS col0 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT + col2 * ( col0 ) AS col2 FROM tab2
----
1058
2560
4350

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

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

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

query I rowsort
SELECT col0 * + 15 AS col1 FROM tab0
----
1305
1455
225

query I rowsort
SELECT 12 * 65 FROM tab2
----
780
780
780

query I rowsort
SELECT ALL + col0 * - 70 AS col0 FROM tab1 WHERE ( - col0 + col0 ) NOT BETWEEN + 15 AND NULL
----
-3570
-5950
-6370

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - 45 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-121
SELECT + COUNT ( col1 ) FROM tab1
----
3

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

skipif mysql # not compatible
query III rowsort label-122
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT COUNT( * ) - - 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-124
SELECT COUNT ( * ) - - 16 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 88 AS col2 FROM tab2 AS cor0
----
134
152
163

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT 2 - - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-126
SELECT 2 - - COUNT ( * ) FROM tab1 AS cor0
----
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT MIN( ALL col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-129
SELECT MIN ( ALL col1 ) AS col0 FROM tab1
----
5

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT - col0 / - 61 + col0 / 11 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 37 ) AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT + 74 DIV col1 FROM tab0 AS cor0
----
0
3
74

skipif mysql # not compatible
query I rowsort label-133
SELECT + 74 / col1 FROM tab0 AS cor0
----
0
3
74

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

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - COUNT ( * ) * + SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT - col1 + col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 - 7 * 17 )
----

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

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

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

query I rowsort
SELECT DISTINCT - ( - 28 ) * 78 FROM tab1
----
2184

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 = NULL
----

query I rowsort
SELECT ALL col0 * ( + 99 ) FROM tab1
----
5049
8415
9009

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

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - 88 + - col2
----

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

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

query I rowsort
SELECT 44 * + - 83 AS col0 FROM tab2
----
-3652
-3652
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL - MAX( col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 84 + - col0 * + 20 )
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-146
SELECT ALL - MAX ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 84 + - col0 * + 20 )
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 / + col1 NOT BETWEEN 34 * + col0 AND + 12
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 / + col1 NOT BETWEEN 34 * + col0 AND + 12
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-151
SELECT + - 48 / + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT + COUNT( * ) * 11 + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + COUNT ( * ) * 11 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + - SUM( ALL - 65 ) FROM tab2 cor0 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT + - SUM ( ALL - 65 ) FROM tab2 cor0 WHERE NULL <= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-156
SELECT - SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - 27 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - col2 * col0 + - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT DISTINCT + - 94 * COUNT( * ) + + COUNT( DISTINCT + 19 ) FROM tab0 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + - 94 * COUNT ( * ) + + COUNT ( DISTINCT + 19 ) FROM tab0 AS cor0
----
-281

query I rowsort
SELECT DISTINCT 66 * - col0 AS col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT ALL + col1 DIV + 41 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
295
3197

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + col1 / + 41 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
295
3197

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

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

query I rowsort
SELECT ALL + col2 - + ( 97 ) FROM tab1 AS cor0
----
-1
-29
-38

query I rowsort
SELECT DISTINCT + - 56 * + col2 - + 88 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
-203
550
752

query II rowsort
SELECT DISTINCT - - col0 AS col2, col2 * - 5 AS col0 FROM tab1 cor0
----
51
-480
85
-295
91
-340

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( - 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 39 ) - 57 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL SUM( DISTINCT 66 ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL SUM ( DISTINCT 66 ) AS col2 FROM tab2
----
66

query I rowsort
SELECT col2 + - 30 AS col0 FROM tab2
----
-7
10
28

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT - col0 DIV - + col0 + - col2 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-169
SELECT - col0 / - + col0 + - col2 FROM tab1
----
-58
-67
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-170
SELECT - ( - CAST( NULL AS DECIMAL ) ) + ( + + 39 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - COUNT( * ) + + 62 + - - 48 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-172
SELECT - COUNT ( * ) + + 62 + - - 48 FROM tab0 AS cor0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT 54 + + COUNT( + + col2 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-173
SELECT 54 + + COUNT ( + + col2 ) FROM tab2 AS cor0
----
57

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 > - 99 + - ( - col1 + - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-178
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT - 65 ) AS col0, 2 AS col0 FROM tab1
----
3
2

skipif mysql # not compatible
query II rowsort label-178
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT - 65 ) AS col0, 2 AS col0 FROM tab1
----
3
2

query I rowsort
SELECT - - ( + col2 ) * col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - COUNT( DISTINCT - col2 ) + + ( - SUM( - col2 ) ) FROM tab0 AS cor0 WHERE NOT col2 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT - COUNT ( DISTINCT - col2 ) + + ( - SUM ( - col2 ) ) FROM tab0 AS cor0 WHERE NOT col2 < ( NULL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 39 * 38 FROM tab0 cor0
----
1482
1482
1482

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT DISTINCT + + CAST( - 20 AS SIGNED ) col0 FROM tab0 AS cor0
----
-20

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

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

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

query I rowsort
SELECT ALL + 75 * - col2 AS col2 FROM tab0 AS cor0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT - + SUM( + 84 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT - + SUM ( + 84 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-192
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - COUNT( * ) + + 61 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-193
SELECT - COUNT ( * ) + + 61 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 61 col2 FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 FROM tab2
----
1122
3003
3819

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

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT col2 DIV + col2 + - col1 * col0 + 63 FROM tab2
----
-2282
-4864
-4961

skipif mysql # not compatible
query I rowsort label-197
SELECT col2 / + col2 + - col1 * col0 + 63 FROM tab2
----
-2282
-4864
-4961

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

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

query I rowsort
SELECT DISTINCT 6 FROM tab1 AS cor0 WHERE NOT + col1 * - + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL ( MAX( DISTINCT - ( + col0 ) ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL ( MAX ( DISTINCT - ( + col0 ) ) ) FROM tab0
----
-15

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL + + ( - 44 ) + - + ( + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + + 34 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + + ( - 44 ) + - + ( + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + + 34 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL - + 53 * + col2 + + col2 + + col0 * ( + 33 ) AS col1 FROM tab0 AS cor0
----
-1947
-1949
2351

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT col0 DIV - col1 + + col2 AS col1 FROM tab1 AS cor0
----
42
67
93

skipif mysql # not compatible
query I rowsort label-209
SELECT col0 / - col1 + + col2 AS col1 FROM tab1 AS cor0
----
42
67
93

query I rowsort
SELECT ALL + ( col2 ) - - - 63 FROM tab2 cor0
----
-23
-40
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT ALL col0 + 61 DIV - col1 AS col0 FROM tab2
----
45
64
75

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL col0 + 61 / - col1 AS col0 FROM tab2
----
45
64
75

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

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

query I rowsort
SELECT DISTINCT 33 - col1 FROM tab1
----
-14
19
28

query I rowsort
SELECT ALL 79 * - - col1 - 61 * + col2 AS col1 FROM tab1
----
-3204
-435
-4750

query II rowsort
SELECT DISTINCT col0, + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

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

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

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - + SUM ( + - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - MAX( - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-218
SELECT - MAX ( - col2 ) FROM tab0
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT DISTINCT + - ( CAST( - 48 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
48

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

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

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

query II rowsort
SELECT - + col0 * + col1, + col1 AS col2 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + - SUM( ALL 88 ) FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-223
SELECT + - SUM ( ALL 88 ) FROM tab1 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT CAST( NULL AS SIGNED ) + ( - + 6 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-224
SELECT CAST ( NULL AS INTEGER ) + ( - + 6 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 43 AS col2 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT + 19 DIV + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-226
SELECT + 19 / + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - col0 - - + col0 FROM tab2 WHERE - ( - col1 ) IS NOT NULL
----
128
150
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-229
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - CAST( - col0 AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-229
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - CAST ( - col0 AS INTEGER ) <= - col0
----

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

query I rowsort
SELECT - 84 + - - col1 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT col2 * col0 * + col0 + - - col1 FROM tab0 AS cor0
----
10656
75711
931492

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-233
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT - ( + CAST( NULL AS SIGNED ) ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-233
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT - ( + CAST ( NULL AS INTEGER ) ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - ( col2 ) * + col2 + + ( + + 58 ) + + + col1 FROM tab0 AS cor0
----
-2070
-21
-9742

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col1 col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + MIN( ALL + - col2 ) - + COUNT( * ) FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-238
SELECT + MIN ( ALL + - col2 ) - + COUNT ( * ) FROM tab1 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - - col0 - + 34 col2 FROM tab0 AS cor0
----
4490
5010
746

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT + 70 - + SUM( col0 ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + 70 - + SUM ( col0 ) FROM tab0 AS cor0
----
-129

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-242
SELECT ( - 48 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT ( - 48 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( - 65 ) * + col0 AS col1 FROM tab2
----
-2990
-4160
-4875

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + 78 * col0 AS col2 FROM tab0
----
1170
6786
7566

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - 89 + + - COUNT( * ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 89 + + - COUNT ( * ) FROM tab0 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT col2 - col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - col2 + + - 0 * + ( - col1 ) * - col0 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT DISTINCT 41, + col2 FROM tab0 AS cor0
----
41
10
41
47
41
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-254
SELECT DISTINCT CAST( + - 58 AS SIGNED ) AS col1, - col0 FROM tab1
----
-58
-51
-58
-85
-58
-91

skipif mysql # not compatible
query II rowsort label-254
SELECT DISTINCT CAST ( + - 58 AS INTEGER ) AS col1, - col0 FROM tab1
----
-58
-51
-58
-85
-58
-91

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

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE col2 + ( - ( ( + ( - 65 ) ) ) ) IS NOT NULL OR NOT NULL IS NULL
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT + 14 + - 39 * COUNT( * ) FROM tab1
----
-103

skipif mysql # not compatible
query I rowsort label-258
SELECT + 14 + - 39 * COUNT ( * ) FROM tab1
----
-103

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

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

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

query I rowsort
SELECT - col1 - 95 AS col2 FROM tab0
----
-116
-176
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT ( - + 70 ) >= NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 18 * + col1 * 44 col1 FROM tab1
----
-10992
-37156
-3901

query I rowsort
SELECT col2 + + col2 + + 1 FROM tab0
----
199
21
95

query I rowsort
SELECT 52 - + col0 FROM tab2 AS cor0 WHERE - col1 * - col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT MIN( ALL + col2 ) + - SUM( - col2 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT MIN ( ALL + col2 ) + - SUM ( - col2 ) FROM tab1 AS cor0
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT + col1 + + 27 * - + col1 - - 54 FROM tab0 AS cor0 WHERE - CAST( - - 51 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-268
SELECT + col1 + + 27 * - + col1 - - 54 FROM tab0 AS cor0 WHERE - CAST ( - - 51 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT DISTINCT col1 * - col2 - - col1 DIV + 55 FROM tab2 AS cor0
----
-1173
-3079
-3885

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT col1 * - col2 - - col1 / + 55 FROM tab2 AS cor0
----
-1173
-3079
-3885

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 20 col1 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab1 cor0 WHERE NULL > 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT CAST( - 78 AS SIGNED ) FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-273
SELECT CAST ( - 78 AS INTEGER ) FROM tab0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT + 55 * - SUM( ALL + - col0 ) AS col0 FROM tab0
----
10945

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + 55 * - SUM ( ALL + - col0 ) AS col0 FROM tab0
----
10945

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT 39 * + - COUNT( - 3 ) AS col0 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT 39 * + - COUNT ( - 3 ) AS col0 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL SUM( + + col0 ) * + + ( ( + SUM( col2 ) ) ) + - 7 AS col0 FROM tab0
----
31037

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL SUM ( + + col0 ) * + + ( ( + SUM ( col2 ) ) ) + - 7 AS col0 FROM tab0
----
31037

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

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

query I rowsort
SELECT ALL + 59 * col0 AS col1 FROM tab0
----
5133
5723
885

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT DISTINCT - 53 DIV - + 70 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - 53 / - + 70 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT col0 / + col2 IN ( + col2 + - col1, col2, - col0 - + - col1 + - 5 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + MAX( ALL 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + MAX ( ALL 76 ) FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT 57 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-284
SELECT 57 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL 65 + + ( 34 ) FROM tab0 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL COUNT( * ) * - 17 col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-286
SELECT ALL COUNT ( * ) * - 17 col0 FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT DISTINCT + ( - 54 ) * - col1 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + 92 * + col1 / - - 77 AS col0 FROM tab1 WHERE + col0 - col2 - + ( + col1 ) * - ( CAST( 42 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + 92 * + col1 / - - 77 AS col0 FROM tab1 WHERE + col0 - col2 - + ( + col1 ) * - ( CAST ( 42 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ALL ( - - 40 ) AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab0 WHERE 82 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 * + col1 * - 53 * col1 + - 35 FROM tab0
----
-350630
-5216030
-830

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL COUNT( * ) - - MAX( 85 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL COUNT ( * ) - - MAX ( 85 ) FROM tab0 AS cor0
----
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + COUNT( 32 ) * 22 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-301
SELECT + COUNT ( 32 ) * 22 AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT ALL - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - 19
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT col1 FROM tab2 WHERE NOT - + col2 IN ( - col1, + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-305
SELECT col1 FROM tab2 WHERE NOT - + col2 IN ( - col1, + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-308
SELECT - ( CAST( + col1 AS SIGNED ) ), col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-308
SELECT - ( CAST ( + col1 AS INTEGER ) ), col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + ( + + ( - - 70 ) ) * + + COUNT( * ) AS col1 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-309
SELECT + ( + + ( - - 70 ) ) * + + COUNT ( * ) AS col1 FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - - COUNT( * ) FROM tab0 WHERE NOT - 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-310
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT - 12 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-311
SELECT + CAST( NULL AS SIGNED ) AS col2, + 8 + + + 94 + + 48 * + - col0 * + - ( + 77 ) FROM tab2
----
NULL
170118
NULL
236646
NULL
277302

skipif mysql # not compatible
query II rowsort label-311
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 8 + + + 94 + + 48 * + - col0 * + - ( + 77 ) FROM tab2
----
NULL
170118
NULL
236646
NULL
277302

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-313
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - 11 <= + col0
----

skipif mysql # not compatible
query III rowsort label-313
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - 11 <= + col0
----

query I rowsort
SELECT DISTINCT + + 71 * - col2 FROM tab2 AS cor0
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT + SUM( ALL - 98 ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + SUM ( ALL - 98 ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT DISTINCT + col2 * col2 / - col2 - - 14 FROM tab0 AS cor0 WHERE NULL < + col1 - + col2 + + 76
----

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

query I rowsort
SELECT DISTINCT 8 - - - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
5

query I rowsort
SELECT DISTINCT - + 21 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-16
-7
26

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

query I rowsort
SELECT ALL + 80 + 17 FROM tab2 AS cor0
----
97
97
97

query II rowsort
SELECT DISTINCT - col0 * 0 + + - 31 + col0, col0 AS col1 FROM tab1 AS cor0
----
20
51
54
85
60
91

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT 49 DIV + 12 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 - - col2 AND - col0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-323
SELECT 49 / + 12 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 - - col2 AND - col0
----
4
4
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL + + COUNT( * ) + 35 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + + COUNT ( * ) + 35 FROM tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 66 + - - 47 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + 71 + - - 21 FROM tab0 cor0
----
92
92
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 80 NOT BETWEEN NULL AND - - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT ALL 54 DIV col1 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 54 / col1 FROM tab1 AS cor0
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL + 92 * MIN( + col2 ) AS col1 FROM tab0
----
920

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + 92 * MIN ( + col2 ) AS col1 FROM tab0
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT DISTINCT + COUNT( DISTINCT + col1 ), COUNT( DISTINCT col1 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-332
SELECT DISTINCT + COUNT ( DISTINCT + col1 ), COUNT ( DISTINCT col1 ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT col2 + + - 17 - col1 * + ( - col0 ) * col1 FROM tab2 AS cor0
----
119652
336716
379479

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT MAX( ( - 27 ) ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-334
SELECT MAX ( ( - 27 ) ) AS col0 FROM tab1 AS cor0
----
-27

query II rowsort
SELECT - col0 * - + 28 + - 86, col2 AS col1 FROM tab2
----
1202
23
1706
40
2014
58

query III rowsort
SELECT * FROM tab0 WHERE 50 + 89 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * - col2 col1 FROM tab1
----
4779
5508
7776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - - col1 + - + 16 >= NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT ALL 54 DIV 59 * 28 + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 54 / 59 * 28 + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT - - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-341
SELECT - - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-342
SELECT DISTINCT + + COUNT( * ), COUNT( DISTINCT - col1 ) DIV - 65 - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT + + COUNT ( * ), COUNT ( DISTINCT - col1 ) / - 65 - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3
195

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

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

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

query III rowsort
SELECT - + col1 AS col0, col0 * + col0 + - + col0 AS col1, + - 18 AS col0 FROM tab1 AS cor0
----
9 values hashing to 161ad5210cce4b74aa96741097cc65ce

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * 84 col0 FROM tab1 AS cor0
----
-1512

onlyif mysql # DIV for integer division: 
query II rowsort label-347
SELECT ALL + col2 * - col1 col0, col1 DIV + 67 col1 FROM tab2
----
-1173
0
-3080
1
-3886
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-347
SELECT ALL + col2 * - col1 col0, col1 / + 67 col1 FROM tab2
----
-1173
0
-3080
1
-3886
1

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL MAX( DISTINCT - + col1 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-348
SELECT ALL MAX ( DISTINCT - + col1 ) col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + - 40 * + + 7 + 39 / - 86 - - - col0 + col2 IS NOT NULL
----

query II rowsort
SELECT - col0 * - - 45 AS col1, col2 FROM tab0 AS cor0
----
-3915
10
-4365
99
-675
47

query I rowsort
SELECT DISTINCT AVG ( ALL - 80 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 + - 21 FROM tab1
----
30
64
70

query I rowsort
SELECT DISTINCT + - col1 + + - col2 * col0 * col2 FROM tab0 AS cor0
----
-33216
-8721
-950698

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-355
SELECT SUM ( DISTINCT + 85 ) col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL col1 + 87 AS col2 FROM tab2 AS cor0
----
138
154
164

query I rowsort
SELECT + + col1 * + + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col0 + - - 80 AS col1 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT ALL - AVG ( ALL - col0 ) AS col0 FROM tab0 cor0 WHERE NOT + col1 * col2 * + col1 - - - col1 - - 33 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77 / - + col1 + + 61
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT DISTINCT COUNT( * ) AS col1, MAX( - col1 ) FROM tab1 cor0 WHERE ( - col1 IS NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-362
SELECT DISTINCT COUNT ( * ) AS col1, MAX ( - col1 ) FROM tab1 cor0 WHERE ( - col1 IS NULL )
----
0
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-366
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) + COUNT ( * ) - + 61 FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT ALL col1 * - - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL 1 + + 75 - + + col2 + 21 FROM tab0 AS cor0
----
-2
50
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + + 34 + col2 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-372
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - + ( - 81 ) + - - 79 + - 6 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - + ( - 81 ) + - - 79 + - 6 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-373
SELECT + 51 DIV - CAST( - col0 AS SIGNED ) AS col0, + 41 FROM tab0 AS cor0
----
0
41
0
41
3
41

skipif mysql # not compatible
query II rowsort label-373
SELECT + 51 / - CAST ( - col0 AS INTEGER ) AS col0, + 41 FROM tab0 AS cor0
----
0
41
0
41
3
41

onlyif mysql # DIV for integer division: 
query II rowsort label-374
SELECT ALL + - 10 DIV col2 AS col0, col2 + - col0 AS col0 FROM tab2 AS cor0
----
0
-17
0
-23
0
-24

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL + - 10 / col2 AS col0, col2 + - col0 AS col0 FROM tab2 AS cor0
----
0
-17
0
-23
0
-24

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

query II rowsort
SELECT - ( col2 ) AS col2, ( 58 ) FROM tab1 AS cor0
----
-59
58
-68
58
-96
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - ( + + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - ( + + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT col1 + + 88 FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT MIN( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-382
SELECT MIN ( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + 85 + col1 AS col0 FROM tab0 AS cor0
----
106
166
86

query II rowsort
SELECT DISTINCT + 68, - col1 AS col0 FROM tab1 AS cor0
----
68
-14
68
-47
68
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT ALL - CAST( NULL AS SIGNED ) + - SUM( 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - CAST ( NULL AS INTEGER ) + - SUM ( 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - col1 * + 79 AS col2 FROM tab2
----
-4029
-5293
-6083

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

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT ALL + ( ( - MIN( - col2 ) ) ) AS col1, - 64 AS col0 FROM tab1
----
96
-64

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL + ( ( - MIN ( - col2 ) ) ) AS col1, - 64 AS col0 FROM tab1
----
96
-64

query I rowsort
SELECT + - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT + 52 DIV - - col1 + - ( 54 ) FROM tab2 AS cor0 WHERE + col1 * - col0 + col0 + 33 * - + col2 IS NOT NULL
----
-53
-54
-54

skipif mysql # not compatible
query I rowsort label-391
SELECT + 52 / - - col1 + - ( 54 ) FROM tab2 AS cor0 WHERE + col1 * - col0 + col0 + 33 * - + col2 IS NOT NULL
----
-53
-54
-54

query I rowsort
SELECT col0 + col0 * + 78 FROM tab1 AS cor0
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - + col2 IS NULL AND NOT + 97 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - + col2 IS NULL AND NOT + 97 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE NULL < - col0 + - - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col1 * - - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab0
----
3045
3395
525

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

skipif mysql # not compatible
query II rowsort label-399
SELECT DISTINCT + - COUNT ( * ) AS col0, - ( - COUNT ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + + 47 * - - col0 * + col0 FROM tab2 AS cor0
----
192512
264375
99452

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

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

query II rowsort
SELECT - 46 AS col0, 48 AS col1 FROM tab1 AS cor0
----
-46
48
-46
48
-46
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 56 * 83 * + + col0 col2 FROM tab1
----
51
237048
85
395080
91
422968

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

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

query II rowsort
SELECT DISTINCT - col2, - col2 + + 2 AS col2 FROM tab1 cor0
----
-59
-57
-68
-66
-96
-94

query I rowsort
SELECT + col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

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

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

query II rowsort
SELECT + 13 AS col1, - ( + + col0 ) FROM tab2 AS cor0
----
13
-46
13
-64
13
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - - MAX( DISTINCT col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-409
SELECT - - MAX ( DISTINCT col1 ) FROM tab2 cor0
----
77

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 25 + - + col1 >= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT DISTINCT - SUM( DISTINCT - - ( - - 54 ) ) AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - SUM ( DISTINCT - - ( - - 54 ) ) AS col1 FROM tab1
----
-54

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

query I rowsort
SELECT DISTINCT ( + - ( + - col2 ) ) * + - col1 AS col1 FROM tab0
----
-210
-3807
-99

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

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + 88 / + - col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) + AVG ( 60 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + AVG ( 60 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 + - 53 AS col1 FROM tab2
----
-104
-120
-130

query I rowsort
SELECT + - col1 * - + ( + col2 ) * - + col0 AS col2 FROM tab2 cor0
----
-197120
-291450
-53958

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

query I rowsort
SELECT DISTINCT 22 + ( - + 98 ) + + ( + 35 ) FROM tab2 AS cor0
----
-41

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

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

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

query II rowsort
SELECT DISTINCT + col1 + 75 + col2 AS col2, ( + col0 ) FROM tab0 AS cor0
----
106
87
175
97
203
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - MAX( DISTINCT - 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-425
SELECT - MAX ( DISTINCT - 11 ) FROM tab2 AS cor0
----
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col1 = + col1 - + col0 - ( + col1 ) AND NOT 21 = + ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - - + 73 FROM tab0
----
154
74
94

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( + ( - 12 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-431
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST( 80 AS SIGNED ) * + 63 * col0 - - - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-431
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST ( 80 AS INTEGER ) * + 63 * col0 - - - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 18 * + col2 AS col0 FROM tab2
----
1044
414
720

query I rowsort
SELECT + col2 * col1 + + ( - 25 ) * - 51 FROM tab1 cor0
----
1570
2619
4471

query I rowsort
SELECT ALL col2 * - 1 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT ALL - + col0 * + + col2 * col2 * 4 AS col0 FROM tab2 AS cor0
----
-1009200
-409600
-97336

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-437
SELECT ALL - col0 / - - col0 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - ( - col0 ) + - 78 AS col1 FROM tab1
----
-27
13
7

query I rowsort
SELECT - 50 + + + col1 AS col0 FROM tab0
----
-29
-49
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT + SUM( ALL + CAST( - 41 AS SIGNED ) ) + - 17 AS col1 FROM tab2
----
-140

skipif mysql # not compatible
query I rowsort label-440
SELECT + SUM ( ALL + CAST ( - 41 AS INTEGER ) ) + - 17 AS col1 FROM tab2
----
-140

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

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

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

query I rowsort
SELECT DISTINCT - 88 + 16 * - + col2 + - col0 FROM tab0
----
-1769
-335
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-444
SELECT ALL + col1 * - 8 + + 59 * CAST( + 33 AS SIGNED ) FROM tab2 AS cor0
----
1331
1411
1539

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + col1 * - 8 + + 59 * CAST ( + 33 AS INTEGER ) FROM tab2 AS cor0
----
1331
1411
1539

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

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

query I rowsort
SELECT DISTINCT ( 31 ) + - - ( 68 ) AS col0 FROM tab1 AS cor0
----
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL ( CAST( 81 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL ( CAST ( 81 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 + + ( + + ( - - 70 ) ) * - - col0 * col2 FROM tab0 AS cor0
----
49335
60813
672113

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT MIN( 79 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT MIN ( 79 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
79

query II rowsort
SELECT ALL - + 80 + + + col1 AS col2, - col2 * - - col1 AS col1 FROM tab2 AS cor0
----
-13
-3886
-29
-1173
-3
-3080

query I rowsort
SELECT ALL col2 - - ( 25 ) * ( - 66 ) AS col2 FROM tab0 AS cor0
----
-1551
-1603
-1640

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-455
SELECT DISTINCT + 54 col2, + col2 * + CAST( NULL AS DECIMAL ) * - + 84 AS col1 FROM tab1
----
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-455
SELECT DISTINCT + 54 col2, + col2 * + CAST ( NULL AS REAL ) * - + 84 AS col1 FROM tab1
----
54
NULL

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

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

query I rowsort
SELECT - col1 * + + col2 FROM tab2
----
-1173
-3080
-3886

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-459
SELECT - SUM ( ALL - + col0 ) col2 FROM tab0
----
199

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

query I rowsort
SELECT DISTINCT + - col2 * 11 AS col1 FROM tab2 AS cor0
----
-253
-440
-638

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON + 69 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL + COUNT( * ) FROM tab2 cor0 JOIN tab2 AS cor1 ON - - 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + COUNT ( * ) FROM tab2 cor0 JOIN tab2 AS cor1 ON - - 35 IS NULL
----
0

query I rowsort
SELECT - col1 * + 26 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT ALL COUNT( * ) + 3 col2, + COUNT( * ) * + 38 FROM tab2 AS cor0
----
6
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-468
SELECT ALL COUNT ( * ) + 3 col2, + COUNT ( * ) * + 38 FROM tab2 AS cor0
----
6
114

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-469
SELECT * FROM tab2 AS cor0 WHERE NOT 12 + - - col1 IN ( + col1 * + 90 + - - col2, + col0, - + col0 + - 45 + - col0 * + col1 * 73 - - col2, + - col2 + - + CAST( - col2 AS SIGNED ), - CAST( NULL AS DECIMAL ), col2 * + col1 + + 41 )
----

skipif mysql # not compatible
query III rowsort label-469
SELECT * FROM tab2 AS cor0 WHERE NOT 12 + - - col1 IN ( + col1 * + 90 + - - col2, + col0, - + col0 + - 45 + - col0 * + col1 * 73 - - col2, + - col2 + - + CAST ( - col2 AS INTEGER ), - CAST ( NULL AS REAL ), col2 * + col1 + + 41 )
----

query I rowsort
SELECT ALL + 64 * - 53 AS col0 FROM tab0 AS cor0
----
-3392
-3392
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT COUNT( * ) + ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT 47 NOT IN ( - - 7 * - - col1 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) + ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT 47 NOT IN ( - - 7 * - - col1 + - col2 )
----
0

query I rowsort
SELECT - + col0 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT DISTINCT - col1 * + 29 AS col2 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT + - 45 * - + 42 * ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + - 45 * - + 42 * ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) * - 16 col2 FROM tab0 cor0
----
-1392
-1552
-240

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-477
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * CAST( - col1 AS SIGNED ) = - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-477
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * CAST ( - col1 AS INTEGER ) = - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT - ( - + CAST( + col1 AS SIGNED ) ) * - col2 * + col2 AS col2 FROM tab1
----
-129024
-17405
-217328

skipif mysql # not compatible
query I rowsort label-478
SELECT - ( - + CAST ( + col1 AS INTEGER ) ) * - col2 * + col2 AS col2 FROM tab1
----
-129024
-17405
-217328

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT + COUNT( ALL + 31 ) col2 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL COUNT( * ) + 50 AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL COUNT ( * ) + 50 AS col0 FROM tab1
----
53

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

query I rowsort
SELECT 81 + - - col2 * + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
4977
5096
6269

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

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

query I rowsort
SELECT - 31 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-31
-31
-31

query I rowsort
SELECT ALL 18 * col2 * + col2 FROM tab1
----
165888
62658
83232

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + COUNT( ALL - + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + COUNT ( ALL - + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT - - 49 DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-488
SELECT - - 49 / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT + + 10 - 18 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL + COUNT( * ) + 2 AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( * ) + 2 AS col2 FROM tab0 AS cor0
----
5

query II rowsort
SELECT + col1 - col2, + col0 FROM tab0 AS cor0
----
-98
97
11
87
34
15

query I rowsort
SELECT ALL + col2 + + + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT + - col0 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT col1 + + + 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT + 16 DIV + - 70 + ( + 39 ) + - col2 FROM tab2 AS cor0
----
-1
-19
16

skipif mysql # not compatible
query I rowsort label-494
SELECT + 16 / + - 70 + ( + 39 ) + - col2 FROM tab2 AS cor0
----
-1
-19
16

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-496
SELECT DISTINCT + col1 col1, - 1 DIV ( + col0 ) * + + col2 + + ( + ( + + 44 ) ) FROM tab1 AS cor0
----
14
44
47
44
5
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-496
SELECT DISTINCT + col1 col1, - 1 / ( + col0 ) * + + col2 + + ( + ( + + 44 ) ) FROM tab1 AS cor0
----
14
44
47
44
5
44

query I rowsort
SELECT - ( 8 ) FROM tab1
----
-8
-8
-8

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

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

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

skipif mysql # not compatible
query I rowsort label-499
SELECT ( - ( COUNT ( * ) ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = 2 + + col1 * - col2
----

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

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

query I rowsort
SELECT col1 * - 52 AS col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT 91 * - 17 * + 15 * 33 + - - COUNT( * ) col0 FROM tab1 AS cor0
----
-765762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-503
SELECT 91 * - 17 * + 15 * 33 + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-765762

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

query I rowsort
SELECT ALL 86 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
86
86
86

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 62 / + col2 * + 92 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-507
SELECT - COUNT( * ) DIV 51 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT - COUNT ( * ) / 51 FROM tab1
----
0

query I rowsort
SELECT 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-509
SELECT MAX ( col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT COUNT( ALL col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-510
SELECT COUNT ( ALL col0 ) FROM tab0
----
3

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

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

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

query II rowsort
SELECT col1 AS col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT 53 + col1 FROM tab0 AS cor0
----
134
54
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + 27 * - COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-517
SELECT + 27 * - COUNT ( * ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + + col0 * 87 FROM tab1 AS cor0
----
4437
7395
7917

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 NOT BETWEEN - + ( 92 ) * + 26 + col2 AND - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT - COUNT( * ) + 24 col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-521
SELECT DISTINCT - COUNT ( * ) + 24 col1 FROM tab1 AS cor0
----
21

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

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

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

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

query I rowsort
SELECT - col2 + - + col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT + col1 + + 48 FROM tab1
----
53
62
95

query I rowsort
SELECT ( + - col2 ) + - 94 FROM tab0
----
-104
-141
-193

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT 99 NOT IN ( + + col2 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT DISTINCT 58 * + - COUNT( * ) col1, - COUNT( - col0 ) FROM tab0
----
-174
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-528
SELECT DISTINCT 58 * + - COUNT ( * ) col1, - COUNT ( - col0 ) FROM tab0
----
-174
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-529
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + CAST( NULL AS SIGNED ) / - col2
----

skipif mysql # not compatible
query III rowsort label-529
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + CAST ( NULL AS INTEGER ) / - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + ( + 70 ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT ALL + col2 + - col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + col2 + - col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

query I rowsort
SELECT + col2 * 29 + - col1 * - - 13 FROM tab0
----
17
2858
310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0 WHERE NOT + 26 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0 WHERE NOT + 26 >= NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-539
SELECT DISTINCT + ( + 13 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT + + 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 69 * - 63 col2 FROM tab1 AS cor0
----
-256473
-295596
-417312

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

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

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

query II rowsort
SELECT ALL 85 * + 66 + + - col1 AS col2, col0 FROM tab1 AS cor0
----
5563
91
5596
51
5605
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-550
SELECT SUM ( - col2 ) FROM tab1
----
-223

query I rowsort
SELECT col0 * + + col1 * col1 FROM tab1
----
201019
2125
9996

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab0
----
705
870
9603

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

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL COUNT ( ALL - - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-555
SELECT 57 AS col0, COUNT( * ) AS col1 FROM tab2
----
57
3

skipif mysql # not compatible
query II rowsort label-555
SELECT 57 AS col0, COUNT ( * ) AS col1 FROM tab2
----
57
3

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT - 16 * + MAX( + ( - col0 ) ) AS col0 FROM tab1
----
816

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - 16 * + MAX ( + ( - col0 ) ) AS col0 FROM tab1
----
816

query I rowsort
SELECT col1 * 19 * + 66 FROM tab2 cor0
----
63954
84018
96558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 14 col1 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT 85 * + + col2 FROM tab0 AS cor0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - 33 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-560
SELECT - 33 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-33
3

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT DISTINCT 35 * + 94 AS col1, COUNT( * ) AS col0 FROM tab2
----
3290
3

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT 35 * + 94 AS col1, COUNT ( * ) AS col0 FROM tab2
----
3290
3

query I rowsort
SELECT DISTINCT + col2 * + + col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col2, COUNT( DISTINCT - + 65 ) FROM tab0
----
6
1

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col2, COUNT ( DISTINCT - + 65 ) FROM tab0
----
6
1

query II rowsort
SELECT + col1, - 96 * - 22 FROM tab2 WHERE NOT - col1 * + + col2 BETWEEN NULL AND + - ( - col1 )
----

query I rowsort
SELECT ALL - col0 + + 25 AS col2 FROM tab2
----
-21
-39
-50

query I rowsort
SELECT ALL - col2 + - col2 + + + 35 + + - col2 * 52 * - + col2 FROM tab1 AS cor0
----
180929
240347
479075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 43 - + col2 * + col0 + - col2 col2 FROM tab1 AS cor0
----
-4898
-4946
-6122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT + CAST( NULL AS SIGNED ) * + col0 / - - 98 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-568
SELECT + CAST ( NULL AS INTEGER ) * + col0 / - - 98 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT AVG ( DISTINCT - 4 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT ( + 23 ) AS col0 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT col1 + + + col2 DIV - col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-573
SELECT col1 + + + col2 / - col2 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL 18 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 53 * - col1 * col0 + 50 + - + 15 FROM tab2 AS cor0
----
124373
261219
266360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-576
SELECT + - 81 + - 4 + SUM( - + col1 ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT + - 81 + - 4 + SUM ( - + col1 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL ( + MIN( - 61 ) ) AS col2 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL ( + MIN ( - 61 ) ) AS col2 FROM tab1
----
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT DISTINCT - col2 DIV - 93 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT - col2 / - 93 FROM tab1
----
0
1

query I rowsort
SELECT + 36 FROM tab0 WHERE NOT NULL IS NOT NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT - MIN( DISTINCT - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-581
SELECT - MIN ( DISTINCT - col1 ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT 95 DIV + col1 + - 84 AS col0 FROM tab2
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-582
SELECT 95 / + col1 + - 84 AS col0 FROM tab2
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab2 WHERE NOT + 29 / - 88 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 WHERE NOT + 29 / - 88 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 FROM tab0 WHERE NOT - 83 * + 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col2 FROM tab2 WHERE NOT col1 * ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE 26 / + col0 = NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL + MAX( - col2 ) * - COUNT( * ) FROM tab1 WHERE col0 + + 88 IS NOT NULL
----
177

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + MAX ( - col2 ) * - COUNT ( * ) FROM tab1 WHERE col0 + + 88 IS NOT NULL
----
177

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

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

query I rowsort
SELECT 57 + - col1 FROM tab2
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT 32 + + COUNT( col0 ) * + COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-591
SELECT 32 + + COUNT ( col0 ) * + COUNT ( * ) FROM tab1
----
41

query III rowsort
SELECT * FROM tab1 WHERE 94 + col2 > NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-594
SELECT DISTINCT 24 DIV + COUNT( * ) FROM tab2 WHERE + col1 < 50 * + ( 34 )
----
8

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT 24 / + COUNT ( * ) FROM tab2 WHERE + col1 < 50 * + ( 34 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT COUNT( - ( - col0 ) ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT COUNT ( - ( - col0 ) ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( - 24 * 32 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT - MIN( - 32 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT - MIN ( - 32 ) AS col0 FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 * 62 col1 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT 98 - COUNT( * ) * COUNT( col0 + ( col0 + col0 ) ) col1 FROM tab2
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-599
SELECT 98 - COUNT ( * ) * COUNT ( col0 + ( col0 + col0 ) ) col1 FROM tab2
----
89

query I rowsort
SELECT ALL - col0 * - col0 FROM tab2 WHERE NOT ( - col1 / - 21 + col1 ) NOT BETWEEN NULL AND 61 * col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT col2 - + col2 DIV - 59 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-602
SELECT col2 - + col2 / - 59 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-604
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + SUM ( DISTINCT col0 ) FROM tab1
----
230

query I rowsort
SELECT DISTINCT ( 37 ) FROM tab2 WHERE NULL NOT BETWEEN - 62 + col1 * - col2 AND - 8 * + 80
----

query I rowsort
SELECT + col0 * - 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT ALL - ( - col1 ) DIV + 58 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - ( - col1 ) / + 58 AS col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT SUM( 54 ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-608
SELECT SUM ( 54 ) FROM tab2 AS cor0
----
162

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) * 18 <> 30
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL col1 DIV 56 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL col1 / 56 FROM tab2
----
0
1
1

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

skipif mysql # not compatible
query I rowsort label-613
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 * 22 IS NULL
----

query I rowsort
SELECT col0 * col1 + - 45 AS col1 FROM tab0 AS cor0
----
1170
1782
52

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 26 BETWEEN NULL AND col2 * - col1
----

query I rowsort
SELECT - ( - col1 ) + 15 AS col1 FROM tab2 AS cor0
----
66
82
92

query I rowsort
SELECT DISTINCT + col2 + - col0 * - ( ( + col0 ) ) FROM tab1 AS cor0
----
2697
7284
8349

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT DISTINCT + col0 DIV + col1 + 90 FROM tab1 AS cor0
----
107
91
93

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + col0 / + col1 + 90 FROM tab1 AS cor0
----
107
91
93

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 91 * + col2
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT 41 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-626
SELECT 41 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - ( - 23 ) + COUNT( ALL - 37 - + col1 ) * - COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-627
SELECT - ( - 23 ) + COUNT ( ALL - 37 - + col1 ) * - COUNT ( * ) FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT + MAX( + 89 ) * - 2 AS col0 FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-628
SELECT + MAX ( + 89 ) * - 2 AS col0 FROM tab0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT 20 + COUNT( * ) * + 78 FROM tab0 WHERE NOT NULL IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT 20 + COUNT ( * ) * + 78 FROM tab0 WHERE NOT NULL IS NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-630
SELECT - CAST( - col0 AS SIGNED ) DIV - col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-630
SELECT - CAST ( - col0 AS INTEGER ) / - col1 col2 FROM tab1
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT + col2 DIV 19 AS col0 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + col2 / 19 AS col0 FROM tab0
----
0
2
5

query I rowsort
SELECT DISTINCT col1 * col2 * 26 + 48 * col2 FROM tab2
----
103820
31602
82000

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE - 43 IS NOT NULL
----
-59
-68
-96

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

query I rowsort
SELECT - 99 - + col2 FROM tab1 AS cor0
----
-158
-167
-195

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-637
SELECT SUM ( ALL - col0 ) col0 FROM tab0
----
-199

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

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - - 47 + + col1 >= col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + col0 AS col0, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

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

query II rowsort
SELECT 71, 82 AS col2 FROM tab0 AS cor0
----
71
82
71
82
71
82

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

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

query I rowsort
SELECT ALL + col0 * + 20 FROM tab2 AS cor0
----
1280
1500
920

query I rowsort
SELECT DISTINCT + 34 FROM tab1 cor0 WHERE 59 + 84 + 26 / + col1 * 13 IS NOT NULL
----
34

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab1 WHERE NOT - ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 4 * - col1 ) NOT BETWEEN col1 AND col1 AND NOT ( + 32 * - col1 ) <> + col1
----

query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - ( + col2 ) * + 95 + 63 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT MAX( + 65 ) AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-652
SELECT MAX ( + 65 ) AS col2 FROM tab1
----
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - + 61
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-654
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 84 FROM tab1 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - 8 * - COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-657
SELECT - 8 * - COUNT ( * ) FROM tab1
----
24

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT - 19 + - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

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

query I rowsort
SELECT 31 * + + col1 FROM tab2 AS cor0
----
1581
2077
2387

query I rowsort
SELECT ALL - - col2 + + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT - COUNT( * ) * + - ( - COUNT( * ) ) - - - 91 AS col0 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-665
SELECT - COUNT ( * ) * + - ( - COUNT ( * ) ) - - - 91 AS col0 FROM tab1 AS cor0
----
-100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 + + - ( + + 80 ) - - col0 = ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * + col2 * - col1 * - 75 col1 FROM tab0
----
-1370240
-4282828
-720126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9, + col2 + 33 col2 FROM tab1
----
9
101
9
129
9
92

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT 28 DIV - col1 + - 0 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-671
SELECT 28 / - col1 + - 0 FROM tab1
----
-2
-5
0

query I rowsort
SELECT - 28 * + - 33 + - - col2 * - - col2 FROM tab2
----
1453
2524
4288

query I rowsort
SELECT DISTINCT col2 * + - 37 + - col2 AS col2 FROM tab1 AS cor0
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + COUNT( DISTINCT - 31 ) + - 27 AS col0 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-674
SELECT + COUNT ( DISTINCT - 31 ) + - 27 AS col0 FROM tab1 cor0
----
-26

query I rowsort
SELECT ALL ( 70 ) / + 32 AS col1 FROM tab1 AS cor0 WHERE col1 - - 87 * - col2 BETWEEN + col0 AND + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT MIN( + ( + 31 ) ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-676
SELECT MIN ( + ( + 31 ) ) AS col2 FROM tab2 AS cor0
----
31

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-680
SELECT ALL + ( COUNT ( * ) ) col0, 88 AS col1 FROM tab2 AS cor0
----
3
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT SUM( + + 69 ) * + 27 + + + 79 FROM tab0
----
5668

skipif mysql # not compatible
query I rowsort label-682
SELECT SUM ( + + 69 ) * + 27 + + + 79 FROM tab0
----
5668

query I rowsort
SELECT 36 * 43 AS col2 FROM tab0
----
1548
1548
1548

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 >= + ( + col1 )
----
46
51
23
64
77
40

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

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

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT - - 57 * COUNT( * ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - - 57 * COUNT ( * ) FROM tab0 AS cor0
----
171

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 68 * - + 82 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT col2 * + + col0 - + 32 + 6 DIV col0 DIV + 96 * + col2 AS col1 FROM tab0 AS cor0
----
673
838
9571

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT col2 * + + col0 - + 32 + 6 / col0 / + 96 * + col2 AS col1 FROM tab0 AS cor0
----
673
838
9571

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

query II rowsort
SELECT + + col1, 9 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
9
67
9
77
9

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

skipif mysql # not compatible
query I rowsort label-694
SELECT - 18 + - + MIN ( ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT + col2 * + 3 + 61 - - CAST( 43 AS SIGNED ) FROM tab1
----
281
308
392

skipif mysql # not compatible
query I rowsort label-695
SELECT + col2 * + 3 + 61 - - CAST ( 43 AS INTEGER ) FROM tab1
----
281
308
392

query I rowsort
SELECT - col1 + + + col2 * + col0 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query II rowsort label-697
SELECT col1 * 11 + - + col1 AS col1, col2 + 46 + + + 96 DIV col0 col0 FROM tab0
----
10
145
210
57
810
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-697
SELECT col1 * 11 + - + col1 AS col1, col2 + 46 + + + 96 / col0 col0 FROM tab0
----
10
145
210
57
810
99

query I rowsort
SELECT - col1 + + + 85 FROM tab2
----
18
34
8

query I rowsort
SELECT + col2 * + col2 * + 49 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
170994
230853
452298

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) <> col1
----

query I rowsort
SELECT ALL + - col0 * + col0 * + col2 + + + col1 AS col0 FROM tab2 cor0
----
-163763
-326183
-48617

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT + - COUNT( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 88 + 69 + - - 42 + - col2 * + - col2 * - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-706
SELECT + - COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 88 + 69 + - - 42 + - col2 * + - col2 * - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + COUNT( - + col2 ) - - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + COUNT ( - + col2 ) - - - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab2 AS cor0 WHERE + 73 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + col2 * - - 42 AS col2 FROM tab1
----
2478
2856
4032

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

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT COUNT ( * ) - + ( - 87 ) - + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + 91 * + - COUNT( * ) AS col0 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-711
SELECT + 91 * + - COUNT ( * ) AS col0 FROM tab0
----
-273

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN - + 37 * + col0 + - col1 + col2 * - col1 + - 59 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT COUNT( * ) * ( 46 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-715
SELECT COUNT ( * ) * ( 46 ) FROM tab0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT - 57 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT - 57 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - ( + col0 ) ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 * - + 89 FROM tab0
----
4183
8811
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT COUNT( * ) DIV + 62 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT COUNT ( * ) / + 62 AS col1 FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT col0 AS col0, 19 AS col1 FROM tab1
----
51
19
85
19
91
19

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 * 38 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT - 33 AS col2, - 77 AS col2 FROM tab2 AS cor0
----
-33
-77
-33
-77
-33
-77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT DISTINCT + + 33 DIV + + col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT + + 33 / + + col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-731
SELECT + - col2 col1, 0 DIV + col0 AS col1 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-731
SELECT + - col2 col1, 0 / + col0 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # DIV for integer division: 
query II rowsort label-732
SELECT - + col0 AS col1, 61 DIV 67 * col0 + 50 FROM tab0 AS cor0
----
-15
50
-87
50
-97
50

skipif mysql # not compatible
query II rowsort label-732
SELECT - + col0 AS col1, 61 / 67 * col0 + 50 FROM tab0 AS cor0
----
-15
50
-87
50
-97
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-734
SELECT ALL * FROM tab2 WHERE + col0 * CAST( NULL AS SIGNED ) / - col1 BETWEEN ( col0 ) AND 74
----

skipif mysql # not compatible
query III rowsort label-734
SELECT ALL * FROM tab2 WHERE + col0 * CAST ( NULL AS INTEGER ) / - col1 BETWEEN ( col0 ) AND 74
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-736
SELECT - col1 DIV - CAST( + 17 AS SIGNED ) FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-736
SELECT - col1 / - CAST ( + 17 AS INTEGER ) FROM tab2
----
3
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL MAX( + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL MAX ( + + col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 + - - col2 col2 FROM tab0
----
146
57
94

query I rowsort
SELECT DISTINCT - ( col2 ) + + ( + 35 ) AS col1 FROM tab0
----
-12
-64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT + MIN( 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + MIN ( 86 ) FROM tab0
----
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL + + COUNT( + ( 57 ) ) - + COUNT( - col1 ) + COUNT( * ) * - 18 AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + + COUNT ( + ( 57 ) ) - + COUNT ( - col1 ) + COUNT ( * ) * - 18 AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL + 15 * - + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + 15 * - + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT + col1 - col2 DIV + col2 col0 FROM tab0 AS cor0
----
0
20
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT - ( + - 13 ) DIV + + 44 * 46 * - + 67 - + MAX( + 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-751
SELECT - ( + - 13 ) / + + 44 * 46 * - + 67 - + MAX ( + 41 ) FROM tab2 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT ALL ( - col2 ) * - + col2 - + 17 DIV - + ( - col0 ) AS col0 FROM tab0
----
100
2208
9801

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL ( - col2 ) * - + col2 - + 17 / - + ( - col0 ) AS col0 FROM tab0
----
100
2208
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL - 52 * + - COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - 52 * + - COUNT ( * ) FROM tab1
----
156

query I rowsort
SELECT + 27 * ( + 6 ) + + col0 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT - 66 * + + col0 AS col1, + col1 * + 89 FROM tab0 AS cor0
----
-5742
1869
-6402
89
-990
7209

query I rowsort
SELECT - col0 * + + col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

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

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + + SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT + 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 69 - - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + 52 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + - 58 * 33 FROM tab0 cor0
----
-1914

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col1 < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, col2 col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ( - COUNT( * ) ) + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2
----
0

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

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

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

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

query I rowsort
SELECT + 77 + - + col2 FROM tab0
----
-22
30
67

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT 71 + - col0 * 26 DIV col2 AS col2 FROM tab0
----
-155
46
63

skipif mysql # not compatible
query I rowsort label-774
SELECT 71 + - col0 * 26 / col2 AS col2 FROM tab0
----
-155
46
63

query I rowsort
SELECT ALL col0 + + 50 + - col0 AS col1 FROM tab1
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT ALL - 70 DIV + - col0 + + - 6 FROM tab1
----
-5
-6
-6

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 70 / + - col0 + + - 6 FROM tab1
----
-5
-6
-6

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

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

query I rowsort
SELECT DISTINCT - 28 - + col0 * - 6 AS col1 FROM tab1 AS cor0
----
278
482
518

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

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

query I rowsort
SELECT ALL - + 15 + + 28 + - - 31 FROM tab2 WHERE col1 <= NULL
----

query II rowsort
SELECT 54 * + 5 + col2, col2 + + col0 AS col2 FROM tab0
----
280
97
317
62
369
196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) > + col2
----
15
81
47
87
21
10

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

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

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

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

query II rowsort
SELECT col2, 38 * - col1 FROM tab1
----
59
-190
68
-1786
96
-532

query I rowsort
SELECT ALL 49 * 51 FROM tab0
----
2499
2499
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT SUM( ALL 13 ) AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-787
SELECT SUM ( ALL 13 ) AS col0 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-788
SELECT + - 71 AS col0, ( col0 ) AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-71
15
-71
87
-71
97

skipif mysql # not compatible
query II rowsort label-788
SELECT + - 71 AS col0, ( col0 ) AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-71
15
-71
87
-71
97

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT ALL + 84 DIV col2 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 84 / col2 AS col2 FROM tab2 AS cor0
----
1
2
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT + 16 * - + ( - - COUNT( * ) ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-792
SELECT + 16 * - + ( - - COUNT ( * ) ) FROM tab2
----
-48

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

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 42 * + + col2 * + - col2 + - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
141221
22167
67123

query I rowsort
SELECT ALL + col2 * + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT - 62 AS col2 FROM tab2 cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 47 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT - col1 + col2 * - col2 AS col2 FROM tab1 cor0 WHERE NULL <> + CAST( - 90 AS SIGNED )
----

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

query II rowsort
SELECT ALL + col0, col1 - - col1 FROM tab2
----
46
102
64
154
75
134

query I rowsort
SELECT + - col1 FROM tab0 WHERE + + 52 = + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL COUNT( * ) + MIN( DISTINCT 59 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL COUNT ( * ) + MIN ( DISTINCT 59 ) FROM tab0
----
62

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col0 col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + 17 + + col1 FROM tab2 cor0
----
68
84
94

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT + 96 + col0 + ( + - col2 ) DIV + col2 FROM tab1 AS cor0
----
146
180
186

skipif mysql # not compatible
query I rowsort label-806
SELECT + 96 + col0 + ( + - col2 ) / + col2 FROM tab1 AS cor0
----
146
180
186

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, + 57 * ( col1 ) * - col2 + - col0 + col2 col1 FROM tab0
----
-1
-5641
-21
-12047
-81
-216967

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

query II rowsort
SELECT col1 AS col1, col1 - col2 + - ( + 72 ) FROM tab2 AS cor0
----
51
-44
67
-63
77
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT + - 28 AS col1, COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-28
9

skipif mysql # not compatible
query II rowsort label-811
SELECT + - 28 AS col1, COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-28
9

query I rowsort
SELECT + col2 * - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-813
SELECT DISTINCT + MAX ( - 61 ) col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + col0 * 87 FROM tab2 AS cor0
----
4002
5568
6525

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = col1
----

query I rowsort
SELECT ALL + - 55 * + + col2 AS col1 FROM tab1 AS cor0
----
-3245
-3740
-5280

query I rowsort
SELECT + col2 * 55 + 0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( col2 ) AS col2, 12 AS col0 FROM tab0
----
10
12
47
12
99
12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT - CAST( + 23 AS SIGNED ) AS col2 FROM tab2
----
-23
-23
-23

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-822
SELECT + + col0 / - ( + - CAST( NULL AS DECIMAL ) ) + 29 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT + + col0 / - ( + - CAST ( NULL AS REAL ) ) + 29 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-823
SELECT DISTINCT 73 * - + col2 AS col1, 1 DIV col1 * col2 AS col2 FROM tab0 cor0
----
-3431
0
-7227
99
-730
0

skipif mysql # not compatible
query II rowsort label-823
SELECT DISTINCT 73 * - + col2 AS col1, 1 / col1 * col2 AS col2 FROM tab0 cor0
----
-3431
0
-7227
99
-730
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-825
SELECT DISTINCT + 41 DIV + - col0 + + 22 + + CAST( - col2 AS SIGNED ) + - - 18 AS col1, - 71 FROM tab1
----
-19
-71
-28
-71
-56
-71

skipif mysql # not compatible
query II rowsort label-825
SELECT DISTINCT + 41 / + - col0 + + 22 + + CAST ( - col2 AS INTEGER ) + - - 18 AS col1, - 71 FROM tab1
----
-19
-71
-28
-71
-56
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT + col2 DIV 6 col1 FROM tab0
----
1
16
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-826
SELECT + col2 / 6 col1 FROM tab0
----
1
16
7

query I rowsort
SELECT - col2 * 95 + + col0 AS col2 FROM tab0 AS cor0
----
-4450
-863
-9308

query I rowsort
SELECT ALL + 52 + + - col0 + 74 * - + 62 FROM tab1 AS cor0
----
-4587
-4621
-4627

query I rowsort
SELECT 7 + + 31 + col2 FROM tab1 cor0
----
106
134
97

query I rowsort
SELECT DISTINCT - + col2 + - + col1 - 86 FROM tab1 AS cor0
----
-150
-196
-201

query I rowsort
SELECT + 89 AS col1 FROM tab2 AS cor0 WHERE - ( + col2 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-832
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 + ( - 16 ) * - 22 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 + 57 + + col2 * - 39 FROM tab0 cor0
----
-1695
-312
-3803

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - 12 + - col1, col0 * - col1 ) AND NULL NOT BETWEEN col1 AND ( + col2 + + ( - col2 ) * - col2 * + 82 )
----

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - col1 + 34 FROM tab1 cor0
----
-13
20
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT ALL - col1 + + 39 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = 92
----

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - col1 + + 39 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col1 + + + col0 col2 FROM tab1
----
-240
-2964
-859

query I rowsort
SELECT + col2 + + col2 * + + col1 FROM tab1
----
1440
3264
354

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

query II rowsort
SELECT ALL col2, + col1 + col2 FROM tab2 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT MIN( + 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT MIN ( + 39 ) FROM tab2
----
39

query I rowsort
SELECT + col2 * + col0 * + col0 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT - ( + 98 ) FROM tab2
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT 64 DIV ( + col0 ) col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-845
SELECT 64 / ( + col0 ) col1 FROM tab0
----
0
0
4

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

query II rowsort
SELECT ( - col0 ), + col0 * + 63 AS col1 FROM tab0
----
-15
945
-87
5481
-97
6111

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT ALL + 43 + + + 78 DIV + col2 AS col1 FROM tab2 AS cor0
----
44
44
46

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + 43 + + + 78 / + col2 AS col1 FROM tab2 AS cor0
----
44
44
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-850
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 AS col1, col1 * - 43 col1 FROM tab0 AS cor0 WHERE NOT NULL < 10
----

query I rowsort
SELECT DISTINCT ( 36 ) FROM tab0 cor0
----
36

query II rowsort
SELECT DISTINCT - - col1, col2 * + col1 AS col1 FROM tab0 AS cor0
----
1
99
21
210
81
3807

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 45 - - col0 - - 79 + - col2 / - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-855
SELECT - - COUNT ( * ) * + - COUNT ( * ) * 40 FROM tab2 AS cor0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT 29 NOT BETWEEN + - col2 AND 5 / col0 - - ( + col1 )
----
1

skipif mysql # not compatible
query I rowsort label-856
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT 29 NOT BETWEEN + - col2 AND 5 / col0 - - ( + col1 )
----
1

query II rowsort
SELECT - 5 AS col1, + col2 AS col2 FROM tab2
----
-5
23
-5
40
-5
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT + ( - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-859
SELECT + ( - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2
----
46
64
75

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= + col1
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT - + 71 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-867
SELECT - + 71 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-14
-5

query I rowsort
SELECT ALL - col2 * col0 * 73 + col1 AS col2 FROM tab1 AS cor0
----
-357394
-366090
-451677

query I rowsort
SELECT col2 * + - 24 + + col2 AS col1 FROM tab1
----
-1357
-1564
-2208

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

query I rowsort
SELECT - ( ( 22 ) ) AS col1 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-872
SELECT ALL - 52 * CAST( NULL AS DECIMAL ) * - - 50 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - 52 * CAST ( NULL AS REAL ) * - - 50 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT DISTINCT - 66 + + CAST( 96 AS SIGNED ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT - 66 + + CAST ( 96 AS INTEGER ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL - col0 + - col0 + - col0 FROM tab1 AS cor0
----
-153
-255
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 87 col1 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT ALL - col2 AS col0, - 50 * + col2 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-10
-500
-47
-2350
-99
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-877
SELECT ALL - col1 * col2 DIV + 26 - ( + + 17 ) FROM tab2
----
-135
-166
-62

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - col1 * col2 / + 26 - ( + + 17 ) FROM tab2
----
-135
-166
-62

query I rowsort
SELECT - 6 FROM tab0 WHERE + 18 - + col1 + + 33 > - col0
----
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 97 ) + + + col2, - 91 - + + 23 + col1 + - - col1 * - + col2 col2 FROM tab1
----
156
-404
165
-3263
193
-1444

query I rowsort
SELECT ALL - 61 * + col2 + + 32 AS col1 FROM tab1
----
-3567
-4116
-5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + + col2 col2 FROM tab2
----
25
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + + 21 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-882
SELECT + + 21 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + + col2 + 77 FROM tab0 AS cor0
----
124
176
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-885
SELECT * FROM tab2 AS cor0 WHERE ( + 29 * - + col0 ) IN ( col2 * - - col2, CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-885
SELECT * FROM tab2 AS cor0 WHERE ( + 29 * - + col0 ) IN ( col2 * - - col2, CAST ( - col0 AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT - + col1 * col2 * - col2 + 32 AS col1 FROM tab1 AS cor0
----
129056
17437
217360

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

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT + col2 DIV + - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + col2 / + - col1 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT ALL - col1 * - + col2 * + col2 AS col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - 18 * - col0 * col1 AS col1 FROM tab2 cor0
----
42228
88704
90450

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT DISTINCT - + COUNT( * ) AS col1, 3 * COUNT( * ) - + 16 FROM tab2 cor0 WHERE NULL < - col1 * - col2
----
0
-16

skipif mysql # not compatible
query II rowsort label-892
SELECT DISTINCT - + COUNT ( * ) AS col1, 3 * COUNT ( * ) - + 16 FROM tab2 cor0 WHERE NULL < - col1 * - col2
----
0
-16

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 = NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + col1 NOT BETWEEN + col1 - + col0 AND - 97 + 49 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col2 * 96 * - 31 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT CAST( ( + col1 ) AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-898
SELECT CAST ( ( + col1 ) AS INTEGER ) AS col0 FROM tab2
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT + col2 + - + 92 + - + col0 AS col0 FROM tab2
----
-109
-115
-116

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col2 / col1 * 32 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT 24 * - - 33 * - COUNT( * ) FROM tab2
----
-2376

skipif mysql # not compatible
query I rowsort label-902
SELECT 24 * - - 33 * - COUNT ( * ) FROM tab2
----
-2376

query I rowsort
SELECT DISTINCT 67 + - - col0 + col1 AS col1 FROM tab0
----
163
165
175

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - + 89 NOT BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT DISTINCT MIN( + 43 ) FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT MIN ( + 43 ) FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL SUM( ALL col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL SUM ( ALL col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + col2 * - col2 + 25 - - ( col2 ) AS col2 FROM tab0
----
-2137
-65
-9677

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT - 41 DIV + - 78 * + - ( - col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - 41 / + - 78 * + - ( - col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - + 86 * col1 FROM tab2 WHERE NULL IS NULL AND NOT ( NOT - col1 IS NULL )
----

query I rowsort
SELECT col2 + + - 39 FROM tab2
----
-16
1
19

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - 51 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 78 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) * AVG ( ALL - 26 ) + - ( - + 42 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * AVG ( ALL - 26 ) + - ( - + 42 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT COUNT( * ) + - 13 AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT COUNT ( * ) + - 13 AS col1 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT - + 85 + 80 FROM tab0 cor0
----
-5
-5
-5

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

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

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

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

query I rowsort
SELECT col2 * col1 * + 60 AS col0 FROM tab0
----
12600
228420
5940

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT COUNT( * ) * + 75 AS col1, + COUNT( * ) FROM tab1
----
225
3

skipif mysql # not compatible
query II rowsort label-922
SELECT COUNT ( * ) * + 75 AS col1, + COUNT ( * ) FROM tab1
----
225
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 col1, col2 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * + + col0 * + + 41 IS NULL
----
20
-23
20
-26
20
45

query I rowsort
SELECT DISTINCT + 62 * - 52 AS col2 FROM tab0
----
-3224

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

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ( + ( - ( + - col1 ) ) ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT 11, COUNT( * ) AS col0 FROM tab2
----
11
3

skipif mysql # not compatible
query II rowsort label-929
SELECT 11, COUNT ( * ) AS col0 FROM tab2
----
11
3

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + col1 * - col2 * 22 FROM tab1
----
32450
3304664
413952

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

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

query I rowsort
SELECT - - col0 * - - 34 * + ( - 36 ) FROM tab1 AS cor0
----
-104040
-111384
-62424

query I rowsort
SELECT DISTINCT - - col2 * + - 7 + + col2 + 57 FROM tab0 AS cor0
----
-225
-3
-537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col2 * + - col0 * 38 col1 FROM tab2 AS cor0
----
11075100
2050404
7490560

query I rowsort
SELECT DISTINCT + + 56 AS col1 FROM tab2 AS cor0
----
56

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-937
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN CAST( + - col2 AS DECIMAL ) AND + + col1
----

skipif mysql # not compatible
query III rowsort label-937
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN CAST ( + - col2 AS REAL ) AND + + col1
----

query I rowsort
SELECT DISTINCT 31 + + - col2 * - - col1 FROM tab2
----
-1142
-3049
-3855

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-939
SELECT DISTINCT * FROM tab1 WHERE + CAST( + 92 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-939
SELECT DISTINCT * FROM tab1 WHERE + CAST ( + 92 AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT + 13 + - col2 + 45 * + col2 AS col2 FROM tab0 AS cor0
----
2081
4369
453

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT + COUNT( * ), + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-943
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + - MIN( - - 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-63

skipif mysql # not compatible
query I rowsort label-944
SELECT + - MIN ( - - 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - COUNT( * ) * + 29 * - - MAX( + + 50 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-13050

skipif mysql # not compatible
query I rowsort label-945
SELECT - COUNT ( * ) * + 29 * - - MAX ( + + 50 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-13050

query I rowsort
SELECT ALL col0 * - - col0 + + 40 + + col2 * + col1 * - - ( - - col0 ) FROM tab1 AS cor0
----
299157
32340
71185

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

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

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - MAX ( ALL col0 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT DISTINCT + col1 DIV - col2 - + col0 FROM tab0 AS cor0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + col1 / - col2 - + col0 FROM tab0 AS cor0
----
-16
-89
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-950
SELECT DISTINCT - + col0 * col2 + col0 + + col2 - CAST( + 24 AS SIGNED ) + - + col0 * col0 DIV 52 AS col1 FROM tab0 AS cor0
----
-671
-942
-9611

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - + col0 * col2 + col0 + + col2 - CAST ( + 24 AS INTEGER ) + - + col0 * col0 / 52 AS col1 FROM tab0 AS cor0
----
-671
-942
-9611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT CAST( NULL AS SIGNED ) - - 81 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL - 45 * 48 + + ( + COUNT( * ) ) * - MIN( - col0 ) FROM tab2 cor0
----
-1935

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - 45 * 48 + + ( + COUNT ( * ) ) * - MIN ( - col0 ) FROM tab2 cor0
----
-1935

query II rowsort
SELECT ALL + ( - 28 ) * col1 * - col1 + - 53 * - + col2 AS col1, + col2 + col0 FROM tab0
----
12878
97
186199
62
5275
196

query I rowsort
SELECT ALL 54 * - - col0 - - - 47 FROM tab0
----
4651
5191
763

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col0 ) col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT COUNT( * ) * + 94 AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-958
SELECT COUNT ( * ) * + 94 AS col1 FROM tab0
----
282

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > NULL AND NOT ( ( NULL ) <> NULL )
----

query I rowsort
SELECT - 58 * - ( col1 ) + + col0 FROM tab0 AS cor0
----
1305
155
4713

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-964
SELECT ALL + 13 * + + 37 AS col1, CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
481
-46
481
-64
481
-75

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL + 13 * + + 37 AS col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
481
-46
481
-64
481
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL + col1 / + + col2 * - CAST( NULL AS SIGNED ) * ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + col1 / + + col2 * - CAST ( NULL AS INTEGER ) * ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + + 58 FROM tab1 cor0
----
2958
4930
5278

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND col1
----
51
85
91

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col0 <> - 1
----
23
40
58

query I rowsort
SELECT ALL - col2 * - 1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-970
SELECT ( - CAST( + col0 AS SIGNED ) ) + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-970
SELECT ( - CAST ( + col0 AS INTEGER ) ) + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-971
SELECT ALL ( - + col0 ) DIV col2 AS col2, + 33 DIV + - col1 FROM tab1
----
-1
-6
-1
0
0
-2

skipif mysql # not compatible
query II rowsort label-971
SELECT ALL ( - + col0 ) / col2 AS col2, + 33 / + - col1 FROM tab1
----
-1
-6
-1
0
0
-2

query I rowsort
SELECT DISTINCT + 74 * + 59 + 36 * + - col2 AS col2 FROM tab0
----
2674
4006
802

query I rowsort
SELECT ALL + col2 + - 1 FROM tab2
----
22
39
57

query I rowsort
SELECT DISTINCT 55 + + - col0 + + - ( + col2 ) - + col0 * + ( col2 ) + - - ( + ( 88 ) ) * - - 77 FROM tab0
----
-2968
5864
6064

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - MIN( - 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-975
SELECT - MIN ( - 60 ) FROM tab2
----
60

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - col2
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT ALL + col0 DIV - - 9 AS col2 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + col0 / - - 9 AS col2 FROM tab2
----
5
7
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-981
SELECT - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + ( + SUM( DISTINCT - - col1 ) ) - 54 AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + ( + SUM ( DISTINCT - - col1 ) ) - 54 AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + + col1 + + 99 * - ( - col1 ) + + col1 FROM tab1 AS cor0
----
1414
4747
505

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT DISTINCT - MIN( ALL + col1 ) * + MIN( + + col2 ) - + 96 FROM tab2 AS cor0
----
-1269

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - MIN ( ALL + col1 ) * + MIN ( + + col2 ) - + 96 FROM tab2 AS cor0
----
-1269

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT + SUM( - col0 ) * MIN( DISTINCT + 99 ) FROM tab0
----
-19701

skipif mysql # not compatible
query I rowsort label-986
SELECT + SUM ( - col0 ) * MIN ( DISTINCT + 99 ) FROM tab0
----
-19701

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT SUM( - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT SUM ( - col0 ) FROM tab0
----
-199

query I rowsort
SELECT + 27 * + + col2 AS col1 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT - 6 FROM tab0 WHERE NOT + + 44 IS NULL
----
-6
-6
-6

query I rowsort
SELECT col0 * - col2 * - + 82 * col0 FROM tab1
----
20475072
34954550
46174856

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT 94 * COUNT( * ) AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-991
SELECT 94 * COUNT ( * ) AS col0 FROM tab1
----
282

query I rowsort
SELECT - 77 * - col0 FROM tab1 AS cor0
----
3927
6545
7007

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

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

query I rowsort
SELECT - 36 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 4 * + - 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3676328d75056be335dcb8cc110835b4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 63 / 33 * + - col0 = NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col2 + 99 IS NULL AND - col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - 45 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 45 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
135

query I rowsort
SELECT DISTINCT col0 - - col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE col1 >= 51
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * - 68 col0 FROM tab0 AS cor0
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + MIN( ALL + ( 57 ) ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1003
SELECT + MIN ( ALL + ( 57 ) ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT DISTINCT + col1, - 18 AS col2 FROM tab2 AS cor0
----
51
-18
67
-18
77
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + MAX( DISTINCT col2 ) * + 91 col0 FROM tab2 AS cor0
----
5278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1005
SELECT + MAX ( DISTINCT col2 ) * + 91 col0 FROM tab2 AS cor0
----
5278

query I rowsort
SELECT DISTINCT - col0 * - 89 AS col2 FROM tab1 AS cor0
----
4539
7565
8099

query I rowsort
SELECT + 11 FROM tab1 WHERE NULL IN ( col0, col0 + + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL SUM ( ALL - - col2 ) FROM tab0
----
156

query I rowsort
SELECT ALL 37 + - - col2 AS col1 FROM tab1
----
105
133
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT ALL - col1 DIV + col0 + 70 FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - col1 / + col0 + 70 FROM tab1
----
70
70
70

query I rowsort
SELECT + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT - COUNT( * ) + - MAX( + 26 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1012
SELECT - COUNT ( * ) + - MAX ( + 26 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL + col2 + + + col1 * + - ( col1 ) * ( - col1 ) AS col1 FROM tab2 AS cor0
----
132674
300821
456573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT - ( + 91 ) + + CAST( 31 AS SIGNED ) AS col1 FROM tab0 cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-1014
SELECT - ( + 91 ) + + CAST ( 31 AS INTEGER ) AS col1 FROM tab0 cor0
----
-60
-60
-60

query II rowsort
SELECT - + col1 + col2, col2 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

query I rowsort
SELECT ALL col2 + - 94 * - + col2 AS col2 FROM tab0 AS cor0
----
4465
9405
950

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1018
SELECT ALL * FROM tab1 WHERE NOT + col0 - + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1018
SELECT ALL * FROM tab1 WHERE NOT + col0 - + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1020
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT MIN( - col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1021
SELECT MIN ( - col2 ) col0 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT + SUM( - + col0 ) DIV 65 * - 26 AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1022
SELECT + SUM ( - + col0 ) / 65 * - 26 AS col1 FROM tab0 AS cor0
----
78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT DISTINCT col1 DIV - - col1 AS col0 FROM tab1 AS cor0
----
1

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + + 39 ) + - col0 * - col0 * ( col1 ) = - 38
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT 7 DIV - 17 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT 7 / - 17 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 - + + col2 FROM tab0 AS cor0 WHERE NOT col2 + + ( col2 ) IS NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1032
SELECT - MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col0 + + col2 - + - 42 + + + 50 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

query II rowsort
SELECT col0, 8 FROM tab2 AS cor0
----
46
8
64
8
75
8

query I rowsort
SELECT ALL - + 33 + - col1 FROM tab2 AS cor0
----
-100
-110
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1042
SELECT DISTINCT col2 * + col2 - + col0 + + - col0 * CAST( col0 AS SIGNED ) AS col0, 42 FROM tab1 cor0
----
-3748
42
-3829
42
6564
42

skipif mysql # not compatible
query II rowsort label-1042
SELECT DISTINCT col2 * + col2 - + col0 + + - col0 * CAST ( col0 AS INTEGER ) AS col0, 42 FROM tab1 cor0
----
-3748
42
-3829
42
6564
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL - col1 + col1 DIV + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col0 BETWEEN + col2 AND NULL
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - col1 + col1 / + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col0 BETWEEN + col2 AND NULL
----
-1
-21
-76

query II rowsort
SELECT ALL - col0 * - - col0 * 32, col0 FROM tab0 AS cor0
----
-242208
87
-301088
97
-7200
15

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

query I rowsort
SELECT + 82 + - + col2 AS col2 FROM tab1
----
-14
14
23

query II rowsort
SELECT col2 + + + col1, + ( col1 ) * + + col1 AS col1 FROM tab0
----
100
1
128
6561
31
441

query I rowsort
SELECT ALL ( ( 12 ) ) AS col0 FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + COUNT( + - 78 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1049
SELECT + COUNT ( + - 78 ) FROM tab2
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / col1 < NULL
----

query II rowsort
SELECT 87 AS col0, col2 AS col0 FROM tab2
----
87
23
87
40
87
58

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE + 65 + + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT - COUNT( * ) + - 39 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - COUNT ( * ) + - 39 FROM tab1 AS cor0
----
-42

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - + ( + + 54 ) FROM tab1 AS cor0
----
-113
-122
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT + MAX( ALL - - col2 ) DIV + - COUNT( * ) FROM tab1 WHERE col0 <= + 99
----
-32

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + MAX ( ALL - - col2 ) / + - COUNT ( * ) FROM tab1 WHERE col0 <= + 99
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT DISTINCT MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT MAX ( + - col0 ) FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND 39 + - col1 + col0 - 55 + - 40
----

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

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

query I rowsort
SELECT DISTINCT + col2 * - - 39 AS col1 FROM tab2
----
1560
2262
897

query I rowsort
SELECT - - ( - 8 ) AS col0 FROM tab0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT + 61 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + 28 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1069
SELECT + 28 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT col1 * 52 FROM tab0
----
1092
4212
52

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) < ( 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT - ( + CAST( - col2 AS SIGNED ) ) * - col0 + + col1 AS col2 FROM tab0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-1072
SELECT - ( + CAST ( - col2 AS INTEGER ) ) * - col0 + + col1 AS col2 FROM tab0
----
-624
-849
-9602

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 21 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL COUNT( * ) FROM tab1 WHERE col2 * - col1 <> + 58
----
3

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL COUNT ( * ) FROM tab1 WHERE col2 * - col1 <> + 58
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 32 ) <= ( 32 + - 32 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 / + 2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1078
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE col0 * - 8 + - col1 = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE col0 * - 8 + - col1 = col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL COUNT( * ) + + MAX( ALL + col1 ) FROM tab0 WHERE - 37 BETWEEN NULL AND - 72 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL COUNT ( * ) + + MAX ( ALL + col1 ) FROM tab0 WHERE - 37 BETWEEN NULL AND - 72 * col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT COUNT( * ) * + COUNT( col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) * + COUNT ( col0 ) FROM tab0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL - MAX( DISTINCT - col2 ) * - ( COUNT( * ) ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - MAX ( DISTINCT - col2 ) * - ( COUNT ( * ) ) FROM tab2
----
-69

query I rowsort
SELECT col0 + + 6 * - col2 FROM tab0
----
-267
-497
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT 56 + COUNT( * ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-1086
SELECT 56 + COUNT ( * ) FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL - COUNT( col0 ) FROM tab1 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - COUNT ( col0 ) FROM tab1 WHERE NOT col0 = NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * 82 AS col0 FROM tab1
----
-1148
-3854
-410

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 * 18 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * 78 > - col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 - 49 NOT BETWEEN + col2 AND col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 92 AS col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col0 * + 70 + - col0 AS col2 FROM tab2
----
-3266
-4544
-5325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 3 col2 FROM tab2
----
-153
-201
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 * - col2 col0 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 / - col1 + + col2 NOT IN ( 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT - COUNT( * ) * COUNT( * ) + + COUNT( * ) * 47 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-1097
SELECT - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) * 47 FROM tab2
----
132

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT 91 + 44 AS col2 FROM tab2
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL - COUNT( * ) FROM tab2 WHERE + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - COUNT ( * ) FROM tab2 WHERE + col2 < NULL
----
0

query I rowsort
SELECT ALL 68 + 48 FROM tab0
----
116
116
116

query III rowsort
SELECT ALL * FROM tab1 WHERE 8 * - 5 IS NULL
----

query I rowsort
SELECT ALL col0 - - col1 * col1 FROM tab2
----
2647
4564
5993

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1106
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL MIN( ALL 4 ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL MIN ( ALL 4 ) AS col2 FROM tab2
----
4

query I rowsort
SELECT ALL - col1 + 55 AS col1 FROM tab0
----
-26
34
54

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab2 WHERE ( - 45 ) = 5
----

query I rowsort
SELECT + 58 * + col2 AS col0 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - 92 * + ( COUNT( DISTINCT - ( - 2 ) ) ) col0 FROM tab2
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT - 92 * + ( COUNT ( DISTINCT - ( - 2 ) ) ) col0 FROM tab2
----
-92

query I rowsort
SELECT 52 * col1 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - COUNT( col2 ) * - 77 + + 53 * + 57 AS col0 FROM tab0 AS cor0
----
3252

skipif mysql # not compatible
query I rowsort label-1113
SELECT - COUNT ( col2 ) * - 77 + + 53 * + 57 AS col0 FROM tab0 AS cor0
----
3252

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col1 col1 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT ALL ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

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

query I rowsort
SELECT DISTINCT 77 - 8 FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 91 * col2 - col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL + ( MAX( 33 ) ) - + 57 * + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
-10512

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL + ( MAX ( 33 ) ) - + 57 * + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
-10512

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT + ( CAST( col0 AS SIGNED ) ) * + ( col0 * ( col1 * col1 ) ) AS col2 FROM tab2 AS cor0
----
24285184
25250625
5503716

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col1 <= - col1 + ( col1 ) / + col2
----

query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 ) >= ( + 99 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + col0 DIV ( 31 ) AS col1 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1129
SELECT + col0 / ( 31 ) AS col1 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT 42 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( - 47 + col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col1 BETWEEN - col2 AND - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col1 BETWEEN - col2 AND - col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL - col2 + col0 * CAST( NULL AS SIGNED ) FROM tab1 WHERE - 83 * col2 = col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT col1 * - + ( col0 ) * + 76 AS col1 FROM tab0
----
-138852
-7372
-92340

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

query I rowsort
SELECT 30 * - 89 * col1 AS col0 FROM tab2
----
-136170
-178890
-205590

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL 70 * + COUNT( * ) + 20 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL 70 * + COUNT ( * ) + 20 FROM tab1 AS cor0
----
230

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 NOT BETWEEN ( 36 ) AND + col2 + + col1
----
15
81
47
97
1
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT MIN( col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1143
SELECT MIN ( col1 ) AS col0 FROM tab2
----
51

query II rowsort
SELECT ALL col1 AS col1, col2 + ( + col1 ) AS col0 FROM tab1
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL + 39 + - ( - 94 ) + MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + 39 + - ( - 94 ) + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
156

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 + 39 + + col0 NOT BETWEEN 98 / + 82 + + ( + col0 ) * + 46 AND 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 + - 43 <> ( 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 59 * + 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT ALL - COUNT( * ) DIV + 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - COUNT ( * ) / + 8 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + 75 * COUNT( * ) AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 75 * COUNT ( * ) AS col2 FROM tab0
----
225

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

skipif mysql # not compatible
query I rowsort label-1155
SELECT + COUNT ( ( + col1 ) ) * - ( - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT 94 FROM tab1 WHERE NULL IS NULL
----
94
94
94

query I rowsort
SELECT DISTINCT + col1 + - col1 * + - col1 AS col0 FROM tab2
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + ( + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1158
SELECT + ( + COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 92 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - + col2 * + + col1 col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT DISTINCT + ( col0 ) + - 35 * 17 * col0 AS col2 FROM tab0 AS cor0
----
-51678
-57618
-8910

query I rowsort
SELECT ALL - col0 * + 38 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT 12 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1163
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT 12 IS NOT NULL
----

query I rowsort
SELECT ALL + 58 FROM tab2 WHERE ( NULL ) >= col2 * + 99
----

query I rowsort
SELECT ALL 79 + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
138
147
175

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT - 46 DIV col1 AS col2 FROM tab0 AS cor0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 46 / col1 AS col2 FROM tab0 AS cor0
----
-2
-46
0

query I rowsort
SELECT ALL + col2 * + 99 * - + col0 FROM tab2 AS cor0
----
-104742
-253440
-430650

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1170
SELECT - col2, - col2 DIV - - 19 AS col0 FROM tab2 AS cor0
----
-23
-1
-40
-2
-58
-3

skipif mysql # not compatible
query II rowsort label-1170
SELECT - col2, - col2 / - - 19 AS col0 FROM tab2 AS cor0
----
-23
-1
-40
-2
-58
-3

query I rowsort
SELECT ALL col0 + col0 FROM tab0 WHERE ( - 64 ) <= ( col1 )
----
174
194
30

query II rowsort
SELECT ALL col0, col0 * - - col1 FROM tab1
----
51
714
85
425
91
4277

query II rowsort
SELECT + col2, - col2 AS col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1174
SELECT DISTINCT * FROM tab1 WHERE ( col1 + col2 * - CAST( + - 89 AS DECIMAL ) ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1174
SELECT DISTINCT * FROM tab1 WHERE ( col1 + col2 * - CAST ( + - 89 AS REAL ) ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 9, + 26 - - + col2 AS col0 FROM tab1
----
-9
122
-9
85
-9
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1176
SELECT DISTINCT col0 AS col2, - ( + 72 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1176
SELECT DISTINCT col0 AS col2, - ( + 72 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT 98 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

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

query I rowsort
SELECT ALL + + col1 * + + ( - 75 ) AS col1 FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT ALL + col1 + - + col2 * CAST( - + ( col0 ) AS SIGNED ) * - + col2 - - col2 FROM tab1 cor0
----
-295821
-420669
-469906

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + col1 + - + col2 * CAST ( - + ( col0 ) AS INTEGER ) * - + col2 - - col2 FROM tab1 cor0
----
-295821
-420669
-469906

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT 22 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1181
SELECT 22 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL - - 99 - - - 90 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab1 WHERE ( - col0 + - - col1 ) BETWEEN ( 52 ) AND + 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 20 col2 FROM tab0 AS cor0
----
1980
200
940

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

query I rowsort
SELECT ALL - col1 * + + ( 32 ) - - col0 * + + ( col2 ) FROM tab2 AS cor0
----
-574
2206
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT MIN( ALL 47 ) AS col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1189
SELECT MIN ( ALL 47 ) AS col2 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT + + MAX( + ( col1 ) ) + + - SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + + MAX ( + ( col1 ) ) + + - SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-44

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

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

query I rowsort
SELECT ALL - 9 - - 16 AS col2 FROM tab1 AS cor0
----
7
7
7

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

query I rowsort
SELECT 26 - + col2 - + - ( - col0 ) AS col0 FROM tab1 cor0
----
-118
-121
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-1195
SELECT ALL + col1 + 34, col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
115
1
35
1
55
1

skipif mysql # not compatible
query II rowsort label-1195
SELECT ALL + col1 + 34, col0 / + col0 AS col1 FROM tab0 AS cor0
----
115
1
35
1
55
1

query II rowsort
SELECT ALL + ( + col1 ) - - - col2 AS col2, + col0 FROM tab2
----
28
46
37
64
9
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COUNT( * ) FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) FROM tab0 WHERE col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) >= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1202
SELECT col1 * - - col2 * + col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT + ( col2 ) * - col2 FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN + col2 AND + 55
----

query II rowsort
SELECT DISTINCT + 62 AS col0, + col0 + 80 FROM tab0 AS cor0
----
62
167
62
177
62
95

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT DISTINCT - - CAST( - + ( + 49 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-49

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - - CAST ( - + ( + 49 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-49

query I rowsort
SELECT DISTINCT + 76 * 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= ( - 94 )
----

query I rowsort
SELECT DISTINCT + 9 * - col2 AS col2 FROM tab1 AS cor0
----
-531
-612
-864

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 4 + 24, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - 92 - col2, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - 92 - col2, col0 )
----
0

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

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

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

query I rowsort
SELECT - 70 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT ALL - + ( - - col0 ) * + 95 FROM tab2 AS cor0
----
-4370
-6080
-7125

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + 93 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1218
SELECT * FROM tab0 WHERE + 0 > + ( + col1 ) / + - CAST( NULL AS SIGNED ) AND NOT 65 NOT BETWEEN + col1 * + + col2 + + ( col1 ) + - col2 / - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1218
SELECT * FROM tab0 WHERE + 0 > + ( + col1 ) / + - CAST ( NULL AS INTEGER ) AND NOT 65 NOT BETWEEN + col1 * + + col2 + + ( col1 ) + - col2 / - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - 68 FROM tab2
----
-22
-4
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + ( + MIN( col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1220
SELECT + ( + MIN ( col1 ) ) AS col1 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab2 WHERE + + 10 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + COUNT( + + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + COUNT ( + + col1 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1223
SELECT col0 * - col0 * + + CAST( NULL AS DECIMAL ), col1 * - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1223
SELECT col0 * - col0 * + + CAST ( NULL AS REAL ), col1 * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT - 70 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT - 70 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

query I rowsort
SELECT DISTINCT + + col2 * - col2 + + col1 - + col0 FROM tab1 AS cor0
----
-3561
-4668
-9253

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 55 ) * + 15 IN ( + - col1 + col1 + - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - 28 + + col2 FROM tab2
----
-5
12
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 71 IS NOT NULL
----

query I rowsort
SELECT ALL + 85 + + 32 * 22 * 23 FROM tab1 AS cor0
----
16277
16277
16277

query I rowsort
SELECT ALL - - col1 - 32 AS col2 FROM tab2 AS cor0
----
19
35
45

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

query I rowsort
SELECT ALL col1 + + 50 FROM tab2 AS cor0
----
101
117
127

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

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

query I rowsort
SELECT col2 * - - col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - + 82 * + - col2 FROM tab1 AS cor0
----
4838
5576
7872

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

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

query I rowsort
SELECT ALL 62 * 74 FROM tab1
----
4588
4588
4588

query I rowsort
SELECT ALL col0 * + 31 AS col0 FROM tab0
----
2697
3007
465

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT - CAST( - - MIN( DISTINCT - 95 ) AS SIGNED ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-1243
SELECT - CAST ( - - MIN ( DISTINCT - 95 ) AS INTEGER ) FROM tab2
----
95

query I rowsort
SELECT ALL + - 73 * 36 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b2f48940cd14757ec0bcfbb8fce8afed

query I rowsort
SELECT DISTINCT + + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54

query I rowsort
SELECT DISTINCT + 87 * - - 27 - + col1 AS col1 FROM tab0 AS cor0
----
2268
2328
2348

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

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + + 24 - - + 66 <> + col0 )
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT - - 83 * - COUNT( * ) + + 98 FROM tab0 cor0
----
-151

skipif mysql # not compatible
query I rowsort label-1250
SELECT - - 83 * - COUNT ( * ) + + 98 FROM tab0 cor0
----
-151

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1252
SELECT col1 DIV 44, - col0 + + - col0 AS col1 FROM tab1
----
0
-102
0
-170
1
-182

skipif mysql # not compatible
query II rowsort label-1252
SELECT col1 / 44, - col0 + + - col0 AS col1 FROM tab1
----
0
-102
0
-170
1
-182

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

query II rowsort
SELECT + + col1 + - 84 AS col2, 90 * 31 AS col1 FROM tab0 AS cor0
----
-3
2790
-63
2790
-83
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT DISTINCT + 14 - - col0 DIV - 1 FROM tab1 AS cor0
----
-37
-71
-77

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + 14 - - col0 / - 1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT col1 * - 73 + - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-3769
-4966
-5685

skipif mysql # not compatible
query I rowsort label-1256
SELECT col1 * - 73 + - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-3769
-4966
-5685

query I rowsort
SELECT DISTINCT - col2 + + + col0 * + 35 * + col2 AS col0 FROM tab2 AS cor0
----
152192
37007
89560

query I rowsort
SELECT col1 - - + col2 AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + + 63 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1259
SELECT + + 63 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IN ( - - col0, 16, col2, - 11 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 < 72 + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL col2 * col0 * col1, col1 AS col0 FROM tab2 AS cor0
----
197120
77
291450
67
53958
51

query I rowsort
SELECT DISTINCT - 25 * + col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 + + + col0 + + col2 AS col0 FROM tab1 cor0
----
51
85
91

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

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

query I rowsort
SELECT ALL - ( + + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col0 * - col1 * - - col1 AS col1 FROM tab0
----
-38367
-97
-98415

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

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

query I rowsort
SELECT 82 * - col2 * - col2 AS col2 FROM tab1
----
285442
379168
755712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 84 - - 64 + - + 15 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 84 - - 64 + - + 15 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT + - 64 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1272
SELECT + - 64 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + - ( + SUM( - + 93 ) ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - ( + SUM ( - + 93 ) ) FROM tab1 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) col0 FROM tab2
----
-1600
-3364
-529

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

query I rowsort
SELECT ALL 69 + col2 + col0 + + ( col0 ) - + - col0 FROM tab0 AS cor0
----
161
340
459

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

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

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE NULL >= + col0
----

query I rowsort
SELECT ALL + 63 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT COUNT( * ) + + COUNT( * ) + - - 18 AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1281
SELECT COUNT ( * ) + + COUNT ( * ) + - - 18 AS col2 FROM tab1
----
24

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + 82 + + COUNT( * ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-1283
SELECT + 82 + + COUNT ( * ) FROM tab0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-1284
SELECT DISTINCT col0 AS col0, col0 DIV + col2 col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1284
SELECT DISTINCT col0 AS col0, col0 / + col2 col2 FROM tab2
----
46
2
64
1
75
1

query I rowsort
SELECT DISTINCT 35 + col2 AS col2 FROM tab1
----
103
131
94

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

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL + COUNT ( * ) AS col1, + 95 AS col2 FROM tab1
----
3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT 62 + - COUNT( * ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT 62 + - COUNT ( * ) AS col1 FROM tab0
----
59

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT - - 78 DIV - ( - + COUNT( col0 ) ) - - 40 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1291
SELECT - - 78 / - ( - + COUNT ( col0 ) ) - - 40 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT - COUNT( * ) col1 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-1292
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + COUNT( DISTINCT 13 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + COUNT ( DISTINCT 13 ) FROM tab2
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + - COUNT( DISTINCT + col2 ) * CAST( 8 AS SIGNED ) * MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
1416

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + - COUNT ( DISTINCT + col2 ) * CAST ( 8 AS INTEGER ) * MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
1416

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1299
SELECT + 89 * - COUNT( ALL - col0 ) AS col0, 80 * + - COUNT( * ) FROM tab2
----
-267
-240

skipif mysql # not compatible
query II rowsort label-1299
SELECT + 89 * - COUNT ( ALL - col0 ) AS col0, 80 * + - COUNT ( * ) FROM tab2
----
-267
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 90 * 72 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 42 * + ( col0 ) * - col2 AS col2 FROM tab1
----
-205632
-210630
-259896

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1303
SELECT - 22 / CAST( - 25 AS SIGNED ) + + col2 AS col0, + CAST( NULL AS DECIMAL ) * col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1303
SELECT - 22 / CAST ( - 25 AS INTEGER ) + + col2 AS col0, + CAST ( NULL AS REAL ) * col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 97 * col1 + col1 FROM tab0 AS cor0
----
2058
7938
98

query I rowsort
SELECT col1 * col0 * - + ( 48 ) FROM tab0 AS cor0
----
-4656
-58320
-87696

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

query I rowsort
SELECT col2 * 69 FROM tab0 WHERE NOT + 11 IS NULL
----
3243
6831
690

query I rowsort
SELECT ALL 39 * - 15 AS col0 FROM tab1
----
-585
-585
-585

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

query I rowsort
SELECT DISTINCT 53 * - col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1311
SELECT + SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT - - 46 AS col0, col2 AS col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

query I rowsort
SELECT DISTINCT + - 50 + + + 69 AS col0 FROM tab1 AS cor0
----
19

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1, - 15 - - COUNT( * ) FROM tab1 AS cor0
----
6
-12

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1, - 15 - - COUNT ( * ) FROM tab1 AS cor0
----
6
-12

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

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

query I rowsort
SELECT ALL 57 * - ( + + col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
-191748
-30153
-91200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1318
SELECT DISTINCT - 36 DIV + + COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1318
SELECT DISTINCT - 36 / + + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-12
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col2 BETWEEN - + 53 + - 43 AND + col0 + - 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT - COUNT( DISTINCT + col0 ) + - 62 col1 FROM tab0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1320
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) + - 62 col1 FROM tab0
----
-65

query I rowsort
SELECT + ( - - 29 ) + - 42 FROM tab1
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1322
SELECT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1322
SELECT * FROM tab2 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT col2 DIV - col1 + - 17 * col2 + - + col2 DIV 21 AS col2 FROM tab1
----
-1016
-1160
-1642

skipif mysql # not compatible
query I rowsort label-1323
SELECT col2 / - col1 + - 17 * col2 + - + col2 / 21 AS col2 FROM tab1
----
-1016
-1160
-1642

query I rowsort
SELECT ALL + - 43 + col2 * - + 33 FROM tab1 AS cor0
----
-1990
-2287
-3211

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT + 8 + - col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1325
SELECT + 8 + - col2 / - col0 AS col1 FROM tab2 AS cor0
----
8
8
8

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

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

query I rowsort
SELECT col2 * - col0 * + col0 + 98 * - + ( col1 ) FROM tab0 AS cor0
----
-18513
-77748
-931589

query I rowsort
SELECT DISTINCT 88 - + 50 - - col0 + - - col2 * + col2 + + col1 + 23 FROM tab1 AS cor0
----
3632
4823
9342

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

query III rowsort
SELECT * FROM tab2 WHERE 56 + - + col0 + - 78 + + 6 / + + col2 IS NULL
----

query I rowsort
SELECT ALL 32 * + - col1 * - + col0 * + col0 FROM tab2
----
10092544
12060000
3453312

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT - 31 * - col0 AS col1 FROM tab2
----
1426
1984
2325

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT col0 DIV 1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1335
SELECT col0 / 1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + 29 * - col1 AS col2 FROM tab2 cor0
----
-1479
-1943
-2233

query I rowsort
SELECT - col2 * 11 AS col1 FROM tab0 cor0
----
-1089
-110
-517

query I rowsort
SELECT DISTINCT + + col0 * - - 5 AS col0 FROM tab0 AS cor0
----
435
485
75

query I rowsort
SELECT ( - - 97 ) AS col1 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT - ( - + MAX( DISTINCT + - 41 ) ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1340
SELECT - ( - + MAX ( DISTINCT + - 41 ) ) AS col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - 77 - ( col0 ) BETWEEN NULL AND ( - 79 )
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 * + - col1 FROM tab0
----
308367
4410
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL - + 81 * - MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
6237

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - + 81 * - MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
6237

query I rowsort
SELECT DISTINCT - 97 + + col2 FROM tab2
----
-39
-57
-74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1348
SELECT ALL + SUM( ALL 86 ) + COUNT( * ) + 45 DIV + - COUNT( * ) + - CAST( + 3 AS SIGNED ) AS col2 FROM tab1 cor0
----
243

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL + SUM ( ALL 86 ) + COUNT ( * ) + 45 / + - COUNT ( * ) + - CAST ( + 3 AS INTEGER ) AS col2 FROM tab1 cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT DISTINCT col1 + - CAST( - 84 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-1743
-6723
-83

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT col1 + - CAST ( - 84 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-1743
-6723
-83

query I rowsort
SELECT ALL col0 + 30 AS col0 FROM tab0 AS cor0
----
117
127
45

query I rowsort
SELECT ALL - 2 * col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1352
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT MIN( ALL + - 67 ) + - COUNT( * ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1353
SELECT MIN ( ALL + - 67 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL - MAX( DISTINCT 44 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL - MAX ( DISTINCT 44 ) FROM tab2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1355
SELECT - 9 DIV - SUM( - col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 9 / - SUM ( - col1 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE 32 + ( + - col2 ) BETWEEN + - col2 AND NULL OR NULL > NULL
----

query II rowsort
SELECT - 99, + col0 AS col0 FROM tab1
----
-99
51
-99
85
-99
91

query I rowsort
SELECT - 67 - + col1 AS col2 FROM tab1 AS cor0
----
-114
-72
-81

query I rowsort
SELECT - + 38 + + - col0 FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT - 92 * - 24 + - col2 FROM tab1 cor0
----
2112
2140
2149

query II rowsort
SELECT + 44 * col1 - 15 + ( + 94 ) - 93 AS col0, ( + col1 ) * 91 FROM tab0 AS cor0
----
30
91
3550
7371
910
1911

query I rowsort
SELECT + 42 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT DISTINCT - - col1, + col1 + - ( - + ( - col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
28
67
9
77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1364
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1365
SELECT ALL - 97 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT - 51, col2 FROM tab2
----
-51
23
-51
40
-51
58

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT + MAX ( DISTINCT col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + 36 AS col1, - 23 AS col2 FROM tab0
----
36
-23
36
-23
36
-23

query I rowsort
SELECT DISTINCT - + col1 - - + 24 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - SUM( ALL col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1372
SELECT - SUM ( ALL col1 ) FROM tab1
----
-66

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

query II rowsort
SELECT DISTINCT col2 AS col2, col2 + col1 * + col1 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
10
383680
47
4625552
99
9702

query I rowsort
SELECT ALL col2 - ( - 67 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 * + col2 * - col2 * + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - COUNT( ALL - 15 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1377
SELECT - COUNT ( ALL - 15 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + - 19 + - 91 FROM tab1 AS cor0
----
-110
-110
-110

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

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

query I rowsort
SELECT - 7 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + - 34 * - + ( - + col1 ) FROM tab0 AS cor0
----
-2754
-34
-714

query I rowsort
SELECT + AVG ( + 67 ) AS col0 FROM tab0 AS cor0 WHERE + col0 * 43 * + col2 IS NULL
----
NULL

query I rowsort
SELECT ( + 22 ) - 14 FROM tab0
----
8
8
8

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

query I rowsort
SELECT - col1 + - + 5 + col1 + col0 + - 71 / + col1 + + + col2 * - 28 + + col1 AS col2 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + MAX( DISTINCT 43 ) FROM tab2, tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + MAX ( DISTINCT 43 ) FROM tab2, tab1 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - 37 ) - + + 91 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT COUNT( * ) + + + 30 AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1389
SELECT COUNT ( * ) + + + 30 AS col1 FROM tab0
----
33

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab0 WHERE ( NOT NULL IN ( col0, 0 * + col0 ) )
----

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

query II rowsort
SELECT - col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col2 FROM tab2 AS cor0 WHERE col0 + + + col0 IS NOT NULL
----
-78

query II rowsort
SELECT DISTINCT 29, - 75 AS col0 FROM tab2
----
29
-75

query I rowsort
SELECT ( + 23 ) * - col1 FROM tab1 AS cor0
----
-1081
-115
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT - CAST( - 68 AS SIGNED ) DIV + - COUNT( + 64 ) col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1396
SELECT DISTINCT - CAST ( - 68 AS INTEGER ) / + - COUNT ( + 64 ) col2 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT - - 30 DIV - COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1397
SELECT - - 30 / - COUNT ( * ) FROM tab0 AS cor0
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col2 + - - ( + 76 ) FROM tab0
----
170
274
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1401
SELECT DISTINCT + 31 * - col1, + col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
-1581
NULL
-2077
NULL
-2387
NULL

skipif mysql # not compatible
query II rowsort label-1401
SELECT DISTINCT + 31 * - col1, + col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
-1581
NULL
-2077
NULL
-2387
NULL

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

query I rowsort
SELECT + + 98 FROM tab0 WHERE NOT - - ( - - col0 ) <> + + 73
----

query II rowsort
SELECT + col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1405
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 36 * col0, - col0, - ( + - col1 ) - - CAST( NULL AS SIGNED ) + - 73 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-1405
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 36 * col0, - col0, - ( + - col1 ) - - CAST ( NULL AS INTEGER ) + - 73 + - - col2 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( NOT ( NULL ) < - - 82 )
----

query I rowsort
SELECT ALL col1 + 39 * + 23 AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
948
964
974

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab1 AS cor0 WHERE NULL < + col1 * - + col2
----

query I rowsort
SELECT ALL - ( - ( - col0 ) ) - ( + col2 ) + - 29 FROM tab2
----
-133
-162
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL ( - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1412
SELECT ALL ( - COUNT ( * ) ) col2 FROM tab2
----
-3

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

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

query I rowsort
SELECT - 62 * - col2 AS col1 FROM tab0
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + COUNT( * ) * + SUM( ALL - col1 ) AS col0 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-1415
SELECT + COUNT ( * ) * + SUM ( ALL - col1 ) AS col0 FROM tab0
----
-309

query I rowsort
SELECT DISTINCT 16 * + - col2 AS col1 FROM tab0
----
-1584
-160
-752

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

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

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

query I rowsort
SELECT DISTINCT 6 * - 66 FROM tab0 AS cor0
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT DISTINCT + + 26 DIV - + 48 * 24 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + + 26 / - + 48 * 24 AS col1 FROM tab2 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT - ( - COUNT( * ) ) * + 32 * 18 FROM tab0 cor0
----
1728

skipif mysql # not compatible
query I rowsort label-1422
SELECT - ( - COUNT ( * ) ) * + 32 * 18 FROM tab0 cor0
----
1728

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + + col2 ) <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query II rowsort
SELECT - col2 AS col2, + col1 + col0 FROM tab2
----
-23
97
-40
141
-58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT MIN( + + 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-1428
SELECT MIN ( + + 57 ) FROM tab1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT DISTINCT 23 DIV col1 FROM tab0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 23 / col1 FROM tab0
----
0
1
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1430
SELECT ALL 41 + col1 DIV + - col1 - + 68 * + - 88 * + CAST( col1 AS SIGNED ) col2 FROM tab2
----
305224
400968
460808

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT ALL 41 + col1 / + - col1 - + 68 * + - 88 * + CAST ( col1 AS INTEGER ) col2 FROM tab2
----
305224
400968
460808

query I rowsort
SELECT DISTINCT - + 86 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT COUNT( * ) * 16 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-1432
SELECT COUNT ( * ) * 16 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT DISTINCT COUNT( * ) + - MAX( - ( - - 48 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT COUNT ( * ) + - MAX ( - ( - - 48 ) ) AS col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT ALL col2 + - - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL col2 + - - col0 / col1 AS col1 FROM tab1 AS cor0
----
69
76
99

query II rowsort
SELECT + + col2 * ( + col0 ) + + col2, col0 AS col1 FROM tab2 AS cor0
----
1081
46
2600
64
4408
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1438
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - col2 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1438
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - col2 * - col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 30 - + 63 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - - col1 - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-1440
SELECT - - col1 - col2 / - col0 AS col0 FROM tab1 AS cor0
----
15
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + 43 - - + SUM( + 70 ) AS col2 FROM tab2 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-1442
SELECT + 43 - - + SUM ( + 70 ) AS col2 FROM tab2 AS cor0
----
253

query I rowsort
SELECT 69 - col1 FROM tab1 AS cor0
----
22
55
64

onlyif mysql # DIV for integer division: 
query II rowsort label-1444
SELECT ALL + col2 DIV + 96 - col2 + - col1 + - - 32, + col2 FROM tab1 AS cor0
----
-32
59
-77
96
-83
68

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL + col2 / + 96 - col2 + - col1 + - - 32, + col2 FROM tab1 AS cor0
----
-32
59
-77
96
-83
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT + col0 + - 7 * + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
368
512
600

skipif mysql # not compatible
query I rowsort label-1445
SELECT + col0 + - 7 * + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT DISTINCT 61 * + - col1 + 23 FROM tab1 AS cor0
----
-282
-2844
-831

query I rowsort
SELECT 33 FROM tab0 WHERE ( NULL ) <= 8 * - col0
----

query II rowsort
SELECT ALL + - ( 9 ) AS col1, col1 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 47 * + + col0 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT ALL - ( - 89 ) * col2 AS col0 FROM tab1
----
5251
6052
8544

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - COUNT( ALL - col2 ) col2 FROM tab0
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-1455
SELECT - COUNT ( * ) / - - 13 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT + - 86 AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-86
-3

skipif mysql # not compatible
query II rowsort label-1456
SELECT + - 86 AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-86
-3

query II rowsort
SELECT ALL - col1, - col2 * - + 42 AS col0 FROM tab2 AS cor0
----
-51
966
-67
2436
-77
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT - MIN( DISTINCT 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - MIN ( DISTINCT 7 ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT ALL + + 6 * + + 83 AS col0 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
498
498
498

query I rowsort
SELECT - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL col1 * + 46 * - - ( col2 ) FROM tab2
----
141680
178756
53958

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

query I rowsort
SELECT + 16 FROM tab0 AS cor0 WHERE NOT col1 > - col2 * - col2
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT DISTINCT - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 1 = + - col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT + + COUNT( * ) * + 29 AS col0 FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + + COUNT ( * ) * + 29 AS col0 FROM tab0 cor0
----
87

query I rowsort
SELECT ALL + 62 * - col2 + 30 FROM tab2 AS cor0
----
-1396
-2450
-3566

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT DISTINCT + col1 DIV 4 col0 FROM tab1
----
1
11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1471
SELECT DISTINCT + col1 / 4 col0 FROM tab1
----
1
11
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT - COUNT( + col2 ) + - - ( + 24 ) + - - 14 DIV - + 73 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1472
SELECT - COUNT ( + col2 ) + - - ( + 24 ) + - - 14 / - + 73 FROM tab1
----
21

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col0 - + 19 col1 FROM tab2
----
46
-65
64
-83
75
-94

query I rowsort
SELECT DISTINCT 38 * + col1 + + - 84 FROM tab2
----
1854
2462
2842

query I rowsort
SELECT + - 35 FROM tab1 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT + + COUNT( col1 ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT + + COUNT ( col1 ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT DISTINCT + 17 col2, MAX( col0 ) - - + 15 FROM tab2
----
17
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1479
SELECT DISTINCT + 17 col2, MAX ( col0 ) - - + 15 FROM tab2
----
17
90

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

query I rowsort
SELECT + col1 + + - ( + - col2 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL + COUNT( * ) + MAX( + 93 ) + 49 col0 FROM tab1 AS cor0
----
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1482
SELECT ALL + COUNT ( * ) + MAX ( + 93 ) + 49 col0 FROM tab1 AS cor0
----
145

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 59 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1484
SELECT ALL + CAST( NULL AS DECIMAL ) * 91 - + 52 + + 66 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + CAST ( NULL AS REAL ) * 91 - + 52 + + 66 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1486
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
-9

query II rowsort
SELECT ALL - ( - 99 ), col1 FROM tab2 WHERE - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + SUM( 25 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1489
SELECT + SUM ( 25 ) col1 FROM tab2
----
75

query I rowsort
SELECT 60 * - col1 * + 6 FROM tab1 AS cor0
----
-16920
-1800
-5040

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT 4 - + - COUNT( * ) DIV - COUNT( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

query II rowsort
SELECT col1 AS col0, + col0 + + 35 FROM tab2
----
51
81
67
110
77
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT ALL COUNT( * ) col1, 17 AS col0 FROM tab2
----
3
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1494
SELECT ALL COUNT ( * ) col1, 17 AS col0 FROM tab2
----
3
17

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

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

query I rowsort
SELECT - col0 * + + 9 AS col1 FROM tab2 AS cor0
----
-414
-576
-675

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1498
SELECT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) + 15 + SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1498
SELECT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) + 15 + SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
78

query I rowsort
SELECT ALL + col1 * + col1 * + 30 FROM tab2 AS cor0
----
134670
177870
78030

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - SUM( - col2 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-1500
SELECT - SUM ( - col2 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col2 col0 FROM tab2 AS cor0
----
1173
3080
3886

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

query I rowsort
SELECT + - ( col2 ) * + - col0 + - col1 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL 75 DIV - - col1 AS col2 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL 75 / - - col1 AS col2 FROM tab0
----
0
3
75

query I rowsort
SELECT - col1 * - + 64 AS col2 FROM tab0
----
1344
5184
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT DISTINCT SUM( DISTINCT + 71 ) DIV + + 48 + - 95 DIV + 25 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT SUM ( DISTINCT + 71 ) / + + 48 + - 95 / + 25 FROM tab2
----
-2

query I rowsort
SELECT ALL ( - + col0 ) FROM tab2
----
-46
-64
-75

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

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) + - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT col0 * col0 + + 11 * col0 FROM tab2 AS cor0
----
2622
4800
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL - - COUNT( * ) - 66 * + 48 FROM tab0 AS cor0
----
-3165

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - - COUNT ( * ) - 66 * + 48 FROM tab0 AS cor0
----
-3165

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = ( col2 / + + 58 / 37 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1514
SELECT ALL - - COUNT( * ), 77 * 82 + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
6351

skipif mysql # not compatible
query II rowsort label-1514
SELECT ALL - - COUNT ( * ), 77 * 82 + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
6351

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

query II rowsort
SELECT DISTINCT + + 86, col1 FROM tab1 AS cor0 WHERE NOT + 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 31 col1 FROM tab0 AS cor0
----
-130
-41
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 62 AND + col2 * + col0 + 27 + + - 24
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1519
SELECT + col2 - + - col0, - col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( - - col0 AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-1519
SELECT + col2 - + - col0, - col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( - - col0 AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1520
SELECT + + COUNT( - - 36 ) DIV - 67, + COUNT( * ) col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1520
SELECT + + COUNT ( - - 36 ) / - 67, + COUNT ( * ) col2 FROM tab0 AS cor0
----
0
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL 74 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + SUM( ALL + 67 ) AS col0 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + SUM ( ALL + 67 ) AS col0 FROM tab0 AS cor0
----
201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + - MIN( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1525
SELECT + - MIN ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - 87 ) ) col1 FROM tab1
----
-87
-87
-87

query II rowsort
SELECT ALL + col2 AS col0, + 63 + + 27 * + + col0 + - - 79 AS col2 FROM tab2
----
23
1384
40
1870
58
2167

query I rowsort
SELECT + 77 * - ( + - col1 ) FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 14 * col2 FROM tab1
----
1344
826
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT 3 AS col0, - col1 + 17 FROM tab2 AS cor0
----
3
-34
3
-50
3
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT ALL + - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1536
SELECT + ( col0 ), 38 - ( + col0 ) + - 84 * + ( - 1 ) * 90 - + col2 + + + col2 DIV - - 43 AS col1 FROM tab2
----
46
7529
64
7494
75
7466

skipif mysql # not compatible
query II rowsort label-1536
SELECT + ( col0 ), 38 - ( + col0 ) + - 84 * + ( - 1 ) * 90 - + col2 + + + col2 / - - 43 AS col1 FROM tab2
----
46
7529
64
7494
75
7466

query II rowsort
SELECT ( - + col1 ) AS col1, col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - + 56 + SUM( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-1538
SELECT - + 56 + SUM ( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + 95 + + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 95 + + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT DISTINCT - + COUNT( + ( + - CAST( NULL AS SIGNED ) ) ) + SUM( + + 54 ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - + COUNT ( + ( + - CAST ( NULL AS INTEGER ) ) ) + SUM ( + + 54 ) AS col2 FROM tab2 AS cor0
----
162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 95
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col1 + 91 + col2 + ( + col2 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
290
552
6746

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1545
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IN ( CAST( NULL AS SIGNED ) / - + col0 * - - 37 + + col1 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-1545
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IN ( CAST ( NULL AS INTEGER ) / - + col0 * - - 37 + + col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + SUM( DISTINCT + col0 ) FROM tab0 WHERE ( NULL ) IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-1546
SELECT + SUM ( DISTINCT + col0 ) FROM tab0 WHERE ( NULL ) IS NULL
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT - CAST( + + 69 AS SIGNED ) AS col1 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-1547
SELECT - CAST ( + + 69 AS INTEGER ) AS col1 FROM tab2
----
-69
-69
-69

query II rowsort
SELECT + col0 AS col2, 10 FROM tab0
----
15
10
87
10
97
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL ( CAST( col0 AS SIGNED ) ) * 68 + 57 - - col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 + 14 * - col0 AND - col0 / + col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL ( CAST ( col0 AS INTEGER ) ) * 68 + 57 - - col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 + 14 * - col0 AND - col0 / + col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT - 38 DIV + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1550
SELECT - 38 / + COUNT ( * ) FROM tab2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT col2 DIV - + col1 col1 FROM tab1
----
-1
-11
-6

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1552
SELECT col2, + col0 DIV + 67 + + col2 * + 76 FROM tab0
----
10
761
47
3572
99
7525

skipif mysql # not compatible
query II rowsort label-1552
SELECT col2, + col0 / + 67 + + col2 * + 76 FROM tab0
----
10
761
47
3572
99
7525

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1553
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1554
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col2 * 74 AS col0, - col2 * - 88 * + ( col0 ) FROM tab1
----
4281
441320
4941
544544
7053
430848

skipif mysql # not compatible
query II rowsort label-1554
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col2 * 74 AS col0, - col2 * - 88 * + ( col0 ) FROM tab1
----
4281
441320
4941
544544
7053
430848

query II rowsort
SELECT col0 AS col2, + 30 AS col2 FROM tab1 AS cor0
----
51
30
85
30
91
30

query I rowsort
SELECT ALL + col1 * + + ( + - col2 ) * - 12 + - 74 * + col2 AS col0 FROM tab0 AS cor0
----
-6138
1780
42206

query I rowsort
SELECT ALL + 19 * + col0 * + + col1 * - - 45 - + 46 AS col2 FROM tab1 AS cor0
----
363329
3656789
610424

query I rowsort
SELECT col2 - - 55 - - 76 AS col1 FROM tab2 AS cor0
----
154
171
189

query I rowsort
SELECT - 47 + - col1 FROM tab1
----
-52
-61
-94

query I rowsort
SELECT + 64 * - col0 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT - 54 * col2 AS col2 FROM tab1
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + MIN( - 81 ) * 37 AS col1 FROM tab2
----
-2997

skipif mysql # not compatible
query I rowsort label-1562
SELECT + MIN ( - 81 ) * 37 AS col1 FROM tab2
----
-2997

query I rowsort
SELECT - 37 + + 91 AS col1 FROM tab1
----
54
54
54

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col2 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT ALL 99 DIV - ( col0 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL 99 / - ( col0 ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + ( COUNT( * ) ) * + 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + ( COUNT ( * ) ) * + 76 FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT 64 + SUM( col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
167

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT 64 + SUM ( col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
167

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - COUNT( * ) - 78 AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1570
SELECT - COUNT ( * ) - 78 AS col0 FROM tab1
----
-81

query I rowsort
SELECT ALL col1 * + col2 + - col0 FROM tab0
----
123
2
3792

query I rowsort
SELECT ALL 92 * + 96 FROM tab2 WHERE col1 <> - col2
----
8832
8832
8832

query I rowsort
SELECT ALL + 14 - col1 FROM tab1
----
-33
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT DISTINCT 28 * col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT 28 * col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL + ( + MIN( - col0 ) ) + 25 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + ( + MIN ( - col0 ) ) + 25 FROM tab1
----
-66

query I rowsort
SELECT col2 * + 66 + col2 FROM tab0 WHERE NOT ( + 29 * ( - col0 ) + ( 55 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 * + ( 67 ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 * + ( 67 ) NOT IN ( + col2 )
----
0

query I rowsort
SELECT ALL col0 + - 37 AS col0 FROM tab0
----
-22
50
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1579
SELECT CAST( + CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1579
SELECT CAST ( + CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab0
----
3

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

query I rowsort
SELECT ALL col2 * col0 + - ( 79 ) FROM tab1
----
4817
4936
6109

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL COUNT( * ) FROM tab2 WHERE ( NULL ) NOT IN ( - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( NULL ) NOT IN ( - 72 )
----
0

query I rowsort
SELECT ALL + 19 + col1 FROM tab1
----
24
33
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT CAST( - 92 AS SIGNED ) AS col0 FROM tab0
----
-92

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL 49 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL 49 / + col1 AS col1 FROM tab1 AS cor0
----
1
3
9

query I rowsort
SELECT col2 * + 35 + + col0 AS col0 FROM tab2 cor0
----
1464
2105
851

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * + col2 + - col2 * col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL CAST( col0 AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1591
SELECT ALL CAST ( col0 AS INTEGER ) col2 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE 1 + col0 * 37 < col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 38 + col1 >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL CAST( col1 AS SIGNED ) * col1 + - ( 4 ) AS col0 FROM tab1 AS cor0
----
192
21
2205

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL CAST ( col1 AS INTEGER ) * col1 + - ( 4 ) AS col0 FROM tab1 AS cor0
----
192
21
2205

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT ALL CAST( col0 AS SIGNED ) + + col0 * col1 FROM tab2 AS cor0
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL CAST ( col0 AS INTEGER ) + + col0 * col1 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT col1 + - col0 AS col1 FROM tab2 AS cor0 WHERE ( - 42 + 62 * col1 ) IN ( 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 22 * - COUNT( * ) + + MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-1599
SELECT 22 * - COUNT ( * ) + + MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT ALL COUNT( * ) + + MIN( DISTINCT 37 ) DIV + 27 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT 37 ) / + 27 FROM tab2 AS cor0
----
4

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 * - 74 - col0 * 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL 49 - + 73 DIV ( 28 ) AS col1 FROM tab0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 49 - + 73 / ( 28 ) AS col1 FROM tab0
----
47
47
47

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 48 AS col0 FROM tab2 WHERE NULL <= col0 - + col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1609
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - 72 + col0 )
----

skipif mysql # not compatible
query III rowsort label-1609
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - 72 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1610
SELECT ALL * FROM tab1 WHERE NULL IS NOT NULL OR NOT CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1610
SELECT ALL * FROM tab1 WHERE NULL IS NOT NULL OR NOT CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT 28 * - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT 28 * - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-84

query I rowsort
SELECT 63 FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + ( col0 ) FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL - ( + 24 ) - col0 FROM tab2 AS cor0
----
-70
-88
-99

query I rowsort
SELECT ALL col0 - - 33 FROM tab2 AS cor0
----
108
79
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 92 BETWEEN - col0 * - 22 AND ( ( 43 ) + 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 99 ) NOT IN ( 33 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT - + MAX( 39 ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT - + MAX ( 39 ) AS col2 FROM tab2 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 37 + + col1 col0 FROM tab0 AS cor0
----
-2916
-36
-756

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

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + - ( - + SUM ( ALL + ( + col1 ) ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
309

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

query I rowsort
SELECT + 72 * - col0 AS col1 FROM tab1 AS cor0
----
-3672
-6120
-6552

query I rowsort
SELECT DISTINCT + 62 * 75 FROM tab2 AS cor0
----
4650

query I rowsort
SELECT ALL col1 * 27 FROM tab1 WHERE + col0 NOT IN ( + col2 * col0 )
----
1269
135
378

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1626
SELECT ALL * FROM tab1 WHERE + + 25 BETWEEN ( - 13 * + col2 - + ( + CAST( - col2 AS SIGNED ) + + 16 ) ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-1626
SELECT ALL * FROM tab1 WHERE + + 25 BETWEEN ( - 13 * + col2 - + ( + CAST ( - col2 AS INTEGER ) + + 16 ) ) AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + col0 <= NULL
----

query I rowsort
SELECT ALL ( 12 ) * col2 FROM tab1
----
1152
708
816

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT 13 DIV + 80 * - + 89 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT 13 / + 80 * - + 89 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 5 * col0 AS col2 FROM tab0
----
435
485
75

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

query I rowsort
SELECT ALL 37 FROM tab1 WHERE NOT - col2 BETWEEN - 77 AND + 29 + col1 * - col1
----
37
37

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

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + MIN( + col0 ) * + 22 AS col0 FROM tab1 AS cor0
----
1122

skipif mysql # not compatible
query I rowsort label-1637
SELECT + MIN ( + col0 ) * + 22 AS col0 FROM tab1 AS cor0
----
1122

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 8 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT 30 + + - 46 + - 45 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT + - 98 + - col1 + - CAST( NULL AS SIGNED ) + - 16 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1641
SELECT DISTINCT + - 98 + - col1 + - CAST ( NULL AS INTEGER ) + - 16 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1642
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 98 + - + col0 BETWEEN NULL AND + CAST( NULL AS DECIMAL ) * - 21
----

skipif mysql # not compatible
query III rowsort label-1642
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 98 + - + col0 BETWEEN NULL AND + CAST ( NULL AS REAL ) * - 21
----

query I rowsort
SELECT DISTINCT + col1 * + + ( - col2 ) + col0 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

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

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

query I rowsort
SELECT DISTINCT + + col1 + + + col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT + + col0 * - - col0 * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
-36120
-36400
-389160

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT MAX( ALL + 28 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-1650
SELECT MAX ( ALL + 28 ) AS col1 FROM tab1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT 76 * COUNT( * ) DIV + - 91 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1651
SELECT 76 * COUNT ( * ) / + - 91 AS col0 FROM tab1
----
-2

query II rowsort
SELECT DISTINCT - col2 + + + ( + col1 ) - col2, + col0 FROM tab1
----
-113
85
-178
51
-89
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1653
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) - + 30 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1653
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) - + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL 80 * + + COUNT( * ) + + MAX( col2 ) FROM tab2
----
298

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL 80 * + + COUNT ( * ) + + MAX ( col2 ) FROM tab2
----
298

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN - + 64 + - col0 AND - col1
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT + col0 * + 1 * col0 + + col2 DIV + 82 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + col0 * + 1 * col0 + + col2 / + 82 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT + - col1 DIV - 96 * + 2 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1660
SELECT + - col1 / - 96 * + 2 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

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

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

query I rowsort
SELECT ALL col0 * 82 FROM tab0
----
1230
7134
7954

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

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

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 83 / - col2 AS col1 FROM tab2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT DISTINCT - col1 DIV - 4 FROM tab1
----
1
11
3

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT - col1 / - 4 FROM tab1
----
1
11
3

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

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT - 56 + + COUNT ( * ) FROM tab0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - 72 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - 72 AS col0 FROM tab0
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1672
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-6

query I rowsort
SELECT ALL - - 29 * col0 * + + col1 AS col0 FROM tab0 AS cor0
----
2813
35235
52983

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE + ( - col1 ) + 22 IS NOT NULL
----
1
21
81

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

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

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

query I rowsort
SELECT + col2 - + 85 AS col2 FROM tab1 AS cor0
----
-17
-26
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT DISTINCT - 1 - + CAST( 95 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - 1 - + CAST ( 95 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT DISTINCT + col0 - + col2 DIV + + col1 col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1680
SELECT DISTINCT + col0 - + col2 / + + col1 col1 FROM tab0 AS cor0
----
-2
15
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 26 * 16 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL col2 * 37 - col0 FROM tab2 AS cor0
----
1416
2071
805

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT - COUNT( 68 ) + + SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - COUNT ( 68 ) + + SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
-188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 54
----

query I rowsort
SELECT + col1 + ( 68 ) - - + 37 AS col2 FROM tab1
----
110
119
152

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

query II rowsort
SELECT DISTINCT 9 AS col2, col1 * 17 FROM tab1 AS cor0
----
9
238
9
799
9
85

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 / + 67 + - - col2 >= 53
----

query II rowsort
SELECT + 8, ( 6 ) AS col2 FROM tab1 AS cor0
----
8
6
8
6
8
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT 46 * + - 85 - + 99 + - - col1 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT 46 * + - 85 - + 99 + - - col1 IS NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1695
SELECT * FROM tab0 WHERE NOT 38 * - 66 * - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1695
SELECT * FROM tab0 WHERE NOT 38 * - 66 * - - CAST ( NULL AS INTEGER ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT col1 * + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1697
SELECT col1 * + col1 / col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT + col0 AS col0, - 35 FROM tab2 AS cor0
----
46
-35
64
-35
75
-35

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

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

query II rowsort
SELECT DISTINCT + 79, col1 AS col1 FROM tab0 AS cor0
----
79
1
79
21
79
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - 16 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - 16 AND NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - 60
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT - col0 * - + col2 + col1 * + 61 * + + col1 * - 85 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1705
SELECT - CAST( + col2 AS SIGNED ), + col2 FROM tab2
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-1705
SELECT - CAST ( + col2 AS INTEGER ), + col2 FROM tab2
----
-23
23
-40
40
-58
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1707
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= CAST( + 68 AS SIGNED )
----
46
51
23
75
67
58

skipif mysql # not compatible
query III rowsort label-1707
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= CAST ( + 68 AS INTEGER )
----
46
51
23
75
67
58

query I rowsort
SELECT - 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 38 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT MIN( ALL 80 ) * - 28 FROM tab2
----
-2240

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT MIN ( ALL 80 ) * - 28 FROM tab2
----
-2240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab2 AS cor0 WHERE - col1 * + col2 IS NULL
----

query I rowsort
SELECT - 4 AS col0 FROM tab1 AS cor0 WHERE + col0 * 66 BETWEEN + + col0 AND ( - - 11 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT + + 14 * MIN( col0 ), COUNT( * ) col1 FROM tab0 AS cor0
----
210
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1713
SELECT + + 14 * MIN ( col0 ), COUNT ( * ) col1 FROM tab0 AS cor0
----
210
3

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

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

query I rowsort
SELECT ALL + col1 - 79 FROM tab1 AS cor0
----
-32
-65
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE 98 / col2 NOT BETWEEN NULL AND - + col1 + - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE 98 / col2 NOT BETWEEN NULL AND - + col1 + - + col2
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + + col1 AS col2 FROM tab0 cor0
----
-66
66
96

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

skipif mysql # not compatible
query I rowsort label-1718
SELECT + CAST ( + + 19 AS INTEGER ) FROM tab1
----
19
19
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT + CAST( MIN( DISTINCT - 83 ) AS SIGNED ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-1721
SELECT + CAST ( MIN ( DISTINCT - 83 ) AS INTEGER ) FROM tab2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL + COUNT( * ) * - ( 60 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + COUNT ( * ) * - ( 60 ) FROM tab0
----
-180

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > + - col0 * + + 39 + + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 90 * - + col1 * + 64 AS col2 FROM tab0 cor0
----
120960
466560
5760

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1728
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 24 + - col0 * + col0 / - col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - COUNT( * ) * 36 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1729
SELECT - COUNT ( * ) * 36 FROM tab2 AS cor0
----
-108

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

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

query I rowsort
SELECT DISTINCT 48 FROM tab1 WHERE - col2 * + 26 + - - 75 + col0 * - 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT - SUM( col2 ) + + - COUNT( + col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - SUM ( col2 ) + + - COUNT ( + col2 ) FROM tab1 AS cor0
----
-226

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = - col1
----

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 * - + col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1738
SELECT DISTINCT + col2, - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1738
SELECT DISTINCT + col2, - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL <= + + col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1742
SELECT - 35 DIV + - 99 AS col0, + 75 * - MIN( ALL + 70 ) FROM tab2
----
0
-5250

skipif mysql # not compatible
query II rowsort label-1742
SELECT - 35 / + - 99 AS col0, + 75 * - MIN ( ALL + 70 ) FROM tab2
----
0
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT - - CAST( + col1 AS SIGNED ) - + - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1743
SELECT - - CAST ( + col1 AS INTEGER ) - + - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

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

query I rowsort
SELECT ALL - 52 * - col2 * - col2 * - col0 + - col0 + - col0 * 87 - + col2 FROM tab0 AS cor0
----
1721653
444734
49427609

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT DISTINCT + - 81 DIV - col0 + + 70 AS col2 FROM tab0 AS cor0
----
70
75

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + - 81 / - col0 + + 70 AS col2 FROM tab0 AS cor0
----
70
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - COUNT( * ) + - - 38 AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1749
SELECT - COUNT ( * ) + - - 38 AS col2 FROM tab2 AS cor0
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE + CAST( + col2 AS SIGNED ) BETWEEN col0 - - col1 + col2 * + + col1 + 36 AND - + col2
----

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE + CAST ( + col2 AS INTEGER ) BETWEEN col0 - - col1 + col2 * + + col1 + 36 AND - + col2
----

query I rowsort
SELECT - 41 / - - 27 * col2 / - col2 FROM tab2 WHERE NOT ( + col2 <= NULL )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT + 98, + 0 + + + ( + COUNT( * ) ) col1 FROM tab1
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1756
SELECT + 98, + 0 + + + ( + COUNT ( * ) ) col1 FROM tab1
----
98
3

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

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

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

query II rowsort
SELECT ALL - col2, + 55 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1761
SELECT * FROM tab0 WHERE NOT - + CAST( + 56 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1761
SELECT * FROM tab0 WHERE NOT - + CAST ( + 56 AS INTEGER ) <> NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 27 > - 82 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + 19 col2 FROM tab1 AS cor0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT - COUNT( * ) + - - MIN( ALL + col2 ) AS col1 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - COUNT ( * ) + - - MIN ( ALL + col2 ) AS col1 FROM tab2 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - + SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( + col0 < - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT - + SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( + col0 < - + col0 )
----
NULL

query I rowsort
SELECT ALL + + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-33
-33
-33

query II rowsort
SELECT DISTINCT col1 * + col2 AS col2, - col1 * + + col1 AS col2 FROM tab0 cor0
----
210
-441
3807
-6561
99
-1

query I rowsort
SELECT col2 + - 47 AS col2 FROM tab0
----
-37
0
52

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

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

query I rowsort
SELECT col2 + - 91 * - 47 + + col0 AS col1 FROM tab1
----
4421
4424
4436

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL COUNT( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL COUNT ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * 79 + + + 96 + 65 * - + col0 * col0 FROM tab0
----
-15714
-498762
-619152

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 + col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 + + + 42 * - - col2 col0 FROM tab1 cor0
----
2648
3038
4134

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1777
SELECT - MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 72 * + col2 - + + ( + ( - col1 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3303
-699
-7127

query I rowsort
SELECT ALL + 23 * + col1 AS col2 FROM tab1
----
1081
115
322

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

query I rowsort
SELECT ALL - ( - - 75 ) FROM tab2 AS cor0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - 64 IS NULL ) OR NOT + col2 < NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT - col2 * - - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - - 79 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL 33 * COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 33 * COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 WHERE NOT + col1 * - - col2 + + col2 * - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT + + MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + + MIN ( col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT DISTINCT 87 * - COUNT( * ) AS col1, + 55 FROM tab2 AS cor0
----
-261
55

skipif mysql # not compatible
query II rowsort label-1791
SELECT DISTINCT 87 * - COUNT ( * ) AS col1, + 55 FROM tab2 AS cor0
----
-261
55

query I rowsort
SELECT - 44 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL + COUNT( * ) + - + COUNT( * ) * + ( + - 85 ) AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * + ( + - 85 ) AS col1 FROM tab0
----
258

query II rowsort
SELECT DISTINCT + ( - + col0 ) + col2, + col1 FROM tab2 cor0
----
-17
67
-23
51
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - MIN( + + 55 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1795
SELECT - MIN ( + + 55 ) FROM tab0 AS cor0
----
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1797
SELECT + - 26 AS col0, COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
-26
1

skipif mysql # not compatible
query II rowsort label-1797
SELECT + - 26 AS col0, COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
-26
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1798
SELECT COUNT( * ) DIV + 65 + + 88 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1798
SELECT COUNT ( * ) / + 65 + + 88 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT col0 + col0 + - + col2 * 43 FROM tab2 AS cor0 WHERE NOT NULL >= + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT COUNT( * ) + - 44 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-1800
SELECT COUNT ( * ) + - 44 FROM tab2
----
-41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < col1
----

query I rowsort
SELECT col2 + - 22 * - 60 FROM tab0
----
1330
1367
1419

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 + - + col2 AS col2, col0 * + 32 * - + col2 + - 38 col0 FROM tab0 AS cor0
----
-10
-27878
-47
-22598
-99
-307334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 + - + col0 col1 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT ALL + 31 + col0 * + 85 - + col2 - - col2 AS col1 FROM tab0 cor0
----
1306
7426
8276

query I rowsort
SELECT ALL + + col2 * 67 * + + col1 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
207960
263726
79120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT ALL + - col0 FROM tab0 cor0 WHERE - col0 * + + col2 * col0 IN ( - col0 * ( CAST( 83 AS SIGNED ) ), 93 )
----

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + - col0 FROM tab0 cor0 WHERE - col0 * + + col2 * col0 IN ( - col0 * ( CAST ( 83 AS INTEGER ) ), 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
9

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

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col2 - + col0 * - col2 FROM tab0
----
752
880
9702

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - SUM( + 91 ) AS col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1816
SELECT - SUM ( + 91 ) AS col2 FROM tab1 AS cor0
----
-273

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

query II rowsort
SELECT DISTINCT - 84 * col2 AS col2, - col1 FROM tab0
----
-3948
-81
-8316
-1
-840
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT - COUNT( * ) * 32 * + + 46 * - COUNT( * ) FROM tab0
----
13248

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT - COUNT ( * ) * 32 * + + 46 * - COUNT ( * ) FROM tab0
----
13248

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1823
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - + ( + + 59 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - + ( + + 59 ) FROM tab1
----
NULL

query I rowsort
SELECT + 74 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
74
74
74

query II rowsort
SELECT DISTINCT - col2, + col0 FROM tab0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 col0, col0 AS col0 FROM tab2
----
22
46
22
64
22
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT - + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( - + col2 ) AND col0 * - + 69 * + col2
----

query I rowsort
SELECT DISTINCT 20 + 88 FROM tab0 AS cor0
----
108

query I rowsort
SELECT + col0 * + col2 + col1 + - col2 AS col2 FROM tab0 cor0
----
739
881
9505

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 21 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + 8 * - col1 AS col2 FROM tab0 AS cor0
----
-107
-178
-695

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

query I rowsort
SELECT ALL + 33 * + 23 * + ( col2 ) FROM tab2 cor0
----
17457
30360
44022

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----
0

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

query I rowsort
SELECT + 14 * + col2 AS col0 FROM tab1
----
1344
826
952

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT + MIN( - col0 ) * + COUNT( * ), COUNT( * ) col0 FROM tab1
----
-273
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1841
SELECT + MIN ( - col0 ) * + COUNT ( * ), COUNT ( * ) col0 FROM tab1
----
-273
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL - 38 DIV - col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1842
SELECT ALL - 38 / - col0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT - col0 DIV + 11 col2 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT - col0 / + 11 col2 FROM tab0
----
-1
-7
-8

query II rowsort
SELECT ALL col1, col2 * col1 + col1 * + col1 * + + col1 FROM tab0
----
1
100
21
9471
81
535248

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT + col2 DIV + + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1845
SELECT + col2 / + + col2 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT DISTINCT + col0 - + col2 DIV + col0 + 73 FROM tab0 cor0
----
160
169
85

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + col0 - + col2 / + col0 + 73 FROM tab0 cor0
----
160
169
85

query I rowsort
SELECT + col2 - - 1 AS col0 FROM tab0 AS cor0
----
100
11
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - 8 * + COUNT( * ) FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1849
SELECT - 8 * + COUNT ( * ) FROM tab1 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 cor0
----
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL ( - ( + MIN( - col0 ) ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL ( - ( + MIN ( - col0 ) ) ) AS col2 FROM tab1
----
91

query I rowsort
SELECT col1 * - 30 AS col2 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT ALL ( 32 ) FROM tab2
----
32
32
32

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col2 > - ( + col0 )
----
-1
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT - MAX( ALL 56 ) AS col2 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT - MAX ( ALL 56 ) AS col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT - - col1 * + col2 * + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
197056
291375
53912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT col0 * - CAST( NULL AS SIGNED ) * - 96 FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1863
SELECT col0 * - CAST ( NULL AS INTEGER ) * - 96 FROM tab0 WHERE NULL >= NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 NOT BETWEEN - - 24 AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
-23
-40
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1868
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2, - 37 FROM tab2 AS cor0
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT + - col0 - - col1 DIV 65 * + col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1869
SELECT + - col0 - - col1 / 65 * + col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 29 * - col0 + - col1 + col2 - col1 FROM tab2 cor0
----
1255
1742
2099

query II rowsort
SELECT ALL + + 55 AS col0, col2 AS col1 FROM tab1 AS cor0
----
55
59
55
68
55
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - col1 + - col2 AND 36 * - col0 / col1 + - + 47
----

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab2 WHERE NOT + 41 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL + MAX( ALL + 70 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + MAX ( ALL + 70 ) FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - 89 + MIN( col1 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - 89 + MIN ( col1 ) FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1876
SELECT - CAST( NULL AS SIGNED ) + - - CAST( - - col1 AS SIGNED ) * - 4 AS col0, 46 FROM tab0 WHERE NULL = - col2
----

skipif mysql # not compatible
query II rowsort label-1876
SELECT - CAST ( NULL AS INTEGER ) + - - CAST ( - - col1 AS INTEGER ) * - 4 AS col0, 46 FROM tab0 WHERE NULL = - col2
----

query I rowsort
SELECT ALL - col0 * ( + + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1879
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND CAST( ( col1 ) AS SIGNED ) * + col0 + col1
----

skipif mysql # not compatible
query III rowsort label-1879
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND CAST ( ( col1 ) AS INTEGER ) * + col0 + col1
----

query I rowsort
SELECT + 45 * 88 FROM tab0 AS cor0
----
3960
3960
3960

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1882
SELECT ALL col0 DIV + + 82 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
0
81
1
1
1
21

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL col0 / + + 82 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
0
81
1
1
1
21

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT - COUNT( * ) DIV + ( - 97 ) * - MIN( + + 74 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT - COUNT ( * ) / + ( - 97 ) * - MIN ( + + 74 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - 29 * + + col2 AS col1 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT ( + + col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL MIN( ALL + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 19 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 / - 18 IN ( - + 3 )
----
104
110
70

query I rowsort
SELECT + + 38 * col0 AS col0 FROM tab0 AS cor0
----
3306
3686
570

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1892
SELECT DISTINCT + COUNT ( * ) col2, + ( + + 79 ) FROM tab1 AS cor0
----
3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + + 86 + 24 FROM tab2 AS cor0 WHERE 5 * - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + + 86 + 24 FROM tab2 AS cor0 WHERE 5 * - - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1894
SELECT DISTINCT - col2 + 3, 93 * - + 67 + - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
-44
NULL
-7
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1894
SELECT DISTINCT - col2 + 3, 93 * - + 67 + - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
-44
NULL
-7
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 48 - + col1 NOT BETWEEN - + 91 AND 32 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - - 28 FROM tab2 AS cor0 WHERE NOT - 27 <= NULL
----

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

query I rowsort
SELECT + 70 + 29 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - 36 + - - 46 FROM tab2
----
10
10
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT - COUNT( * ) - + 89 AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - COUNT ( * ) - + 89 AS col0 FROM tab1 AS cor0
----
-92

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

query I rowsort
SELECT DISTINCT col0 + + + ( col2 ) AS col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT COUNT( * ) - - 64 FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT COUNT ( * ) - - 64 FROM tab0 cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1905
SELECT * FROM tab1 cor0 WHERE col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1905
SELECT * FROM tab1 cor0 WHERE col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col0 FROM tab0
----
10
-87
47
-15
99
-97

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

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

query I rowsort
SELECT DISTINCT 41 * - col2 FROM tab0
----
-1927
-4059
-410

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL ( COUNT ( col2 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 62 - COUNT( + 65 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1910
SELECT 62 - COUNT ( + 65 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT col0 * ( + - col0 ) * + 18 FROM tab0
----
-136242
-169362
-4050

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

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 31 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL MIN( 55 ) + - + CAST( + + 28 AS SIGNED ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL MIN ( 55 ) + - + CAST ( + + 28 AS INTEGER ) FROM tab1
----
27

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1918
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 2 + + col0, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1918
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 2 + + col0, CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL + COUNT( * ) col2 FROM tab1 cor0
----
3

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

query II rowsort
SELECT col0, col0 * + col0 * + ( + - 79 ) + - - ( + 64 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
-205415
85
-570711
91
-654135

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + 68 + + + 60 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL ( + MAX( DISTINCT 19 ) ) AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL ( + MAX ( DISTINCT 19 ) ) AS col1 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - 49 * - col1 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE ( - col1 + + + 50 ) IS NOT NULL
----
15

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

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

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

query II rowsort
SELECT + 93 AS col0, col0 AS col2 FROM tab2
----
93
46
93
64
93
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( 25 * col1 - + col0 )
----

query I rowsort
SELECT ALL - col2 + 54 AS col2 FROM tab2
----
-4
14
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT - CAST( - + 65 AS SIGNED ) + + col1 FROM tab1
----
112
70
79

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - CAST ( - + 65 AS INTEGER ) + + col1 FROM tab1
----
112
70
79

query I rowsort
SELECT + col1 FROM tab2 WHERE + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT DISTINCT - + 52 + - + 4 + - 88 AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-144
3

skipif mysql # not compatible
query II rowsort label-1933
SELECT DISTINCT - + 52 + - + 4 + - 88 AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-144
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + 68 * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 68 * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 33 ) IS NULL
----

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

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

query I rowsort
SELECT - - 42 - col0 AS col2 FROM tab2 AS cor0
----
-22
-33
-4

query I rowsort
SELECT 78 - - + 38 FROM tab0 AS cor0
----
116
116
116

query I rowsort
SELECT DISTINCT + + col0 + + col2 + - - col1 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT ALL CAST( NULL AS SIGNED ) * 45 + + + 45 + + 83 * + + 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL CAST ( NULL AS INTEGER ) * 45 + + + 45 + + 83 * + + 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL - + col0 DIV + col2 - 95 AS col0 FROM tab1 AS cor0
----
-95
-96
-96

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - + col0 / + col2 - 95 AS col0 FROM tab1 AS cor0
----
-95
-96
-96

query I rowsort
SELECT - ( - col2 ) + ( col2 ) FROM tab2 cor0
----
116
46
80

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

query I rowsort
SELECT DISTINCT col2 * + 16 FROM tab2
----
368
640
928

query II rowsort
SELECT ALL col2 AS col1, col2 * + col0 FROM tab2
----
23
1058
40
2560
58
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 - + 48 col2 FROM tab2 WHERE NOT - 99 NOT BETWEEN NULL AND - - col1 / + ( col1 ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT 38 * COUNT( * ) AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT 38 * COUNT ( * ) AS col1 FROM tab2
----
114

query I rowsort
SELECT DISTINCT - 34 * - + col2 + 55 FROM tab1 WHERE NOT - col1 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * + 83 col2 FROM tab1
----
2573
2573
2573

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

query I rowsort
SELECT DISTINCT - col1 * 66 FROM tab0
----
-1386
-5346
-66

query I rowsort
SELECT 19 * + col2 * col2 FROM tab0 AS cor0
----
186219
1900
41971

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

query I rowsort
SELECT ALL 75 * 34 * + col0 FROM tab1 AS cor0
----
130050
216750
232050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT - ( - - MIN( DISTINCT + col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1956
SELECT - ( - - MIN ( DISTINCT + col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT - + ( COUNT( * ) ) + 46 AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT - + ( COUNT ( * ) ) + 46 AS col2 FROM tab0 AS cor0
----
43

query I rowsort
SELECT + col0 * - ( - col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT ALL COUNT( * ), COUNT( ALL - 22 ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1959
SELECT ALL COUNT ( * ), COUNT ( ALL - 22 ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT SUM( - 75 ) + - - 56 FROM tab1 cor0
----
-169

skipif mysql # not compatible
query I rowsort label-1960
SELECT SUM ( - 75 ) + - - 56 FROM tab1 cor0
----
-169

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - 37 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT col2 * + col1 DIV - col1 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1963
SELECT col2 * + col1 / - col1 AS col0 FROM tab0
----
-10
-47
-99

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

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

query I rowsort
SELECT DISTINCT 56 + 84 FROM tab0
----
140

query I rowsort
SELECT ALL - ( ( - + 92 ) ) + col1 * - col2 AS col0 FROM tab2
----
-1081
-2988
-3794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1968
SELECT ALL COUNT( * ) DIV + COUNT( DISTINCT + - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL COUNT ( * ) / + COUNT ( DISTINCT + - col2 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT col1 * + 34 * + 62 + + - CAST( NULL AS SIGNED ) + - col1 - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT col1 * + 34 * + 62 + + - CAST ( NULL AS INTEGER ) + - col1 - - col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) + - + 53 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) + - + 53 FROM tab2 AS cor0
----
-47

query II rowsort
SELECT - 67 - - + col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-21
46
-3
64
8
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE 16 * col1 = - col2 + - col2 - + col2
----

query II rowsort
SELECT ALL col2 - col1 AS col2, 90 - + 2 FROM tab1 AS cor0
----
21
88
54
88
82
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT ALL 42 DIV - col2 + + - 56 + + col0 + + - 74 * 80 AS col1 FROM tab0 AS cor0
----
-5879
-5893
-5961

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL 42 / - col2 + + - 56 + + col0 + + - 74 * 80 AS col1 FROM tab0 AS cor0
----
-5879
-5893
-5961

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * 16 NOT IN ( + 14, col1, + 22, - - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + + col0 + - 89 AS col1 FROM tab2
----
-20
15
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 68 FROM tab0 AS cor0 WHERE 64 + - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 68 FROM tab0 AS cor0 WHERE 64 + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 + 90 + 9 + + - col2 FROM tab0 AS cor0
----
1
110
133

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND col0 + 59 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT MIN ( DISTINCT + 32 ) AS col2 FROM tab0 AS cor0
----
32

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

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT + ( - - 76 ) AS col1 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + ( - 4 ) FROM tab2 AS cor0
----
-4

query II rowsort
SELECT col1, 52 + + col2 FROM tab1 cor0
----
14
148
47
120
5
111

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab1 WHERE + - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 22 >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + 96 * + - 28 * + col2 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1996
SELECT DISTINCT - + CAST ( - 72 AS INTEGER ), col1 col0 FROM tab0 AS cor0
----
72
1
72
21
72
81

query I rowsort
SELECT DISTINCT + col1 * 64 AS col2 FROM tab2
----
3264
4288
4928

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 / - + 79 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT col2 * - - col2 DIV col2 * - 25 FROM tab2 AS cor0
----
-1000
-1450
-575

skipif mysql # not compatible
query I rowsort label-2002
SELECT col2 * - - col2 / col2 * - 25 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ( - col2 ) * col0 DIV + col1 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-2003
SELECT ( - col2 ) * col0 / + col1 FROM tab1 AS cor0
----
-1003
-131
-349

query I rowsort
SELECT - 94 * - - col1 AS col1 FROM tab1 AS cor0
----
-1316
-4418
-470

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 42 + + 18 * - col2 <> NULL
----

query II rowsort
SELECT ALL 88 AS col1, col1 FROM tab2
----
88
51
88
67
88
77

query II rowsort
SELECT ALL + col2 AS col0, 92 FROM tab2
----
23
92
40
92
58
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + + 6 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + + 6 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT DISTINCT - col1 - - col0 * col2 + + col1 AS col1, 52 FROM tab2 AS cor0
----
1058
52
2560
52
4350
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT ALL + col0 DIV - - col1 + - - col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + col0 / - - col1 + - - col2 FROM tab1 AS cor0
----
69
76
99

query I rowsort
SELECT ALL col1 - + + ( + col2 ) AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL 50 DIV - col2 + + col2 + col0 + col0 + + 65 AS col2 FROM tab0
----
141
244
358

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 50 / - col2 + + col2 + col0 + col0 + + 65 AS col2 FROM tab0
----
141
244
358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT COUNT( * ) * + - 88 DIV + 4 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2016
SELECT COUNT ( * ) * + - 88 / + 4 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - col2 * - - col0 + + ( col2 ) FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT + 99 * - + 40 FROM tab0 AS cor0
----
-3960
-3960
-3960

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

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - ( + col2 ) - + - 77 IS NULL
----

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

query I rowsort
SELECT + col2 * - 8 FROM tab2
----
-184
-320
-464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - 69 FROM tab2
----
46
-69
64
-69
75
-69

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

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

query I rowsort
SELECT + col1 + col1 * - col2 AS col2 FROM tab2
----
-1122
-3003
-3819

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

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

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

skipif mysql # not compatible
query I rowsort label-2029
SELECT MAX ( ALL + 69 ) AS col0 FROM tab2
----
69

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

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

query I rowsort
SELECT ALL col0 - 50 AS col0 FROM tab2 WHERE NOT - 96 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - SUM( + col0 ) + 35 FROM tab0
----
-164

skipif mysql # not compatible
query I rowsort label-2032
SELECT - SUM ( + col0 ) + 35 FROM tab0
----
-164

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

skipif mysql # not compatible
query I rowsort label-2033
SELECT MIN ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 96 + col2 * 36 IS NULL
----
-14
-47
-5

query I rowsort
SELECT - 24 + + col2 AS col1 FROM tab2
----
-1
16
34

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - col0 IN ( - col0 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ( MIN( ALL - 71 ) ) * 21 FROM tab0
----
-1491

skipif mysql # not compatible
query I rowsort label-2038
SELECT ( MIN ( ALL - 71 ) ) * 21 FROM tab0
----
-1491

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2039
SELECT DISTINCT col1 * - ( - col2 DIV CAST( 63 AS SIGNED ) ) + 33 * col0 FROM tab0
----
2871
3202
495

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT col1 * - ( - col2 / CAST ( 63 AS INTEGER ) ) + 33 * col0 FROM tab0
----
2871
3202
495

query I rowsort
SELECT col0 * - 33 FROM tab2
----
-1518
-2112
-2475

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT CAST( - col2 AS SIGNED ) + 31 AS col2 FROM tab0
----
-16
-68
21

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + 31 AS col2 FROM tab0
----
-16
-68
21

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 76 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + 79 FROM tab0
----
166
176
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2049
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT col1 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2050
SELECT col1 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT MIN( col0 ) * COUNT( * ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT MIN ( col0 ) * COUNT ( * ) AS col0 FROM tab2
----
138

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT col2 + - CAST( 95 AS SIGNED ) AS col1 FROM tab1
----
-27
-36
1

skipif mysql # not compatible
query I rowsort label-2053
SELECT col2 + - CAST ( 95 AS INTEGER ) AS col1 FROM tab1
----
-27
-36
1

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN ( 14 ) AND ( - 35 )
----

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

query I rowsort
SELECT DISTINCT + 97 + col0 AS col2 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT COUNT( 82 ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * + col2 + col1 ) <> 55 + 20
----
3

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( 82 ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * + col2 + col1 ) <> 55 + 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT COUNT( * ) * + 85 + COUNT( * ) FROM tab2 cor0
----
258

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT COUNT ( * ) * + 85 + COUNT ( * ) FROM tab2 cor0
----
258

query I rowsort
SELECT ALL col1 - - 89 FROM tab0 AS cor0
----
110
170
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2060
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2060
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2061
SELECT + 96 DIV + 7 + 81 AS col2 FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 96 / + 7 + 81 AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT col2 FROM tab1 WHERE ( + 65 + 1 ) IS NULL
----

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

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT 28 NOT BETWEEN + 85 + 40 AND ( - ( - 31 ) * col1 + 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT - 5 DIV - 43 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - 5 / - 43 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 30 / ( col2 ) > ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 30 - 32 * col2 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + ( - + MAX( ALL ( + 90 ) ) ) AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-2073
SELECT + ( - + MAX ( ALL ( + 90 ) ) ) AS col2 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT - 18 * + MIN( ALL - 41 ) AS col2 FROM tab2
----
738

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - 18 * + MIN ( ALL - 41 ) AS col2 FROM tab2
----
738

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

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

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

skipif mysql # not compatible
query I rowsort label-2077
SELECT MAX ( + col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT + ( MAX( ALL - 56 ) ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-2078
SELECT + ( MAX ( ALL - 56 ) ) FROM tab0
----
-56

query I rowsort
SELECT DISTINCT + ( + - col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2080
SELECT * FROM tab2 WHERE NOT + CAST( 71 AS SIGNED ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2080
SELECT * FROM tab2 WHERE NOT + CAST ( 71 AS INTEGER ) BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 97 AS col1 FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL - AVG ( DISTINCT col2 ) col2 FROM tab2 cor0 WHERE NOT ( 39 * 47 + 50 * - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2084
SELECT ALL - AVG ( DISTINCT col2 ) col2 FROM tab2 cor0 WHERE NOT ( 39 * 47 + 50 * - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND col0
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, + 63 AS col0 FROM tab0
----
15
63
87
63
97
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT + 76 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT + 76 IS NULL
----
-9

query I rowsort
SELECT col1 * 9 + + col0 FROM tab1
----
130
177
514

query I rowsort
SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + COUNT( * ) * 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
837

skipif mysql # not compatible
query I rowsort label-2090
SELECT + COUNT ( * ) * 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
837

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + + 3 * - MIN( ALL - - 46 ) + COUNT( * ) * 49 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2093
SELECT + + 3 * - MIN ( ALL - - 46 ) + COUNT ( * ) * 49 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL - 88 + COUNT( * ) col2 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2094
SELECT ALL - 88 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col0, col1 + + 31 AS col0 FROM tab2 cor0
----
46
82
64
108
75
98

query III rowsort
SELECT * FROM tab0 WHERE ( + + col1 ) <= - 77 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) BETWEEN ( col0 ) AND ( - 18 )
----

query III rowsort
SELECT * FROM tab0 WHERE - + 21 <> ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col2
----

query II rowsort
SELECT ALL - ( - + 78 ) AS col0, col0 * - 26 + + 0 AS col1 FROM tab1
----
78
-1326
78
-2210
78
-2366

query I rowsort
SELECT ALL + 5 - AVG ( - col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + - col1 * + - col2 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + + col2 NOT IN ( + ( - ( - col0 ) ) )
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN - 30 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT + MAX( - 93 ) FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2106
SELECT + MAX ( - 93 ) FROM tab0 cor0
----
-93

query I rowsort
SELECT DISTINCT 14 * + col2 + + 57 FROM tab2 AS cor0
----
379
617
869

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - MIN( 3 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - MIN ( 3 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 56 ) < - col1 * - col0
----

query I rowsort
SELECT DISTINCT + 86 * col0 AS col1 FROM tab0
----
1290
7482
8342

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + 77 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT - - COUNT( * ) DIV + 49 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - - COUNT ( * ) / + 49 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL 60 DIV - 78 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL 60 / - 78 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 91 - + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + + COUNT( ALL col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2116
SELECT + + COUNT ( ALL col2 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( 89 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / - col0 * 13 * - + 98 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * + + 45 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2121
SELECT ALL col0 FROM tab0 AS cor0 WHERE col2 * + CAST( - 62 AS DECIMAL ) + + + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL col0 FROM tab0 AS cor0 WHERE col2 * + CAST ( - 62 AS REAL ) + + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + - - col0 + + col0 NOT BETWEEN - + col1 AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2124
SELECT col1 AS col1, col2 DIV - + 16 + + col2 + - col2 AS col2 FROM tab1
----
14
-6
47
-4
5
-3

skipif mysql # not compatible
query II rowsort label-2124
SELECT col1 AS col1, col2 / - + 16 + + col2 + - col2 AS col2 FROM tab1
----
14
-6
47
-4
5
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ( - 40 ) + + 28 + - + 54 * - - 0 + COUNT( * ) FROM tab1, tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2126
SELECT ( - 40 ) + + 28 + - + 54 * - - 0 + COUNT ( * ) FROM tab1, tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 + - col2 AS col0 FROM tab2
----
51
-69
67
-133
77
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2128
SELECT MIN ( + col1 ) FROM tab2
----
51

query I rowsort
SELECT + col0 * + 29 + - col0 * 70 FROM tab0 WHERE NOT NULL <> ( col2 + col0 )
----

query I rowsort
SELECT ALL 51 * + - 25 FROM tab2
----
-1275
-1275
-1275

query I rowsort
SELECT ALL ( - - col1 ) + + 16 + + - 80 + - col0 * + col1 * - col2 + col1 * col2 FROM tab1
----
25311
294015
69838

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + 53 + col0 - ( + 18 ) NOT IN ( ( col0 ) + - 54 )
----

query I rowsort
SELECT DISTINCT 7 + + col2 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL + 95 * - + COUNT( * ) + + - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + 95 * - + COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
-288

query I rowsort
SELECT + col0 * + ( - - 37 ) * - col1 FROM tab2 cor0
----
-182336
-185925
-86802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2136
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2137
SELECT ALL - MIN( - 25 ) DIV MAX( DISTINCT - col2 ) + 34 + - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) * 17 AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - MIN ( - 25 ) / MAX ( DISTINCT - col2 ) + 34 + - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) * 17 AS col1 FROM tab1
----
-20

query I rowsort
SELECT + 74 + 8 FROM tab1 WHERE NULL < 29 * + + col2
----

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL COUNT( * ) * 64 + COUNT( * ) + - COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL COUNT ( * ) * 64 + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT - col1 + + + 42 + - 24 FROM tab0
----
-3
-63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + ( - - COUNT( * ) ) + - - 5 AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + ( - - COUNT ( * ) ) + - - 5 AS col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL + - 97 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT ALL - - 37 AS col0 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT ALL col2 - - 83 + - 94 AS col1 FROM tab2 AS cor0
----
12
29
47

query I rowsort
SELECT + - 34 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT - + SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT - + SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 WHERE col0 = col2
----

query I rowsort
SELECT - col0 * - + 37 AS col1 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2150
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE - - col1 <> - col2 * col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE - - col1 <> - col2 * col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL + 48 + + col2 AS col0 FROM tab1
----
107
116
144

query I rowsort
SELECT col2 * + 46 - + - 17 * + 66 FROM tab2
----
2180
2962
3790

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT COUNT( * ) - + 1 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2154
SELECT COUNT ( * ) - + 1 AS col2 FROM tab0
----
2

query II rowsort
SELECT DISTINCT ( col1 ) * - + col2 + - col2 + 29 + - col1, - col1 AS col0 FROM tab0
----
-170
-1
-212
-21
-3906
-81

query II rowsort
SELECT 90 AS col0, + 67 + - - 25 FROM tab1 AS cor0
----
90
92
90
92
90
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT DISTINCT - col0 * + + CAST( 18 AS SIGNED ) FROM tab0
----
-1566
-1746
-270

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - col0 * + + CAST ( 18 AS INTEGER ) FROM tab0
----
-1566
-1746
-270

query II rowsort
SELECT ALL col0 * - 1 AS col0, - 59 FROM tab0
----
-15
-59
-87
-59
-97
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 85 ) col0 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT 67 + - 98 FROM tab1 AS cor0 WHERE NOT + 73 <= col0
----
-31

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT 9 * - - 23 > NULL
----

query I rowsort
SELECT ALL - col0 * - + col0 AS col2 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) * - MAX( - + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) * - MAX ( - + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 10 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * ( + - 8 ), col1, col2, 84 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2165
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 4 * CAST( col1 AS SIGNED ) * + col0 + - + col0 + - col1 / + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2165
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 4 * CAST ( col1 AS INTEGER ) * + col0 + - + col0 + - col1 / + + col2 )
----

query I rowsort
SELECT DISTINCT + 14 * ( - 39 ) FROM tab2
----
-546

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + + col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - 84 FROM tab0
----
-37
-74
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT 84 * - MAX( DISTINCT + col2 ) FROM tab2
----
-4872

skipif mysql # not compatible
query I rowsort label-2169
SELECT 84 * - MAX ( DISTINCT + col2 ) FROM tab2
----
-4872

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + + col0 * + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 39 + + - col0 FROM tab0 cor0
----
-126
-136
-54

query I rowsort
SELECT 68 AS col2 FROM tab1 cor0
----
68
68
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 24 AND - ( + + col0 ) + - col0
----

query I rowsort
SELECT DISTINCT + 24 * - ( + + 24 ) FROM tab0
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + COUNT( * ) FROM tab2 WHERE + + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT + COUNT ( * ) FROM tab2 WHERE + + col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 3 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
3

query I rowsort
SELECT ALL 91 + - 69 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - col0 - col2 + - col0 AS col1 FROM tab0 cor0
----
-184
-293
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0 WHERE + - ( - col2 ) NOT BETWEEN ( - 91 - - - ( col0 ) * 16 + + + col0 + + col2 - - 0 ) AND + ( col2 ) AND 21 <= + col0
----

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 WHERE + - ( - col2 ) NOT BETWEEN ( - 91 - - - ( col0 ) * 16 + + + col0 + + col2 - - 0 ) AND + ( col2 ) AND 21 <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT - col1 DIV - 23 + - ( col0 ) + - col0 AS col2 FROM tab1 cor0
----
-102
-170
-180

skipif mysql # not compatible
query I rowsort label-2181
SELECT - col1 / - 23 + - ( col0 ) + - col0 AS col2 FROM tab1 cor0
----
-102
-170
-180

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT col2 IS NOT NULL
----

query II rowsort
SELECT - ( col1 ) + - 83 - col1 AS col0, - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-185
2116
-217
5625
-237
4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 + 33 col1 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - 88 - - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-2185
SELECT - 88 - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
-88

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( NOT + ( - col2 ) + 23 + - col0 IS NOT NULL )
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 <> + col0 / - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 58 * + col0 + 25 col0, ( col2 ) * 4 * - col2 + + col0 FROM tab2 AS cor0
----
-2643
-2070
-3687
-6336
-4325
-13381

query I rowsort
SELECT DISTINCT + + 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + + - col0 * - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - + col0 / + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2192
SELECT - SUM( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT - SUM ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT - + 44 * - col0 FROM tab2 AS cor0
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + COUNT( - 40 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COUNT ( - 40 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + CAST( NULL AS SIGNED ) + - col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2195
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + CAST ( NULL AS INTEGER ) + - col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 89 * - col1 + - ( - 91 ) * col1 FROM tab2 AS cor0
----
12060
13860
9180

query II rowsort
SELECT DISTINCT - col2 * - 35 * - col0, col2 AS col2 FROM tab2 AS cor0
----
-152250
58
-37030
23
-89600
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2198
SELECT + 81 + - col0 + col2, col0 DIV col1 AS col1 FROM tab2 AS cor0
----
57
0
58
0
64
1

skipif mysql # not compatible
query II rowsort label-2198
SELECT + 81 + - col0 + col2, col0 / col1 AS col1 FROM tab2 AS cor0
----
57
0
58
0
64
1

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 WHERE NOT col1 + + + col0 IS NOT NULL
----

query II rowsort
SELECT col0 + - col2 * - col2 * - col2, + col2 FROM tab2
----
-12121
23
-195037
58
-63936
40

query I rowsort
SELECT DISTINCT col0 + 80 AS col2 FROM tab0
----
167
177
95

query I rowsort
SELECT + ( + 31 ) AS col1 FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT + COUNT( * ) + MAX( ALL 57 ) + + - 9 * - 13 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL 57 ) + + - 9 * - 13 FROM tab2 AS cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT DISTINCT col1 DIV - + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT col1 / - + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( + 14 ) + - 57 FROM tab2 AS cor0
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - 87 - + 92 AS col1 FROM tab0 AS cor0
----
-132
-169
-80

query I rowsort
SELECT ALL ( + + ( 51 ) ) AS col1 FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL ( + + col1 ) + 41 + - 21 AS col2 FROM tab2
----
71
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 7 col1 FROM tab1
----
103
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2212
SELECT - col2 * - CAST( col0 AS SIGNED ) * 67 + - 74, 31 AS col0 FROM tab0
----
47161
31
58216
31
643327
31

skipif mysql # not compatible
query II rowsort label-2212
SELECT - col2 * - CAST ( col0 AS INTEGER ) * 67 + - 74, 31 AS col0 FROM tab0
----
47161
31
58216
31
643327
31

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 13 * + 55 * + + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 + + + col0 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT + - 6 * + + 93 + + 47, col0 AS col1 FROM tab0 cor0
----
-511
15
-511
87
-511
97

query I rowsort
SELECT 90 + + 62 FROM tab1 AS cor0 WHERE col2 NOT IN ( + + col2, 71, + col0 )
----

query I rowsort
SELECT DISTINCT - col2 + + col0 * 58 FROM tab2 cor0
----
2645
3672
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT 73 DIV col1 + - col2 * + 72 * + col0 AS col2 FROM tab2 AS cor0 WHERE + 19 IS NOT NULL
----
-184320
-313199
-76175

skipif mysql # not compatible
query I rowsort label-2218
SELECT 73 / col1 + - col2 * + 72 * + col0 AS col2 FROM tab2 AS cor0 WHERE + 19 IS NOT NULL
----
-184320
-313199
-76175

query I rowsort
SELECT 66 * - 86 AS col2 FROM tab2 AS cor0
----
-5676
-5676
-5676

query I rowsort
SELECT - col0 * - col2 - - col1 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL COUNT( * ) - - + 10 + + - COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL COUNT ( * ) - - + 10 + + - COUNT ( * ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT - col2 - + 86 + col0 FROM tab0
----
-118
-88
-9

query I rowsort
SELECT col1 * 47 AS col0 FROM tab2
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT SUM( ALL - 1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2224
SELECT SUM ( ALL - 1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT - col2, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT + - SUM( col0 ) AS col0 FROM tab2 WHERE NULL BETWEEN - col2 AND + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + - SUM ( col0 ) AS col0 FROM tab2 WHERE NULL BETWEEN - col2 AND + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT MIN( + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2227
SELECT MIN ( + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - SUM( DISTINCT col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2228
SELECT - SUM ( DISTINCT col2 ) AS col0 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab2 WHERE NOT - 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT COUNT( ALL + - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT COUNT ( ALL + - col0 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2231
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2231
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT COUNT( * ) * + 91 * 34 * - SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
956046

skipif mysql # not compatible
query I rowsort label-2232
SELECT COUNT ( * ) * + 91 * 34 * - SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
956046

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab0 WHERE NULL < + col2 AND NOT - 63 + 43 < + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT + 15 DIV - 13 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 15 / - 13 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( ( NULL < 93 - + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL - COUNT( DISTINCT - ( + col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - COUNT ( DISTINCT - ( + col0 ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + 79 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 51 AS col2, ( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2242
SELECT + col2, CAST( - col0 AS SIGNED ) + + - col1 FROM tab0
----
10
-108
47
-96
99
-98

skipif mysql # not compatible
query II rowsort label-2242
SELECT + col2, CAST ( - col0 AS INTEGER ) + + - col1 FROM tab0
----
10
-108
47
-96
99
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + 2 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 2 / col0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - 56, - col0 AS col0 FROM tab0
----
-56
-15
-56
-87
-56
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT DISTINCT col1 + + - col0 * 50 DIV - col2 FROM tab2
----
131
151
157

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT col1 + + - col0 * 50 / - col2 FROM tab2
----
131
151
157

query I rowsort
SELECT - 12 + - + col0 + - - col2 AS col2 FROM tab1 WHERE NULL BETWEEN + 45 AND ( NULL )
----

query I rowsort
SELECT - 40 + 35 FROM tab2
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 + - - 46 <= NULL
----

query I rowsort
SELECT 99 + - - 16 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT + + 54 + - - COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2250
SELECT + + 54 + - - COUNT ( * ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT DISTINCT 5, + col1 AS col2 FROM tab1 AS cor0
----
5
14
5
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL - SUM( ALL 4 ) AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - SUM ( ALL 4 ) AS col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT + - 99 * 66 FROM tab1 AS cor0
----
-6534
-6534
-6534

query III rowsort
SELECT * FROM tab2 WHERE + - col1 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT COUNT( * ) - - ( - - 56 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( * ) - - ( - - 56 ) FROM tab1
----
59

query I rowsort
SELECT col2 - - - 32 + - col1 AS col2 FROM tab1
----
-11
22
50

query I rowsort
SELECT ALL - - 90 * + ( - - col0 ) FROM tab2 cor0
----
4140
5760
6750

query I rowsort
SELECT col0 - - + col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NULL >= 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT DISTINCT 6 * COUNT( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 70 + 96 AND - CAST( - + col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) * ( - + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT 6 * COUNT ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 70 + 96 AND - CAST ( - + col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * ( - + 99 )
----
0

query I rowsort
SELECT DISTINCT - 25 * + col2 AS col1 FROM tab2 AS cor0
----
-1000
-1450
-575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab1 AS cor0 WHERE NOT ( + ( - col1 ) - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - COUNT( DISTINCT ( + 67 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - COUNT ( DISTINCT ( + 67 ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2265
SELECT DISTINCT - COUNT( * ) DIV 54 AS col0, + 94 FROM tab0 WHERE col1 IS NOT NULL
----
0
94

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT - COUNT ( * ) / 54 AS col0, + 94 FROM tab0 WHERE col1 IS NOT NULL
----
0
94

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT 70 / - + 99 * - SUM( ALL col0 ) + + + 0 FROM tab1 WHERE NOT + - 70 <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 70 / - + 99 * - SUM ( ALL col0 ) + + + 0 FROM tab1 WHERE NOT + - 70 <> + col1
----
NULL

query I rowsort
SELECT ALL + col2 * - col1 * - - 57 FROM tab2
----
-175560
-221502
-66861

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT SUM( DISTINCT + - 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-2269
SELECT SUM ( DISTINCT + - 48 ) FROM tab2
----
-48

query II rowsort
SELECT ALL + 11 AS col0, - 23 FROM tab1
----
11
-23
11
-23
11
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL + col2 / col1 * CAST( NULL AS SIGNED ) / - - 86 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + col2 / col1 * CAST ( NULL AS INTEGER ) / - - 86 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - + col0 AND - + 69
----

query I rowsort
SELECT - + 56 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-56
-56
-56

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) + 6 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query I rowsort
SELECT 31 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL 73 * - - COUNT( col1 ) + - 99 + + 73 FROM tab2
----
193

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 73 * - - COUNT ( col1 ) + - 99 + + 73 FROM tab2
----
193

query II rowsort
SELECT 56, col1 FROM tab1
----
56
14
56
47
56
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT SUM( col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT SUM ( col0 ) col1 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT ALL + CAST( NULL AS SIGNED ) + col0 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-2283
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + ( col1 ) AND NULL
----

query I rowsort
SELECT + 60 + - col0 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT ALL + 35 + - col0 + - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-161
-27
-62

query II rowsort
SELECT - col2 + - - col2 + - col0 * col2 AS col2, col1 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT col1 + col2 + + col0 * 80 DIV ( + + 17 ) * 38 * - - col0 AS col2 FROM tab0 AS cor0
----
1352185
1680916
40028

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT col1 + col2 + + col0 * 80 / ( + + 17 ) * 38 * - - col0 AS col2 FROM tab0 AS cor0
----
1352185
1680916
40028

query I rowsort
SELECT - 86 + + + col1 * + 20 + 21 / + + col0 - - - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( 65 ) = + 74 + col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT - MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> - + 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - + col0 BETWEEN - - col0 AND 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2294
SELECT ALL + col0 + - + CAST( NULL AS SIGNED ) AS col0, + col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2294
SELECT ALL + col0 + - + CAST ( NULL AS INTEGER ) AS col0, + col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2296
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1, - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2296
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query I rowsort
SELECT + col2 * 90 AS col0 FROM tab0
----
4230
8910
900

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + - 67 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + - 81 * - 32 FROM tab0 AS cor0
----
2592
2592
2592

query I rowsort
SELECT DISTINCT - - col0 * - - col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - - SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - - SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL + - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2306
SELECT ALL + - col1 AS col2, + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-2306
SELECT ALL + - col1 AS col2, + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 19 col0, 79 FROM tab2 AS cor0
----
-19
79

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab0 AS cor0
----
83

query II rowsort
SELECT DISTINCT + - col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ( - - COUNT( * ) ) FROM tab0 WHERE NOT - col0 * - 20 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT ( - - COUNT ( * ) ) FROM tab0 WHERE NOT - col0 * - 20 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT - col0 DIV col1 + - - 30 * col1 AS col1 FROM tab2 AS cor0
----
1530
2009
2310

skipif mysql # not compatible
query I rowsort label-2311
SELECT - col0 / col1 + - - 30 * col1 AS col1 FROM tab2 AS cor0
----
1530
2009
2310

query I rowsort
SELECT DISTINCT + - 39 FROM tab1 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - COUNT( * ) + + + ( COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT - COUNT ( * ) + + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT - col2 + 90 DIV 85 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-2314
SELECT - col2 + 90 / 85 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT ALL - 26 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT MIN( col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2316
SELECT MIN ( col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT DISTINCT 5 + - - 31 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT COUNT( + + 72 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT COUNT ( + + 72 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + - 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT + - CAST( NULL AS SIGNED ) + + - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT + - CAST ( NULL AS INTEGER ) + + - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col2 ) + + + 61 FROM tab1
----
120
129
157

query III rowsort
SELECT * FROM tab0 WHERE - - 17 * - + col0 + 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE - 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2324
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - COUNT( - + 37 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2325
SELECT - COUNT ( - + 37 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL ( COUNT( * ) ) * - COUNT( * ) * + - 35 * - COUNT( * ) FROM tab0
----
-945

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL ( COUNT ( * ) ) * - COUNT ( * ) * + - 35 * - COUNT ( * ) FROM tab0
----
-945

query I rowsort
SELECT + col0 * + 52 + - col0 FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT ALL - - 81 AS col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + col1 * col0 FROM tab2 WHERE - col2 * - - col0 = + 36 + - 15
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 10 + + col1 <= - col1 * + col1 - col2
----

query I rowsort
SELECT ALL + col1 * 51 * - - 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL MIN( ALL + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL MIN ( ALL + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT ALL col0, - 26 DIV + col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL col0, - 26 / + col1 FROM tab2
----
46
0
64
0
75
0

query II rowsort
SELECT - col0 AS col0, - col2 * - 83 AS col1 FROM tab2
----
-46
1909
-64
3320
-75
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + MIN( DISTINCT + + col0 ) * 53 - + MIN( DISTINCT + col1 ) FROM tab2
----
2387

skipif mysql # not compatible
query I rowsort label-2336
SELECT + MIN ( DISTINCT + + col0 ) * 53 - + MIN ( DISTINCT + col1 ) FROM tab2
----
2387

query I rowsort
SELECT - + 9 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
531
612
864

query I rowsort
SELECT DISTINCT + col0 + + - 69 AS col0 FROM tab1 AS cor0
----
-18
16
22

query I rowsort
SELECT ALL + 36 * + col2 + + col0 FROM tab2 AS cor0
----
1504
2163
874

query I rowsort
SELECT - + 85 + + 51 AS col0 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - col0 + - 33 * - 8 FROM tab0 AS cor0
----
167
177
249

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL - - MIN( ALL - col0 ) + - - 17 AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - - MIN ( ALL - col0 ) + - - 17 AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL col2 * - col2 * - col2 FROM tab2 AS cor0
----
12167
195112
64000

query I rowsort
SELECT DISTINCT 63 * + + 66 - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
4163
4172
4205

query II rowsort
SELECT - + col1 + - + col2 AS col1, col1 AS col2 FROM tab1 cor0
----
-110
14
-115
47
-64
5

query I rowsort
SELECT DISTINCT + 87 + - 75 + col0 - + col1 + - col1 * - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-103767
-2695
-33

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col1
----

query II rowsort
SELECT ( - 62 ) AS col0, + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-62
15
-62
87
-62
97

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 IN ( col0 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + 90 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT SUM( ALL - - ( - ( + 33 ) ) ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT SUM ( ALL - - ( - ( + 33 ) ) ) FROM tab2
----
-99

query I rowsort
SELECT DISTINCT col1 - + + col2 FROM tab2
----
28
37
9

query I rowsort
SELECT col0 * - 5 FROM tab2
----
-230
-320
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT 38 + + COUNT( * ) AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 38 + + COUNT ( * ) AS col2 FROM tab0
----
41

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT NULL >= - + 56
----

query I rowsort
SELECT - 98 AS col2 FROM tab2 WHERE ( NULL NOT BETWEEN 26 * + - ( - + 96 ) AND - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2357
SELECT CAST( - 0 AS SIGNED ) DIV + ( + - 28 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2357
SELECT CAST ( - 0 AS INTEGER ) / + ( + - 28 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 FROM tab0 WHERE 25 - - col0 IS NULL
----

query I rowsort
SELECT + col0 - + 19 FROM tab2
----
27
45
56

query II rowsort
SELECT ALL 71 AS col0, col0 FROM tab2
----
71
46
71
64
71
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) / col1 AS col1 FROM tab2 AS cor0 WHERE col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - 0 * col0 + col1 )
----

query I rowsort
SELECT + col2 * col0 * - col2 + - col2 + - + col1 AS col1 FROM tab0 WHERE NOT + 72 + col2 * + - ( - col0 ) + - col1 * + col0 IS NULL
----
-33263
-8731
-950797

query I rowsort
SELECT + 24 * + - col1 FROM tab2
----
-1224
-1608
-1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88, - col1 + - col1 col2 FROM tab2
----
88
-102
88
-134
88
-154

query I rowsort
SELECT col1 * - + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - - 12 < col1 - ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2369
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + ( + col0 ) AS SIGNED ) BETWEEN NULL AND - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2369
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + ( + col0 ) AS INTEGER ) BETWEEN NULL AND - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - MAX( DISTINCT ( - col0 ) ) * - 64 col0 FROM tab2 AS cor0
----
-2944

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2371
SELECT ALL - MAX ( DISTINCT ( - col0 ) ) * - 64 col0 FROM tab2 AS cor0
----
-2944

query I rowsort
SELECT - + 24 * 17 AS col1 FROM tab0 AS cor0
----
-408
-408
-408

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 35 * + col1 + + 55 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + - col2 + - 46 IS NOT NULL
----

query II rowsort
SELECT - ( - - col0 ), col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab0
----
-48
-48
-48

query II rowsort
SELECT col1 * 72 AS col2, col1 + + 57 AS col1 FROM tab2
----
3672
108
4824
124
5544
134

query I rowsort
SELECT - 45 + + 3 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + col1 + col2 - - ( + col0 ) IS NULL
----

query I rowsort
SELECT - 1 + + + 32 + + col2 * + col1 FROM tab2 cor0
----
1204
3111
3917

query I rowsort
SELECT - col0 + - - 95 AS col2 FROM tab1 cor0
----
10
4
44

query I rowsort
SELECT ALL - + 92 * col1 AS col0 FROM tab0 AS cor0
----
-1932
-7452
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL 26 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col1 * col0 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - col2
----

query II rowsort
SELECT + col0, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2388
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 / - 48 NOT BETWEEN + 45 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL + 59 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + 59 / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT CAST( NULL AS SIGNED ) - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT CAST ( NULL AS INTEGER ) - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - COUNT( * ) - 99 col2 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT - COUNT ( * ) - 99 col2 FROM tab1 AS cor0
----
-102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT 56 + + col2 + col1 + 23 + - col1 + + - 98 AS col2 FROM tab1
----
40
49
77

query I rowsort
SELECT ALL 53 * + + 29 FROM tab1
----
1537
1537
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + 55 * - ( - + COUNT( * ) ) AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 55 * - ( - + COUNT ( * ) ) AS col0 FROM tab1
----
165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <> NULL ) )
----

query I rowsort
SELECT + ( - - col1 ) * - 53 + + 73 AS col2 FROM tab1 AS cor0
----
-192
-2418
-669

query I rowsort
SELECT - 1 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT 24 DIV - - col2 col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT 24 / - - col2 col1 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT + ( - COUNT( * ) ) * - + MAX( - 1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2402
SELECT + ( - COUNT ( * ) ) * - + MAX ( - 1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT col0 * + 9 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT - - col0 / + + CAST( + - 88 AS SIGNED ) * col1 * - CAST( NULL AS SIGNED ) + - col1 + col0 + + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT - - col0 / + + CAST ( + - 88 AS INTEGER ) * col1 * - CAST ( NULL AS INTEGER ) + - col1 + col0 + + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 * + - col1 AS col2 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT - 46 * + 64 AS col0 FROM tab2 AS cor0
----
-2944
-2944
-2944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT ( - COUNT( + CAST( NULL AS SIGNED ) ) ) * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT - 68 AS col2, + MAX( + 85 ) col2 FROM tab0
----
-68
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2408
SELECT - 68 AS col2, + MAX ( + 85 ) col2 FROM tab0
----
-68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2409
SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL > 95
----
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL > 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT - MIN( DISTINCT - 88 ) col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2411
SELECT DISTINCT - MIN ( DISTINCT - 88 ) col2 FROM tab0 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 = + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + + MAX( DISTINCT - 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + + MAX ( DISTINCT - 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-88

query I rowsort
SELECT col1 + - - col2 * 99 FROM tab1
----
5846
6779
9518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - col1 ) ) * - col0 + - + 51 - - 86 * + col2 - + col2 * 53 col2 FROM tab2 AS cor0
----
3054
6197
6888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 38 BETWEEN - - col0 + + + 67 + 69 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 38 BETWEEN - - col0 + + + 67 + 69 AND + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab1 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - + - col0 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL 18 * - + col1 FROM tab0
----
-1458
-18
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2422
SELECT ALL * FROM tab0 WHERE ( - + CAST( + - col0 AS SIGNED ) ) NOT BETWEEN - col1 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2422
SELECT ALL * FROM tab0 WHERE ( - + CAST ( + - col0 AS INTEGER ) ) NOT BETWEEN - col1 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT ALL SUM( + col0 ) DIV - + COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL SUM ( + col0 ) / - + COUNT ( * ) AS col0 FROM tab1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2424
SELECT 86 DIV COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2424
SELECT 86 / COUNT ( * ) FROM tab1
----
28

query I rowsort
SELECT - 46 * - col0 FROM tab0
----
4002
4462
690

query I rowsort
SELECT - 64 * + + col2 AS col1 FROM tab2
----
-1472
-2560
-3712

query I rowsort
SELECT DISTINCT col1 * + col1 * + + 9 AS col2 FROM tab1
----
1764
19881
225

query II rowsort
SELECT ALL + col1 AS col1, col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + MAX( DISTINCT + 33 ) + + 97 - - 99 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
229

skipif mysql # not compatible
query I rowsort label-2429
SELECT + MAX ( DISTINCT + 33 ) + + 97 - - 99 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
229

query II rowsort
SELECT ALL + col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 75 = 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT 56 * - COUNT( ALL + ( col0 ) ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2432
SELECT 56 * - COUNT ( ALL + ( col0 ) ) FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - ( + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2433
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - COUNT( * ) + - 78 + + COUNT( * ) * + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
723

skipif mysql # not compatible
query I rowsort label-2435
SELECT - COUNT ( * ) + - 78 + + COUNT ( * ) * + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
723

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2437
SELECT DISTINCT + + 31 * + + col2 + CAST( NULL AS DECIMAL ) + 44 * + + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2437
SELECT DISTINCT + + 31 * + + col2 + CAST ( NULL AS REAL ) + 44 * + + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT 66 * 11 DIV - 94 + 41 col0 FROM tab0 cor0
----
34
34
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2438
SELECT 66 * 11 / - 94 + 41 col0 FROM tab0 cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col1 col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT + + ( col1 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * - - col1 col2 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - 96 ) AS col2 FROM tab2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT - 49 DIV + MIN( ALL + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 49 / + MIN ( ALL + col0 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 85 * + + col1 FROM tab1
----
1190
3995
425

query I rowsort
SELECT - col2 + + + 72 AS col0 FROM tab0
----
-27
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT COUNT( * ) + + 52 col2 FROM tab0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2447
SELECT DISTINCT COUNT ( * ) + + 52 col2 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL - + col0 + - col1 - + + CAST( ( col1 ) AS SIGNED ) + + col2 + - + col2 FROM tab0 AS cor0
----
-129
-177
-99

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - + col0 + - col1 - + + CAST ( ( col1 ) AS INTEGER ) + + col2 + - + col2 FROM tab0 AS cor0
----
-129
-177
-99

query I rowsort
SELECT - - 71 * 7 + - + col2 FROM tab1 AS cor0
----
401
429
438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + col0 + - + 39 AS col0 FROM tab0 AS cor0
----
-24
48
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL - 61 - + + col0 DIV - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-112
-145
-151

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - 61 - + + col0 / - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-112
-145
-151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2453
SELECT + CAST( NULL AS DECIMAL ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + CAST ( NULL AS REAL ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - 87 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 87 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - + 97 - - + col1 FROM tab0 AS cor0
----
-16
-76
-96

query I rowsort
SELECT - 99 * + col1 + - 9 + + col1 - - + col0 AS col2 FROM tab2 AS cor0
----
-4961
-6500
-7491

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 - + col2 <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 43 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 43 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2461
SELECT * FROM tab2 WHERE NOT + + col2 - + + col2 / CAST( NULL AS DECIMAL ) NOT IN ( col0, col2 + col0 - col1 )
----

skipif mysql # not compatible
query III rowsort label-2461
SELECT * FROM tab2 WHERE NOT + + col2 - + + col2 / CAST ( NULL AS REAL ) NOT IN ( col0, col2 + col0 - col1 )
----

query I rowsort
SELECT + 63 * + col0 AS col2 FROM tab0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE NOT + col2 + - 15 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE NOT + col2 + - 15 IS NULL
----
3

query I rowsort
SELECT ALL col1 * + + col2 AS col1 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + 13 AS col2, 45 + - - 31 col2 FROM tab1
----
-1105
76
-1183
76
-663
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT SUM( ALL + - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT SUM ( ALL + - col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT DISTINCT COUNT( * ) * + 75 * + - 77 AS col0, 12 FROM tab2
----
-17325
12

skipif mysql # not compatible
query II rowsort label-2467
SELECT DISTINCT COUNT ( * ) * + 75 * + - 77 AS col0, 12 FROM tab2
----
-17325
12

query I rowsort
SELECT - + col1 * - ( - 3 ) AS col2 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + COUNT( * ) * SUM( DISTINCT - + 43 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * SUM ( DISTINCT - + 43 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2470
SELECT - SUM( - - col2 ) + - + ( + - ( 85 ) ) + - CAST( NULL AS DECIMAL ) * + + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2470
SELECT - SUM ( - - col2 ) + - + ( + - ( 85 ) ) + - CAST ( NULL AS REAL ) * + + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT + - col1 * + 2 * - - 65 AS col1 FROM tab2 AS cor0
----
-10010
-6630
-8710

query II rowsort
SELECT ALL + col2 AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT 63 - - 43 AS col2 FROM tab2 WHERE + + 5 BETWEEN + + ( + - 80 ) AND col2
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT + + 43 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + 43 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col1 col2, - col2 FROM tab0
----
1215
-47
1827
-10
97
-99

query I rowsort
SELECT DISTINCT - - col0 * - - 21 * col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT ALL 19 DIV - col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 19 / - col0 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT 46 + 11 FROM tab2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT 11 DIV - 53 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT 11 / - 53 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - 8 + col2 / - + col2 AS col2, 12 / - ( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + 70 AS col2 FROM tab1 cor0
----
117
75
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2483
SELECT ALL col2 - - + 51 DIV 81, col0 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-2483
SELECT ALL col2 - - + 51 / 81, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT COUNT( * ) + - COUNT( * ) * + COUNT( * ) * + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT 60 * col1 + - col2 AS col2 FROM tab2
----
3037
3962
4580

query I rowsort
SELECT DISTINCT - col1 + + 77 FROM tab2 AS cor0
----
0
10
26

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( 4 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 4 + + 10 AS col0 FROM tab1 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col1 + + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 >= + 30 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, + 83, - col2 )
----

query I rowsort
SELECT - 30 AS col0 FROM tab2 cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE 46 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2494
SELECT 54, + col0 DIV + 60 col0 FROM tab2
----
54
0
54
1
54
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2494
SELECT 54, + col0 / + 60 col0 FROM tab2
----
54
0
54
1
54
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 39 * + - col2 BETWEEN - - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT + 72 DIV - 74, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-2497
SELECT + 72 / - 74, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL - 83 * 73 FROM tab1 AS cor0
----
-6059
-6059
-6059

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL SUM( ALL - col1 ), + 29 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-195
-87

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL SUM ( ALL - col1 ), + 29 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-195
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT - - COUNT( * ), COUNT( * ) AS col1 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2500
SELECT - - COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 28 * + - CAST( + 61 AS SIGNED ) / col1 > NULL )
----

skipif mysql # not compatible
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 28 * + - CAST ( + 61 AS INTEGER ) / col1 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( ALL + col1 ) col2 FROM tab2 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT - ( 62 ) AS col1 FROM tab1
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - SUM( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT - SUM ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col0 * 3 * + + col1 col2 FROM tab2 AS cor0
----
14744
15017
7015

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL - SUM( ALL - 6 ) * COUNT( * ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL - SUM ( ALL - 6 ) * COUNT ( * ) FROM tab2 cor0
----
54

query I rowsort
SELECT + col0 * + 37 + + - 55 FROM tab2 AS cor0
----
1647
2313
2720

query II rowsort
SELECT + 56 * - + col0, - 50 AS col1 FROM tab1 cor0
----
-2856
-50
-4760
-50
-5096
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 * 75 AS col1, + col0 col0 FROM tab0 AS cor0
----
4575
15
4575
87
4575
97

query I rowsort
SELECT 1 + - col1 * + + col1 * - + 8 AS col2 FROM tab0
----
3529
52489
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2512
SELECT col1 + - col0 * - CAST( NULL AS SIGNED ) AS col1, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-2512
SELECT col1 + - col0 * - CAST ( NULL AS INTEGER ) AS col1, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT DISTINCT CAST( NULL AS SIGNED ) + MIN( DISTINCT + + col1 ) + - ( AVG ( - - col2 ) ) * - + COUNT( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + + col1 ) + - ( AVG ( - - col2 ) ) * - + COUNT ( - col0 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 45 ) = + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL + + 35 - - 6 + + + 26 DIV + + COUNT( * ) col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2516
SELECT ALL + + 35 - - 6 + + + 26 / + + COUNT ( * ) col2 FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - MAX( ALL + 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-2518
SELECT - MAX ( ALL + 40 ) FROM tab1
----
-40

query I rowsort
SELECT DISTINCT + 2 + 53 * - 90 FROM tab2
----
-4768

query I rowsort
SELECT + 1 - + col1 FROM tab2 WHERE NOT + 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2521
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col0 * - col1 AND - 16 + 95 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col0 * - col1 AND - 16 + 95 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL ( COUNT( col0 ) ) FROM tab2 WHERE - 55 NOT BETWEEN + col1 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL ( COUNT ( col0 ) ) FROM tab2 WHERE - 55 NOT BETWEEN + col1 AND col0
----
3

query I rowsort
SELECT DISTINCT + ( 5 ) - - col0 * 44 AS col0 FROM tab2
----
2029
2821
3305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 79 col2 FROM tab0
----
166
176
94

query I rowsort
SELECT DISTINCT - 66 + 82 AS col1 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT - col1 * col1 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - col1 * col1 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - ( - SUM( 36 ) ) AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2527
SELECT - ( - SUM ( 36 ) ) AS col2 FROM tab1
----
108

query I rowsort
SELECT col1 * col1 + + 61 * col2 AS col1 FROM tab0
----
1051
6040
9428

query I rowsort
SELECT - ( + ( + 80 ) ) FROM tab1
----
-80
-80
-80

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col0 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab1
----
3

query I rowsort
SELECT ALL 93 FROM tab0 WHERE NOT ( NULL ) IN ( ( + ( + 65 ) ) / + col2 )
----

query I rowsort
SELECT ALL - 3 AS col2 FROM tab2 WHERE NOT + 7 - col1 IN ( + ( col0 ) )
----
-3
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2535
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 16 AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2536
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 16 AS col1 FROM tab1
----
-13

query III rowsort
SELECT * FROM tab1 WHERE 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 20 * col2 + - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 83 + - col2 FROM tab1
----
-142
-151
-179

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col0 NOT IN ( + col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 30 * COUNT( * ) - ( - 65 ) FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-2541
SELECT 30 * COUNT ( * ) - ( - 65 ) FROM tab1
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2542
SELECT MAX( + 33 ) DIV 62 + COUNT( col1 + 98 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2542
SELECT MAX ( + 33 ) / 62 + COUNT ( col1 + 98 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + COUNT( ALL 57 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2543
SELECT + COUNT ( ALL 57 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 * 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 * ( 51 ) + 8 <= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2548
SELECT MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - 22 DIV ( - col1 ) FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2549
SELECT - 22 / ( - col1 ) FROM tab1
----
0
1
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 40 + + col2 FROM tab2 AS cor0
----
63
80
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT ALL 97 DIV col0 + col0 FROM tab0 AS cor0
----
21
88
98

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 97 / col0 + col0 FROM tab0 AS cor0
----
21
88
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 84 - col1 BETWEEN NULL AND 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT + 33 + - MIN( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + 33 + - MIN ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2555
SELECT * FROM tab1 AS cor0 WHERE ( ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2555
SELECT * FROM tab1 AS cor0 WHERE ( ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL - + 63 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - + 63 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 59 * ( 73 ) AS col0 FROM tab1 AS cor0
----
4307
4307
4307

query I rowsort
SELECT DISTINCT - ( 60 ) FROM tab0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 19 IN ( + col2 )
----

query I rowsort
SELECT 62 * - ( - col1 ) AS col0 FROM tab2
----
3162
4154
4774

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 81 ) IS NOT NULL OR ( NULL ) NOT IN ( - ( - col0 ) * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT - col2 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT - col2 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2564
SELECT + COUNT( * ) - + 82 + 37 DIV + COUNT( * ) AS col1 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2564
SELECT + COUNT ( * ) - + 82 + 37 / + COUNT ( * ) AS col1 FROM tab2
----
-67

query I rowsort
SELECT ALL + ( col1 ) + 61 FROM tab0
----
142
62
82

query I rowsort
SELECT ALL col2 + - 92 FROM tab0 AS cor0
----
-45
-82
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2567
SELECT SUM( ( - CAST( NULL AS DECIMAL ) ) ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2567
SELECT SUM ( ( - CAST ( NULL AS REAL ) ) ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT DISTINCT - col1, + col0 + - + col0 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) + col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - ( CAST ( NULL AS REAL ) ) + col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * 50 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT + 57 FROM tab0 WHERE NOT ( - col2 BETWEEN ( col2 * + 14 ) AND NULL )
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2574
SELECT ALL + col1 AS col0, + CAST( - col1 AS SIGNED ) DIV 32 FROM tab1
----
14
0
47
-1
5
0

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL + col1 AS col0, + CAST ( - col1 AS INTEGER ) / 32 FROM tab1
----
14
0
47
-1
5
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 + + + 76 < ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * + 7 * + 99 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2578
SELECT + MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + 46, 88 AS col2 FROM tab1 AS cor0
----
46
88
46
88
46
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT col1 DIV 93 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT col1 / 93 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL + MIN( ALL - - 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + MIN ( ALL - - 42 ) FROM tab0 AS cor0
----
42

query III rowsort
SELECT * 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 - 31 col0 FROM tab0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 49 ) IS NOT NULL
----

query I rowsort
SELECT + ( - - 92 ) AS col1 FROM tab2
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + + + col1 * 95 ) NOT BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL + COUNT( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 + col2 <= - 96 + 84 * col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > - + col2 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab0 WHERE NULL = - 2 * + + col0
----

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 WHERE NULL = - 2 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - MIN( ( col2 ) ) AS col2 FROM tab2 WHERE NOT - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - MIN ( ( col2 ) ) AS col2 FROM tab2 WHERE NOT - col2 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( - 74 ) ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT - ( + col1 ) + + col0 - + col2 FROM tab0 AS cor0
----
-113
-3
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 59 * ( + col0 ) + - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 10 * + - 53 FROM tab2 AS cor0
----
-455
-466
-484

query I rowsort
SELECT DISTINCT - ( + + 71 ) FROM tab1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT - - 86 FROM tab0 WHERE NOT + - CAST( + - col2 AS SIGNED ) IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - - 86 FROM tab0 WHERE NOT + - CAST ( + - col2 AS INTEGER ) IS NULL
----
86

query I rowsort
SELECT + 0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT - SUM( DISTINCT + + col0 ) + + 54 FROM tab1 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - SUM ( DISTINCT + + col0 ) + + 54 FROM tab1 AS cor0
----
-173

query II rowsort
SELECT ALL col2 * - - col2 + + - 64, + col0 AS col0 FROM tab2 AS cor0
----
1536
64
3300
75
465
46

query I rowsort
SELECT + col1 - + 15 * col2 AS col2 FROM tab1 cor0
----
-1426
-880
-973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col1 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( - - 46 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT - SUM( ALL col2 ) + + MAX( 5 ) AS col1 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-2608
SELECT - SUM ( ALL col2 ) + + MAX ( 5 ) AS col1 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT col1 + - 11 * - + col2 AS col1 FROM tab0 AS cor0
----
1090
131
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + + col1 + + + col1 * - col1 + + col0 col2 FROM tab2
----
-2555
-4414
-5865

query II rowsort
SELECT DISTINCT + col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT col1 > - col0 + - col1 / + col0 * 61 - + col1
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + + col2 * - 65 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 4 NOT BETWEEN - + 53 AND + col0
----

query I rowsort
SELECT ALL - - 69 + col0 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL COUNT( + col0 ) * + MIN( 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( + col0 ) * + MIN ( 98 ) FROM tab1
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT 41 DIV COUNT( * ) col1 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT DISTINCT 41 / COUNT ( * ) col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT 92 * + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2619
SELECT 92 * + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - col2 / - ( + col2 ) + - - 92 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * 53 )
----

query I rowsort
SELECT - 2 * + col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - + 52 + - ( col1 ) FROM tab0 AS cor0 WHERE NOT 37 * - - col2 > - + ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col2, MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col2, MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 7 + - + ( - col0 ) AND - 88 + col1
----

query I rowsort
SELECT DISTINCT + - ( + 74 ) * 45 - - 57 FROM tab1 AS cor0
----
-3273

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + ( 44 ) DIV + + 11 FROM tab1 AS cor0 WHERE NOT col0 > + 80
----
4

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + ( 44 ) / + + 11 FROM tab1 AS cor0 WHERE NOT col0 > + 80
----
4

query I rowsort
SELECT - 68 AS col1 FROM tab1 WHERE NOT - + 15 + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT 42 * - col0 AS col1 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( + - 91 / col1 * - col0 + - + col0 ) AND - ( col0 )
----

query I rowsort
SELECT ALL + 20 * - - 73 AS col0 FROM tab2
----
1460
1460
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + 9 * - COUNT( * ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 9 * - COUNT ( * ) AS col0 FROM tab0
----
-27

query I rowsort
SELECT ( - + col0 ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT col2, - 63 * 94 AS col0 FROM tab2
----
23
-5922
40
-5922
58
-5922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 AS col2, 35 col2 FROM tab2 AS cor0
----
-39
35
-39
35
-39
35

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= + 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 * - col2 col0 FROM tab1 cor0
----
5428
6256
8832

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * + ( + + col0 ) + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( NULL NOT IN ( 10 * + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 27 col1 FROM tab1
----
-13
-22
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT COUNT( DISTINCT - + col0 ) + - 81 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) + - 81 FROM tab0 cor0
----
-78

query I rowsort
SELECT ALL + 93 + + + col2 FROM tab2 AS cor0
----
116
133
151

query I rowsort
SELECT DISTINCT + - ( + + ( + + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT 85 - MIN( ALL - + col0 ) FROM tab1 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT 85 - MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
176

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - 32 * - col0 FROM tab2
----
1472
2048
2400

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 93 ) IN ( - ( col0 ), 26 * + ( - 34 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2650
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ), - 20 AS col1 FROM tab0 WHERE + 28 <= ( NULL )
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-2650
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ), - 20 AS col1 FROM tab0 WHERE + 28 <= ( NULL )
----
NULL
-20

query I rowsort
SELECT 59 - + col1 FROM tab2
----
-18
-8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT col0 * - col2 AS col0 FROM tab2 WHERE NULL BETWEEN - CAST( + col2 AS SIGNED ) / - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2652
SELECT col0 * - col2 AS col0 FROM tab2 WHERE NULL BETWEEN - CAST ( + col2 AS INTEGER ) / - + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2653
SELECT * FROM tab1 WHERE + col1 + + col2 NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2653
SELECT * FROM tab1 WHERE + col1 + + col2 NOT IN ( - CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ALL + 89, - col1 AS col0 FROM tab1 cor0
----
89
-14
89
-47
89
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 = col0 * + - col2 / col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - 76 * - COUNT( - col1 ) AS col2 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - 76 * - COUNT ( - col1 ) AS col2 FROM tab0
----
228

query II rowsort
SELECT DISTINCT col1 * 48 AS col1, + 9 FROM tab2
----
2448
9
3216
9
3696
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2658
SELECT CAST( NULL AS DECIMAL ) * + 23 / COUNT( * ) * + - COUNT( * ) * - 5 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT CAST ( NULL AS REAL ) * + 23 / COUNT ( * ) * + - COUNT ( * ) * - 5 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL - col1 AS col0, + col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT ALL 20 DIV SUM( DISTINCT + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL 20 / SUM ( DISTINCT + col0 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 >= col1 + - - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2662
SELECT DISTINCT + 46 AS col0, COUNT( * ) FROM tab2 cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-2662
SELECT DISTINCT + 46 AS col0, COUNT ( * ) FROM tab2 cor0
----
46
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT ALL - + COUNT( * ) AS col2, + COUNT( * ) * - 58 FROM tab1 AS cor0
----
-3
-174

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL - + COUNT ( * ) AS col2, + COUNT ( * ) * - 58 FROM tab1 AS cor0
----
-3
-174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT + + 61 DIV - + ( - + col1 ) + + + col1 * ( + col0 ) FROM tab2 AS cor0
----
2347
4928
5025

skipif mysql # not compatible
query I rowsort label-2666
SELECT + + 61 / - + ( - + col1 ) + + + col1 * ( + col0 ) FROM tab2 AS cor0
----
2347
4928
5025

query I rowsort
SELECT ALL 93 * + - col2 + - 99 FROM tab0 cor0
----
-1029
-4470
-9306

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL 61 DIV 27 + - ( - + 23 ) AS col1 FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 61 / 27 + - ( - + 23 ) AS col1 FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL - COUNT( ALL ( + 19 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - COUNT ( ALL ( + 19 ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + col0 * 60 AS col1 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT + col2 * - 9 * + 48 * 32 AS col0 FROM tab0
----
-1368576
-138240
-649728

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col1 + 15 < + 82
----
51
14
96

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 49 IN ( - 17, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) * + col0 + + col1 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT COUNT( * ) - - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) - - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col0 FROM tab2, tab2 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT + + 65 * col0 + + 75 + + col2 AS col0 FROM tab0 AS cor0
----
1097
5740
6479

query I rowsort
SELECT ALL - 16 * - col1 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT ALL - 47 * + 94 FROM tab1 AS cor0
----
-4418
-4418
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0
----
3

query II rowsort
SELECT 14, col0 FROM tab0
----
14
15
14
87
14
97

query I rowsort
SELECT - 84 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL - CAST( NULL AS SIGNED ) + - 46 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - CAST ( NULL AS INTEGER ) + - 46 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 1 * + - 13 * - col0 - + + col1 AS col1 FROM tab0
----
1110
114
1260

query I rowsort
SELECT ALL - + col2 * - col1 + + 31 FROM tab2 AS cor0
----
1204
3111
3917

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT ALL - - col0 - - 18 DIV ( - - col2 ) * + - 15 * - + 49 - - + 71 FROM tab1 AS cor0
----
122
156
162

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - - col0 - - 18 / ( - - col2 ) * + - 15 * - + 49 - - + 71 FROM tab1 AS cor0
----
122
156
162

query I rowsort
SELECT + + 26 - + - col1 AS col2 FROM tab1 AS cor0
----
31
40
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT ALL + MAX( - 15 ) + + 48, COUNT( * ) col0 FROM tab0 AS cor0
----
33
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2690
SELECT ALL + MAX ( - 15 ) + + 48, COUNT ( * ) col0 FROM tab0 AS cor0
----
33
3

query I rowsort
SELECT - 82 + + 3 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT COUNT( * ) * - 53 AS col0 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT COUNT ( * ) * - 53 AS col0 FROM tab1 AS cor0
----
-159

query I rowsort
SELECT + - col2 + - col0 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN ( + - 7 ) AND col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT DISTINCT col0 DIV col2 - + col0 FROM tab1
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT col0 / col2 - + col0 FROM tab1
----
-51
-84
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT - col1 + + col1 DIV - 96 - - col0 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-2695
SELECT - col1 + + col1 / - 96 - - col0 FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 = 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 21 AS col2 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab1 WHERE NOT + col2 * col1 + - 88 BETWEEN + + 2 * - col0 + - + 58 / 14 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 AS cor0 WHERE ( 44 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2700
SELECT CAST( 58 AS SIGNED ), col2 FROM tab2 AS cor0
----
58
23
58
40
58
58

skipif mysql # not compatible
query II rowsort label-2700
SELECT CAST ( 58 AS INTEGER ), col2 FROM tab2 AS cor0
----
58
23
58
40
58
58

query I rowsort
SELECT 25 AS col2 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT ALL 75 * - col0 * + col2 AS col2 FROM tab1
----
-367200
-376125
-464100

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - MIN( ALL 21 ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2703
SELECT - MIN ( ALL 21 ) FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT - - MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT - - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT + + col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT - 92 * 14 FROM tab1 cor0
----
-1288
-1288
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - - MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2707
SELECT - - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col1 * ( + - col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - col1 + + - 72 FROM tab0 AS cor0
----
-153
-73
-93

query I rowsort
SELECT DISTINCT + - col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT + + COUNT( DISTINCT col2 ) * COUNT( * ) * - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-819

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) * COUNT ( * ) * - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-819

query I rowsort
SELECT ALL - col0 * + - 45 AS col0 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT + 79 * COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + 79 * COUNT ( * ) FROM tab1 AS cor0
----
237

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT DISTINCT 25 + COUNT( ALL - + col2 ) col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT IN ( col0 )
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2715
SELECT DISTINCT 25 + COUNT ( ALL - + col2 ) col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col0 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL 16 + MIN( ALL - 60 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 16 + MIN ( ALL - 60 ) FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + COUNT( DISTINCT + 40 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2717
SELECT + COUNT ( DISTINCT + 40 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT + MAX( + CAST( NULL AS SIGNED ) ) * - 13 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) * - 13 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL col1 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL col1 / - + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - col1 * col2 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 38 + + 41 AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL ( - col2 ) * 46 + - 16 * - col2 * + col0 + - col2 AS col1 FROM tab1
----
73824
77467
95812

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL + 39 - - SUM( DISTINCT col0 ) FROM tab1 cor0
----
266

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + 39 - - SUM ( DISTINCT col0 ) FROM tab1 cor0
----
266

query I rowsort
SELECT ALL col2 - 86 * + col0 FROM tab1 AS cor0
----
-4290
-7251
-7758

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT - 9 * + COUNT( * ) - 30 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2725
SELECT - 9 * + COUNT ( * ) - 30 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + MIN( ALL - col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT + MIN ( ALL - col1 ) col1 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2727
SELECT * FROM tab1 WHERE NOT - CAST( - 64 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2727
SELECT * FROM tab1 WHERE NOT - CAST ( - 64 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 17 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-17
-17
-17

query I rowsort
SELECT + col1 * 65 AS col0 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT - 38 * - 95 FROM tab1, tab1 AS cor0
----
9 values hashing to 6b202a37ae1b500226f06bdadf4d0eb6

query II rowsort
SELECT - col2 AS col0, + col0 + - + col2 AS col1 FROM tab2 cor0
----
-23
23
-40
24
-58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + 98 + - + 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + 98 + - + 56 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - - COUNT( + 94 ) + - - 7 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
16

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - - COUNT ( + 94 ) + - - 7 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + 84 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + 84 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL - COUNT( * ) * - 88 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - COUNT ( * ) * - 88 FROM tab1 AS cor0
----
264

query I rowsort
SELECT ALL - - 6 * + 61 FROM tab1 AS cor0
----
366
366
366

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL ( 75 ) + + 58 DIV col1 FROM tab1 AS cor0
----
76
79
86

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL ( 75 ) + + 58 / col1 FROM tab1 AS cor0
----
76
79
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT + 21 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT + 21 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT - 26 DIV - 66 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2741
SELECT - 26 / - 66 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE ( + - 16 < - + col2 + - 65 + 11 )
----

query I rowsort
SELECT 73 + - 27 FROM tab0
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 87 <> + col1 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 58 * 46 + + col1, col2 FROM tab1
----
2673
59
2682
96
2715
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT SUM( 7 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT SUM ( 7 ) FROM tab2
----
21

query I rowsort
SELECT ALL col0 * + ( - - col2 ) * + - 11 * + ( - col1 ) - - col2 * - ( - ( - - 33 ) ) + + col2 FROM tab1
----
277831
3201508
757248

query I rowsort
SELECT ALL 98 + + + col1 AS col1 FROM tab0
----
119
179
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT col1 + + col2 * col0 + - col1 DIV + col2 * 15 FROM tab1 cor0
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-2749
SELECT col1 + + col2 * col0 + - col1 / + col2 * 15 FROM tab1 cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - 86 + - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2750
SELECT - 86 + - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-83

query II rowsort
SELECT DISTINCT - col1, - 93 AS col0 FROM tab2 AS cor0 WHERE + 8 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT + ( - col2 ) - ( + + CAST( - col2 AS SIGNED ) ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT + ( - col2 ) - ( + + CAST ( - col2 AS INTEGER ) ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + ( COUNT( * ) ) + - 38 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + ( COUNT ( * ) ) + - 38 FROM tab1 AS cor0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT - - SUM( + + CAST( + ( + 52 ) AS SIGNED ) ) + - + ( + 93 ) * - 65 * + 2 FROM tab2 AS cor0
----
12246

skipif mysql # not compatible
query I rowsort label-2757
SELECT - - SUM ( + + CAST ( + ( + 52 ) AS INTEGER ) ) + - + ( + 93 ) * - 65 * + 2 FROM tab2 AS cor0
----
12246

query I rowsort
SELECT - 27 + - col0 * - + ( + 40 ) + + - col1 + - 20 FROM tab2 AS cor0
----
1742
2436
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - ( 87 ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2759
SELECT - ( 87 ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT 24 - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
-40
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + SUM( DISTINCT - - 79 ) AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2761
SELECT + SUM ( DISTINCT - - 79 ) AS col2 FROM tab0 AS cor0
----
79

query I rowsort
SELECT col0 * - + 90 FROM tab2 AS cor0
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL COUNT( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL COUNT ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2764
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT col0, col1 + - 1 FROM tab0 AS cor0
----
15
80
87
20
97
0

query II rowsort
SELECT ALL + ( + col1 ), + 6 FROM tab1
----
14
6
47
6
5
6

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col2 + 64 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL + ( MIN( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + ( MIN ( col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT + COUNT( ALL - col0 ) DIV - - 49 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT + COUNT ( ALL - col0 ) / - - 49 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - 81 + + col0 FROM tab2 AS cor0 WHERE NOT ( + 64 * 64 + - 83 BETWEEN + col2 AND - col2 )
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT + MAX( ALL + 29 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2771
SELECT + MAX ( ALL + 29 ) AS col2 FROM tab2 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 69 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - col1, col0, 78 * + ( - col2 ) + - 33, 94 )
----

query I rowsort
SELECT ALL + + col2 + + - 75 + col0 FROM tab0 AS cor0
----
-13
121
22

query II rowsort
SELECT DISTINCT + col1, + 66 * col0 FROM tab1 cor0
----
14
3366
47
6006
5
5610

query II rowsort
SELECT ALL + col2, - 94 FROM tab1 AS cor0
----
59
-94
68
-94
96
-94

query II rowsort
SELECT ALL 89 + + - 85, ( col0 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + 74 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT DISTINCT ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT - - SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - - SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - + 59 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT ALL - MIN( 43 ) AS col1, COUNT( - - col2 ) + - + COUNT( * ) col0 FROM tab1
----
-43
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2783
SELECT ALL - MIN ( 43 ) AS col1, COUNT ( - - col2 ) + - + COUNT ( * ) col0 FROM tab1
----
-43
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 0 ) col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT COUNT( * ) * + - 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( * ) * + - 43 FROM tab1
----
-129

query I rowsort
SELECT + 90 * + + 94 FROM tab0
----
8460
8460
8460

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + - COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2788
SELECT + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - COUNT( * ) * - - 47 * - 6 + + + COUNT( * ) FROM tab2
----
849

skipif mysql # not compatible
query I rowsort label-2789
SELECT - COUNT ( * ) * - - 47 * - 6 + + + COUNT ( * ) FROM tab2
----
849

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + 94 + - + COUNT( * ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2790
SELECT + 94 + - + COUNT ( * ) AS col0 FROM tab0
----
91

query I rowsort
SELECT ( + 19 ) * + 28 AS col0 FROM tab1
----
532
532
532

query I rowsort
SELECT + col1 * - col2 * - ( - 62 ) * + col0 AS col2 FROM tab1
----
-1554650
-18031832
-4249728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2793
SELECT DISTINCT + col1 * + + CAST( + col0 AS SIGNED ) AS col1, col2 FROM tab0
----
1215
47
1827
10
97
99

skipif mysql # not compatible
query II rowsort label-2793
SELECT DISTINCT + col1 * + + CAST ( + col0 AS INTEGER ) AS col1, col2 FROM tab0
----
1215
47
1827
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col2 * - col1 + - + col0 + - 67 / + 22 AND NULL )
----

query I rowsort
SELECT + - col2 * col0 + + + ( col0 ) * col0 FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NULL
----
-2295
2093
2210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 15, col0 - 98, col0 )
----

query I rowsort
SELECT + 32 * - + col0 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 AS col0 FROM tab1 cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL + ( - + ( + SUM( - + col1 ) ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + ( - + ( + SUM ( - + col1 ) ) ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + 92 * + 41 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 15 AS col0 FROM tab0 AS cor0
----
15

query II rowsort
SELECT + col0, + 18 FROM tab0 AS cor0
----
15
18
87
18
97
18

query I rowsort
SELECT ALL + 11 * + - 33 - ( + 2 ) FROM tab1 AS cor0
----
-365
-365
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - + SUM( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - + SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + ( + - 18 ) * - - col2 FROM tab1
----
-1062
-1224
-1728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 col1 FROM tab1
----
-59
85
-68
91
-96
51

query II rowsort
SELECT + col1 AS col0, + col2 AS col1 FROM tab2 WHERE NOT - - 82 = ( 36 / - col0 )
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 AS col1, ( - col1 ) col1 FROM tab2
----
91
-51
91
-67
91
-77

query II rowsort
SELECT col2, - 58 AS col0 FROM tab1
----
59
-58
68
-58
96
-58

query I rowsort
SELECT ALL + 66 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 * - col0 * 11 * + + ( - col0 ) FROM tab2
----
46
1070696
64
2883584
75
4640625

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT 32 * - COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT 32 * - COUNT ( * ) FROM tab2
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + 77 * - - ( col1 ), + col0 * - - 37, + col2 / - col0 * + col1, + - col0 + + 90 + + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL + COUNT( * ) * + 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + COUNT ( * ) * + 74 FROM tab2
----
222

query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - 92 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT CAST( col0 AS SIGNED ), + col1 FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-2819
SELECT CAST ( col0 AS INTEGER ), + col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 50 + + col0 + + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2821
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) + - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL col0 * 83 * - - 66 FROM tab0
----
476586
531366
82170

query I rowsort
SELECT 73 + + col2 FROM tab2
----
113
131
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 56 + + + COUNT( * ) FROM tab1 WHERE - - 45 IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 56 + + + COUNT ( * ) FROM tab1 WHERE - - 45 IS NULL
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - COUNT( * ) + - 0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2827
SELECT - COUNT ( * ) + - 0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2828
SELECT ALL * FROM tab0 WHERE - + col0 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) + + 13
----

skipif mysql # not compatible
query III rowsort label-2828
SELECT ALL * FROM tab0 WHERE - + col0 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + + 13
----

query I rowsort
SELECT ALL 42 + col2 AS col1 FROM tab0 AS cor0
----
141
52
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + COUNT( DISTINCT + 85 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2830
SELECT + COUNT ( DISTINCT + 85 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL + 12 + ( 76 ) AS col0, col2 AS col2 FROM tab1 AS cor0
----
88
59
88
68
88
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + + MAX( - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2832
SELECT + + MAX ( - col0 ) FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL COUNT( * ) * + 76 col0 FROM tab1
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ALL COUNT ( * ) * + 76 col0 FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2834
SELECT + + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col1 * + - col1 + - + 54 * + col0 FROM tab0 AS cor0
----
-4257
-5237
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + COUNT( - 79 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + COUNT ( - 79 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT COUNT( * ) DIV + + 14 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * 75 * - 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) / + + 14 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * 75 * - 56 IS NOT NULL
----
0

query I rowsort
SELECT - - col0 * - - col1 AS col2 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + col1 * - 93 + 55 FROM tab1 AS cor0
----
-1247
-410
-4316

query I rowsort
SELECT + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 98 * col2 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT ALL + col0 * - 13 AS col1 FROM tab1
----
-1105
-1183
-663

query I rowsort
SELECT col0 * - 9 + - - 69 FROM tab0 AS cor0
----
-66
-714
-804

query I rowsort
SELECT ALL - + col0 + 48 AS col0 FROM tab0 AS cor0
----
-39
-49
33

query III rowsort
SELECT * FROM tab2 cor0 WHERE 42 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - ( 80 ) * COUNT( * ) + 91 * 17 FROM tab2 AS cor0
----
1307

skipif mysql # not compatible
query I rowsort label-2846
SELECT - ( 80 ) * COUNT ( * ) + 91 * 17 FROM tab2 AS cor0
----
1307

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT DISTINCT + 18 + + 5, COUNT( * ) * ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
23
9

skipif mysql # not compatible
query II rowsort label-2847
SELECT DISTINCT + 18 + + 5, COUNT ( * ) * ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
23
9

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= - col0 + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 * - - ( + 36 ), 5 col0 FROM tab0
----
2952
5
2952
5
2952
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT - CAST( + ( - - col0 ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - CAST ( + ( - - col0 ) AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 17 AS col1 FROM tab0 WHERE ( 88 ) IS NOT NULL
----
-17
-17
-17

query I rowsort
SELECT - col0 * + 94 FROM tab1
----
-4794
-7990
-8554

query I rowsort
SELECT 42 - 13 AS col2 FROM tab2
----
29
29
29

query I rowsort
SELECT + 8 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + ( - 54 ) - + 23 * - COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2856
SELECT + ( - 54 ) - + 23 * - COUNT ( * ) AS col0 FROM tab1
----
15

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE - + col0 / + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + COUNT( DISTINCT + 10 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + COUNT ( DISTINCT + 10 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2859
SELECT MAX( ALL - + col1 ) - + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT MAX ( ALL - + col1 ) - + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - 67 AS col1 FROM tab2 WHERE NULL IS NULL
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - MIN( - ( - 59 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-2863
SELECT - MIN ( - ( - 59 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

query I rowsort
SELECT ALL - - 21 + - col2 * + col2 FROM tab0 WHERE NOT - + col0 - + col0 NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT ALL + 53 FROM tab2, tab0 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab1 AS cor0
----
33
33
33

query II rowsort
SELECT DISTINCT col2 - + + 29 - + col0 + - + col0 * - 36 AS col0, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2868
SELECT + SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT + col0 DIV 56 * + - col1 AS col2, col0 FROM tab2 AS cor0
----
-67
75
-77
64
0
46

skipif mysql # not compatible
query II rowsort label-2869
SELECT + col0 / 56 * + - col1 AS col2, col0 FROM tab2 AS cor0
----
-67
75
-77
64
0
46

query I rowsort
SELECT + ( ( - - col0 ) ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2871
SELECT 18 DIV col0, 48 AS col0 FROM tab2
----
0
48
0
48
0
48

skipif mysql # not compatible
query II rowsort label-2871
SELECT 18 / col0, 48 AS col0 FROM tab2
----
0
48
0
48
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT DISTINCT + COUNT( - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + COUNT ( - + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL - COUNT( * ) + + - 50 AS col2 FROM tab2 WHERE NULL > col1 * + 37
----
-50

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - COUNT ( * ) + + - 50 AS col2 FROM tab2 WHERE NULL > col1 * + 37
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + 17 * MAX( ALL - + col2 ) + - 39 FROM tab2 cor0 WHERE - 1 + + - 33 NOT BETWEEN + col0 AND + + col2 / + col0
----
-430

skipif mysql # not compatible
query I rowsort label-2874
SELECT + 17 * MAX ( ALL - + col2 ) + - 39 FROM tab2 cor0 WHERE - 1 + + - 33 NOT BETWEEN + col0 AND + + col2 / + col0
----
-430

query II rowsort
SELECT ALL + col1 + - 7, - col0 AS col2 FROM tab1 AS cor0
----
-2
-85
40
-91
7
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT DISTINCT + col1 DIV + col0 AS col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + col1 / + col0 AS col1 FROM tab2 cor0
----
0
1

query I rowsort
SELECT DISTINCT ( - 79 ) * 42 FROM tab0 AS cor0
----
-3318

query III rowsort
SELECT * FROM tab2 WHERE 61 * + col2 NOT IN ( col1 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - + col0 AS col0 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - col1 + - 80 FROM tab0 AS cor0
----
-101
-161
-81

query I rowsort
SELECT DISTINCT + col2 - - col0 * 52 FROM tab2 AS cor0
----
2415
3368
3958

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - 47 + + 14 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2882
SELECT - 47 + + 14 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2883
SELECT + MAX( + col2 ) + 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-2883
SELECT + MAX ( + col2 ) + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * 34 - ( + + col1 ) + + col1 FROM tab0
----
2958
3298
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1, tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col1, 44 AS col0 FROM tab0
----
1
44
21
44
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT + 40 + - ( 77 ) + + COUNT( * ) FROM tab1, tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT + 40 + - ( 77 ) + + COUNT ( * ) FROM tab1, tab1 AS cor0
----
-28

query II rowsort
SELECT ALL col0, + 55 * 14 FROM tab0
----
15
770
87
770
97
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT + ( COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + ( COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - - col0 * 37 FROM tab1 AS cor0
----
1887
3145
3367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT CAST( - col0 AS SIGNED ) * - + col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2892
SELECT CAST ( - col0 AS INTEGER ) * - + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 36 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 47 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2896
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), 57 )
----

skipif mysql # not compatible
query III rowsort label-2896
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), 57 )
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT - 64 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - - MAX( DISTINCT - col1 ) + - 60 + - 39 FROM tab1 cor0
----
-104

skipif mysql # not compatible
query I rowsort label-2898
SELECT - - MAX ( DISTINCT - col1 ) + - 60 + - 39 FROM tab1 cor0
----
-104

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 * + + col0 + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col1 * - col0 * - col0 * ( + col0 ) + + col1 = NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL + MIN( DISTINCT - 85 ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + MIN ( DISTINCT - 85 ) AS col2 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL MAX( + 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL MAX ( + 21 ) FROM tab0
----
21

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 >= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col1 FROM tab1
----
91
91
91

query I rowsort
SELECT ( 87 ) AS col2 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL col1 * + 69 * - ( + + col1 ) + - + col2 FROM tab1
----
-13620
-152489
-1784

query I rowsort
SELECT ALL + 13 + - + col1 * - + 28 + - + 84 AS col0 FROM tab1 AS cor0
----
1245
321
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL - - col2 * + col1 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - - col2 * + col1 / - col1 + col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT ALL col1 + - - col2 * - col0 + - - col0 AS col0, - col1 FROM tab2 AS cor0
----
-2419
-77
-4208
-67
-961
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2912
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT DISTINCT + col2 + - ( - - CAST( NULL AS SIGNED ) ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + col2 + - ( - - CAST ( NULL AS INTEGER ) ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + ( - 45 ) > - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - col0 * col0 FROM tab1
----
-2550
-7140
-8190

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - - col2, col0 * ( - col1 ) * - 12, 5 / + col2 / + - col2 / col0 * - - col2 / + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( 90 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - 41 - + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * + 68 * 12 - + col2 + - - col1 + col0 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE col2 + - 40 > + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2921
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----
0

query I rowsort
SELECT ALL col2 - - col2 + col0 AS col2 FROM tab2 cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL + - COUNT( * ) * - - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + - COUNT ( * ) * - - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL - col2 * - CAST( + col1 AS SIGNED ) * 6 FROM tab0
----
1260
22842
594

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - col2 * - CAST ( + col1 AS INTEGER ) * 6 FROM tab0
----
1260
22842
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL - 84 - - + COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - 84 - - + COUNT ( * ) FROM tab1
----
-81

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + COUNT( * ) - SUM( DISTINCT 15 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2927
SELECT + COUNT ( * ) - SUM ( DISTINCT 15 ) FROM tab2
----
-12

query II rowsort
SELECT DISTINCT col1, - 86 + 15 FROM tab2
----
51
-71
67
-71
77
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2929
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2929
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + CAST ( + + col2 AS INTEGER )
----

query I rowsort
SELECT 34 * 83 FROM tab2
----
2822
2822
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT SUM( - + 56 ) * - - 48 AS col2 FROM tab0
----
-8064

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT SUM ( - + 56 ) * - - 48 AS col2 FROM tab0
----
-8064

query I rowsort
SELECT ALL col0 * - 88 AS col0 FROM tab0
----
-1320
-7656
-8536

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT + ( - CAST( col1 AS SIGNED ) ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2934
SELECT + ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT DISTINCT - CAST( 43 AS SIGNED ) AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - CAST ( 43 AS INTEGER ) AS col2 FROM tab1
----
-43

query I rowsort
SELECT - ( - 0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - + 90 AS col1, + col0 col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 53 ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT + - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + 44 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT - col2 * CAST( NULL AS SIGNED ) * + - 42 / - - ( col1 ) * + - 1 * col1 + + 47 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT - col2 * CAST ( NULL AS INTEGER ) * + - 42 / - - ( col1 ) * + - 1 * col1 + + 47 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - - col0 + 71 FROM tab0
----
1286
168
1898

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * col1 + - col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2945
SELECT ALL - CAST( NULL AS DECIMAL ) + + 16 + col0 / + col0 * + col2 + - - 6 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - CAST ( NULL AS REAL ) + + 16 + col0 / + col0 * + col2 + - - 6 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2946
SELECT CAST( NULL AS DECIMAL ) / + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - col1 * + ( + - 12 ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2946
SELECT CAST ( NULL AS REAL ) / + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - col1 * + ( + - 12 ) * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT - col0 * - - 23 AS col1 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL 93 + + - COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL 93 + + - COUNT ( * ) FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ( - 27 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-2950
SELECT ( - 27 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

query I rowsort
SELECT ALL 50 * - + 41 - - 40 FROM tab1 AS cor0
----
-2010
-2010
-2010

query I rowsort
SELECT DISTINCT - col2 + - 81 AS col0 FROM tab2 AS cor0
----
-104
-121
-139

query I rowsort
SELECT - col2 * - col2 FROM tab2 AS cor0 WHERE col1 / + + col1 + + + 66 - - - 98 IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT ALL - ( + + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT - 53 * + 50 AS col1 FROM tab0
----
-2650
-2650
-2650

query I rowsort
SELECT DISTINCT + col1 * - + col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT 3 * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2957
SELECT 3 * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2958
SELECT DISTINCT COUNT( * ) DIV 13 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( * ) / 13 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 39 * - ( - + col1 ) FROM tab2
----
-1989
-2613
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT COUNT( * ) * - 50 * 72 + + 68 AS col1 FROM tab2 AS cor0
----
-10732

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT COUNT ( * ) * - 50 * 72 + + 68 AS col1 FROM tab2 AS cor0
----
-10732

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2962
SELECT col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT + 87 + + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 87 + + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT - COUNT( DISTINCT col2 ) + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE + col0 * col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT - COUNT ( DISTINCT col2 ) + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE + col0 * col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 85 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT + SUM( - - 77 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + SUM ( - - 77 ) FROM tab2
----
231

query III rowsort
SELECT * FROM tab2 WHERE col2 <> - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT - 64 * - + COUNT( * ) FROM tab0 WHERE NOT + - col2 + - + col1 / + 27 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - 64 * - + COUNT ( * ) FROM tab0 WHERE NOT + - col2 + - + col1 / + 27 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT MIN( col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT MIN ( col1 ) col2 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2970
SELECT DISTINCT COUNT( * ) AS col0, + CAST( COUNT( - 4 ) AS SIGNED ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2970
SELECT DISTINCT COUNT ( * ) AS col0, + CAST ( COUNT ( - 4 ) AS INTEGER ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT ALL MAX( - 28 ) AS col0, 32 AS col2 FROM tab1
----
-28
32

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL MAX ( - 28 ) AS col0, 32 AS col2 FROM tab1
----
-28
32

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * - col1 + - + col0 + + 68 * - col2 IS NULL
----

query II rowsort
SELECT - col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT DISTINCT - - ( - - 94 ) AS col2 FROM tab0 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col2 + - + 96 - + - col1 * - col1 BETWEEN ( - 4 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col0 FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT DISTINCT + 11 + - CAST( - AVG ( DISTINCT - col1 ) AS SIGNED ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT + 11 + - CAST ( - AVG ( DISTINCT - col1 ) AS INTEGER ) FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT + CAST( + + 97 AS SIGNED ) + - - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
156
165
193

skipif mysql # not compatible
query I rowsort label-2978
SELECT + CAST ( + + 97 AS INTEGER ) + - - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
156
165
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT - col0 + + ( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * col1 * + col2 + - + 0 + 64 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - col0 + + ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * col1 * + col2 + - + 0 + 64 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 74 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT - + 69 AS col0 FROM tab2 WHERE NOT + - 1 IS NULL
----
-69
-69
-69

query I rowsort
SELECT ALL - col0 * - 81 * + col2 AS col0 FROM tab2
----
207360
352350
85698

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT ALL - 27 AS col0, - MIN( DISTINCT + col0 ) FROM tab0
----
-27
-15

skipif mysql # not compatible
query II rowsort label-2985
SELECT ALL - 27 AS col0, - MIN ( DISTINCT + col0 ) FROM tab0
----
-27
-15

query I rowsort
SELECT - col1 * + + col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - - 11 AS col1 FROM tab1 cor0
----
11
11
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 + - col0 <> - 31
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) + + 10 AND - col2
----

query I rowsort
SELECT + 98 + col2 FROM tab0
----
108
145
197

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 66 ) * + 82 NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 23 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( - 81 + col1 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT col1 + col2 * col2 AS col2 FROM tab2 WHERE NOT + 16 NOT IN ( - 74 )
----

query I rowsort
SELECT + col2 + col2 * - col2 AS col1 FROM tab0 WHERE NOT + col1 + 5 NOT IN ( col0 + + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2996
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( CAST( - col1 AS DECIMAL ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( CAST ( - col1 AS REAL ) * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 40 / + ( 11 ) ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col0 AND 98 / col2 + col2
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col0 AND 98 / col2 + col2
----

query I rowsort
SELECT - col0 + + ( col0 ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( 56 ) * ( - col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT - COUNT( * ) * 46 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - COUNT ( * ) * 46 FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT MAX( DISTINCT - 30 ) * SUM( col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT MAX ( DISTINCT - 30 ) * SUM ( col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 68 + 66 AS col1 FROM tab0
----
134
134
134

query I rowsort
SELECT + col0 + + 30 FROM tab1
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ( - SUM( + 53 ) ) + - 9 col0 FROM tab2
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT ( - SUM ( + 53 ) ) + - 9 col0 FROM tab2
----
-168

query I rowsort
SELECT DISTINCT - 56 + + col0 FROM tab1
----
-5
29
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 45 ) col0 FROM tab1
----
-45
-45
-45

query III rowsort
SELECT * FROM tab0 WHERE ( - 10 ) <> 25 + ( 36 ) * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + col2 * + col0 ) > col1
----

query I rowsort
SELECT + 72 * 92 FROM tab0
----
6624
6624
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + COUNT( * ) + - SUM( ALL col1 ) AS col2 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-3012
SELECT + COUNT ( * ) + - SUM ( ALL col1 ) AS col2 FROM tab2
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3013
SELECT DISTINCT * FROM tab2 WHERE + CAST( 20 AS SIGNED ) * + 97 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3013
SELECT DISTINCT * FROM tab2 WHERE + CAST ( 20 AS INTEGER ) * + 97 IS NULL
----

query I rowsort
SELECT - 61 * + col1 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT DISTINCT + 82 * ( - col1 ) FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT + col1 + + 36 AS col0 FROM tab0
----
117
37
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT + SUM( - 38 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3017
SELECT + SUM ( - 38 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT MIN( DISTINCT 58 ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3018
SELECT MIN ( DISTINCT 58 ) AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT 53 - + 44 AS col0 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 54 + col1 / 16 AS col2 FROM tab1 WHERE NOT ( - 66 ) NOT IN ( 60 )
----

query I rowsort
SELECT ALL + 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT + col2 DIV + 66 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3023
SELECT + col2 / + 66 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + + col2 * CAST( 26 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
120224
239616
90506

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + col2 * CAST ( 26 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
120224
239616
90506

query I rowsort
SELECT + ( 84 ) AS col2 FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 51 / 77 ) NOT BETWEEN NULL AND 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 22 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 + + col0 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 96 - - col2 AS col1 FROM tab0 WHERE NULL >= col1 / + 93
----

query I rowsort
SELECT ALL ( + col2 ) * 83 FROM tab1
----
4897
5644
7968

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT 26 * COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT 26 * COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT - col0 * - + 47 FROM tab1
----
2397
3995
4277

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 78 * col1 AS col2 FROM tab2 AS cor0
----
-3978
-5226
-6006

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < 11
----

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 42 NOT BETWEEN ( col0 + 31 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT - COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL COUNT( DISTINCT - col0 ) + ( + COUNT( * ) ) + - SUM( DISTINCT 77 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL COUNT ( DISTINCT - col0 ) + ( + COUNT ( * ) ) + - SUM ( DISTINCT 77 ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT 59 * + 64 * + col0 AS col0 FROM tab0 AS cor0
----
328512
366272
56640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT + - col1 + CAST( + col1 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT + - col1 + CAST ( + col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + 82 AS col0 FROM tab0 AS cor0
----
-103
-163
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - + ( + ( + 49 ) ) + SUM( ALL col1 ) AS col0 FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3047
SELECT - + ( + ( + 49 ) ) + SUM ( ALL col1 ) AS col0 FROM tab1 cor0
----
17

query I rowsort
SELECT 73 + + col1 - + col0 * col1 * col1 FROM tab2 AS cor0
----
-119522
-336535
-379306

query I rowsort
SELECT ALL + col1 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND + col0 - - col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3052
SELECT ALL - + 20 AS col1, - MIN( ALL + col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3052
SELECT ALL - + 20 AS col1, - MIN ( ALL + col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-20
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( + col0 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 74 FROM tab1 AS cor0 WHERE + 2 IS NOT NULL
----
74
74
74

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 50 BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT ALL col1 DIV - ( + ( - 25 ) ) FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL col1 / - ( + ( - 25 ) ) FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT + + col0 * 64 + + col1 AS col2 FROM tab0 AS cor0
----
1041
5589
6209

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - SUM( ALL - + 23 ) col0 FROM tab0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3059
SELECT - SUM ( ALL - + 23 ) col0 FROM tab0
----
69

query II rowsort
SELECT ALL ( + col0 ), col1 * - col1 AS col1 FROM tab2
----
46
-2601
64
-5929
75
-4489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT COUNT( ALL col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 71 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3064
SELECT + 83 - - - SUM( ALL CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 83 - - - SUM ( ALL CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab1
----
306

query I rowsort
SELECT 69 - 74 * col0 + + + col2 AS col2 FROM tab0
----
-6359
-7010
-994

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 22 * ( - col1 ) - + - col1 + 36 * + 0 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL - - SUM( + + col1 ) - - 14 AS col1 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - - SUM ( + + col1 ) - - 14 AS col1 FROM tab1 cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 69 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 49 <= - 94
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT 71 * - 80 FROM tab1
----
-5680
-5680
-5680

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + - 96 DIV + + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3076
SELECT + - 96 / + + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT ALL - 14 DIV - col1 FROM tab0 AS cor0 WHERE ( + col0 * col2 ) IS NOT NULL
----
0
0
14

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - 14 / - col1 FROM tab0 AS cor0 WHERE ( + col0 * col2 ) IS NOT NULL
----
0
0
14

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3079
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 83 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3079
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 83 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL 81 * - - col1 * col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 62 AND + + col2
----

query I rowsort
SELECT ALL ( - 44 ) FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - MIN( + 51 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3083
SELECT - MIN ( + 51 ) AS col0 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3084
SELECT * FROM tab2 WHERE NOT + + 24 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3084
SELECT * FROM tab2 WHERE NOT + + 24 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, col1 * col1 AS col1 FROM tab0
----
1
1
21
441
81
6561

query I rowsort
SELECT 60 * + 69 AS col2 FROM tab0
----
4140
4140
4140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT ALL col0 * - + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL col0 * - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( - - col2 ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT SUM( + ( col1 ) ) + CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND ( - col0 / + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT SUM ( + ( col1 ) ) + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND ( - col0 / + 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT DISTINCT + - COUNT( * ) AS col0, COUNT( * ) col0 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3090
SELECT DISTINCT + - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT - MAX( ALL 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) * - - ( - + col2 ) IN ( - col2 )
----
-27

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - MAX ( ALL 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) * - - ( - + col2 ) IN ( - col2 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( - + 98 * + + col1, 51 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3092
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( - + 98 * + + col1, 51 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT - col0 * - - col1 DIV - col1 + - col2 * 64 FROM tab2 AS cor0 WHERE NOT + col2 + - col1 IS NULL
----
-1426
-2496
-3637

skipif mysql # not compatible
query I rowsort label-3093
SELECT - col0 * - - col1 / - col1 + - col2 * 64 FROM tab2 AS cor0 WHERE NOT + col2 + - col1 IS NULL
----
-1426
-2496
-3637

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 + 30 * + col0 + - 53 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col2 + - col2 * + - ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT col0 * col0 + + - col1 DIV col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT col0 * col0 + + - col1 / col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL 8 + col2 DIV - - 67 - - col1 AS col1 FROM tab0
----
10
29
89

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 8 + col2 / - - 67 - - col1 AS col1 FROM tab0
----
10
29
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT COUNT( * ) + 93 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT COUNT ( * ) + 93 FROM tab0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL + 32 + CAST( 12 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + 32 + CAST ( 12 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col2 + - 79 + - 48 + + col1 * - 42 FROM tab1 AS cor0
----
-2033
-278
-619

query III rowsort
SELECT * FROM tab2 cor0 WHERE 57 * col0 * + + 29 IS NULL
----

query I rowsort
SELECT 6 AS col1 FROM tab1 AS cor0 WHERE col0 * + 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - col1 / + - col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - col1 / + - col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 64 - + col0, col2 FROM tab2 AS cor0
----
-11
58
0
40
18
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL + - CAST( + + col0 AS SIGNED ) * CAST( col0 AS SIGNED ) * ( col2 ) AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + - CAST ( + + col0 AS INTEGER ) * CAST ( col0 AS INTEGER ) * ( col2 ) AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

query II rowsort
SELECT DISTINCT col1 AS col2, - 79 FROM tab1
----
14
-79
47
-79
5
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col1 FROM tab2
----
27

query I rowsort
SELECT - 85 * + col2 + + col2 * - col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + + 72 + - + col1 FROM tab2 cor0
----
1605
2803
4109

query II rowsort
SELECT col0, + col2 * - col0 + + - 28 FROM tab1 AS cor0
----
51
-4924
85
-5043
91
-6216

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT + - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3111
SELECT + - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + COUNT( * ) + + ( - MAX( + + 96 ) ) col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3112
SELECT DISTINCT + COUNT ( * ) + + ( - MAX ( + + 96 ) ) col1 FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 78 + - ( + - col1 ) + - col1 + + col1 >= - col1 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + ( - + 53 ) * col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 52 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, - 72 * - col2 * + col1 + 67 AS col2 FROM tab0 AS cor0
----
1
7195
21
15187
81
274171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL COUNT( * ) * CAST( 56 AS SIGNED ) AS col1 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL COUNT ( * ) * CAST ( 56 AS INTEGER ) AS col1 FROM tab1
----
168

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3118
SELECT ALL + + 95 * - col1 DIV + + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + + 95 * - col1 / + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT col0 DIV 90 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT col0 / 90 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT 73 * 65 * - + 44 FROM tab0 AS cor0
----
-208780
-208780
-208780

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - - SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3121
SELECT - - SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + - SUM( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - SUM ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - - ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + SUM( + col0 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1, + 34 * 50 + + + col2 )
----
185

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + SUM ( + col0 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1, + 34 * 50 + + + col2 )
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab0 cor0 WHERE NOT - col1 + + col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 * - 18 * + col1 FROM tab2
----
2153628
6060150
6830208

query I rowsort
SELECT - 95 FROM tab1 WHERE NOT ( - col0 ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - ( + COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3129
SELECT - ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - - ( + 89 ) FROM tab0 AS cor0
----
89

query II rowsort
SELECT ALL - + col0, + col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * col0 NOT BETWEEN + + 61 AND + + 20 + ( 18 )
----

query III rowsort
SELECT * FROM tab0 WHERE 9 * + 58 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 72 + + col2 AS col0 FROM tab1
----
131
140
168

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 83 col0 FROM tab2 AS cor0
----
23
83
40
83
58
83

query I rowsort
SELECT ALL + 55 + - - col2 FROM tab0 cor0
----
102
154
65

query I rowsort
SELECT ALL - - col2 + + 30 AS col2 FROM tab2 cor0
----
53
70
88

query I rowsort
SELECT DISTINCT + ( - col1 ) - 48 AS col1 FROM tab0 cor0
----
-129
-49
-69

query I rowsort
SELECT ALL + 18 AS col2 FROM tab2 cor0
----
18
18
18

query III rowsort
SELECT * FROM tab0 WHERE - - 71 * + 61 - + + 35 <= 99
----

query I rowsort
SELECT - col1 - col0 + - + 56 FROM tab0
----
-152
-154
-164

query I rowsort
SELECT + 3 + col0 + 51 * + col1 AS col2 FROM tab1
----
2491
343
768

query I rowsort
SELECT ALL - + 25 AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1, col0, - 28 / + + 7 + - col2 )
----

query I rowsort
SELECT DISTINCT + - col1 * - 0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT ALL 91 DIV - col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL 91 / - col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT - - ( + 65 ) AS col2 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT - COUNT( * ) DIV + 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT - COUNT ( * ) / + 91 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 <> + 46 + + 4 + col1
----

query I rowsort
SELECT + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ( - col1 ) * + + 10 FROM tab1 AS cor0
----
-140
-470
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab2 AS cor0
----
-76
-76
-76

query II rowsort
SELECT ALL + 40 + - 6 + col1 AS col0, col1 FROM tab2 cor0 WHERE NOT ( + + col1 ) * + col0 + - col1 IS NULL
----
101
67
111
77
85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - - MAX( ALL 50 ) AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3157
SELECT - - MAX ( ALL 50 ) AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT 91 DIV - 62 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3158
SELECT 91 / - 62 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND 7
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 50 / - 96 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 + 60, ( col1 ) FROM tab2
----
111
51
127
67
137
77

query I rowsort
SELECT + ( - + col0 ) + - 24 AS col0 FROM tab1
----
-109
-115
-75

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE + 88 / + - col1 + col2 + + col2 * + 93 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3164
SELECT - col1 + - CAST( NULL AS DECIMAL ) / 51 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT - col1 + - CAST ( NULL AS REAL ) / 51 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 22 + + col1 AS col1 FROM tab1 AS cor0
----
-17
-8
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT ALL 26 + - - ( + + col2 ) DIV + col0 AS col0 FROM tab2 cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL 26 + - - ( + + col2 ) / + col0 AS col0 FROM tab2 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - col1
----

query I rowsort
SELECT - 8 AS col1 FROM tab2 cor0
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 87 DIV + 57 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3169
SELECT 87 / + 57 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 30 - ( - - col1 ) - + col1 + - + 14 + 70 * ( 28 ) * + col0 - - col2 * - col0 * col2 ) NOT IN ( - col1 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 38 + + + col1 - 30, - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1
-5025
-17
-2346
9
-4928

query I rowsort
SELECT DISTINCT - ( col2 ) - 38 AS col0 FROM tab2 AS cor0
----
-61
-78
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT 99 DIV + MIN( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - col0 <= + col1
----
-1

skipif mysql # not compatible
query I rowsort label-3174
SELECT 99 / + MIN ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - col0 <= + col1
----
-1

query I rowsort
SELECT + ( + col0 ) * + + 44 * - col2 + - 72 * - col0 AS col1 FROM tab0 AS cor0
----
-29940
-32016
-415548

query I rowsort
SELECT - 66 FROM tab1 AS cor0 WHERE ( NULL ) <> ( col1 / - col2 * + + 52 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3177
SELECT ALL * FROM tab1 cor0 WHERE NULL < 32 / CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3177
SELECT ALL * FROM tab1 cor0 WHERE NULL < 32 / CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), + 17 * col2 )
----

skipif mysql # not compatible
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), + 17 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT MAX( ALL + 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3179
SELECT MAX ( ALL + 19 ) FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col0 FROM tab2 WHERE - - col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT ALL + col0 * 2 DIV - col2 col2 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3182
SELECT ALL + col0 * 2 / - col2 col2 FROM tab2
----
-2
-3
-4

query II rowsort
SELECT DISTINCT + 63, col1 + - 81 AS col1 FROM tab1
----
63
-34
63
-67
63
-76

query II rowsort
SELECT ALL col0 AS col0, 89 FROM tab0
----
15
89
87
89
97
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT - 18 DIV - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT - 18 / - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 <> ( - - 42 * - - col2 * + col0 * 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT COUNT( DISTINCT + 74 ) * + - 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-3187
SELECT COUNT ( DISTINCT + 74 ) * + - 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + COUNT( col0 ) * + + COUNT( * ) + + 24 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3189
SELECT + COUNT ( col0 ) * + + COUNT ( * ) + + 24 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3190
SELECT - + ( + - 49 ) * 54 DIV CAST( - - 28 AS SIGNED ) * - 43 + + - 69 AS col2 FROM tab2 AS cor0
----
-4111
-4111
-4111

skipif mysql # not compatible
query I rowsort label-3190
SELECT - + ( + - 49 ) * 54 / CAST ( - - 28 AS INTEGER ) * - 43 + + - 69 AS col2 FROM tab2 AS cor0
----
-4111
-4111
-4111

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT 10 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3191
SELECT 10 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + - MAX( DISTINCT 55 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 + + - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT + - MAX ( DISTINCT 55 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 + + - col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT 81 + + - COUNT( 70 ) + 15 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3194
SELECT 81 + + - COUNT ( 70 ) + 15 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3195
SELECT DISTINCT + ( - 60 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + ( - 60 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * 99 * 2 + - + 77 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT + 2 * col0 DIV 65 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + 2 * col0 / 65 AS col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT MIN( DISTINCT - col0 ) DIV 98 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT MIN ( DISTINCT - col0 ) / 98 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT DISTINCT 40 DIV - COUNT( * ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT 40 / - COUNT ( * ) AS col0 FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL COUNT( * ) + + - 25 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL COUNT ( * ) + + - 25 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3201
SELECT ALL COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT + + 31 FROM tab2 WHERE ( NOT NULL <= ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3203
SELECT + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( 94 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-94

query I rowsort
SELECT ( ( - + col1 ) ) + - 99 FROM tab2
----
-150
-166
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL - col1 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - col1 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 + - 56 * - - col0 - + 1 AS col1 FROM tab1 AS cor0
----
-2771
-4675
-5011

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL + + CAST( 13 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-1
-34
8

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + + CAST ( 13 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-1
-34
8

query I rowsort
SELECT + 17 - ( - 68 ) * - col1 FROM tab1 AS cor0
----
-3179
-323
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3214
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab2 cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL <> + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3217
SELECT COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab1
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT COUNT( + 94 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT COUNT ( + 94 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT + 11 DIV - col1 * col0 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3220
SELECT + 11 / - col1 * col0 * - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 67 * + 4 * - col2 AS col1 FROM tab2
----
10720
15544
6164

query III rowsort
SELECT ALL * FROM tab0 WHERE + 98 * - col2 + + 97 = ( + + ( - col0 ) * + - ( + col1 ) + + col1 )
----

query II rowsort
SELECT + col1 AS col0, + col1 + + - col0 FROM tab0
----
1
-96
21
-66
81
66

query I rowsort
SELECT DISTINCT - ( ( + ( + + col0 ) ) ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT - COUNT( * ) + + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT - COUNT ( * ) + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + 53 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + 53 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - COUNT( * ) * + 59 AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3229
SELECT - COUNT ( * ) * + 59 AS col1 FROM tab1 AS cor0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT col0 * col0 - + col0 FROM tab1 cor0 WHERE NOT col0 * - col0 NOT BETWEEN ( NULL ) AND 70
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + ( + col2 ) * - - 12 - + - 30 * - col1 + + col2 + - 81 * - + col1 * - 27 NOT BETWEEN - 3 + col1 - 2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3233
SELECT DISTINCT - 34 * CAST( NULL AS DECIMAL ) + - - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT - 34 * CAST ( NULL AS REAL ) + - - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3234
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3234
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT DISTINCT 35, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
35
-3

skipif mysql # not compatible
query II rowsort label-3235
SELECT DISTINCT 35, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
35
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT ( + + SUM( DISTINCT + 95 ) ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT ( + + SUM ( DISTINCT + 95 ) ) FROM tab0
----
95

query I rowsort
SELECT ALL col1 + col2 + + 60 AS col0 FROM tab1
----
124
170
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT + + 38 * COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - 48 AND 54 * - col2 * + - CAST( 37 AS SIGNED ) / 10
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT + + 38 * COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - 48 AND 54 * - col2 * + - CAST ( 37 AS INTEGER ) / 10
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT ( 3 + - 66 < CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3239
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT ( 3 + - 66 < CAST ( col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 35 col1 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT ALL + - 98 - + col0 + - ( + - col2 ) FROM tab2 AS cor0
----
-115
-121
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - 68 * + + SUM( ALL + col0 ) * SUM( - col0 ) + - 92 * COUNT( * ) FROM tab1 cor0
----
3503696

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 68 * + + SUM ( ALL + col0 ) * SUM ( - col0 ) + - 92 * COUNT ( * ) FROM tab1 cor0
----
3503696

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT + 83 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT - MIN( DISTINCT + col1 ) DIV - 7 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT - MIN ( DISTINCT + col1 ) / - 7 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * + - 31 / + col0 FROM tab0 AS cor0 WHERE NOT + 0 + - col2 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 2 >= col0
----

query II rowsort
SELECT col1, 19 FROM tab2 AS cor0
----
51
19
67
19
77
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT ALL ( - 59 ) * - + COUNT( * ), + 31 AS col2 FROM tab2 AS cor0
----
177
31

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL ( - 59 ) * - + COUNT ( * ), + 31 AS col2 FROM tab2 AS cor0
----
177
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT DISTINCT - col1 DIV + col0 col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3249
SELECT DISTINCT - col1 / + col0 col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT ( - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - - COUNT( ALL col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3251
SELECT - - COUNT ( ALL col2 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3252
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3252
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL ( 21 ) FROM tab2
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT - CAST( - - CAST( - - 85 AS SIGNED ) AS SIGNED ) FROM tab2
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-3254
SELECT - CAST ( - - CAST ( - - 85 AS INTEGER ) AS INTEGER ) FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL ( - + COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT SUM( DISTINCT + + 82 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-3256
SELECT SUM ( DISTINCT + + 82 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT ALL + 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 col0, + 35 + - col0 FROM tab0
----
-45
-52
-45
-62
-45
20

query I rowsort
SELECT + - 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT DISTINCT SUM( DISTINCT col2 ) DIV + COUNT( * ) + + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT SUM ( DISTINCT col2 ) / + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
77

query I rowsort
SELECT ALL - 25 + - col2 FROM tab0 AS cor0
----
-124
-35
-72

query I rowsort
SELECT + col2 * + + col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE - 99 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT ALL + col2, + 17 FROM tab1
----
59
17
68
17
96
17

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3265
SELECT ALL CAST( NULL AS SIGNED ), - col0 * - 1 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL CAST ( NULL AS INTEGER ), - col0 * - 1 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 52 * - 39 AS col1 FROM tab1
----
-2028
-2028
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( * ) + + + COUNT( * ) - ( + COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3267
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - ( + COUNT ( * ) ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT 59 - - COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3269
SELECT 59 - - COUNT ( * ) FROM tab2
----
62

query I rowsort
SELECT col0 + + + 37 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-14
190
230

query I rowsort
SELECT ALL + - 8 * col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT + - 56 / - + CAST( NULL AS SIGNED ) * - - 42 - - - 64 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3272
SELECT + - 56 / - + CAST ( NULL AS INTEGER ) * - - 42 - - - 64 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 4 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL + 12 * - 74 * - COUNT( * ) FROM tab2 AS cor0
----
2664

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + 12 * - 74 * - COUNT ( * ) FROM tab2 AS cor0
----
2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL - + ( - CAST( NULL AS SIGNED ) ) / + 52 / - COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - + ( - CAST ( NULL AS INTEGER ) ) / + 52 / - COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab2 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT - - 73 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - - 73 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
73

query II rowsort
SELECT + 30 AS col1, - col0 AS col1 FROM tab2
----
30
-46
30
-64
30
-75

query I rowsort
SELECT ALL - - col1 + + col0 FROM tab2 WHERE - col1 * + col2 * + 79 IS NOT NULL
----
141
142
97

query II rowsort
SELECT 38, col2 * col0 + + - col0 AS col0 FROM tab2
----
38
1012
38
2496
38
4275

query II rowsort
SELECT - col0, - ( - - col0 ) FROM tab1 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * - 40 col0 FROM tab0
----
-3840

query I rowsort
SELECT + col2 * + - ( - + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + AVG ( DISTINCT col2 ) AS col0 FROM tab1 WHERE NOT + - col2 NOT IN ( - + col0 + + 20, 93 * 20 + - ( col2 ) - + col1 * col2 / + 33 + + - 29 )
----
NULL

query II rowsort
SELECT col0 AS col1, + 77 AS col2 FROM tab2
----
46
77
64
77
75
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3286
SELECT ALL * FROM tab1 WHERE CAST( + 86 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3286
SELECT ALL * FROM tab1 WHERE CAST ( + 86 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 21 + - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT MIN( ALL + + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3290
SELECT MIN ( ALL + + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT - + MAX( DISTINCT - - col2 ) FROM tab0 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-3291
SELECT - + MAX ( DISTINCT - - col2 ) FROM tab0 WHERE NULL IS NULL
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT DISTINCT - col1 + + 24 AS col1, CAST( NULL AS SIGNED ) + - - col0 * col0 / - ( + - 1 ) AS col0 FROM tab1
----
-23
NULL
10
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT - col1 + + 24 AS col1, CAST ( NULL AS INTEGER ) + - - col0 * col0 / - ( + - 1 ) AS col0 FROM tab1
----
-23
NULL
10
NULL
19
NULL

query I rowsort
SELECT - col0 + 36 FROM tab1 AS cor0
----
-15
-49
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT + 86 DIV + col0 + - col2 FROM tab1 cor0
----
-58
-68
-95

skipif mysql # not compatible
query I rowsort label-3294
SELECT + 86 / + col0 + - col2 FROM tab1 cor0
----
-58
-68
-95

query I rowsort
SELECT + - col2 + col1 + col2 * + 3 * - + 99 FROM tab2 AS cor0
----
-11843
-17217
-6803

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 > + + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 42 * + + col2 + + col1 FROM tab1 cor0
----
-2473
-2809
-4018

query I rowsort
SELECT + - col1 + + - col0 - - - col2 AS col0 FROM tab2 AS cor0
----
-120
-181
-200

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + col0 + col0 + 42 FROM tab0
----
216
236
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT COUNT( * ) + - 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3302
SELECT COUNT ( * ) + - 7 FROM tab2
----
-4

query I rowsort
SELECT col0 * + 20 AS col1 FROM tab2
----
1280
1500
920

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NULL >= ( ( - - 64 ) )
----

query II rowsort
SELECT DISTINCT + - col0 + + + col0 * col0 AS col2, + col0 FROM tab1 AS cor0
----
2550
51
7140
85
8190
91

query I rowsort
SELECT ALL - 84 - + + 24 FROM tab0 AS cor0
----
-108
-108
-108

query I rowsort
SELECT + - ( ( 94 ) ) FROM tab2 cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - 3 + col1, col1 col0 FROM tab2 AS cor0
----
138
77
139
67
94
51

query I rowsort
SELECT DISTINCT + col0 - + - 67 AS col2 FROM tab2 AS cor0
----
113
131
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL 42 * - + COUNT( * ) * - - 87 col1 FROM tab0
----
-10962

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3310
SELECT ALL 42 * - + COUNT ( * ) * - - 87 col1 FROM tab0
----
-10962

query I rowsort
SELECT DISTINCT col2 * + ( + + col2 ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3313
SELECT ALL + SUM( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + SUM ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT - + col1 * 36 AS col2 FROM tab2 AS cor0
----
-1836
-2412
-2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT DISTINCT + col1 DIV 53 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + col1 / 53 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT ALL col0 DIV 98 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL col0 / 98 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * + - 93 AS col1 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - + 24 AS col1 FROM tab2 AS cor0
----
-24

query II rowsort
SELECT DISTINCT + 71 * - + col2, col2 FROM tab2 AS cor0
----
-1633
23
-2840
40
-4118
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col2 + - + col0
----

query I rowsort
SELECT + 87 + - - col0 AS col1 FROM tab0
----
102
174
184

query I rowsort
SELECT ALL + ( + + 35 ) AS col2 FROM tab1 WHERE - + col2 IS NOT NULL
----
35
35
35

query I rowsort
SELECT col2 * 10 * + 34 + + - col1 FROM tab0 AS cor0
----
15899
33659
3379

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 * - + col2 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col2 AS col1, 64 + - 51 * ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE col1 + col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3329
SELECT CAST( NULL AS DECIMAL ) AS col0, 93 col1 FROM tab1 AS cor0
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3329
SELECT CAST ( NULL AS REAL ) AS col0, 93 col1 FROM tab1 AS cor0
----
NULL
93
NULL
93
NULL
93

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col0 * 42 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3332
SELECT DISTINCT - col0 / - col2 - ( + - CAST( NULL AS DECIMAL ) ) + - col1 * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - col0 / - col2 - ( + - CAST ( NULL AS REAL ) ) + - col1 * + col1 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT col2 - col1 AS col0, - 58 + - 22 + + col1 * + col0 AS col2 FROM tab2
----
-28
2266
-37
4848
-9
4945

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT ( 42 ) + + COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT ( 42 ) + + COUNT ( * ) AS col1 FROM tab1
----
45

query I rowsort
SELECT col0 + - - col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) + 18 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) + 18 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL MAX( ALL - + ( - col1 ) ) * + 70 FROM tab1 AS cor0 WHERE ( ( + + 99 ) IS NOT NULL )
----
3290

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL MAX ( ALL - + ( - col1 ) ) * + 70 FROM tab1 AS cor0 WHERE ( ( + + 99 ) IS NOT NULL )
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - COUNT( - ( - 23 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3338
SELECT - COUNT ( - ( - 23 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT - col1 DIV - - 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT - col1 / - - 94 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) > + col2 / + - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 26 * col2 FROM tab0 AS cor0
----
1222
2574
260

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 >= + + col0
----

query I rowsort
SELECT DISTINCT 27 * - + 53 AS col2 FROM tab0 AS cor0
----
-1431

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 IN ( - 67, col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL - 75 * + 4 - col1 + - 60 FROM tab0 AS cor0
----
-361
-381
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT DISTINCT ( - col0 ) * + + col2 + - col0 + CAST( NULL AS SIGNED ) * col2 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT ( - col0 ) * + + col2 + - col0 + CAST ( NULL AS INTEGER ) * col2 * + col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT + 24 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT + 24 / col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - SUM( ALL - 29 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3351
SELECT - SUM ( ALL - 29 ) FROM tab0
----
87

query I rowsort
SELECT 32 * 39 FROM tab2
----
1248
1248
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + COUNT( DISTINCT col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + COUNT ( DISTINCT col0 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT - col0 AS col0, + col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + 92 + + col1 * + + col0 AS col2 FROM tab2
----
2438
5020
5117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + - col0 + col1 col1 FROM tab2
----
-3583
-4979
-5858

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3357
SELECT * FROM tab2 AS cor0 WHERE 73 NOT BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3357
SELECT * FROM tab2 AS cor0 WHERE 73 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 68 * col2 * - ( + col1 ) FROM tab0 AS cor0
----
-14280
-258876
-6732

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT + - col1 DIV col0 * + 56 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT + - col1 / col0 * + 56 / + col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col2 * - - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - 55 AS col1 FROM tab0 AS cor0
----
-142
-152
-70

query I rowsort
SELECT 5 + + - 47 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT col2 * + col0 + - col2 FROM tab1 AS cor0 WHERE - ( + + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3365
SELECT ALL - + col2 + - + col2, + 29 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-118
NULL
-136
NULL
-192
NULL

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL - + col2 + - + col2, + 29 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-118
NULL
-136
NULL
-192
NULL

query I rowsort
SELECT - col0 * + 81 * + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 - - - col0 <> - ( 29 ) * - - col1
----
-396576
-406215
-501228

query I rowsort
SELECT DISTINCT - 21 + col2 * + 98 + - 33 * + col0 + - col1 FROM tab1 AS cor0
----
2951
3593
7690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col1 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col0 AS col1, col0 + + col0 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT COUNT( col2 ) - COUNT( * ) AS col0 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT COUNT ( col2 ) - COUNT ( * ) AS col0 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - MAX( DISTINCT ( + - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3372
SELECT - MAX ( DISTINCT ( + - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 74 DIV 5 AS col0 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3373
SELECT 74 / 5 AS col0 FROM tab2 AS cor0
----
14
14
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT ALL - - 67, COUNT( * ) AS col1 FROM tab1 AS cor0
----
67
3

skipif mysql # not compatible
query II rowsort label-3375
SELECT ALL - - 67, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
67
3

query I rowsort
SELECT ALL + 55 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 31 * - 69 FROM tab2 AS cor0
----
-2139
-2139
-2139

query I rowsort
SELECT 53 FROM tab0 cor0 WHERE NOT + col0 BETWEEN - ( col2 ) * + + col0 + + col2 + + col0 AND - col2
----
53
53
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT + MIN( DISTINCT + 9 ) AS col2, - SUM( - 78 ) FROM tab1 AS cor0
----
9
234

skipif mysql # not compatible
query II rowsort label-3380
SELECT + MIN ( DISTINCT + 9 ) AS col2, - SUM ( - 78 ) FROM tab1 AS cor0
----
9
234

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT ALL + CAST( NULL AS SIGNED ) * - 33 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3382
SELECT ALL + CAST ( NULL AS INTEGER ) * - 33 col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT - ( 8 ) * - - col0, + col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-408
14
-680
5
-728
47

query II rowsort
SELECT col2, - col0 * - + 10 FROM tab2
----
23
460
40
640
58
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL MIN( ALL col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL MIN ( ALL col2 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3388
SELECT + - col1 col2, CAST( - 16 AS SIGNED ) * + col1 + + 10 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 + + col2 AND + + col2 + 63
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3388
SELECT + - col1 col2, CAST ( - 16 AS INTEGER ) * + col1 + + 10 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 + + col2 AND + + col2 + 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + 45
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3390
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 13 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT CAST ( NULL AS REAL ) + - 13 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ( - SUM( + 92 ) ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-3392
SELECT ( - SUM ( + 92 ) ) FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT + 61 + + + 7 * - - 45 * 48 + + SUM( 52 ) FROM tab1 AS cor0
----
15337

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + 61 + + + 7 * - - 45 * 48 + + SUM ( 52 ) FROM tab1 AS cor0
----
15337

query II rowsort
SELECT + 13 AS col2, col0 FROM tab2 cor0
----
13
46
13
64
13
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3395
SELECT DISTINCT + 88 DIV col2 DIV - 17 - - col1 AS col1, 72 FROM tab0 AS cor0
----
1
72
21
72
81
72

skipif mysql # not compatible
query II rowsort label-3395
SELECT DISTINCT + 88 / col2 / - 17 - - col1 AS col1, 72 FROM tab0 AS cor0
----
1
72
21
72
81
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> - + col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL 7 - + + 55 - + col1 * - 37 * + col2 FROM tab2 AS cor0
----
113912
143734
43353

query I rowsort
SELECT col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
225
7569
9409

query I rowsort
SELECT ALL - + 1 * - col1 + col1 + - - ( - col2 ) FROM tab2 AS cor0 WHERE - col0 + + + 65 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 + - + 94 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - - col2 * + 66 - + col2 FROM tab1 AS cor0
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT + col1 * CAST( - + col1 AS SIGNED ) - - col1 AS col0 FROM tab0
----
-420
-6480
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + col1 * CAST ( - + col1 AS INTEGER ) - - col1 AS col0 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT DISTINCT col1 + - col1 * + col2 FROM tab0 WHERE ( - 6 ) BETWEEN + 38 AND NULL
----

query I rowsort
SELECT - 47 * + + col2 AS col2 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT COUNT( * ) * + - 10 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT COUNT ( * ) * + - 10 AS col2 FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT + col2 * + 24 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT + col2 * + 24 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL - CAST( NULL AS SIGNED ) + - 77 FROM tab2 WHERE - 67 BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - CAST ( NULL AS INTEGER ) + - 77 FROM tab2 WHERE - 67 BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col1 * + 36 col1 FROM tab0
----
15876
236196
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT DISTINCT + 68 col0, COUNT( * ) FROM tab0 AS cor0
----
68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3411
SELECT DISTINCT + 68 col0, COUNT ( * ) FROM tab0 AS cor0
----
68
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT col1 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col2 * - + col1 * + col1 + + - col0 FROM tab1 AS cor0
----
1390
150121
18765

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - 94 ) IS NOT NULL
----

query I rowsort
SELECT + 92 * + - 3 AS col0 FROM tab0 AS cor0
----
-276
-276
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3417
SELECT + CAST( NULL AS SIGNED ) * ( - - col2 ) / + - col0 * + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3417
SELECT + CAST ( NULL AS INTEGER ) * ( - - col2 ) / + - col0 * + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - + ( col2 ) AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 4 ) + col1 * + + col1 * + - col0 + - - col0 col0 FROM tab1
----
-200924
-2036
-9941

query I rowsort
SELECT col1 * + + col0 + + - col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT col1 + - col1 + + - col1 + - col2 * - - col0 + + - 71 * + + col2 FROM tab1
----
-11063
-11726
-9209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + col0 col1 FROM tab0
----
184
293
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3423
SELECT 11 / - - col0 / + - CAST( NULL AS DECIMAL ) + + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3423
SELECT 11 / - - col0 / + - CAST ( NULL AS REAL ) + + col0 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col2 IN ( - 21, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT ALL - col0 - 35 DIV + col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - col0 - 35 / + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + COUNT( * ) + 45 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + COUNT ( * ) + 45 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3428
SELECT DISTINCT - CAST( - - col2 AS DECIMAL ) AS col2 FROM tab2 WHERE NOT + 46 + - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - CAST ( - - col2 AS REAL ) AS col2 FROM tab2 WHERE NOT + 46 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - COUNT( - 32 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3429
SELECT - COUNT ( - 32 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL - + col1 + - col0 FROM tab1 WHERE NOT col0 + + col0 * + col0 * 2 * - 90 IS NULL
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) <> + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + + 92 ) - + + 85 + col0 + + - col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-5513
-6341
-8917

query I rowsort
SELECT ALL + - 20 * + 90 + col2 FROM tab2 AS cor0
----
-1742
-1760
-1777

query II rowsort
SELECT + col1 + ( + 76 ), - col1 AS col2 FROM tab1 AS cor0
----
123
-47
81
-5
90
-14

query I rowsort
SELECT ALL - - col0 + - col1 + - col1 * col2 * - 99 FROM tab2 AS cor0
----
116122
304907
384722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 * col2 + 33 + + col2 col0 FROM tab1 AS cor0
----
-4215
-4863
-6879

query I rowsort
SELECT ALL col2 - - + col1 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 * + ( 58 ) FROM tab0 AS cor0
----
-15
4698
-87
1218
-97
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + 6 * 51 AS col0 FROM tab1 WHERE NOT - col0 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + - col0 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 54 * + + ( - col2 ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * 69 AS col2 FROM tab0
----
3243
6831
690

query I rowsort
SELECT ALL col1 * + 79 FROM tab2
----
4029
5293
6083

query II rowsort
SELECT col0 * col1 AS col0, 18 FROM tab1
----
425
18
4277
18
714
18

query I rowsort
SELECT 95 * + col1 * - col2 AS col0 FROM tab1
----
-127680
-28025
-303620

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3447
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 35 + + col0 - col1 + CAST( NULL AS SIGNED ) + + 83
----

skipif mysql # not compatible
query III rowsort label-3447
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 35 + + col0 - col1 + CAST ( NULL AS INTEGER ) + + 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col1 col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3449
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3449
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT ALL - 11 * - - col1 * 13 * - - 35 AS col0 FROM tab0 AS cor0
----
-105105
-405405
-5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 47 col1 FROM tab1 AS cor0
----
2773
3196
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 67 col2, col0 FROM tab2 AS cor0
----
-67
46
-67
64
-67
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT + - ( + COUNT( * ) ) DIV 17 DIV COUNT( * ) + + 52 + - - 0 col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3453
SELECT + - ( + COUNT ( * ) ) / 17 / COUNT ( * ) + + 52 + - - 0 col0 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + COUNT( - 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3454
SELECT + COUNT ( - 28 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 * 14 FROM tab1
----
196
658
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 63 <> NULL
----

query I rowsort
SELECT + + 57 * - col0 AS col1 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT ALL - + col1 * 66 AS col0 FROM tab1 AS cor0
----
-3102
-330
-924

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3459
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + CAST( + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + CAST ( + col1 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - ( - col0 )
----

query I rowsort
SELECT - 26 FROM tab2 WHERE - col1 < col2
----
-26
-26
-26

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL COUNT( DISTINCT + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL COUNT ( DISTINCT + col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3465
SELECT * FROM tab0 WHERE - CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) / - 30 BETWEEN - ( 19 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3465
SELECT * FROM tab0 WHERE - CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) / - 30 BETWEEN - ( 19 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL + CAST( - 80 AS SIGNED ) + + - COUNT( * ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + CAST ( - 80 AS INTEGER ) + + - COUNT ( * ) FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - MAX( ALL - 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3467
SELECT - MAX ( ALL - 5 ) FROM tab0
----
5

query I rowsort
SELECT DISTINCT - ( col2 ) + - col0 - + col2 * - col1 FROM tab2
----
1104
2976
3753

query I rowsort
SELECT + col1 - + 94 * + col1 + - 40 * + + col2 FROM tab1
----
-2825
-5142
-7091

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT - + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT - 67 + COUNT( * ) + + COUNT( * ) * + + MAX( + col1 ) * - + MAX( + 48 ) AS col1 FROM tab2 AS cor0
----
-11152

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - 67 + COUNT ( * ) + + COUNT ( * ) * + + MAX ( + col1 ) * - + MAX ( + 48 ) AS col1 FROM tab2 AS cor0
----
-11152

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col0 AND 24
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3474
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - ( ( CAST( + - col2 AS SIGNED ) ) ) * - col0 + - + 75 >= - col0
----

skipif mysql # not compatible
query III rowsort label-3474
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - ( ( CAST ( + - col2 AS INTEGER ) ) ) * - col0 + - + 75 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL SUM( col2 ) + + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL SUM ( col2 ) + + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - + COUNT( DISTINCT + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - + COUNT ( DISTINCT + col0 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) / + 41 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) / + 41 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + 73 FROM tab1 WHERE NOT - 13 > 38
----
132
141
169

query I rowsort
SELECT + col0 * 53 FROM tab2 WHERE + col0 + 33 IS NOT NULL
----
2438
3392
3975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT ALL 12 DIV MIN( DISTINCT col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL 12 / MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - 97
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT col0 DIV - col1 + + col0 AS col2 FROM tab2
----
46
64
74

skipif mysql # not compatible
query I rowsort label-3484
SELECT col0 / - col1 + + col0 AS col2 FROM tab2
----
46
64
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT col1 DIV 44 + - 74 * col2 FROM tab1
----
-4366
-5031
-7104

skipif mysql # not compatible
query I rowsort label-3485
SELECT col1 / 44 + - 74 * col2 FROM tab1
----
-4366
-5031
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - MAX( DISTINCT + 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3486
SELECT - MAX ( DISTINCT + 68 ) FROM tab0
----
-68

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab1 WHERE NOT ( + 36 ) IN ( + col2 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT col1 + - CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1 WHERE NOT ( + col2 - 61 / col2 ) >= - col2
----

skipif mysql # not compatible
query I rowsort label-3488
SELECT col1 + - CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1 WHERE NOT ( + col2 - 61 / col2 ) >= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - SUM( DISTINCT + col1 ) + MIN( col2 ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-3490
SELECT - SUM ( DISTINCT + col1 ) + MIN ( col2 ) AS col1 FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT + CAST( NULL AS SIGNED ) + + col2 * 9 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT + CAST ( NULL AS INTEGER ) + + col2 * 9 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT - COUNT( * ) + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE col0 * + col2 NOT BETWEEN NULL AND ( 73 * + col1 - 79 )
----
3

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE col0 * + col2 NOT BETWEEN NULL AND ( 73 * + col1 - 79 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + 61 NOT BETWEEN NULL AND ( 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - col1 + 14 FROM tab2
----
-1159
-3066
-3872

query I rowsort
SELECT 59 + - col1 FROM tab1
----
12
45
54

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 WHERE ( + col1 + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 28 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 61 )
----

query I rowsort
SELECT + ( 35 ) FROM tab2
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT + 47 DIV - col1 + - 57 AS col1 FROM tab0
----
-104
-57
-59

skipif mysql # not compatible
query I rowsort label-3504
SELECT + 47 / - col1 + - 57 AS col1 FROM tab0
----
-104
-57
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( 83 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( 83 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT MIN( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3506
SELECT MIN ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT - COUNT( ALL + 16 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3507
SELECT - COUNT ( ALL + 16 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / + col1 NOT BETWEEN col0 AND ( + 51 )
----

query I rowsort
SELECT - 92 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * 9 = NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT SUM( ( 88 ) ) col0 FROM tab1
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT SUM ( ( 88 ) ) col0 FROM tab1
----
264

query I rowsort
SELECT ( + 8 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - col1 * col1 + - col2 AS col1 FROM tab1 cor0
----
-2277
-292
-84

query I rowsort
SELECT ALL - col1 * - 78 FROM tab0 AS cor0
----
1638
6318
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3516
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3516
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 90 * - col0 AS col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

query I rowsort
SELECT ( 38 ) + + col2 FROM tab1 cor0
----
106
134
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 25 col2 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT + - col1 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-96
354
6546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 + col1 col1 FROM tab2 AS cor0
----
132
148
158

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 29 * 91 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT - CAST( 18 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1206
-1386
-918

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - CAST ( 18 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT col2 * - 35 + + 15 AS col1 FROM tab2
----
-1385
-2015
-790

query I rowsort
SELECT + 39 + + + col1 * + 70 AS col0 FROM tab1
----
1019
3329
389

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT + ( + col1 ) * + col0 + - col2 FROM tab2
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT COUNT( * ) col2 FROM tab0 WHERE + 53 NOT IN ( - 2 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT COUNT ( * ) col2 FROM tab0 WHERE + 53 NOT IN ( - 2 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col0 NOT IN ( + col1 + 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT DISTINCT 58 DIV - ( - 8 ) col1 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3530
SELECT DISTINCT 58 / - ( - 8 ) col1 FROM tab0
----
7

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3532
SELECT DISTINCT + 90 + SUM( col1 ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + 90 + SUM ( col1 ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE 19 BETWEEN + col1 * - col0 AND col0
----
14
47
5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE + 96 * col0 IS NULL AND ( col1 * + 43 ) IN ( 73 + 92 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < 12
----

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3538
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT 3 * + col1 + + col1 FROM tab2 AS cor0
----
204
268
308

query I rowsort
SELECT 13 FROM tab1 AS cor0 WHERE NOT col2 + + 67 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT + MIN( ALL - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 29 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-73

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3546
SELECT + ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT - 23 AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-3547
SELECT - 23 AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-23
3

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + + col2 >= - - col0 / + 84
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + 30 - col0 )
----

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT - ( + CAST( NULL AS SIGNED ) ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT - ( + CAST ( NULL AS INTEGER ) ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 81 AS col2 FROM tab2 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 - - 94 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - col1 / - 67 + + col0
----

query I rowsort
SELECT DISTINCT - + 83 AS col1 FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + - 30 + - COUNT( * ) * + + ( - 90 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + - 30 + - COUNT ( * ) * + + ( - 90 ) FROM tab2 AS cor0
----
240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - MAX( ALL + - 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3557
SELECT - MAX ( ALL + - 62 ) FROM tab2 AS cor0
----
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 / - col0 + - col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, col0 * - 66 FROM tab1
----
14
-3366
47
-6006
5
-5610

query I rowsort
SELECT DISTINCT ( + col1 ) + + ( col2 ) - + col0 * col2 AS col0 FROM tab0
----
-577
-839
-9503

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 2 + + SUM( - col2 ) FROM tab1 AS cor0
----
-221

skipif mysql # not compatible
query I rowsort label-3561
SELECT 2 + + SUM ( - col2 ) FROM tab1 AS cor0
----
-221

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 77 = + + col2
----

query I rowsort
SELECT - - ( col0 ) * - col0 + 81 * - col0 + col1 AS col2 FROM tab2 cor0
----
-11633
-5791
-9203

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + COUNT( * ) * + 15 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + COUNT ( * ) * + 15 FROM tab2 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - col2 ) ) NOT BETWEEN col2 * col2 + col2 * + 11 AND ( - col1 * 72 )
----

query I rowsort
SELECT DISTINCT - - col2 + + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT ALL + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col2 * + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col2 * + col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) * col2 FROM tab1 AS cor0 WHERE col1 BETWEEN + + ( - 60 ) * - col0 AND NULL
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( 58 ) + - - 97 NOT BETWEEN + col0 * - 70 + col1 * col2 AND - col0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL + col2 DIV + 4 AS col0 FROM tab0 AS cor0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + col2 / + 4 AS col0 FROM tab0 AS cor0
----
11
2
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + COUNT( ALL - 80 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3571
SELECT + COUNT ( ALL - 80 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3572
SELECT * FROM tab0 WHERE - CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3572
SELECT * FROM tab0 WHERE - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - + col0 + - + col2 FROM tab2
----
-120
-181
-200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col1 col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col0 AS col1, + col1 * col0 * + ( - col0 ) + - ( + col1 ) col2 FROM tab0
----
-66
-158970
-96
-9410
66
-18306

query II rowsort
SELECT DISTINCT + + 46 + - + col0, col2 FROM tab0 AS cor0
----
-41
10
-51
99
31
47

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-18

query I rowsort
SELECT DISTINCT + - col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col1, - col1 - - col0 + + + 89 + + col2 + + 95 / 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT MAX( + + 4 ) * 46 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT MAX ( + + 4 ) * 46 FROM tab0
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT ALL - col2 * col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
2
253

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - col2 * col1 / - col0 AS col1 FROM tab0 AS cor0
----
1
2
253

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT - COUNT( 57 ) * - 40 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT DISTINCT - COUNT ( 57 ) * - 40 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - - col2 NOT IN ( - 30, + 86 - + 62 + col0 + - ( col0 ) * col2 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 - + - ( + + col0 ) < - 12 * ( 67 - col0 ) )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT + 97 DIV - 68 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 97 / - 68 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3587
SELECT 8 DIV + - COUNT( * ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3587
SELECT 8 / + - COUNT ( * ) AS col0 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + MIN( DISTINCT + + 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3588
SELECT + MIN ( DISTINCT + + 20 ) FROM tab0
----
20

query II rowsort
SELECT + 36, col0 * - col2 AS col1 FROM tab0
----
36
-705
36
-870
36
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + SUM( col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT + SUM ( col1 ) col0 FROM tab2
----
195

query II rowsort
SELECT ALL + col2 AS col1, 58 FROM tab2
----
23
58
40
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - COUNT( * ) * + SUM( DISTINCT col0 ) + + - 85 AS col1 FROM tab2
----
-640

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT col0 ) + + - 85 AS col1 FROM tab2
----
-640

query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab0 WHERE NOT ( col1 ) * col2 >= ( - col1 + - - col1 * - col1 + - col1 * + 53 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) <> - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3595
SELECT + CAST( + - SUM( ALL - col0 ) AS SIGNED ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3595
SELECT + CAST ( + - SUM ( ALL - col0 ) AS INTEGER ) AS col1 FROM tab2
----
185

query II rowsort
SELECT 10 * - - col1, col1 FROM tab1
----
140
14
470
47
50
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3597
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL - 86 * + + col1 col1 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) * CAST( - + col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT ALL - 86 * + + col1 col1 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) * CAST ( - + col1 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * col2 + + col2 + - 34 + + + col1 FROM tab2 AS cor0
----
-1018
-2477
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT 55 - + MIN( - 97 ) FROM tab1 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-3600
SELECT 55 - + MIN ( - 97 ) FROM tab1 AS cor0
----
152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 31
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT + ( + ( - - ( - COUNT( * ) ) ) ) + + 87 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + ( + ( - - ( - COUNT ( * ) ) ) ) + + 87 FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 * CAST( col1 AS SIGNED ) * + 68 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 * CAST ( col1 AS INTEGER ) * + 68 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col2 + - - col1 + + 82 FROM tab0 AS cor0
----
113
182
210

query I rowsort
SELECT DISTINCT 84 - - + 14 FROM tab0 AS cor0
----
98

query I rowsort
SELECT ALL + 66 - + 98 FROM tab2 cor0
----
-32
-32
-32

query I rowsort
SELECT + - col2 + - 27 - col1 * - 71 AS col0 FROM tab1 cor0
----
269
3242
871

onlyif mysql # DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT - col1 AS col2, + col2 DIV - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-1
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT - col1 AS col2, + col2 / - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-1
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL MIN( + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL MIN ( + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT ( + 31 * + col2 * + col2 + - 25 + - - col1 * 45 ) < col1
----
14
47
5

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab0 WHERE NULL < + 12
----

query I rowsort
SELECT DISTINCT col1 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT ALL - + CAST( + 26 AS SIGNED ) * + SUM( - 19 ) AS col0 FROM tab1 AS cor0
----
1482

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - + CAST ( + 26 AS INTEGER ) * + SUM ( - 19 ) AS col0 FROM tab1 AS cor0
----
1482

query I rowsort
SELECT DISTINCT ( + col2 ) * + - 42 AS col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT DISTINCT 89 col0, SUM( DISTINCT col1 ) FROM tab0
----
89
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3618
SELECT DISTINCT 89 col0, SUM ( DISTINCT col1 ) FROM tab0
----
89
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - SUM( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT + col1 = - - col2
----
-66

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - SUM ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT + col1 = - - col2
----
-66

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * + ( - 80 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL - CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * 53 col0, col1 FROM tab2 AS cor0
----
-2438
51
-3392
77
-3975
67

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col1 AS col0, - 8 AS col1 FROM tab1 AS cor0
----
-14
-8
-47
-8
-5
-8

query I rowsort
SELECT + + 58 * - col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

query II rowsort
SELECT + + col2 AS col2, - 28 AS col1 FROM tab0 cor0
----
10
-28
47
-28
99
-28

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 WHERE - col2 > - col0
----
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT ALL - - ( - + col0 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - - ( - + col0 ) / - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3632
SELECT DISTINCT CAST( NULL AS SIGNED ), - col0 * + ( + 88 ) * + col1 + + col0 + + CAST( + col0 AS SIGNED ) * + col2 FROM tab1 WHERE 71 NOT BETWEEN - col2 * - col1 / - col2 AND NULL
----

skipif mysql # not compatible
query II rowsort label-3632
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col0 * + ( + 88 ) * + col1 + + col0 + + CAST ( + col0 AS INTEGER ) * + col2 FROM tab1 WHERE 71 NOT BETWEEN - col2 * - col1 / - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 >= - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 NOT BETWEEN + 20 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT col2 + - col0 DIV ( - col1 ) AS col2 FROM tab2 WHERE NOT + 53 IN ( col2, col1 )
----
23
40
59

skipif mysql # not compatible
query I rowsort label-3635
SELECT col2 + - col0 / ( - col1 ) AS col2 FROM tab2 WHERE NOT + 53 IN ( col2, col1 )
----
23
40
59

query II rowsort
SELECT ALL 33 * - - col1 * ( 15 ) + - col2, col1 FROM tab2
----
25222
51
33107
67
38075
77

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3638
SELECT + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * - + 22 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1122
-1870
-2002

query I rowsort
SELECT DISTINCT - + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + AVG ( - - col1 ) AS col0 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + COUNT( * ) + + - 2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
7

skipif mysql # not compatible
query I rowsort label-3643
SELECT + COUNT ( * ) + + - 2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
7

query I rowsort
SELECT col2 + 54 FROM tab2
----
112
77
94

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT - col1 / + 29 - - + col0 + - 95 * + col0 * + - 99 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT MAX( - 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3646
SELECT MAX ( - 5 ) AS col2 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + MIN( + 62 ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3647
SELECT + MIN ( + 62 ) AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT - COUNT( * ) + - SUM( + col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - COUNT ( * ) + - SUM ( + col2 ) FROM tab2 AS cor0
----
-124

query I rowsort
SELECT + 66 * - + col2 FROM tab0 cor0
----
-3102
-6534
-660

query I rowsort
SELECT DISTINCT - col0 * - - 1 + + 30 AS col1 FROM tab2 AS cor0
----
-16
-34
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 IN ( - - 38, 41 )
----

query II rowsort
SELECT - + col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <> - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 79 * + 25 FROM tab0 WHERE + col1 - - col0 NOT BETWEEN + 2 AND - + ( + col2 ) + + col0
----
195525
19750
92825

query I rowsort
SELECT DISTINCT + col2 - - 76 FROM tab2
----
116
134
99

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - - - col0 col1, col0 AS col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT + COUNT( * ) * ( + + 77 ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + COUNT ( * ) * ( + + 77 ) FROM tab0
----
231

query I rowsort
SELECT ALL 28 * + 83 AS col1 FROM tab0
----
2324
2324
2324

query I rowsort
SELECT DISTINCT col1 * - 93 AS col0 FROM tab0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT 16 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT 16 / + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT + MAX( ALL + col0 ) DIV + + 23 + - 69 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3666
SELECT + MAX ( ALL + col0 ) / + + 23 + - 69 FROM tab2
----
-66

query I rowsort
SELECT - col1 * col2 - col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL - - ( MIN( - col0 ) ) col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3668
SELECT ALL - - ( MIN ( - col0 ) ) col2 FROM tab2 cor0
----
-75

query II rowsort
SELECT 63 * - + col0 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-3213
14
-5355
5
-5733
47

query I rowsort
SELECT ALL + 91 * - 29 FROM tab1
----
-2639
-2639
-2639

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 AS col1, 3 + col0 col0 FROM tab1
----
91
54
91
88
91
94

query I rowsort
SELECT 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT COUNT( * ) * 28 AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT COUNT ( * ) * 28 AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + SUM( DISTINCT + - 28 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + SUM ( DISTINCT + - 28 ) FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * ( + col0 ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * ( + col0 ) IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= ( NULL )
----

query I rowsort
SELECT ALL + 31 * - 74 * - 58 FROM tab1 AS cor0
----
133052
133052
133052

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT + + ( col0 ) DIV 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT + + ( col0 ) / 84 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT 7 * 92 + + - COUNT( * ) AS col0 FROM tab2
----
641

skipif mysql # not compatible
query I rowsort label-3681
SELECT 7 * 92 + + - COUNT ( * ) AS col0 FROM tab2
----
641

query I rowsort
SELECT DISTINCT col1 * + col0 + + 52 - + ( - 41 ) FROM tab2
----
2439
5021
5118

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + COUNT( ALL col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + COUNT ( ALL col1 ) FROM tab2
----
3

query I rowsort
SELECT - col1 + - ( col0 ) * + 38 FROM tab1
----
-1952
-3235
-3505

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / + col0 + + - col2 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL CAST( - col2 AS SIGNED ) + + col1 col0 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3686
SELECT ALL CAST ( - col2 AS INTEGER ) + + col1 col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + ( + col1 ) + + + col0 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT + col2 - - ( 10 ) AS col2 FROM tab2 AS cor0 WHERE col0 < + col2
----

query I rowsort
SELECT ALL col2 - 41 AS col0 FROM tab2 AS cor0
----
-1
-18
17

query II rowsort
SELECT 99 + col0 AS col1, + 15 FROM tab0 cor0
----
114
15
186
15
196
15

query I rowsort
SELECT DISTINCT + col2 + - - ( - - col0 ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT 37 * 54 * + 25 + - - col2 FROM tab1 AS cor0
----
50009
50018
50046

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT + + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT + + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT DISTINCT + col1 - + - 40 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + col1 - + - 40 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT CAST( 87 AS SIGNED ) FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-3695
SELECT CAST ( 87 AS INTEGER ) FROM tab1
----
87
87
87

query I rowsort
SELECT ALL + 59 * + + col0 AS col0 FROM tab2
----
2714
3776
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL col1 * - - 67 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL = - col0
----

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL col1 * - - 67 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL = - col0
----

query II rowsort
SELECT col0, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT SUM( DISTINCT - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3699
SELECT SUM ( DISTINCT - + col0 ) FROM tab1
----
-227

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + MIN( ALL - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3702
SELECT col2 / + CAST( NULL AS SIGNED ) / - col1, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3702
SELECT col2 / + CAST ( NULL AS INTEGER ) / - col1, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT - 44, + col1 FROM tab0 AS cor0
----
-44
1
-44
21
-44
81

query I rowsort
SELECT ( + + 23 ) FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT ALL - 5 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 38 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - MAX( DISTINCT - - col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT - MAX ( DISTINCT - - col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 32 * - col1 FROM tab0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL MAX( + 2 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL MAX ( + 2 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT + - 72 + - + 28 AS col2 FROM tab2 AS cor0
----
-100
-100
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT + col0 DIV col1 + + col1 AS col1 FROM tab1 AS cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-3712
SELECT + col0 / col1 + + col1 AS col1 FROM tab1 AS cor0
----
17
22
48

query II rowsort
SELECT DISTINCT 44 * + + 7 AS col0, - col0 FROM tab1 AS cor0
----
308
-51
308
-85
308
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL COUNT( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 26 * 48 - col0 FROM tab1 cor0
----
1157
1163
1197

onlyif mysql # DIV for integer division: 
query II rowsort label-3716
SELECT - - 64 DIV + + col0 AS col1, col2 * - - ( 57 ) FROM tab1 AS cor0
----
0
3363
0
3876
1
5472

skipif mysql # not compatible
query II rowsort label-3716
SELECT - - 64 / + + col0 AS col1, col2 * - - ( 57 ) FROM tab1 AS cor0
----
0
3363
0
3876
1
5472

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3717
SELECT DISTINCT + CAST( + SUM( - col2 ) AS DECIMAL ) / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + CAST ( + SUM ( - col2 ) AS REAL ) / + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - + 40 AS col1 FROM tab0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT col0 DIV - + 11 AS col1 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT col0 / - + 11 AS col1 FROM tab2
----
-4
-5
-6

query I rowsort
SELECT - 66 FROM tab0 WHERE NOT NULL <> NULL OR NOT ( + - col1 ) IS NULL
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 58 + + 2 FROM tab0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT DISTINCT - 90 * 27 * + + col1 + + + 24 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-123906
-162786
-187086

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT - 90 * 27 * + + col1 + + + 24 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-123906
-162786
-187086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT DISTINCT 18 + + CAST( - - 22 AS SIGNED ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT 18 + + CAST ( - - 22 AS INTEGER ) AS col2 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT 60 / 98 * + CAST( NULL AS SIGNED ) + - - col2 + - + col1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3724
SELECT DISTINCT 60 / 98 * + CAST ( NULL AS INTEGER ) + - - col2 + - + col1 col0 FROM tab1
----
NULL

query II rowsort
SELECT + 47 AS col1, - col1 FROM tab1
----
47
-14
47
-47
47
-5

query I rowsort
SELECT col2 + 67 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 48 FROM tab2 AS cor0
----
-19
-29
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT - 75 DIV 24 + + col1 * col1 * - + 98 + 25 FROM tab1 cor0
----
-19186
-216460
-2428

skipif mysql # not compatible
query I rowsort label-3728
SELECT - 75 / 24 + + col1 * col1 * - + 98 + 25 FROM tab1 cor0
----
-19186
-216460
-2428

query I rowsort
SELECT DISTINCT + col0 - - 88 AS col2 FROM tab1 AS cor0
----
139
173
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT 82 + CAST( - - 23 AS SIGNED ) AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT 82 + CAST ( - - 23 AS INTEGER ) AS col2 FROM tab0
----
105

query I rowsort
SELECT + - 13 * - + col1 AS col0 FROM tab0 AS cor0
----
1053
13
273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3733
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - ( + - 40 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) > + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - 9 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - 9 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - - col1 AS col0, ( - 88 ) AS col2 FROM tab0 AS cor0
----
1
-88
21
-88
81
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL SUM( DISTINCT 30 ) col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT ALL SUM ( DISTINCT 30 ) col1 FROM tab2 cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + ( - col2 ) * col0 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, col0 col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL - + 98 AS col1, - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-98
-46
-98
-64
-98
-75

query I rowsort
SELECT ALL col0 * - - ( - + col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - ( - SUM( 79 ) ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - ( - SUM ( 79 ) ) FROM tab0
----
237

query I rowsort
SELECT col1 * col0 + - + col1 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ( ( + - COUNT( ALL - 17 ) ) ) * 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-3745
SELECT ( ( + - COUNT ( ALL - 17 ) ) ) * 62 FROM tab2
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT - COUNT( - col0 ) AS col0, + COUNT( * ) col1 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3746
SELECT - COUNT ( - col0 ) AS col0, + COUNT ( * ) col1 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 ) / col0 * - col1 / + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + 1 * - - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 1 * - - COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT + + 48 AS col2 FROM tab0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT COUNT( * ) DIV MIN( - 35 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT COUNT ( * ) / MIN ( - 35 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 71 ) AS col2 FROM tab1 cor0
----
-71

query I rowsort
SELECT + 74 * + 94 AS col0 FROM tab1
----
6956
6956
6956

query I rowsort
SELECT DISTINCT 97 + - - 72 FROM tab1 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + ( + 93 ) * + + COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
837

skipif mysql # not compatible
query I rowsort label-3756
SELECT + ( + 93 ) * + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
837

query I rowsort
SELECT ALL col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL 60 AS col2 FROM tab0 cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 98 ) - + ( - col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2, + col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT - 1 col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) > col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3761
SELECT - 1 col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) > col1
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + + - col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col1 + + + 86 AS col1 FROM tab0 AS cor0
----
107
167
87

query I rowsort
SELECT ALL 13 * col2 AS col0 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + col1 * + col0 + + - col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT 14 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3769
SELECT 14 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT 46 + - + col2 + + col2 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT + 64 * - col1 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3771
SELECT DISTINCT + 64 * - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3772
SELECT CAST( NULL AS SIGNED ) + + col0, col1 * ( - col0 ) AS col0 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-3772
SELECT CAST ( NULL AS INTEGER ) + + col0, col1 * ( - col0 ) AS col0 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT ALL col1 + - col0 + - col2 - - - col2 * 95 DIV - - col2 FROM tab0
----
-171
-290
-76

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL col1 + - col0 + - col2 - - - col2 * 95 / - - col2 FROM tab0
----
-171
-290
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3774
SELECT ALL + CAST( col1 AS SIGNED ) + col1 + + col1 AS col0, col2 * + col1 FROM tab2 AS cor0
----
153
1173
201
3886
231
3080

skipif mysql # not compatible
query II rowsort label-3774
SELECT ALL + CAST ( col1 AS INTEGER ) + col1 + + col1 AS col0, col2 * + col1 FROM tab2 AS cor0
----
153
1173
201
3886
231
3080

query I rowsort
SELECT + ( + ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 + + - 92 * 76 FROM tab0 AS cor0
----
-6911
-6971
-6991

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT - - col2 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - col2 / + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL - ( - ( - 6 ) ) DIV col0 * + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - ( - ( - 6 ) ) / col0 * + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - 10 ) AS col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT 56 AS col0, - 40 AS col1 FROM tab2 AS cor0
----
56
-40
56
-40
56
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT MAX( - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3781
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 + + col0 IN ( + + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col0 AS col0, col1 + 61 AS col0 FROM tab1 AS cor0
----
-51
75
-85
66
-91
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - MIN( DISTINCT - - 88 ) AS col1 FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3784
SELECT - MIN ( DISTINCT - - 88 ) AS col1 FROM tab1 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3785
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT 0 <= - col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT DISTINCT SUM( DISTINCT 27 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT SUM ( DISTINCT 27 ) FROM tab1
----
27

query II rowsort
SELECT col2 AS col2, - 85 AS col0 FROM tab1
----
59
-85
68
-85
96
-85

query II rowsort
SELECT DISTINCT + col2, - col1 * 51 * + - ( - col2 ) * - - col1 AS col1 FROM tab1
----
59
-75225
68
-7660812
96
-959616

query II rowsort
SELECT DISTINCT - 46 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
-46
-1
-46
-21
-46
-81

query I rowsort
SELECT 82 * - 40 FROM tab2 AS cor0
----
-3280
-3280
-3280

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT DISTINCT - CAST( + 48 AS SIGNED ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - CAST ( + 48 AS INTEGER ) FROM tab1 cor0
----
-48

query I rowsort
SELECT ALL + 33 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL 37 + + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL 37 + + COUNT ( * ) FROM tab1
----
40

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col1 NOT BETWEEN - col1 * ( - 57 ) AND - 30
----
-14
-47
-5

query I rowsort
SELECT ALL + 24 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + 95 + + col1 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT DISTINCT + col1 + - - 61 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - - 14 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - - 14 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT col0 / col1 FROM tab0 cor0 WHERE col0 NOT BETWEEN - col2 AND - col1 * + - col0 + + - ( - + 27 )
----

query I rowsort
SELECT - col1 * + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 46 = ( - 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 91 * col1 FROM tab1
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + - 71 col1 FROM tab1
----
130
139
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - 71 - - - ( - COUNT( * ) ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 71 - - - ( - COUNT ( * ) ) FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + COUNT( * ) + + - 57 AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3807
SELECT + COUNT ( * ) + + - 57 AS col2 FROM tab2
----
-54

query I rowsort
SELECT + + col1 + + col0 * + + col2 + + ( - 43 ) FROM tab0 cor0
----
743
848
9561

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - - COUNT( + 5 ) * COUNT( * ) * 52 FROM tab1 AS cor0 WHERE + 59 * - - col2 IS NOT NULL
----
468

skipif mysql # not compatible
query I rowsort label-3809
SELECT - - COUNT ( + 5 ) * COUNT ( * ) * 52 FROM tab1 AS cor0 WHERE + 59 * - - col2 IS NOT NULL
----
468

query I rowsort
SELECT + - col0 + + 22 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT + + 79 * - + 52 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-4111

skipif mysql # not compatible
query I rowsort label-3811
SELECT + + 79 * - + 52 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-4111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT DISTINCT 7 - + 44 DIV + - COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT 7 - + 44 / + - COUNT ( * ) FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT COUNT( * ) - + 71 AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT COUNT ( * ) - + 71 AS col0 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT - MIN( + col2 ) * COUNT( * ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - MIN ( + col2 ) * COUNT ( * ) AS col2 FROM tab0
----
-30

query I rowsort
SELECT - 55 * 43 AS col0 FROM tab0
----
-2365
-2365
-2365

query I rowsort
SELECT col1 * + + 71 FROM tab2
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - MIN( + - 86 ) AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - MIN ( + - 86 ) AS col0 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT COUNT( * ) * + COUNT( * ) col0, + 79 FROM tab0 cor0
----
9
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3818
SELECT COUNT ( * ) * + COUNT ( * ) col0, + 79 FROM tab0 cor0
----
9
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT DISTINCT - 1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) >= + + col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) >= + + col2 * - col1
----

query I rowsort
SELECT col0 + + + 24 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + MIN( + 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3821
SELECT + MIN ( + 29 ) FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COUNT( DISTINCT - + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( DISTINCT - + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + SUM( DISTINCT - ( - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + SUM ( DISTINCT - ( - col0 ) ) FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 WHERE NULL >= 48 + - 95 + - - 21 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE + + col1 IS NULL
----
0

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT DISTINCT 39 + - + col2, + col0 AS col2 FROM tab2 AS cor0
----
-1
64
-19
75
16
46

query II rowsort
SELECT DISTINCT + + col0 AS col2, col2 + + + col1 AS col0 FROM tab1 cor0
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - - MIN( + col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3829
SELECT - - MIN ( + col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
49

query II rowsort
SELECT DISTINCT col0 AS col0, - ( col0 ) AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - 33 + + + col0 AS col2 FROM tab2
----
13
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - SUM( ALL col2 ) + COUNT( * ) AS col0 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-3832
SELECT - SUM ( ALL col2 ) + COUNT ( * ) AS col0 FROM tab2
----
-118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3833
SELECT + CAST( - col1 AS SIGNED ) + + 67 DIV 43 * + col1 AS col2, ( - 6 ) AS col0 FROM tab0
----
0
-6
0
-6
0
-6

skipif mysql # not compatible
query II rowsort label-3833
SELECT + CAST ( - col1 AS INTEGER ) + + 67 / 43 * + col1 AS col2, ( - 6 ) AS col0 FROM tab0
----
0
-6
0
-6
0
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT + col0 + - col2 * + col2 * col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + col0 + - col2 * + col2 * col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + MAX( + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + MAX ( + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + MIN( DISTINCT + col2 ) col2 FROM tab2 WHERE NOT - 61 + - - 51 NOT BETWEEN + col2 AND - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3837
SELECT DISTINCT + MIN ( DISTINCT + col2 ) col2 FROM tab2 WHERE NOT - 61 + - - 51 NOT BETWEEN + col2 AND - col2
----
NULL

query I rowsort
SELECT ALL - col1 * 51 - + col1 + - col2 + - col2 - + col2 * col0 * col0 * - col0 FROM tab2 AS cor0
----
10481676
2236030
24465150

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - COUNT( * ) * + 24 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-216

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - COUNT ( * ) * + 24 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-216

query I rowsort
SELECT - 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - + 77 + - 67 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3676328d75056be335dcb8cc110835b4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT ALL + + MIN( - + 72 ) DIV 47 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + + MIN ( - + 72 ) / 47 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT - - COUNT( * ) * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3843
SELECT - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT + + CAST( + + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3844
SELECT + + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = col2 * - + 13 + 84
----

query I rowsort
SELECT DISTINCT col1 * + + 39 FROM tab2
----
1989
2613
3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT ALL COUNT( * ) DIV 1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL COUNT ( * ) / 1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3848
SELECT * FROM tab0 WHERE NOT + 16 / + col0 * - CAST( 84 AS SIGNED ) * - 58 * - + col0 NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3848
SELECT * FROM tab0 WHERE NOT + 16 / + col0 * - CAST ( 84 AS INTEGER ) * - 58 * - + col0 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3849
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND - + col2 + 1 + 60
----

skipif mysql # not compatible
query III rowsort label-3849
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - + col2 + 1 + 60
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT + SUM( ALL + + 44 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + SUM ( ALL + + 44 ) FROM tab0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + col0 DIV + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3852
SELECT + col0 / + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL + + 87 AS col2 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + 66 * - - COUNT( * ) - + 34 + + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 66 * - - COUNT ( * ) - + 34 + + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
155

query I rowsort
SELECT + - col1 + - col1 AS col1 FROM tab1 WHERE - col1 / col1 + + + col0 <= NULL
----

query I rowsort
SELECT - + 26 AS col1 FROM tab2 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col2 * - col2 col0 FROM tab0 AS cor0
----
-132540
-588060
-6000

query I rowsort
SELECT ALL + 25 FROM tab1 cor0 WHERE + col1 / + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - col2 col1 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * col0 - + col1, col1 * - + 93 col2 FROM tab0 AS cor0
----
1134
-7533
1806
-1953
96
-93

query II rowsort
SELECT ALL + col0 AS col2, 79 FROM tab2 AS cor0
----
46
79
64
79
75
79

query I rowsort
SELECT - 54 * col2 + + 54 FROM tab1 AS cor0 WHERE NULL <> + 21
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT COUNT( + - 88 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3864
SELECT COUNT ( + - 88 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 - + ( - ( + 3 ) ) FROM tab1
----
17
50
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT + CAST( col0 AS SIGNED ) - - + 65 AS col0 FROM tab0
----
152
162
80

skipif mysql # not compatible
query I rowsort label-3866
SELECT + CAST ( col0 AS INTEGER ) - - + 65 AS col0 FROM tab0
----
152
162
80

query I rowsort
SELECT + 84 - col0 FROM tab0
----
-13
-3
69

query III rowsort
SELECT * FROM tab2 WHERE 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col0 + - col2 AS col2 FROM tab1
----
2505
7166
8213

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT 65 * + col2 * + col1 * - col2 DIV + col2 + - 57 FROM tab0
----
-13707
-247512
-6492

skipif mysql # not compatible
query I rowsort label-3870
SELECT 65 * + col2 * + col1 * - col2 / + col2 + - 57 FROM tab0
----
-13707
-247512
-6492

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 >= col0 + - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3873
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 25 AS SIGNED ) BETWEEN ( - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3873
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 25 AS INTEGER ) BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 cor0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * 44 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col2 FROM tab2 cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL + + CAST( - CAST( - CAST( - + col2 AS SIGNED ) AS SIGNED ) AS SIGNED ) * - 69 FROM tab0 AS cor0
----
3243
6831
690

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + + CAST ( - CAST ( - CAST ( - + col2 AS INTEGER ) AS INTEGER ) AS INTEGER ) * - 69 FROM tab0 AS cor0
----
3243
6831
690

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 32 NOT BETWEEN col0 AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT + 61 DIV + ( + - col2 ) AS col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + 61 / + ( + - col2 ) AS col0 FROM tab2
----
-1
-2

query I rowsort
SELECT ( - + 24 ) FROM tab0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT col2 * 42 + - col2 AS col1 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3882
SELECT + CAST( NULL AS DECIMAL ) * + ( col2 ) + - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT + CAST ( NULL AS REAL ) * + ( col2 ) + - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3883
SELECT ALL + col0 AS col0, - 64 DIV - 53 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-3883
SELECT ALL + col0 AS col0, - 64 / - 53 FROM tab1
----
51
1
85
1
91
1

query I rowsort
SELECT 98 + + - col0 FROM tab1
----
13
47
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 65, - col2 * col2 col2 FROM tab0
----
65
-100
65
-2209
65
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( col0 )
----

query I rowsort
SELECT - + 92 * 9 AS col1 FROM tab2 AS cor0
----
-828
-828
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT SUM( ALL col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3888
SELECT SUM ( ALL col0 ) col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT - MAX( DISTINCT col2 ), ( + 18 ) AS col0 FROM tab0
----
-99
18

skipif mysql # not compatible
query II rowsort label-3889
SELECT - MAX ( DISTINCT col2 ), ( + 18 ) AS col0 FROM tab0
----
-99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + + MAX( 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + + MAX ( 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT + 21 * col2 * - + col2 AS col1 FROM tab1
----
-193536
-73101
-97104

query I rowsort
SELECT ALL ( + - 12 ) - ( - col1 ) FROM tab2
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + 93 + MAX( DISTINCT + - col1 ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 93 + MAX ( DISTINCT + - col1 ) AS col2 FROM tab1
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= - + col0 + + - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT + 64 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + CAST( NULL AS SIGNED ) + + + col1
----

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 64 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + CAST ( NULL AS INTEGER ) + + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL - - col1 + - col0 + - - 81 + + + col2 DIV col0 col0 FROM tab2 AS cor0
----
73
86
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT ALL - - col1 + - col0 + - - 81 + + + col2 / col0 col0 FROM tab2 AS cor0
----
73
86
94

query I rowsort
SELECT - col1 * - - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT + 2 - + COUNT( * ) - 15 * - MAX( - col0 ) * - - 41 FROM tab1 AS cor0
----
-31366

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 2 - + COUNT ( * ) - 15 * - MAX ( - col0 ) * - - 41 FROM tab1 AS cor0
----
-31366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT + - 49 + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + - 49 + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col2 * + col1 * - + 48 * + col1 + - 14 col0 FROM tab0 AS cor0
----
14801649
211676
4837

query I rowsort
SELECT ALL - - 95 AS col2 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL MIN( ALL - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL MIN ( ALL - col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ( COUNT( * ) ) * 66 AS col0 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3903
SELECT ( COUNT ( * ) ) * 66 AS col0 FROM tab0
----
198

query I rowsort
SELECT DISTINCT 19 FROM tab0 WHERE NOT + + 17 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= col1 * + 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT 54, + SUM( ALL + col2 ) * + COUNT( * ) AS col2 FROM tab0
----
54
468

skipif mysql # not compatible
query II rowsort label-3906
SELECT 54, + SUM ( ALL + col2 ) * + COUNT ( * ) AS col2 FROM tab0
----
54
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3907
SELECT MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + - 65 AS col0 FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3909
SELECT MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT + CAST( + 0 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + CAST ( + 0 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT ALL col2 AS col0, 56 AS col0 FROM tab1
----
59
56
68
56
96
56

query II rowsort
SELECT ALL 39 AS col0, + 46 - col1 AS col2 FROM tab0
----
39
-35
39
25
39
45

query II rowsort
SELECT ALL - col1, 83 AS col0 FROM tab2 AS cor0
----
-51
83
-67
83
-77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT 93 * + + col2 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + COUNT( + - 97 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3916
SELECT + COUNT ( + - 97 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 48 * - ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 45 ) FROM tab1 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL + ( - + ( - COUNT( * ) ) ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + ( - + ( - COUNT ( * ) ) ) FROM tab0, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab2
----
50
50
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3922
SELECT - - 69 * CAST( 31 AS SIGNED ) + - - ( + col1 ) AS col1, - col0 FROM tab1 AS cor0
----
2144
-85
2153
-51
2186
-91

skipif mysql # not compatible
query II rowsort label-3922
SELECT - - 69 * CAST ( 31 AS INTEGER ) + - - ( + col1 ) AS col1, - col0 FROM tab1 AS cor0
----
2144
-85
2153
-51
2186
-91

query II rowsort
SELECT 2, + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 56 * + col2 + + + 60 FROM tab0 AS cor0
----
-2572
-500
-5484

query I rowsort
SELECT DISTINCT + - 53 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-53

query I rowsort
SELECT DISTINCT col0 * 45 + + col0 FROM tab1
----
2346
3910
4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3927
SELECT SUM( + CAST( + - 91 AS SIGNED ) ) DIV COUNT( * ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3927
SELECT SUM ( + CAST ( + - 91 AS INTEGER ) ) / COUNT ( * ) FROM tab2 AS cor0
----
-91

query I rowsort
SELECT + 90 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND + - CAST( - 64 AS SIGNED ) * - col1 + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND + - CAST ( - 64 AS INTEGER ) * - col1 + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT + 81 - 58 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT ALL + 76 + + MAX( + col2 ) DIV 77 col0 FROM tab2 cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT ALL + 76 + + MAX ( + col2 ) / 77 col0 FROM tab2 cor0
----
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - col0 - + + ( + col1 ) - col2 / + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - COUNT( * ) - - 69 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - COUNT ( * ) - - 69 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + - 34 + - - COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-31

skipif mysql # not compatible
query I rowsort label-3935
SELECT + - 34 + - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 WHERE NOT - 47 / + + col2 NOT IN ( + col0 * - col2, 85, col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT COUNT( 57 ) * - 36 AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-3937
SELECT COUNT ( 57 ) * - 36 AS col1 FROM tab1
----
-108

query I rowsort
SELECT ALL 36 * - - 25 * - col2 AS col0 FROM tab1
----
-53100
-61200
-86400

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT 40 * COUNT( * ) AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-3939
SELECT 40 * COUNT ( * ) AS col1 FROM tab0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT COUNT( ALL - CAST( - col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3940
SELECT COUNT ( ALL - CAST ( - col2 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ( + ( COUNT( - + 63 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT ( + ( COUNT ( - + 63 ) ) ) AS col1 FROM tab2
----
3

query II rowsort
SELECT - ( + 67 ), 47 AS col0 FROM tab2
----
-67
47
-67
47
-67
47

query II rowsort
SELECT col0 * - col1 AS col2, col1 AS col1 FROM tab1
----
-425
5
-4277
47
-714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT COUNT( ( + 89 ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT COUNT ( ( + 89 ) ) col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 28 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL SUM( DISTINCT 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL SUM ( DISTINCT 25 ) FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + SUM( + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - col2 + + col2 * + col1 * + + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ( + 81 ) DIV col1 + col2 + col2 + 38 * col1 AS col2 FROM tab2
----
1985
2663
3007

skipif mysql # not compatible
query I rowsort label-3951
SELECT ( + 81 ) / col1 + col2 + col2 + 38 * col1 AS col2 FROM tab2
----
1985
2663
3007

query I rowsort
SELECT 59 FROM tab2 WHERE - col1 * - + 30 IS NOT NULL
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT col1 + - col2 DIV col0 AS col2 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3953
SELECT col1 + - col2 / col0 AS col2 FROM tab1
----
13
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 46 * - - MIN( DISTINCT + col2 ) + - 20 FROM tab2
----
1038

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 46 * - - MIN ( DISTINCT + col2 ) + - 20 FROM tab2
----
1038

query I rowsort
SELECT col2 + + 49 AS col2 FROM tab0
----
148
59
96

query III rowsort
SELECT * FROM tab1 WHERE + col2 / 97 NOT BETWEEN NULL AND + ( + 46 ) * + 56
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3958
SELECT ALL - 13 + - ( - 4 ) * - + col0 AS col2, - CAST( 52 AS SIGNED ) FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL - 13 + - ( - 4 ) * - + col0 AS col2, - CAST ( 52 AS INTEGER ) FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT + 90 + + 57 AS col2 FROM tab0
----
147
147
147

query II rowsort
SELECT ALL col1 AS col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT + - col1 FROM tab1 WHERE NULL IS NULL AND NOT NULL BETWEEN - + col2 + + col0 + - col2 * + + col2 * col1 + CAST( NULL AS SIGNED ) * - col1 / + ( + + col0 ) + + col2 * - col1 AND - col1 * col0 * col1
----

skipif mysql # not compatible
query I rowsort label-3961
SELECT + - col1 FROM tab1 WHERE NULL IS NULL AND NOT NULL BETWEEN - + col2 + + col0 + - col2 * + + col2 * col1 + CAST ( NULL AS INTEGER ) * - col1 / + ( + + col0 ) + + col2 * - col1 AND - col1 * col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 67 + + 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 67 + + 79 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 30 <= 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - + 15 ) * - + col1 IS NULL
----

query I rowsort
SELECT + - 38 * + - 7 FROM tab2 AS cor0
----
266
266
266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 5 AS col1, col2 * col2 * + col1 col1 FROM tab1 AS cor0
----
5
129024
5
17405
5
217328

query I rowsort
SELECT DISTINCT - 99 - - ( col0 ) + - col1 FROM tab1 AS cor0
----
-19
-55
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 26 ) + + - col0 + + ( - + col2 ) * - col0 + - col1 * col2 col0 FROM tab2
----
-135
-558
415

query I rowsort
SELECT AVG ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0 AS cor0 WHERE NULL = - col1 * - col1 * - 8 - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 55 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT 4, COUNT( * ) AS col0 FROM tab1
----
4
3

skipif mysql # not compatible
query II rowsort label-3972
SELECT 4, COUNT ( * ) AS col0 FROM tab1
----
4
3

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3974
SELECT ALL + COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + COUNT ( * ) - + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL + - COUNT( - 95 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + - COUNT ( - 95 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT - + COUNT( * ) col1, + 62 FROM tab2 AS cor0
----
-3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3977
SELECT - + COUNT ( * ) col1, + 62 FROM tab2 AS cor0
----
-3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - SUM( ALL col2 ) FROM tab0 WHERE NOT + 86 NOT IN ( - 52 * + col1 + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT - SUM ( ALL col2 ) FROM tab0 WHERE NOT + 86 NOT IN ( - 52 * + col1 + + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT COUNT( DISTINCT col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT DISTINCT COUNT ( DISTINCT col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT + col0 + ( 73 + col0 ) AS col0 FROM tab0
----
103
247
267

query I rowsort
SELECT ALL 91 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ( + col1 ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN + col1 * 41 + 44 AND - col2 * + 52
----

skipif mysql # not compatible
query I rowsort label-3982
SELECT ( + col1 ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 * 41 + 44 AND - col2 * + 52
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) = ( - col2 )
----

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab1 WHERE col0 NOT IN ( col1 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - 28 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT ALL 40 DIV + 72 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL 40 / + 72 - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3987
SELECT * FROM tab2 WHERE NOT + 37 >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3987
SELECT * FROM tab2 WHERE NOT + 37 >= ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 * 88 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT 5 + + col1 AS col0 FROM tab2
----
56
72
82

query III rowsort
SELECT * FROM tab2 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3991
SELECT ( + CAST( NULL AS DECIMAL ) ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT ( + CAST ( NULL AS REAL ) ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT 75 * ( CAST( + 3 AS SIGNED ) ) AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT IN ( + 51 )
----

skipif mysql # not compatible
query I rowsort label-3992
SELECT 75 * ( CAST ( + 3 AS INTEGER ) ) AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + COUNT( * ) * - 46 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-3993
SELECT + COUNT ( * ) * - 46 FROM tab1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - COUNT( * ) + 54 * + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - COUNT ( * ) + 54 * + COUNT ( * ) FROM tab0
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IN ( 18 )
----

query I rowsort
SELECT ALL + col1 * 45 + ( + 72 ) FROM tab2
----
2367
3087
3537

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL SUM ( - col2 ) FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + col0 * + col1 + col0
----

query I rowsort
SELECT DISTINCT col0 + col0 / 70 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL + col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT col0 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT 34 * + COUNT( * ) - + MIN( + 9 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4001
SELECT 34 * + COUNT ( * ) - + MIN ( + 9 ) FROM tab2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + 25 * + col2 AS col0 FROM tab0 WHERE col0 >= col2
----
250

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE 95 + col2 * + col1 >= col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT COUNT( * ) + 75 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT COUNT ( * ) + 75 FROM tab0
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) * - col2 - + col1 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT - MAX( DISTINCT col2 ) DIV + 20 AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4007
SELECT - MAX ( DISTINCT col2 ) / + 20 AS col1 FROM tab2
----
-2

query I rowsort
SELECT + col0 * + 71 AS col0 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT MIN( ALL - ( - 99 ) ) + + 59 AS col2 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT MIN ( ALL - ( - 99 ) ) + + 59 AS col2 FROM tab2 AS cor0
----
158

query I rowsort
SELECT ALL - col0 + col0 * col2 AS col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT + col2 + 51 * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 73 + - col1 * 45 AS col1 FROM tab2 cor0
----
-2368
-3088
-3538

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / col1 + + col0 BETWEEN + col1 AND NULL
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT DISTINCT col2 * + ( + 6 ) + col0 FROM tab1 WHERE NOT - CAST( col1 AS SIGNED ) * col0 + col1 BETWEEN + col1 / CAST( ( + 66 ) * + 67 AS SIGNED ) AND NULL
----
439
499
627

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT col2 * + ( + 6 ) + col0 FROM tab1 WHERE NOT - CAST ( col1 AS INTEGER ) * col0 + col1 BETWEEN + col1 / CAST ( ( + 66 ) * + 67 AS INTEGER ) AND NULL
----
439
499
627

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - COUNT( * ) * 59 AS col2 FROM tab2 AS cor0 WHERE NOT col1 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4018
SELECT - COUNT ( * ) * 59 AS col2 FROM tab2 AS cor0 WHERE NOT col1 / - col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( 80 + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 = ( + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT COUNT( * ) * COUNT( * ) FROM tab1 cor0 WHERE NOT col1 / ( 40 ) - 41 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 / ( 40 ) - 41 <> NULL
----
0

query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 22 * + col1 FROM tab2
----
1122
1474
1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT - col0 * + + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4026
SELECT - col0 * + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col1 * - - col1 AS col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + col2 * + 96 FROM tab1
----
5664
6528
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - ( MIN( CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - ( MIN ( CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4030
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND col0 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4030
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND col0 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col1 * - - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - SUM( DISTINCT - 78 ) * - 16 AS col2 FROM tab1
----
-1248

skipif mysql # not compatible
query I rowsort label-4032
SELECT - SUM ( DISTINCT - 78 ) * - 16 AS col2 FROM tab1
----
-1248

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 IN ( - col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 10 * + col0 AS col2 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL - col0 * + 82 FROM tab2
----
-3772
-5248
-6150

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 82 col1 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT col1 DIV - - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT col1 / - - col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - 29 * - 41 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 92d853b52c35a1d7e52561817bde56b6

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT col2 DIV - - 80 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT col2 / - - 80 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE - - 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE - - 42 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 * - col1 / + 91 BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + - ( - 8 ) ) IS NULL
----

query I rowsort
SELECT + + 82 * 64 + - ( + col0 ) FROM tab1 cor0
----
5157
5163
5197

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 6 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE ( - 83 + - - 57 + 30 ) BETWEEN NULL AND + 49 * 35
----

query I rowsort
SELECT ALL + col2 * ( 88 ) * + col0 FROM tab0 AS cor0
----
62040
76560
845064

query I rowsort
SELECT DISTINCT + + 35 + + col1 FROM tab1 cor0
----
40
49
82

query I rowsort
SELECT DISTINCT + col1 * + 50 FROM tab0 AS cor0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT DISTINCT 6, - COUNT( * ) col0 FROM tab2 AS cor0
----
6
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4054
SELECT DISTINCT 6, - COUNT ( * ) col0 FROM tab2 AS cor0
----
6
-3

query I rowsort
SELECT - 24 + - - col2 AS col1 FROM tab1 AS cor0
----
35
44
72

query I rowsort
SELECT - 96 + - 84 + + col2 * - col2 FROM tab1 AS cor0
----
-3661
-4804
-9396

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ( COUNT( * ) ) + - MIN( ALL - 9 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4057
SELECT ( COUNT ( * ) ) + - MIN ( ALL - 9 ) AS col1 FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN + col1 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4059
SELECT * FROM tab1 WHERE NULL NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4059
SELECT * FROM tab1 WHERE NULL NOT IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL 54 AS col0 FROM tab2 WHERE + col1 NOT IN ( col2 )
----
54
54
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT ALL + 21 DIV SUM( DISTINCT col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + 21 / SUM ( DISTINCT col1 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + - col2 + + 3 FROM tab1
----
-3478
-4621
-9213

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT - 49 >= - ( - 4 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT - ( + - 87 ) DIV 73 + - + col2 AS col0 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4065
SELECT - ( + - 87 ) / 73 + - + col2 AS col0 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL col0 + - - col1 AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab0 WHERE - + col1 / - 54 + + 97 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4068
SELECT ALL * FROM tab2 WHERE NOT ( + CAST( 88 AS SIGNED ) * col2 + + 1 ) NOT IN ( col1 / col0 )
----

skipif mysql # not compatible
query III rowsort label-4068
SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( 88 AS INTEGER ) * col2 + + 1 ) NOT IN ( col1 / col0 )
----

query I rowsort
SELECT DISTINCT col0 + - 3 AS col1 FROM tab1
----
48
82
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4070
SELECT ALL col0 DIV CAST( + 70 AS SIGNED ) + + + col2 AS col0 FROM tab0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL col0 / CAST ( + 70 AS INTEGER ) + + + col2 AS col0 FROM tab0
----
100
11
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 + + col2 col1 FROM tab1
----
-26
-35
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + ( 50 ) AS col1 FROM tab0
----
-31
29
49

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + ( 50 ) AS col1 FROM tab0
----
-31
29
49

query I rowsort
SELECT 15 - ( + 51 ) * + + col0 FROM tab1 AS cor0
----
-2586
-4320
-4626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT ALL SUM( ALL - - col0 ) DIV 63 - 29 AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL SUM ( ALL - - col0 ) / 63 - 29 AS col2 FROM tab1 AS cor0
----
-26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - COUNT( * ) - - 70 FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COUNT ( * ) - - 70 FROM tab2 cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT + CAST( 94 AS SIGNED ) - + 78 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-4077
SELECT + CAST ( 94 AS INTEGER ) - + 78 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + - 65 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4078
SELECT + - 65 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT - col1 <= ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + 53 + - col2 col1 FROM tab2
----
-53

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( col2 / CAST( NULL AS SIGNED ) + - col2 - - col2 / + col2 ) >= col1 * 52
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( col2 / CAST ( NULL AS INTEGER ) + - col2 - - col2 / + col2 ) >= col1 * 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4084
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - 60 + col2 + - CAST( col1 AS SIGNED ) - - col0 * + col0 / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4084
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - 60 + col2 + - CAST ( col1 AS INTEGER ) - - col0 * + col0 / col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - + col0
----

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT + 81 AS col0, col0 AS col0 FROM tab2 AS cor0
----
81
46
81
64
81
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL + 31 FROM tab2 AS cor0 WHERE NOT CAST( 94 AS SIGNED ) IS NULL
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + 31 FROM tab2 AS cor0 WHERE NOT CAST ( 94 AS INTEGER ) IS NULL
----
31
31
31

query I rowsort
SELECT 83 * + 97 AS col2 FROM tab2 AS cor0
----
8051
8051
8051

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN + + 59 AND NULL
----

query I rowsort
SELECT + 90 * - + col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT DISTINCT - - COUNT( * ) * - - 21 * + + 42 AS col2, 14 FROM tab1 AS cor0
----
2646
14

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - - COUNT ( * ) * - - 21 * + + 42 AS col2, 14 FROM tab1 AS cor0
----
2646
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 + 21 AND + + 66
----

query I rowsort
SELECT - AVG ( DISTINCT 66 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + + col2 * - + col2 + + + 22 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 24 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT SUM( ALL - 96 ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4096
SELECT SUM ( ALL - 96 ) FROM tab2
----
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4097
SELECT ALL - CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - CAST ( NULL AS REAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 >= NULL
----

query I rowsort
SELECT col2 * + col2 * - col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT ALL col0 AS col1 FROM tab1 WHERE ( NOT ( ( - CAST( - col1 AS SIGNED ) ) ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL col0 AS col1 FROM tab1 WHERE ( NOT ( ( - CAST ( - col1 AS INTEGER ) ) ) IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - col2, 79 * col2 AS col1 FROM tab1
----
-59
4661
-68
5372
-96
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4102
SELECT MIN ( - col1 ) FROM tab1
----
-47

query I rowsort
SELECT ALL 51 * - col0 FROM tab1 AS cor0
----
-2601
-4335
-4641

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= 52 + + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 * + 80 - - + col0 * col1 FROM tab2 AS cor0
----
-1232
-1734
-335

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT 38 * + col2 - + col2 FROM tab1 WHERE NOT NULL IN ( col2 ) AND NOT ( + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - MIN( + 75 ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT - MIN ( + 75 ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ( - col0 ) * + col0 + CAST( - col2 AS SIGNED ) + - col2 FROM tab0
----
-319
-7589
-9607

skipif mysql # not compatible
query I rowsort label-4110
SELECT ( - col0 ) * + col0 + CAST ( - col2 AS INTEGER ) + - col2 FROM tab0
----
-319
-7589
-9607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT ALL + col1 + + 5 * - CAST( - ( + + col1 ) AS SIGNED ) * 11 col0 FROM tab1
----
2632
280
784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT ALL + col1 + + 5 * - CAST ( - ( + + col1 ) AS INTEGER ) * 11 col0 FROM tab1
----
2632
280
784

query I rowsort
SELECT - - 80 AS col2 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT ALL col0 * col2 * + col2 + - 58 FROM tab2 AS cor0
----
102342
24276
252242

query III rowsort
SELECT + 1 * - col0 AS col0, + 7 AS col0, col2 FROM tab0 AS cor0
----
9 values hashing to 43e5b9f702b679dcbbca82db7e971f0a

query I rowsort
SELECT DISTINCT - 95 * - col2 - + 68 FROM tab1 AS cor0
----
5537
6392
9052

query I rowsort
SELECT DISTINCT + 51 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + + col0 * + + 85 * col0 + + 30 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
12375
416295
517495

query I rowsort
SELECT ALL + col1 + - col1 + ( + + 80 ) * + col1 * - col2 FROM tab2 AS cor0
----
-246400
-310880
-93840

query I rowsort
SELECT - 11 * + 19 FROM tab2 cor0
----
-209
-209
-209

query I rowsort
SELECT DISTINCT - - 58 - + 21 FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL 83 / + col1 + - - col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL 83 / + col1 + - - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4122
SELECT ALL - - CAST( - 39 AS SIGNED ) DIV + COUNT( * ) + - - 39 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - - CAST ( - 39 AS INTEGER ) / + COUNT ( * ) + - - 39 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT + col1 + + + 46 * - + ( + col2 ) + + col1 FROM tab1 cor0
----
-2704
-3034
-4388

query I rowsort
SELECT ALL - 36 - + + 66 * + - col1 AS col1 FROM tab0 AS cor0
----
1350
30
5310

query I rowsort
SELECT ALL + + col0 * 13 FROM tab0 AS cor0
----
1131
1261
195

query I rowsort
SELECT DISTINCT 14 * 88 AS col1 FROM tab2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + ( + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4127
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4128
SELECT ALL * FROM tab1 WHERE NOT ( ( 27 ) * col2 * + + 62 ) NOT BETWEEN - col2 * + + ( + col2 ) * + CAST( NULL AS DECIMAL ) AND 28 * + col0
----

skipif mysql # not compatible
query III rowsort label-4128
SELECT ALL * FROM tab1 WHERE NOT ( ( 27 ) * col2 * + + 62 ) NOT BETWEEN - col2 * + + ( + col2 ) * + CAST ( NULL AS REAL ) AND 28 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4130
SELECT ALL - CAST( NULL AS DECIMAL ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - CAST ( NULL AS REAL ) / col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 37 * + col2 AS col0 FROM tab2 WHERE + 75 IS NOT NULL
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - ( COUNT( * ) ) + + 96 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4132
SELECT - ( COUNT ( * ) ) + + 96 FROM tab1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col0 - 1 * ( + + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col0 - 1 * ( + + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 20 + - col2 AS col0 FROM tab0 AS cor0
----
-27
-79
10

query I rowsort
SELECT col2 * + ( + + col2 ) - - 56 - col1 + - - 93 - + col2 - + 18 * col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 46 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 46 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 26 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * + + ( - col1 ) FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - - ( + - 79 ) AS col0 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT - - MIN( 13 ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - - MIN ( 13 ) AS col1 FROM tab1 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4144
SELECT CAST( NULL AS DECIMAL ) + col0 + + 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( NULL AS REAL ) + col0 + + 87 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT DISTINCT - 57 DIV + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - 57 / + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL + + col1 + - 3 FROM tab2 AS cor0
----
48
64
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ( - 34 ) + + col2 AS col0 FROM tab0
----
-24
13
65

query I rowsort
SELECT DISTINCT - 12 - - 80 FROM tab2, tab2 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + - COUNT( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + - COUNT ( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT DISTINCT MAX( DISTINCT 63 ), 86 AS col1 FROM tab0
----
63
86

skipif mysql # not compatible
query II rowsort label-4152
SELECT DISTINCT MAX ( DISTINCT 63 ), 86 AS col1 FROM tab0
----
63
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) <> - col1 )
----

query I rowsort
SELECT - + col2 - - col0 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT - ( + col2 ) AS col1, + 84 AS col2 FROM tab0 AS cor0
----
-10
84
-47
84
-99
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT ALL + + COUNT( * ) DIV - + 11 - - + ( + MIN( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + + COUNT ( * ) / - + 11 - - + ( + MIN ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT - + MIN( - + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT - + MIN ( - + col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - COUNT( * ) * 9 AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - COUNT ( * ) * 9 AS col0 FROM tab0
----
-27

query I rowsort
SELECT - 29 FROM tab1 WHERE NOT + 63 BETWEEN NULL AND + + col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT ALL + MAX( - ( - - col1 ) ) AS col1, 71 FROM tab0
----
-1
71

skipif mysql # not compatible
query II rowsort label-4160
SELECT ALL + MAX ( - ( - - col1 ) ) AS col1, 71 FROM tab0
----
-1
71

query I rowsort
SELECT ALL + ( - 46 ) FROM tab1
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4162
SELECT - ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4163
SELECT + - COUNT( ALL - + col0 ) * + COUNT( * ) DIV 62 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT + - COUNT ( ALL - + col0 ) * + COUNT ( * ) / 62 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * + + 85 FROM tab0 AS cor0
----
1785
6885
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT DISTINCT + - COUNT( * ) DIV + 30 * - 20 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + - COUNT ( * ) / + 30 * - 20 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 80 * - col1 + + + 19 FROM tab0 AS cor0
----
-1661
-61
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - COUNT( * ) FROM tab1 WHERE NOT - col2 + + 17 * + 12 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - col2 + + 17 * + 12 < NULL
----
0

query I rowsort
SELECT ALL + col2 * col2 + - col2 FROM tab2
----
1560
3306
506

query III rowsort
SELECT * FROM tab1 WHERE col1 IS NULL OR NOT 19 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT + MIN( DISTINCT + 0 ) * COUNT( * ) + 33 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + MIN ( DISTINCT + 0 ) * COUNT ( * ) + 33 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT MIN( + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4174
SELECT MIN ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - col1 + + 46 + col1 AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL - + 98 FROM tab1 AS cor0 WHERE NOT NULL >= 18 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 53 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4177
SELECT - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 53 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + - ( COUNT( * ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT + - ( COUNT ( * ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + 32 * - COUNT( * ) + 19 - + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-260

skipif mysql # not compatible
query I rowsort label-4179
SELECT + 32 * - COUNT ( * ) + 19 - + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-260

query I rowsort
SELECT ALL + - 96 + + - col1 FROM tab2 AS cor0
----
-147
-163
-173

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT ( + ( + col0 ) ) - - col2 + + 1 AS col1 FROM tab1 AS cor0
----
145
148
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - - MIN( 78 ) * - MAX( col2 ) - + + MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-7723

skipif mysql # not compatible
query I rowsort label-4183
SELECT - - MIN ( 78 ) * - MAX ( col2 ) - + + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-7723

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT ALL col2 * col0 DIV + col1 - + col0 + - 63 FROM tab2
----
-74
-89
-94

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL col2 * col0 / + col1 - + col0 + - 63 FROM tab2
----
-74
-89
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + COUNT( ALL - 44 ) * + - 20 * + 32 * - + COUNT( * ) * - COUNT( DISTINCT col0 ) AS col1 FROM tab0
----
-17280

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + COUNT ( ALL - 44 ) * + - 20 * + 32 * - + COUNT ( * ) * - COUNT ( DISTINCT col0 ) AS col1 FROM tab0
----
-17280

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT DISTINCT COUNT( * ) AS col1, + 52 + + 97 AS col0 FROM tab1
----
3
149

skipif mysql # not compatible
query II rowsort label-4186
SELECT DISTINCT COUNT ( * ) AS col1, + 52 + + 97 AS col0 FROM tab1
----
3
149

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT ( + + 11 ) * CAST( + ( - - COUNT( * ) ) AS SIGNED ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4188
SELECT ( + + 11 ) * CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL + 97 AS col1, - col2 FROM tab0 AS cor0
----
97
-10
97
-47
97
-99

query II rowsort
SELECT DISTINCT + 78 * col1 AS col2, + 68 FROM tab0
----
1638
68
6318
68
78
68

query I rowsort
SELECT DISTINCT - 32 + col2 FROM tab2 AS cor0
----
-9
26
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4194
SELECT 29 DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4194
SELECT 29 / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4195
SELECT col1 DIV + col0 AS col1, col0 AS col0 FROM tab0 AS cor0
----
0
87
0
97
5
15

skipif mysql # not compatible
query II rowsort label-4195
SELECT col1 / + col0 AS col1, col0 AS col0 FROM tab0 AS cor0
----
0
87
0
97
5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 29
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 29
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT col1 + - - 76 AS col1 FROM tab0
----
157
77
97

query I rowsort
SELECT col1 + - 77 FROM tab1
----
-30
-63
-72

query I rowsort
SELECT + col2 + 59 + - + 4 AS col0 FROM tab0
----
102
154
65

query I rowsort
SELECT DISTINCT col1 + col2 - + col1 * + col0 FROM tab0
----
-1087
-1796
3

query I rowsort
SELECT ALL - 55 + 8 AS col0 FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT + + 78 * + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT + + 78 * + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT + + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4204
SELECT + + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT 93 + + col0 FROM tab0 AS cor0
----
108
180
190

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT col2 DIV + col2 + + - col1 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT col2 / + col2 + + - col1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT ALL - 99 - col1 AS col0 FROM tab1 AS cor0
----
-104
-113
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT MIN( + 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4208
SELECT MIN ( + 56 ) FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL - - CAST( - - 50 AS SIGNED ) + - + col0 FROM tab2 WHERE + col1 > + + 0
----
-14
-25
4

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - - CAST ( - - 50 AS INTEGER ) + - + col0 FROM tab2 WHERE + col1 > + + 0
----
-14
-25
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4210
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( + col0 )
----

query II rowsort
SELECT DISTINCT + 10 AS col0, - col0 FROM tab1
----
10
-51
10
-85
10
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL + + COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + + COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * - 17 FROM tab0 AS cor0
----
1479
1649
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT - COUNT( * ) DIV + 81 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT - COUNT ( * ) / + 81 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 * + + col1 * - 75 + - 42
----

query I rowsort
SELECT DISTINCT + 6 * + 89 AS col0 FROM tab2
----
534

query I rowsort
SELECT - 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + - ( + 62 ) + - col2 AS col0 FROM tab1 WHERE NOT NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 col1, + col1 * 70 * + col1, - - col1 AS col0 FROM tab1
----
9 values hashing to a783099b4a560496b8d1d20e43a41deb

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT ALL + 20 * + + col2 + + col1 + col2 - - 57 DIV - + 63 AS col0 FROM tab2 AS cor0
----
1285
534
917

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + 20 * + + col2 + + col1 + col2 - - 57 / - + 63 AS col0 FROM tab2 AS cor0
----
1285
534
917

onlyif mysql # DIV for integer division: 
query II rowsort label-4223
SELECT ALL - col2 * + col0 - + col0 * + 82, col2 DIV - col0 - - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-11985
5
-13650
47
-9078
13

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL - col2 * + col0 - + col0 * + 82, col2 / - col0 - - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-11985
5
-13650
47
-9078
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT - 82 DIV - col2 + - col2 AS col1 FROM tab2 cor0
----
-20
-38
-57

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 82 / - col2 + - col2 AS col1 FROM tab2 cor0
----
-20
-38
-57

query I rowsort
SELECT + - col0 * + + col0 - - col0 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4226
SELECT ALL + + MIN( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + + MIN ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + col2 AND - ( col1 ) + - + col0 / + - col2 + - - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <= + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 22 col2 FROM tab1
----
-1034
-110
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT + + col2 / - + col2 / + col1 + - - 17 FROM tab2 WHERE - + 98 IN ( - + col2, - CAST( - 72 AS SIGNED ), col1, + col2, - col2 )
----

skipif mysql # not compatible
query I rowsort label-4231
SELECT + + col2 / - + col2 / + col1 + - - 17 FROM tab2 WHERE - + 98 IN ( - + col2, - CAST ( - 72 AS INTEGER ), col1, + col2, - col2 )
----

query I rowsort
SELECT - ( - 91 ) FROM tab1
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 3 + col2 col2 FROM tab1 AS cor0
----
24
57
85

query I rowsort
SELECT ALL + col0 + - + col0 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT COUNT( * ) - - 91 col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT DISTINCT COUNT ( * ) - - 91 col1 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT 37 DIV - MIN( + 6 ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 37 / - MIN ( + 6 ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + COUNT( * ) * SUM( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT + COUNT ( * ) * SUM ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= col1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 19 - - - col0 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 77 ) col0 FROM tab0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT col2 DIV - 18 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4242
SELECT col2 / - 18 AS col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT COUNT( col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT COUNT ( col0 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 90 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT SUM( DISTINCT - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT SUM ( DISTINCT - - col2 ) FROM tab0
----
156

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * 0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 90 * + col2 * - - col1 + - 59 + col0 - - + 70 * + col2 / - - col1 * col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 / + col2 + - col0 / + + 70 AS col2 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL COUNT( * ) col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT ALL COUNT ( * ) col1 FROM tab1, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT 65 + + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT 65 + + COUNT ( * ) FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL - + MIN( col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - + MIN ( col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col1 - col2 * - - 67 col2 FROM tab0 cor0
----
-3053
-562
-6535

query II rowsort
SELECT DISTINCT - + col2 * - col1 * + 52, col2 FROM tab2 AS cor0
----
160160
40
202072
58
60996
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE 1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT + + col1 + - col2 * + col1 + + - CAST( + - 29 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-160
-3697
-69

skipif mysql # not compatible
query I rowsort label-4261
SELECT + + col1 + - col2 * + col1 + + - CAST ( + - 29 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-160
-3697
-69

query I rowsort
SELECT + col2 + 78 + col0 - - - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1026
-2898
-3675

query I rowsort
SELECT - col1 + + + col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 BETWEEN + col1 * + 51 + - + col1 AND - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 3, - col1 AS col1 FROM tab1
----
3
-14
3
-47
3
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 67 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT 37 + COUNT( ALL col0 ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4267
SELECT 37 + COUNT ( ALL col0 ) AS col0 FROM tab0
----
40

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE - - col0 * + col2 > - col0 * + - 90
----
1

query I rowsort
SELECT ( - - ( col1 ) ) * - col0 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + - 89 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT DISTINCT - 53 + + + 23 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT - 53 + + + 23 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-30
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4273
SELECT ALL + 65 * + CAST( NULL AS DECIMAL ) + MAX( ALL + 10 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + 65 * + CAST ( NULL AS REAL ) + MAX ( ALL + 10 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + ( + 39 ) < + col0
----
3

skipif mysql # not compatible
query I rowsort label-4274
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + ( + 39 ) < + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT - COUNT( * ) - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - COUNT ( * ) - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 55 * + col1 + - - col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 58 * + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6da216dc007ce7a95ad55b9d4de2197

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 73 < + + 33
----

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab1 cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4281
SELECT + COUNT( * ) DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT + COUNT ( * ) / + COUNT ( * ) col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-4282
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4283
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - col2 + ( + CAST( 33 AS DECIMAL ) ) NOT BETWEEN + 35 * - col1 * - ( + CAST( + 49 AS DECIMAL ) ) + + CAST( NULL AS SIGNED ) AND + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4283
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - col2 + ( + CAST ( 33 AS REAL ) ) NOT BETWEEN + 35 * - col1 * - ( + CAST ( + 49 AS REAL ) ) + + CAST ( NULL AS INTEGER ) AND + col0
----
15
81
47

query I rowsort
SELECT ALL - - col2 * col0 FROM tab0 WHERE NOT 87 IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT + COUNT( DISTINCT 66 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + COUNT ( DISTINCT 66 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 75 > NULL
----

query I rowsort
SELECT + + col1 * 60 AS col1 FROM tab0 cor0
----
1260
4860
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT + - MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + - MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4290
SELECT - CAST( NULL AS DECIMAL ) + MAX( - - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT - CAST ( NULL AS REAL ) + MAX ( - - col0 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - - 93 FROM tab1 AS cor0
----
2
42
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT SUM( ALL - 28 ) AS col0 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4292
SELECT SUM ( ALL - 28 ) AS col0 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - - 98 * - - 91 + - - 38 + - + col1 AS col0 FROM tab0 AS cor0
----
8875
8935
8955

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4294
SELECT col1 AS col1, - col1 FROM tab0 AS cor0 WHERE - col1 + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4294
SELECT col1 AS col1, - col1 FROM tab0 AS cor0 WHERE - col1 + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab2 cor0
----
-31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT ( col1 ) DIV - col2 - + col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-4297
SELECT ( col1 ) / - col2 - + col2 FROM tab2
----
-25
-41
-59

query I rowsort
SELECT ALL + ( + - 54 ) AS col1 FROM tab2
----
-54
-54
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4299
SELECT DISTINCT - col0 * + - col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT - col0 * + - col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL SUM( ALL col2 ) + - 22 col0 FROM tab1
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4300
SELECT ALL SUM ( ALL col2 ) + - 22 col0 FROM tab1
----
201

query I rowsort
SELECT - ( + col1 ) + - + col2 AS col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT 14 + + COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4302
SELECT 14 + + COUNT ( * ) FROM tab2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT + 67 DIV - + 74 - + COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 67 / - + 74 - + COUNT ( * ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + 97 + col1 + col0 - + 89 FROM tab0 cor0
----
104
106
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT DISTINCT - + 49 * 84 + + 82 - - CAST( NULL AS SIGNED ) + + col2 + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - + 49 * 84 + + 82 - - CAST ( NULL AS INTEGER ) + + col2 + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + SUM( - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4306
SELECT + SUM ( - + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT DISTINCT - col2 - + 6 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-105
-14
-52

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT - col2 - + 6 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
-105
-14
-52

query I rowsort
SELECT ALL ( col1 ) FROM tab2 AS cor0 WHERE col0 <> + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + - COUNT( - - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + - COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT - + ( 48 ) AS col1, COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = - col0
----
-48
0

skipif mysql # not compatible
query II rowsort label-4311
SELECT - + ( 48 ) AS col1, COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = - col0
----
-48
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT - MAX( DISTINCT + - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT col1 DIV 48 * + col2 col2 FROM tab0 AS cor0
----
0
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4314
SELECT col1 / 48 * + col2 col2 FROM tab0 AS cor0
----
0
0
47

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 + - + 21 AS col0 FROM tab0
----
669
762
9485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( - 56 ) + - col2 FROM tab1 AS cor0
----
-115
-124
-152

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - - col2 ) + + col0 * + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + 12 * - - col2 / col2
----

query I rowsort
SELECT ( 72 ) + col2 AS col0 FROM tab2
----
112
130
95

query I rowsort
SELECT DISTINCT - 6 * col2 FROM tab0 WHERE NOT + col1 * + col2 + col1 IS NULL
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT 96 * - 35 * + - COUNT( * ) FROM tab2
----
10080

skipif mysql # not compatible
query I rowsort label-4323
SELECT 96 * - 35 * + - COUNT ( * ) FROM tab2
----
10080

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT 14 * - MAX( ALL col0 ) FROM tab0
----
-1358

skipif mysql # not compatible
query I rowsort label-4324
SELECT 14 * - MAX ( ALL col0 ) FROM tab0
----
-1358

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 * - col1 * - - col1 AS col1, 44 AS col1 FROM tab2
----
NULL
44

skipif mysql # not compatible
query II rowsort label-4327
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 * - col1 * - - col1 AS col1, 44 AS col1 FROM tab2
----
NULL
44

query I rowsort
SELECT - + ( - - 48 ) FROM tab2 WHERE - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + 97 FROM tab0 AS cor0
----
107
144
196

query I rowsort
SELECT DISTINCT col0 + + 61 + - + col0 * + ( col1 ) FROM tab0 AS cor0
----
-1139
-1679
61

query I rowsort
SELECT + - col0 - - col0 + col2 * - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 50 + + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2159
-50
-9751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT ( + CAST( + - 80 AS SIGNED ) ) * - - ( - col0 ) - + 55 FROM tab1 AS cor0
----
4025
6745
7225

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT ( + CAST ( + - 80 AS INTEGER ) ) * - - ( - col0 ) - + 55 FROM tab1 AS cor0
----
4025
6745
7225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 72 * col2 + 84 + + 46 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4335
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - + CAST( + + col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4336
SELECT - + CAST ( + + col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT - COUNT( ALL + 43 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - COUNT ( ALL + 43 ) FROM tab0
----
-3

query I rowsort
SELECT + - 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - + 14 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL + - col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - 26 FROM tab1 cor0
----
26
26
26

query I rowsort
SELECT + - 5 * col1 FROM tab1 AS cor0
----
-235
-25
-70

query I rowsort
SELECT ALL - 86 * 15 FROM tab2 AS cor0
----
-1290
-1290
-1290

query I rowsort
SELECT DISTINCT + - 39 AS col2 FROM tab0 WHERE NULL IS NULL
----
-39

query II rowsort
SELECT ALL 63 * - 28, 67 AS col2 FROM tab0
----
-1764
67
-1764
67
-1764
67

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 56 * - - 67 col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) + + SUM( 94 ) + - 52 FROM tab0 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) + + SUM ( 94 ) + - 52 FROM tab0 AS cor0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 77 * + + col1 + - 38 FROM tab1 AS cor0
----
-1116
-3657
-423

query I rowsort
SELECT DISTINCT - col1 * - - 79 + - 95 FROM tab0 AS cor0
----
-174
-1754
-6494

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL MAX( - ( + col1 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL MAX ( - ( + col1 ) ) FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - 83 * col1 * 58 AS col1 FROM tab0 AS cor0
----
-101094
-389934
-4814

query I rowsort
SELECT + 55 + col1 AS col0 FROM tab0
----
136
56
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col1 ) <= - ( ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4357
SELECT + - CAST( + col2 AS SIGNED ), + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-4357
SELECT + - CAST ( + col2 AS INTEGER ), + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - AVG ( ALL - col1 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT + COUNT( + - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + COUNT ( + - col0 ) FROM tab2
----
3

query I rowsort
SELECT + col2 - + 34 AS col2 FROM tab0
----
-24
13
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE + 69 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE + 69 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + 69 FROM tab0
----
-12
48
68

query I rowsort
SELECT col1 * col1 + + 5 FROM tab1
----
201
2214
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 + 55 col0 FROM tab0
----
132
23
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + CAST( NULL AS SIGNED ) * + 66 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + CAST ( NULL AS INTEGER ) * + 66 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 48 col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL 63 FROM tab0 WHERE NOT col1 IN ( - CAST( + ( col1 ) AS SIGNED ), col0 * - col2, col2 )
----
63
63
63

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL 63 FROM tab0 WHERE NOT col1 IN ( - CAST ( + ( col1 ) AS INTEGER ), col0 * - col2, col2 )
----
63
63
63

query I rowsort
SELECT + 19 FROM tab1 AS cor0 WHERE NOT 52 * - ( - ( - col0 ) ) <> 21
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * col1 ) <= 68
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT COUNT( ALL col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT COUNT ( ALL col2 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT ( + - SUM( DISTINCT + - col2 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT ( + - SUM ( DISTINCT + - col2 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 87 ) * 47 * - + 78 + + col1 + + col2 AS col0 FROM tab0
----
318973
319042
319070

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT COUNT( * ) + + 60 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4374
SELECT COUNT ( * ) + + 60 FROM tab0
----
63

query I rowsort
SELECT - 60 + + col1 AS col1 FROM tab1
----
-13
-46
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT ALL COUNT( * ) DIV - 37 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL COUNT ( * ) / - 37 FROM tab0
----
0

query I rowsort
SELECT - col1 * - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT + COUNT( * ) * COUNT( * ) * - CAST( NULL AS SIGNED ) + + 28 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT + COUNT ( * ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 28 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + - + col1 - + col1 AS col0 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT DISTINCT - + col0 * + 96 FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - 74 + - MIN( DISTINCT ( - - col0 ) ) FROM tab1 cor0
----
-125

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - 74 + - MIN ( DISTINCT ( - - col0 ) ) FROM tab1 cor0
----
-125

query I rowsort
SELECT DISTINCT + + 13 - - 56 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 20 + + + MIN( - col0 ) AS col1 FROM tab0 AS cor0 WHERE + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 20 + + + MIN ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE + col2 = NULL
----
NULL

query II rowsort
SELECT DISTINCT + 0 AS col0, col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4385
SELECT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT - col1 DIV - - 1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4386
SELECT - col1 / - - 1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT MAX( DISTINCT - 55 ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4387
SELECT MAX ( DISTINCT - 55 ) FROM tab0
----
-55

query III rowsort
SELECT * FROM tab1 WHERE - col1 + ( + - col2 ) + + col2 IS NULL
----

query I rowsort
SELECT ALL 6 * - col1 + - col1 AS col2 FROM tab0 cor0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT DISTINCT - col2 DIV + + col1 + - 30 col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4390
SELECT DISTINCT - col2 / + + col1 + - 30 col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL - col2 - - 28 FROM tab1 AS cor0
----
-31
-40
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT ALL - col2 DIV - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - col2 / - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 69 * col0 * - col1 BETWEEN + 31 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4396
SELECT DISTINCT * FROM tab0 WHERE ( NULL BETWEEN + CAST( NULL AS SIGNED ) AND + + CAST( - - CAST( col1 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4396
SELECT DISTINCT * FROM tab0 WHERE ( NULL BETWEEN + CAST ( NULL AS INTEGER ) AND + + CAST ( - - CAST ( col1 AS INTEGER ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - + 53 + - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + 46 + + MAX( ALL - 74 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 46 + + MAX ( ALL - 74 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * + col0 col0 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT + col1 * + + 89 AS col0 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT + COUNT( * ) AS col2, + 75 AS col2 FROM tab0 cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-4401
SELECT + COUNT ( * ) AS col2, + 75 AS col2 FROM tab0 cor0
----
3
75

query I rowsort
SELECT DISTINCT col0 * + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2167
-4173
-5692

query II rowsort
SELECT - col2 * + ( - col1 ) AS col1, + col0 AS col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query I rowsort
SELECT + 82 * + col2 FROM tab2 AS cor0
----
1886
3280
4756

query II rowsort
SELECT + col1, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT 24 * + 20 FROM tab2 AS cor0
----
480
480
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - + 78 * COUNT( * ) AS col2 FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4407
SELECT - + 78 * COUNT ( * ) AS col2 FROM tab1 cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL - 90 * COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - 90 * COUNT ( * ) FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT 66 * + 70 + ( + COUNT( * ) ) col0 FROM tab2
----
4623

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT DISTINCT 66 * + 70 + ( + COUNT ( * ) ) col0 FROM tab2
----
4623

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + - col1 * 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + - col1 * 66 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + MIN( col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4411
SELECT + MIN ( col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL col2 + - + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT MIN( col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4413
SELECT MIN ( col2 ) FROM tab2
----
23

query I rowsort
SELECT - col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * col1 - + + col1 + + - 36 + + col2 col0 FROM tab0 AS cor0
----
133
1444
5681

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN 89 AND NULL
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 56 * - col0 AS col0 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4419
SELECT ALL CAST( NULL AS DECIMAL ) + + col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4419
SELECT ALL CAST ( NULL AS REAL ) + + col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + - col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4421
SELECT ALL - + col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - + col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT DISTINCT - + COUNT( * ) DIV COUNT( * ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT DISTINCT - + COUNT ( * ) / COUNT ( * ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT DISTINCT - + MIN( - 98 ) AS col1 FROM tab2 WHERE NOT NULL IN ( CAST( - - col1 AS SIGNED ), + col1, - - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - + MIN ( - 98 ) AS col1 FROM tab2 WHERE NOT NULL IN ( CAST ( - - col1 AS INTEGER ), + col1, - - 21 )
----
NULL

query I rowsort
SELECT + col2 * - 97 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab1 WHERE 51 IS NOT NULL
----
-425
-4277
-714

query II rowsort
SELECT + 57 AS col2, - col1 AS col1 FROM tab1
----
57
-14
57
-47
57
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT - COUNT( - - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4429
SELECT - COUNT ( - - col0 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT ALL + col1 AS col0, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL + CAST( NULL AS SIGNED ) * - 75 * - 97 * - col0 / + 99 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + CAST ( NULL AS INTEGER ) * - 75 * - 97 * - col0 / + 99 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 45 AS col0 FROM tab2
----
1035
1800
2610

query I rowsort
SELECT ALL col0 * + ( - - col0 ) FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 61 FROM tab2 AS cor0 WHERE NOT ( - 69 * - 38 * 40 - + 48 - + + col0 IS NULL )
----
61

query III rowsort
SELECT + - col1 AS col0, col2 AS col2, - 12 * + 43 * - + col1 * - 49 FROM tab2 AS cor0
----
9 values hashing to 010fe6a86a9d0fb807f7ba72b4e5abd6

query I rowsort
SELECT DISTINCT - ( + ( - 57 ) ) AS col2 FROM tab2
----
57

query I rowsort
SELECT 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - ( + 34 ) FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 - + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 - + + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - col2 > + 44 + + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT - COUNT( DISTINCT - 74 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT - COUNT ( DISTINCT - 74 ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + + ( + col0 ) * + 34 + - + col0 * - - col1 AS col2 FROM tab1 AS cor0
----
-1183
1020
2465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4444
SELECT + COUNT( * ) + - + CAST( + COUNT( * ) AS SIGNED ) AS col0, + 43 AS col2 FROM tab0
----
0
43

skipif mysql # not compatible
query II rowsort label-4444
SELECT + COUNT ( * ) + - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, + 43 AS col2 FROM tab0
----
0
43

onlyif mysql # DIV for integer division: 
query II rowsort label-4445
SELECT col0, 87 DIV - 83 + col1 AS col0 FROM tab1
----
51
13
85
4
91
46

skipif mysql # not compatible
query II rowsort label-4445
SELECT col0, 87 / - 83 + col1 AS col0 FROM tab1
----
51
13
85
4
91
46

query I rowsort
SELECT DISTINCT - col1 + + 50 AS col1 FROM tab0 cor0
----
-31
29
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 42 / col2
----

query I rowsort
SELECT DISTINCT ( - + 54 ) AS col0 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT col0 * 23 + - 42 * col2 FROM tab0
----
-1629
-1927
1581

query I rowsort
SELECT ALL + 58 FROM tab1 WHERE ( col2 * + col2 ) IS NOT NULL
----
58
58
58

query I rowsort
SELECT DISTINCT col2 + - 64 AS col2 FROM tab2
----
-24
-41
-6

query I rowsort
SELECT DISTINCT ( col0 ) * col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 69 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT - 14 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 14 / col2 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4456
SELECT DISTINCT - 14 * - SUM( CAST( NULL AS DECIMAL ) / + col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - 14 * - SUM ( CAST ( NULL AS REAL ) / + col1 ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + 19 + col2 col0 FROM tab0
----
1321
1358
1410

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * 89 IS NOT NULL
----

query I rowsort
SELECT ALL 78 + 23 * + col0 FROM tab2 WHERE NOT 56 IS NULL
----
1136
1550
1803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT SUM( ALL col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4461
SELECT SUM ( ALL col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT - 63 + - col1 FROM tab2
----
-114
-130
-140

query I rowsort
SELECT - ( - col2 ) + + col2 * col0 FROM tab1
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 WHERE ( + 73 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL + MIN( - ( + col1 ) ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + MIN ( - ( + col1 ) ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT 38 + 47 FROM tab0
----
85
85
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4467
SELECT 36 col0 FROM tab2 WHERE NOT col0 - + ( - col0 ) * CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4467
SELECT 36 col0 FROM tab2 WHERE NOT col0 - + ( - col0 ) * CAST ( + col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT - COUNT( * ) FROM tab1 WHERE + col0 + + col1 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT - COUNT ( * ) FROM tab1 WHERE + col0 + + col1 IN ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + MAX( ALL col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4469
SELECT + MAX ( ALL col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT - 25 DIV - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4470
SELECT - 25 / - COUNT ( * ) FROM tab0 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * + col1 col0 FROM tab2 AS cor0
----
3417
4489
5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1 WHERE ( NULL ) <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1 WHERE ( NULL ) <> - col2
----
NULL

query I rowsort
SELECT 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 64 + + col0 AS col1 FROM tab2
----
110
128
139

query I rowsort
SELECT - 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - 31 + 16 FROM tab0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 28 + - COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 28 + - COUNT ( * ) FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT 61 + SUM( DISTINCT 79 ) * 37 AS col0 FROM tab0 cor0 WHERE ( - CAST( 50 AS SIGNED ) ) NOT IN ( col1 - ( + col2 ) )
----
2984

skipif mysql # not compatible
query I rowsort label-4478
SELECT 61 + SUM ( DISTINCT 79 ) * 37 AS col0 FROM tab0 cor0 WHERE ( - CAST ( 50 AS INTEGER ) ) NOT IN ( col1 - ( + col2 ) )
----
2984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4479
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE ( 71 ) NOT BETWEEN ( NULL ) AND - col1 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE ( 71 ) NOT BETWEEN ( NULL ) AND - col1 * + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 11 + col0 * col0 FROM tab0 AS cor0
----
214
7558
9398

query I rowsort
SELECT 12 * - col1 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT + MAX( col1 ) * COUNT( CAST( + col2 AS SIGNED ) + col1 ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4483
SELECT + MAX ( col1 ) * COUNT ( CAST ( + col2 AS INTEGER ) + col1 ) AS col0 FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4484
SELECT DISTINCT - CAST( 37 AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT - CAST ( 37 AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL + COUNT( DISTINCT 22 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + COUNT ( DISTINCT 22 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 + 33 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT - col1 * - col0 FROM tab0 WHERE NULL NOT BETWEEN col2 - + 23 AND col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4488
SELECT - col1 * - col0 FROM tab0 WHERE NULL NOT BETWEEN col2 - + 23 AND col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT ALL col0 + + col0 + 17 DIV 58 * 8 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL col0 + + col0 + 17 / 58 * 8 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - COUNT( * ) + + ( - 5 ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-4490
SELECT - COUNT ( * ) + + ( - 5 ) AS col1 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT 18 * + col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT 18 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT 50 + COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT 50 + COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) NOT IN ( col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL + 80 + + col0 * + 90 FROM tab1
----
4670
7730
8270

query I rowsort
SELECT DISTINCT + + col2 + col0 + col2 AS col2 FROM tab0 AS cor0
----
107
109
295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + + - col0 * col0 col1 FROM tab0 cor0
----
-147
-7491
-9331

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 48 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col2 * - - 61 FROM tab0
----
2867
6039
610

query I rowsort
SELECT 66 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - COUNT( * ) * + SUM( DISTINCT - 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 41 ) IS NOT NULL
----
729

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT - 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 41 ) IS NOT NULL
----
729

query I rowsort
SELECT ALL + 59 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - ( + 26 ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 14 AS col0 FROM tab0 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + MIN( + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + MIN ( + col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL - 79 * 71 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-5632
-5649
-5667

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT - + 69 + 38 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + 69 + 38 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT SUM( - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4511
SELECT SUM ( - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4512
SELECT * FROM tab1 WHERE NOT CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4512
SELECT * FROM tab1 WHERE NOT CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN - - ( col0 ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ALL col0 DIV 46 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL col0 / 46 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + col0 * + col1 * col0 AS col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT - 85 * + + 34 AS col1 FROM tab2
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT COUNT( ALL - 26 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 22
----
0

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT COUNT ( ALL - 26 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL + col1 DIV col1 * - col2 col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4518
SELECT ALL + col1 / col1 * - col2 col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + col1 * 54 * + col0 + - 77 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + col1 * 54 * + col0 + - 77 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL BETWEEN - + 4 + col2 AND + col1 )
----

query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL - MAX( + 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-46

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - MAX ( + 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 35 ) > 93 AND - col2 / col0 + + col1 * col2 IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( + col2 ) < - - 49
----
51
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT - ( - + CAST( + ( - COUNT( * ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - ( - + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + ( + + 97 ) + - 84 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT ALL + + 64 * 10 AS col1 FROM tab1 AS cor0
----
640
640
640

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) * - SUM( ALL + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - SUM ( ALL + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT + 38 + + col0 + - col2 * - col0 * - col0 AS col1 FROM tab1
----
-249607
-426152
-562979

query III rowsort
SELECT * FROM tab0 WHERE - 37 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 72 * + 88 / - ( + 19 ) + col2 FROM tab1 WHERE ( - + col2 ) >= ( + 27 )
----

query II rowsort
SELECT col0, - 83 FROM tab0
----
15
-83
87
-83
97
-83

query I rowsort
SELECT DISTINCT - 61 + + col0 FROM tab2 WHERE - 29 IS NOT NULL
----
-15
14
3

query I rowsort
SELECT DISTINCT + col2 + - - 5 * - col0 FROM tab2 AS cor0
----
-207
-280
-317

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1 AS cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( - 36 ) + - - col1 AS col1 FROM tab1 AS cor0
----
-22
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 - + 76 col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - col2 - - 25 AS col1 FROM tab0 AS cor0
----
-22
-74
15

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 + col2 ) IN ( col0 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT COUNT( ALL col2 ) DIV ( - COUNT( * ) ) * + 91 + - - 41 AS col2 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( ALL col2 ) / ( - COUNT ( * ) ) * + 91 + - - 41 AS col2 FROM tab0 cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( NOT - 72 <= 96 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4545
SELECT MIN ( + col2 ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * 43 + + + col1 col1 FROM tab1 AS cor0
----
3574
3583
3616

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4547
SELECT - CAST( - - 74 AS SIGNED ) DIV col1 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT - CAST ( - - 74 AS INTEGER ) / col1 / col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4548
SELECT * FROM tab0 AS cor0 WHERE NOT + 36 NOT BETWEEN + - 8 + + col0 AND + + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4548
SELECT * FROM tab0 AS cor0 WHERE NOT + 36 NOT BETWEEN + - 8 + + col0 AND + + col2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * - 52 AS col2 FROM tab1
----
-2444
-260
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL col0 DIV + - 55 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL col0 / + - 55 AS col0 FROM tab0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT COUNT( * ) * + - 28 AS col2 FROM tab2 WHERE NOT - + col0 * + col1 IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT COUNT ( * ) * + - 28 AS col2 FROM tab2 WHERE NOT - + col0 * + col1 IS NULL
----
-84

query I rowsort
SELECT DISTINCT 51 + - 72 + 74 AS col2 FROM tab2
----
53

query II rowsort
SELECT + 39, col0 FROM tab2 AS cor0
----
39
46
39
64
39
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT + 70 + col0 * 24 FROM tab1 AS cor0 WHERE NOT NULL <> 0 + + + CAST( + col2 AS SIGNED ) * + + col0
----

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 70 + col0 * 24 FROM tab1 AS cor0 WHERE NOT NULL <> 0 + + + CAST ( + col2 AS INTEGER ) * + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 33 * 2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4558
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 50 / + CAST( - + 2 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-4558
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 50 / + CAST ( - + 2 AS INTEGER ) * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT ALL - col0 DIV 73 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - col0 / 73 AS col2 FROM tab0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE 54 * + 14 IS NULL
----

query I rowsort
SELECT ALL ( + col1 ) + 9 AS col0 FROM tab0
----
10
30
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - + col2 = - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4563
SELECT col2 * - + ( - col2 ) * - + col0, CAST( NULL AS SIGNED ) + ( + CAST( NULL AS SIGNED ) ) * - + col2 * 29 col1 FROM tab1 AS cor0
----
-295885
NULL
-420784
NULL
-470016
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4563
SELECT col2 * - + ( - col2 ) * - + col0, CAST ( NULL AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) ) * - + col2 * 29 col1 FROM tab1 AS cor0
----
-295885
NULL
-420784
NULL
-470016
NULL

query I rowsort
SELECT + 69 * + col1 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - MIN( - col1 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT - MIN ( - col1 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - COUNT( + 90 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4566
SELECT - COUNT ( + 90 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + SUM( + 54 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + SUM ( + 54 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - COUNT( CAST( + 70 AS SIGNED ) ) * + 22 * + - COUNT( * ) AS col2 FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - COUNT ( CAST ( + 70 AS INTEGER ) ) * + 22 * + - COUNT ( * ) AS col2 FROM tab0 cor0
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT ALL COUNT( * ) DIV + 41 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL COUNT ( * ) / + 41 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4570
SELECT ALL - CAST( NULL AS SIGNED ), 76 AS col0 FROM tab0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-4570
SELECT ALL - CAST ( NULL AS INTEGER ), 76 AS col0 FROM tab0
----
NULL
76
NULL
76
NULL
76

query I rowsort
SELECT col0 + - 76 FROM tab0
----
-61
11
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT col2 * ( + ( + CAST( NULL AS SIGNED ) ) ) + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT col2 * ( + ( + CAST ( NULL AS INTEGER ) ) ) + - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - - col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + - COUNT( DISTINCT + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( DISTINCT + col0 ) FROM tab1
----
0

query I rowsort
SELECT - 11 * 7 * - 54 + - + col1 AS col1 FROM tab0
----
4077
4137
4157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ( col0 ) + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ( col0 ) + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT DISTINCT MAX( - CAST( - ( + col0 ) AS SIGNED ) ) FROM tab1 cor0 WHERE NOT NULL IN ( ( + - col0 ) * + - col1 * col2 * - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT MAX ( - CAST ( - ( + col0 ) AS INTEGER ) ) FROM tab1 cor0 WHERE NOT NULL IN ( ( + - col0 ) * + - col1 * col2 * - + col0 )
----
NULL

query I rowsort
SELECT - col2 + - + 79 AS col0 FROM tab0 AS cor0
----
-126
-178
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT - 27 * - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 27 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + SUM( DISTINCT + + 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4580
SELECT + SUM ( DISTINCT + + 80 ) FROM tab1
----
80

query II rowsort
SELECT ALL - 76, - col1 + - ( col2 ) AS col1 FROM tab0
----
-76
-100
-76
-128
-76
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT - 2 DIV - + 21 * + 32 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT - 2 / - + 21 * + 32 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL + - CAST( - 99 AS SIGNED ) FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + - CAST ( - 99 AS INTEGER ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT 71 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-4584
SELECT 71 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
71
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4585
SELECT - + 19 DIV - 20 + + - ( - - ( + col0 ) ) * col2 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-705
-47
-870
-10
-9603
-99

skipif mysql # not compatible
query II rowsort label-4585
SELECT - + 19 / - 20 + + - ( - - ( + col0 ) ) * col2 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-705
-47
-870
-10
-9603
-99

query II rowsort
SELECT ALL col1 AS col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + 31 - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND - col0
----

query I rowsort
SELECT ALL + 34 AS col0 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + col0 + + 12 BETWEEN - - 5 AND + + col1 + + col1 - - - col1 + - + 26 - + - col0 * - + col2 * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 91 * - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT SUM( col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4593
SELECT DISTINCT SUM ( col1 ) col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 28 * 7 + - COUNT( * ) AS col1 FROM tab2
----
193

skipif mysql # not compatible
query I rowsort label-4595
SELECT 28 * 7 + - COUNT ( * ) AS col1 FROM tab2
----
193

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4596
SELECT - col1 + - col2, CAST( NULL AS DECIMAL ) col0 FROM tab0
----
-100
NULL
-128
NULL
-31
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4596
SELECT - col1 + - col2, CAST ( NULL AS REAL ) col0 FROM tab0
----
-100
NULL
-128
NULL
-31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4597
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 * col0 / col1 < + 23
----

skipif mysql # not compatible
query III rowsort label-4597
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 * col0 / col1 < + 23
----

query I rowsort
SELECT DISTINCT + col0 + - col1 * 87 + col1 AS col0 FROM tab1 cor0
----
-1153
-345
-3951

query II rowsort
SELECT - 74 AS col0, col1 FROM tab1
----
-74
14
-74
47
-74
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 23 <> - col1 * col1 / - col0
----

query I rowsort
SELECT 7 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - col0 ) + - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + col1 - + 75 FROM tab2 AS cor0
----
-24
-8
2

query I rowsort
SELECT ALL - col1 * + - col0 + + + 69 + + 48 FROM tab0 AS cor0
----
1332
1944
214

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 36 * col1 IN ( + col0 * - col0 + + col1 - - - col2 - col2 + col0 * + col1 * col2 * - 35 / + 95 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL + MAX( + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + MAX ( + + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL 56 - + + SUM( 50 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 56 - + + SUM ( 50 ) FROM tab1 AS cor0
----
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN 69 AND - col2
----

query I rowsort
SELECT - + col2 + - 30 FROM tab1 AS cor0
----
-126
-89
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + MAX( + + 65 ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4611
SELECT + MAX ( + + 65 ) AS col2 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT - COUNT( - - 26 ) AS col1 FROM tab0 WHERE + 10 - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT - COUNT ( - - 26 ) AS col1 FROM tab0 WHERE + 10 - col2 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4613
SELECT DISTINCT col2 / + col1 FROM tab2 WHERE NOT + col1 * + 37 * - CAST( NULL AS DECIMAL ) NOT BETWEEN ( 27 - + ( - col1 ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT col2 / + col1 FROM tab2 WHERE NOT + col1 * + 37 * - CAST ( NULL AS REAL ) NOT BETWEEN ( 27 - + ( - col1 ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 17 ) + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 87 ) col2, col1 FROM tab0
----
87
1
87
21
87
81

query I rowsort
SELECT ALL - ( col0 ) * - - ( ( + + 55 ) ) + + + col0 FROM tab0
----
-4698
-5238
-810

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT col2 NOT IN ( + 55, col0, - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT ALL + - ( + 35 ) DIV + - 62 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + - ( + 35 ) / + - 62 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + COUNT( ALL - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4620
SELECT + COUNT ( ALL - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4621
SELECT - + ( + col2 ) DIV + col2 + 1 + + col0, 45 AS col2 FROM tab0 AS cor0
----
15
45
87
45
97
45

skipif mysql # not compatible
query II rowsort label-4621
SELECT - + ( + col2 ) / + col2 + 1 + + col0, 45 AS col2 FROM tab0 AS cor0
----
15
45
87
45
97
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT + COUNT( * ) DIV + 65 + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) / + 65 + + COUNT ( * ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 39 - 10 + 62 col1 FROM tab2 AS cor0
----
1612
2314
949

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * - - 53 < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT COUNT( DISTINCT CAST( + ( col2 ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4625
SELECT COUNT ( DISTINCT CAST ( + ( col2 ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + - 22 FROM tab2 cor0 WHERE NOT - ( + 13 ) IS NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + MAX ( + - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT MIN( col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT MIN ( col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT col1 + + - ( + col2 ) FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL ( - COUNT( ALL col2 ) ) + 52 + + COUNT( * ) FROM tab2 cor0 WHERE NOT col2 / + - 96 < + + col0 - + - 91
----
52

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL ( - COUNT ( ALL col2 ) ) + 52 + + COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 / + - 96 < + + col0 - + - 91
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col0 col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + col2 * - 88 + + 12 FROM tab1 AS cor0
----
-5180
-5972
-8436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT 66 / + + CAST( NULL AS SIGNED ) / + col0 * + 69 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT 66 / + + CAST ( NULL AS INTEGER ) / + col0 * + 69 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 63 FROM tab2 AS cor0
----
103
121
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 = ( NULL )
----

query I rowsort
SELECT ALL - 88 - - + ( + 61 ) FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + - col0 * 96 + + 3 + - + col0 + + 99 AS col1 FROM tab1 AS cor0
----
-4845
-8143
-8725

query I rowsort
SELECT + col1 / col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT ALL + col0 * - - 0 * col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL NOT IN ( col2 / - - col1 / + col2 * + col1 - + col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + col0 * - - 0 * col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL NOT IN ( col2 / - - col1 / + col2 * + col1 - + col2, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 * + - 64 - + - col1 AS col2 FROM tab0 AS cor0
----
-5547
-6207
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT MIN( DISTINCT 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT MIN ( DISTINCT 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL - - col1 - - col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL 30 * - col2 AS col1 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4645
SELECT ALL - 35 * - MIN( ALL + col2 ), 74 DIV - MIN( + - col1 ) AS col2 FROM tab2
----
805
0

skipif mysql # not compatible
query II rowsort label-4645
SELECT ALL - 35 * - MIN ( ALL + col2 ), 74 / - MIN ( + - col1 ) AS col2 FROM tab2
----
805
0

query I rowsort
SELECT + 49 * col2 FROM tab2
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT - MAX( - 24 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - MAX ( - 24 ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + COUNT( ALL + 37 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4648
SELECT + COUNT ( ALL + 37 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 * + 89 * - - col0 FROM tab2
----
208794
438592
447225

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT - COUNT( * ) * COUNT( ALL - CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - COUNT ( * ) * COUNT ( ALL - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT col0 * + - ( + 70 ) * - + col0 FROM tab2
----
148120
286720
393750

query I rowsort
SELECT DISTINCT 30 * - 99 FROM tab1
----
-2970

onlyif mysql # aggregate syntax: 
query II rowsort label-4654
SELECT + 74, COUNT( - 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 24 IS NULL
----
74
3

skipif mysql # not compatible
query II rowsort label-4654
SELECT + 74, COUNT ( - 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 24 IS NULL
----
74
3

query II rowsort
SELECT DISTINCT 23 AS col2, - col0 FROM tab0 cor0
----
23
-15
23
-87
23
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - 86 * COUNT( * ) * - COUNT( * ) * - - MIN( + 53 ) AS col0 FROM tab2
----
41022

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - 86 * COUNT ( * ) * - COUNT ( * ) * - - MIN ( + 53 ) AS col0 FROM tab2
----
41022

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL col1 DIV - 17 col1 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4657
SELECT ALL col1 / - 17 col1 FROM tab0
----
-1
-4
0

query I rowsort
SELECT 45 * 36 * + 21 FROM tab1
----
34020
34020
34020

query I rowsort
SELECT ALL 0 FROM tab1 WHERE + + col2 * col2 + 68 + - - col1 * - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT CAST( - - 74 AS SIGNED ) AS col2 FROM tab1
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4660
SELECT CAST ( - - 74 AS INTEGER ) AS col2 FROM tab1
----
74
74
74

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE - col1 < col0
----
15
87
97

query I rowsort
SELECT 94 * + 67 FROM tab2
----
6298
6298
6298

query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab0 AS cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 80 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + + - 28 + col0 FROM tab1 cor0 WHERE NOT 42 + + 9 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT DISTINCT + col0 DIV + + 34 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + col0 / + + 34 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT - col0 * - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - COUNT( DISTINCT + + col2 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 >= - + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL - MAX( ALL 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - MAX ( ALL 75 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT - ( - 94 ) + + - col1 * + col2 FROM tab2
----
-1079
-2986
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - COUNT( * ) * + 46 AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - COUNT ( * ) * + 46 AS col1 FROM tab0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT 60 DIV col1 + - col1 AS col2 FROM tab2
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-4673
SELECT 60 / col1 + - col1 AS col2 FROM tab2
----
-50
-67
-77

query I rowsort
SELECT - col1 + - + 17 FROM tab0
----
-18
-38
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4675
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 / col0 + + + 18, + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - + col2, + 28 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-4675
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 / col0 + + + 18, + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - + col2, + 28 / + col2 )
----

query I rowsort
SELECT ALL col1 + - + ( col2 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ( - + 8 ) + - 69 FROM tab2
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + col2 * - 82 + ( + col2 ) / 65 + - col0 FROM tab0 WHERE 87 * + 95 - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT 62 + - - COUNT( * ) AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-4680
SELECT 62 + - - COUNT ( * ) AS col2 FROM tab2
----
65

query I rowsort
SELECT DISTINCT + + col1 * + + 25 AS col0 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 42 * - col0 * - col0 + + col1 FROM tab0 AS cor0
----
-317877
-395177
-9369

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - - 81 + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4684
SELECT - - 81 + COUNT ( * ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - + 18 * + SUM( + - col2 ) + - MIN( ALL 53 ) + 67 col2 FROM tab1 AS cor0
----
4028

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT - + 18 * + SUM ( + - col2 ) + - MIN ( ALL 53 ) + 67 col2 FROM tab1 AS cor0
----
4028

query I rowsort
SELECT ALL col1 + - col1 * + - col0 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT ALL - - col1 - - col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 62 + - COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 62 + - COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT ALL - 94 DIV + + 17 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - 94 / + + 17 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT + - CAST( + 23 AS SIGNED ) + + + col2 + + - col2 * + 3 AS col2 FROM tab1 AS cor0
----
-141
-159
-215

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + - CAST ( + 23 AS INTEGER ) + + + col2 + + - col2 * + 3 AS col2 FROM tab1 AS cor0
----
-141
-159
-215

query I rowsort
SELECT - + 22 FROM tab2 cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col0 + - + col1 - col2 < 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 col0, + col0 * + col2 AS col0 FROM tab0 AS cor0
----
17
705
17
870
17
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 2 < NULL
----

query II rowsort
SELECT - 52 AS col1, 74 AS col0 FROM tab2 AS cor0
----
-52
74
-52
74
-52
74

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4697
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT - 53 DIV - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4698
SELECT - 53 / - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * col2 * 85 FROM tab2 AS cor0
----
261800
330310
99705

query III rowsort
SELECT * FROM tab0 WHERE NOT 50 < NULL
----

query I rowsort
SELECT ALL + ( - col2 ) + - ( col1 ) FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT + COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4702
SELECT + COUNT ( + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 98 * + + col1 FROM tab2 AS cor0
----
4998
6566
7546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col0, - 70 - + col0 col0 FROM tab0 AS cor0
----
-15
-85
-87
-157
-97
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT - ( SUM( - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - ( SUM ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 59 * + col1 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT COUNT( * ) DIV + CAST( + - SUM( ALL + - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT COUNT ( * ) / + CAST ( + - SUM ( ALL + - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + - 7 + COUNT( ALL + col1 ) + - COUNT( * ) + 43 * + - 27 * - + COUNT( * ) FROM tab1 AS cor0 WHERE col2 > + + col0
----
1154

skipif mysql # not compatible
query I rowsort label-4708
SELECT + - 7 + COUNT ( ALL + col1 ) + - COUNT ( * ) + 43 * + - 27 * - + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 > + + col0
----
1154

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + COUNT( * ) * - MIN( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4709
SELECT + COUNT ( * ) * - MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
225

query II rowsort
SELECT ALL 32 * 7 AS col0, + col2 AS col1 FROM tab1
----
224
59
224
68
224
96

query I rowsort
SELECT DISTINCT + 16 * col1 + - 99 / - col0 / 11 + + - col2 AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4712
SELECT DISTINCT * FROM tab1 WHERE - ( - col0 ) * + + col1 + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-4712
SELECT DISTINCT * FROM tab1 WHERE - ( - col0 ) * + + col1 + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL 31 + col0 FROM tab0
----
118
128
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT CAST( NULL AS SIGNED ) / + - 53 AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4714
SELECT CAST ( NULL AS INTEGER ) / + - 53 AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 46 + + + col0 AS col0 FROM tab0
----
133
143
61

query I rowsort
SELECT DISTINCT + col2 - + 25 * + col2 AS col2 FROM tab2 AS cor0
----
-1392
-552
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT + 22 * + COUNT( + + col1 ) * - + COUNT( * ) + + ( + + 3 ) + + 24 AS col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + 22 * + COUNT ( + + col1 ) * - + COUNT ( * ) + + ( + + 3 ) + + 24 AS col0 FROM tab1 AS cor0
----
-171

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab2 cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT col1 DIV - 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT col1 / - 80 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( - - 84 ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4721
SELECT ALL COUNT ( * ) col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL + 64 col1 FROM tab2 AS cor0 WHERE + ( - ( + col0 ) ) + - col1 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT ALL + 64 col1 FROM tab2 AS cor0 WHERE + ( - ( + col0 ) ) + - col1 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4726
SELECT col0 AS col1, + col0 + - - 22 + + CAST( NULL AS SIGNED ) * 29 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4726
SELECT col0 AS col1, + col0 + - - 22 + + CAST ( NULL AS INTEGER ) * 29 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT + col2, - col2 AS col2 FROM tab0 WHERE NOT - 54 NOT BETWEEN NULL AND + col0 + - col1
----

query II rowsort
SELECT col1 AS col0, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT col0 * + col2 AS col2, 0 FROM tab1
----
4896
0
5015
0
6188
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - 74 AS col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT ALL 62 * + 3 + + + col0 + + 57 AS col1 FROM tab0 WHERE NOT col2 > + - col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - col2 col0 FROM tab0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 56 AND ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + MAX( - 30 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4735
SELECT + MAX ( - 30 ) FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + 52 * col1 + + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( + 27 ) col0 FROM tab0 cor0
----
114
124
42

query II rowsort
SELECT ALL - + 95 * + col2 AS col2, 6 AS col1 FROM tab1 AS cor0
----
-5605
6
-6460
6
-9120
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT - col1 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - col1 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT - 65 + - 0 AS col0, - 73 AS col1 FROM tab2 AS cor0
----
-65
-73
-65
-73
-65
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL COUNT( * ) * - 46 AS col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL COUNT ( * ) * - 46 AS col2 FROM tab0 AS cor0
----
-138

query I rowsort
SELECT ALL - ( - + col0 ) * - col1 * + col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col1 + - col0 + - + 44 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 + - col0 + - + 44 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * + 84 + + col2 + col2 * col0 AS col0 FROM tab2
----
-464
-760
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col2 + + 94 AS col1, col2 col1 FROM tab0
----
-4
99
105
10
128
47

query I rowsort
SELECT + col2 * + + 56 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT ( + col1 ) * - col1 * - col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT ALL 75 + + - 79 AS col1 FROM tab1
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT ALL - 45 * col0 + - col0 DIV - - 40 col1 FROM tab2
----
-2071
-2881
-3376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4749
SELECT ALL - 45 * col0 + - col0 / - - 40 col1 FROM tab2
----
-2071
-2881
-3376

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL SUM( DISTINCT + 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL SUM ( DISTINCT + 38 ) AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT + + 13 - - col2 + - ( col2 ) FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL - col0 - + ( - 37 ) + - col1 * - + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
377
4223
700

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - col0 - + ( - 37 ) + - col1 * - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
377
4223
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( NOT 47 + - col2 NOT BETWEEN + - 10 AND + col2 )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NOT 47 + - col2 NOT BETWEEN + - 10 AND + col2 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT - CAST( - + col2 AS SIGNED ) * 11 FROM tab0 AS cor0
----
1089
110
517

skipif mysql # not compatible
query I rowsort label-4755
SELECT - CAST ( - + col2 AS INTEGER ) * 11 FROM tab0 AS cor0
----
1089
110
517

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT DISTINCT + + col1 DIV + ( + - 79 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4757
SELECT DISTINCT + + col1 / + ( + - 79 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - ( - COUNT( ALL 63 ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4758
SELECT - ( - COUNT ( ALL 63 ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT COUNT( ALL - ( + 32 ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4759
SELECT COUNT ( ALL - ( + 32 ) ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT 70 + - - col1, ( + + 14 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 16, + col1, + + 41 * + 69 )
----

query I rowsort
SELECT ALL + 42 FROM tab0 cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT + 52 * - - 73 FROM tab1 AS cor0
----
3796
3796
3796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT col2 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4763
SELECT col2 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT DISTINCT - col0 * col0 * + + ( - 4 ) FROM tab2
----
16384
22500
8464

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 34 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT + 98 DIV - - ( + - 15 ) FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 98 / - - ( + - 15 ) FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT COUNT( DISTINCT - col1 ) + - COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4768
SELECT COUNT ( DISTINCT - col1 ) + - COUNT ( * ) col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT + col1 DIV - + 95 + - 72 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-4769
SELECT + col1 / - + 95 + - 72 FROM tab0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL 28 DIV + + col2 + + 49 AS col1 FROM tab2
----
49
49
50

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL 28 / + + col2 + + 49 AS col1 FROM tab2
----
49
49
50

query I rowsort
SELECT DISTINCT + + 2 + - col1 FROM tab2 AS cor0
----
-49
-65
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL COUNT( * ) * - SUM( - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL COUNT ( * ) * - SUM ( - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39, + col1 + - + col0 col1 FROM tab2 AS cor0
----
-39
-8
-39
13
-39
5

query I rowsort
SELECT DISTINCT 39 + + ( + 53 ) FROM tab0 AS cor0
----
92

query II rowsort
SELECT + 53 AS col0, 38 AS col0 FROM tab0 AS cor0
----
53
38
53
38
53
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab2 AS cor0 WHERE ( - 41 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 17 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col0 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT 75 + - + col0 AS col0 FROM tab0
----
-12
-22
60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) + 11 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) + 11 FROM tab2
----
NULL

query II rowsort
SELECT + col2 + + col1, + col2 + + col1 FROM tab0
----
100
100
128
128
31
31

query I rowsort
SELECT ALL + - col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + ( - 5 ) + + + ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-179
-243
-308

query I rowsort
SELECT col1 + - - 11 + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
128
136
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT + - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4788
SELECT + - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 76 - 73 - - ( col0 ) * col0 AS col1, + 58 AS col0 FROM tab2 AS cor0
----
2119
58
4099
58
5628
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4790
SELECT col1 - + 70 AS col0 FROM tab2 AS cor0 WHERE col0 + - col2 IN ( + CAST( + ( - col2 ) AS DECIMAL ) * + col1 / col2 - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4790
SELECT col1 - + 70 AS col0 FROM tab2 AS cor0 WHERE col0 + - col2 IN ( + CAST ( + ( - col2 ) AS REAL ) * + col1 / col2 - CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

query I rowsort
SELECT - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL ( + 37 ) FROM tab2 AS cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT ALL - col2 DIV - + col0 + + - 52 - col0 + - 18 * - col1 FROM tab2 AS cor0
----
1079
1270
820

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - col2 / - + col0 + + - 52 - col0 + - 18 * - col1 FROM tab2 AS cor0
----
1079
1270
820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT - - col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - - col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4796
SELECT MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT ( + - col1 ) AS col2, 22 FROM tab2
----
-51
22
-67
22
-77
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT DISTINCT COUNT( * ) * 21 AS col2, COUNT( - + col2 ) FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-4798
SELECT DISTINCT COUNT ( * ) * 21 AS col2, COUNT ( - + col2 ) FROM tab1
----
63
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT 74 * - - ( - ( - col2 ) ) * + - 27 FROM tab2
----
-115884
-45954
-79920

query I rowsort
SELECT ( + col0 ) + 61 FROM tab1
----
112
146
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / + - col0 > 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - + 92 - 21 AS col1 FROM tab2
----
-36
-46
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4805
SELECT ALL COUNT( col0 ) AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL COUNT ( col0 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + 86 + + 94 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT + 71 * + CAST( NULL AS DECIMAL ) - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 71 * + CAST ( NULL AS REAL ) - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT COUNT( * ), 33 AS col1 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-4808
SELECT COUNT ( * ), 33 AS col1 FROM tab2
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4809
SELECT MIN ( ALL + col1 ) FROM tab0
----
1

query I rowsort
SELECT + - 42 + - col1 - - 85 FROM tab0 AS cor0
----
-38
22
42

query I rowsort
SELECT - ( - - col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 16 + col2 - col2 * + 18 * + col2 - - col1 + col2 * + - 31 AS col1 FROM tab0 AS cor0
----
-179371
-2063
-41075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL + 64 * + CAST( NULL AS SIGNED ) / - col0 + col1 * col1 * col1 - + - 96 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + 64 * + CAST ( NULL AS INTEGER ) / - col0 + col1 * col1 * col1 - + - 96 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col0 AS col2, col2 * col1 * - - 25 - 13 FROM tab1 AS cor0
----
-51
33587
-85
7362
-91
79887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 47 col1, - col0 AS col1 FROM tab1
----
-47
-51
-47
-85
-47
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + ( + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4816
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4817
SELECT * FROM tab0 WHERE ( NOT 40 + - col0 + + + CAST( + + ( - 91 ) AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4817
SELECT * FROM tab0 WHERE ( NOT 40 + - col0 + + + CAST ( + + ( - 91 ) AS INTEGER ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT - 58 - - 86 DIV - 21 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-4818
SELECT - 58 - - 86 / - 21 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT - 62 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 62 / - col1 AS col1 FROM tab0 AS cor0
----
0
2
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT + 95, + COUNT( * ) col0 FROM tab1 AS cor0
----
95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4820
SELECT + 95, + COUNT ( * ) col0 FROM tab1 AS cor0
----
95
3

query II rowsort
SELECT - col2, + col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1 + 52
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT ALL 39 - - 38 AS col2, + COUNT( * ) AS col0 FROM tab1 WHERE NOT + + 17 IS NOT NULL
----
77
0

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL 39 - - 38 AS col2, + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + 17 IS NOT NULL
----
77
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( + + 29 + - + 76 * + + col1 >= + col1 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - SUM( - 95 ) col2 FROM tab1 cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4826
SELECT ALL - SUM ( - 95 ) col2 FROM tab1 cor0
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 68 * - col0 col1 FROM tab1 AS cor0
----
3468
5780
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-4828
SELECT col1 DIV + col0, - 56 col0 FROM tab2 cor0
----
0
-56
1
-56
1
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4828
SELECT col1 / + col0, - 56 col0 FROM tab2 cor0
----
0
-56
1
-56
1
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT 6 DIV 96 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT 6 / 96 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 65 * - + col1 + - col2 FROM tab1 AS cor0
----
-1006
-3123
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL COUNT( * ) * - - 23 col0 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL COUNT ( * ) * - - 23 col0 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab2 WHERE - col2 * 86 - + col1 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT col2 * + ( + - 27 ) FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + COUNT( * ) + + 36 AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + COUNT ( * ) + + 36 AS col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL - + 59 - 94 * 23 AS col2 FROM tab2 AS cor0
----
-2221
-2221
-2221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - col0 + - col1 - - + 1 - - 37 * - 94 * col2 col1 FROM tab2 cor0
----
-134332
-196840
-77744

query I rowsort
SELECT + - col0 - 53 AS col2 FROM tab0 AS cor0
----
-140
-150
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 - + col1 col0 FROM tab0 AS cor0
----
-60
0
20

query I rowsort
SELECT ALL 46 - - col1 + + col2 * + 99 + 13 * - - col2 AS col1 FROM tab2
----
2673
4603
6609

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL + COUNT( ALL - 17 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + COUNT ( ALL - 17 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT 91 * - col2 * - col2 + col2 DIV - - col1 FROM tab2
----
145600
306124
48139

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT 91 * - col2 * - col2 + col2 / - - col1 FROM tab2
----
145600
306124
48139

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4847
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col0, - CAST( NULL AS SIGNED ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-4847
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col0, - CAST ( NULL AS INTEGER ) - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab0 cor0
----
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 20 BETWEEN - - col2 AND - + col1 * - + ( + col1 ) + - 33 + 47
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) * - 62 > - - 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4851
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( 69 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4851
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( 69 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col1 * ( col0 ) FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT COUNT( * ) * 47 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT COUNT ( * ) * 47 FROM tab0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 80 FROM tab2
----
23
80
40
80
58
80

query II rowsort
SELECT + 41 AS col1, - col1 AS col1 FROM tab0
----
41
-1
41
-21
41
-81

query I rowsort
SELECT ALL 1 * - 8 AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col0 * - col1 + - - col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT ALL + CAST( NULL AS DECIMAL ) * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + CAST ( NULL AS REAL ) * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 * 91 AS col0 FROM tab2
----
3367

onlyif mysql # DIV for integer division: 
query II rowsort label-4863
SELECT ALL 64 DIV - + col1 AS col2, - col1 + col2 * + - col0 AS col2 FROM tab1
----
-1
-6235
-12
-5020
-4
-4910

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL 64 / - + col1 AS col2, - col1 + col2 * + - col0 AS col2 FROM tab1
----
-1
-6235
-12
-5020
-4
-4910

query I rowsort
SELECT ALL col2 + - - 58 FROM tab0
----
105
157
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT 45 + - + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4865
SELECT 45 + - + COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT - col0 * 87 + + col1 + + col1 FROM tab2
----
-3900
-5414
-6391

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 * + col2 * + - ( - ( - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE + col2 > - - 61
----
-249696
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 + + - col0 + + col0 + col0 * ( 95 ) AS col2 FROM tab1
----
11841
6189
8370

query III rowsort
SELECT * FROM tab2 WHERE col1 / - + col0 = - col0 AND ( NULL ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= CAST( col1 AS SIGNED ) * + - 64
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= CAST ( col1 AS INTEGER ) * + - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL + + ( MIN( ALL col0 ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + + ( MIN ( ALL col0 ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col0
----

query I rowsort
SELECT ALL - - 41 + 20 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - ( + 11 ) IS NULL )
----
46
64
75

query II rowsort
SELECT + + 8, + col2 * 43 AS col0 FROM tab1 AS cor0
----
8
2537
8
2924
8
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + MIN( + + 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4880
SELECT + MIN ( + + 32 ) AS col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT MAX( - 3 ) * - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4882
SELECT MAX ( - 3 ) * - COUNT ( * ) AS col1 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * 5 col1 FROM tab0
----
2205
32805
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 13, ( + + 67 ) + - col2, - col1, 78 )
----

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT - 2 DIV 48 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT - 2 / 48 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 94 + - 6 + ( + + col2 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 7 AS col2 FROM tab2 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT CAST( 57 AS SIGNED ) FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-4889
SELECT CAST ( 57 AS INTEGER ) FROM tab1 AS cor0
----
57
57
57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT - SUM( DISTINCT 50 ) AS col0 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - SUM ( DISTINCT 50 ) AS col0 FROM tab2 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - - + col0 * + col1 * - 85 * - col0 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 84 ) * - + col1 + 63 + + + col0 * + col1 col0 FROM tab1 AS cor0
----
1953
8288
908

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT + 52 DIV 70 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 52 / 70 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 53 * col0 AS col1 FROM tab1 AS cor0
----
-2703
-4505
-4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 * + 38 col0 FROM tab1 AS cor0
----
152
152
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 87 col1 FROM tab2 AS cor0
----
-2001
-3480
-5046

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 40 * - col1 AS col0 FROM tab0 AS cor0
----
-3240
-40
-840

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * 42 + + - col2 < + col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT SUM( ALL + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT SUM ( ALL + + col1 ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT - col0, - col1 DIV - 89 AS col1 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-4902
SELECT - col0, - col1 / - 89 AS col1 FROM tab1
----
-51
0
-85
0
-91
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 52 col0 FROM tab0
----
-37
35
45

query I rowsort
SELECT ( ( + col1 ) ) + + ( ( col2 ) ) FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4906
SELECT + col0, ( - + 38 ) + + col0 + - - col1 FROM tab1 WHERE 94 < + CAST( - + ( - col1 ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4906
SELECT + col0, ( - + 38 ) + + col0 + - - col1 FROM tab1 WHERE 94 < + CAST ( - + ( - col1 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT ALL - CAST( NULL AS SIGNED ) + - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - CAST ( NULL AS INTEGER ) + - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - col2 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 43 * + col2 + + - col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT 29 / + CAST( NULL AS SIGNED ) / 14 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT 29 / + CAST ( NULL AS INTEGER ) / 14 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT - COUNT( * ) - + 60, 45 AS col2 FROM tab1 AS cor0
----
-63
45

skipif mysql # not compatible
query II rowsort label-4911
SELECT - COUNT ( * ) - + 60, 45 AS col2 FROM tab1 AS cor0
----
-63
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT + - col1 - col2 * - col0 + CAST( + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4933
5095
6232

skipif mysql # not compatible
query I rowsort label-4912
SELECT + - col1 - col2 * - col0 + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4933
5095
6232

query I rowsort
SELECT col2 - col2 * - 48 * - col1 AS col0 FROM tab2 AS cor0
----
-147800
-186470
-56281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4914
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col0 NOT BETWEEN + col1 * ( + CAST( NULL AS SIGNED ) ) AND + col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4914
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col0 NOT BETWEEN + col1 * ( + CAST ( NULL AS INTEGER ) ) AND + col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL - col1 - - col1 + - - col0 + - ( col1 ) + + CAST( NULL AS SIGNED ) * - - col2 / + - col0 * + + 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - col1 - - col1 + - - col0 + - ( col1 ) + + CAST ( NULL AS INTEGER ) * - - col2 / + - col0 * + + 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + - 29 ) - - - col2 * + 35 FROM tab0 AS cor0
----
-1674
-3494
-379

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT DISTINCT 22 DIV + 64 + - - col0 + - + col0 col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT DISTINCT 22 / + 64 + - - col0 + - + col0 col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + col2 * 10 FROM tab1
----
590
680
960

query I rowsort
SELECT - 53 * + col1 AS col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT col2 DIV col1 DIV - + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT col2 / col1 / - + col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 * + ( - + col0 ) * col2 - + 36 + - - col1 * 48 AS col2 FROM tab2
----
-160180
-323070
-46256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT CAST( NULL AS SIGNED ) * 48 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT CAST ( NULL AS INTEGER ) * 48 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT col1 DIV 38 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4923
SELECT col1 / 38 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT 87 DIV - col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT 87 / - col0 FROM tab1
----
-1
-1
0

query II rowsort
SELECT col0, + 95 FROM tab1 AS cor0
----
51
95
85
95
91
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL SUM( DISTINCT 4 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL SUM ( DISTINCT 4 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + 46 + - col2 ) > - col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE ( 90 ) = col2 + + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN 96 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - COUNT( * ) + - 58 AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - COUNT ( * ) + - 58 AS col2 FROM tab2
----
-61

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) BETWEEN col0 AND col0
----

query I rowsort
SELECT ALL 7 * col1 AS col1 FROM tab0
----
147
567
7

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) > + col1
----

query I rowsort
SELECT + 93 FROM tab1 WHERE NOT ( col1 + + col0 * + col2 ) NOT BETWEEN ( NULL ) AND ( + col0 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT + CAST( NULL AS SIGNED ) * - 59 + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CAST ( NULL AS INTEGER ) * - 59 + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - COUNT( col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4936
SELECT - COUNT ( col0 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + 40
----

query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT SUM( + col2 ) + + 35 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4939
SELECT SUM ( + col2 ) + + 35 FROM tab2
----
156

query I rowsort
SELECT DISTINCT + 66 * + 3 AS col0 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT COUNT( * ) * 52 AS col2 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT COUNT ( * ) * 52 AS col2 FROM tab1
----
156

query I rowsort
SELECT + 60 * col2 AS col2 FROM tab0
----
2820
5940
600

query III rowsort
SELECT * FROM tab1 WHERE 80 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT + col2 DIV col0 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4944
SELECT + col2 / col0 + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - 71 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) FROM tab1 WHERE - col2 < ( - 75 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT ALL - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND ( + 35 )
----
15
81
47

query I rowsort
SELECT DISTINCT - ( + col0 ) + col1 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + 30 * 71 AS col1 FROM tab1
----
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT 53 * MIN( - col1 * 37 ) AS col1 FROM tab1
----
-92167

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT 53 * MIN ( - col1 * 37 ) AS col1 FROM tab1
----
-92167

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 77 + 26 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 50 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0 / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0 / col0 )
----
0

query I rowsort
SELECT + col2 + + 1 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL - col1 * - col2 + - 98 AS col1 FROM tab2
----
1075
2982
3788

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT - COUNT( ALL col2 ) FROM tab2 WHERE NOT 28 * + col0 + - col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT - COUNT ( ALL col2 ) FROM tab2 WHERE NOT 28 * + col0 + - col0 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE 73 BETWEEN ( + col0 * col0 + + 13 ) AND + ( col1 )
----

query I rowsort
SELECT DISTINCT - 48 * - col0 FROM tab1 AS cor0
----
2448
4080
4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + col1 * col0 FROM tab1 AS cor0 WHERE NOT ( + 9 ) IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT COUNT( ( 61 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4965
SELECT COUNT ( ( 61 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 47 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( - col2 + - ( col2 ) )
----

query I rowsort
SELECT ALL - + 98 AS col1 FROM tab1 AS cor0
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col0 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - col0 / + 81 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT COUNT( ALL + 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT COUNT ( ALL + 16 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 97 * - col0 AS col0 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab2 WHERE + 0 IS NOT NULL
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 66 <> 81 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT ALL CAST( col0 AS SIGNED ) * + ( ( col1 ) ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL CAST ( col0 AS INTEGER ) * + ( ( col1 ) ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT 34 DIV - MIN( ALL 70 ) FROM tab0 WHERE NOT ( 72 ) = col0 DIV - col2
----
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT 34 / - MIN ( ALL 70 ) FROM tab0 WHERE NOT ( 72 ) = col0 / - col2
----
0

query I rowsort
SELECT + + col2 * - col0 + col0 AS col1 FROM tab1 cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL 32 FROM tab1 WHERE ( + 21 * - col0 ) IS NOT NULL
----
32
32
32

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 35 <= 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 79 + + - col1 * - - col1 - ( - col1 ) AS col0 FROM tab2
----
-2471
-4343
-5773

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT 26 * + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL <= col0 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT 26 * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL <= col0 + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 38 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 38 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + 37 * col2 AND ( + ( + 2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT + 42 col1, COUNT( * ) + - 12 + + 2 * - COUNT( * ) FROM tab1 AS cor0
----
42
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT + 42 col1, COUNT ( * ) + - 12 + + 2 * - COUNT ( * ) FROM tab1 AS cor0
----
42
-15

query I rowsort
SELECT col2 * col1 * - 5 FROM tab1 AS cor0
----
-1475
-15980
-6720

query I rowsort
SELECT - + col2 + + col0 AS col0 FROM tab1 cor0 WHERE 55 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT COUNT( + CAST( NULL AS SIGNED ) ) * + MAX( ALL - col1 ) * + 44 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) * + MAX ( ALL - col1 ) * + 44 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 WHERE NOT 32 * + + 78 NOT BETWEEN ( - 51 ) * 61 AND NULL
----

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab2 WHERE NOT NULL <= ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4993
SELECT - 75 DIV - col2 - - col1 DIV + CAST( col1 AS SIGNED ) col1 FROM tab2
----
2
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4993
SELECT - 75 / - col2 - - col1 / + CAST ( col1 AS INTEGER ) col1 FROM tab2
----
2
2
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4994
SELECT + COUNT( * ) FROM tab1 WHERE + + col1 NOT BETWEEN + CAST( NULL AS DECIMAL ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COUNT ( * ) FROM tab1 WHERE + + col1 NOT BETWEEN + CAST ( NULL AS REAL ) AND + col1
----
0

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT 6 + col0 AS col1 FROM tab2
----
52
70
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT col1 * + 60 / + + col2 * + col0 + col1 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT col1 * + 60 / + + col2 * + col0 + col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT DISTINCT ( + 7 ), COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-4998
SELECT DISTINCT ( + 7 ), COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
7
3

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * 30 col0 FROM tab0
----
1860
1860
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + MIN( + 93 ) FROM tab2 WHERE col2 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT + MIN ( + 93 ) FROM tab2 WHERE col2 < ( NULL )
----
NULL

query I rowsort
SELECT ALL - col1 + - col0 FROM tab0 WHERE NOT - - col1 * - + col2 - + 75 IS NULL
----
-108
-96
-98

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT - - MAX( 34 ) AS col2 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - - MAX ( 34 ) AS col2 FROM tab1 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( 77 ) NOT IN ( 70 * - + col0 )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <> + 33 + + - ( col1 ) * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 - col0 ) > 99
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT 39 * COUNT( * ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-5009
SELECT 39 * COUNT ( * ) FROM tab1
----
117

query I rowsort
SELECT - 32 FROM tab1 WHERE NOT + 75 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT COUNT( * ) AS col2, COUNT( + col2 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5011
SELECT COUNT ( * ) AS col2, COUNT ( + col2 ) FROM tab2
----
3
3

query I rowsort
SELECT ALL - 10 * - 63 AS col1 FROM tab2
----
630
630
630

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE ( ( ( - - col0 ) IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5014
SELECT * FROM tab2 WHERE NOT ( NOT ( col1 * - - CAST( - ( + col0 ) AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5014
SELECT * FROM tab2 WHERE NOT ( NOT ( col1 * - - CAST ( - ( + col0 ) AS INTEGER ) ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT DISTINCT - col1 DIV + - 57 * - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - col1 / + - 57 * - + col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + ( + + 87 ) ) NOT IN ( + 74 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN - + 98 AND ( + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5019
SELECT ALL - - 54 AS col0, + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
54
-51
54
-67
54
-77

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL - - 54 AS col0, + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
54
-51
54
-67
54
-77

query II rowsort
SELECT DISTINCT 37, col1 AS col2 FROM tab2 AS cor0
----
37
51
37
67
37
77

query I rowsort
SELECT DISTINCT - ( ( - + 34 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + col1 * 25 + - col1 FROM tab0
----
-2476
-5271
-95256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + - col2 col2 FROM tab0
----
-20
32
69

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 63 + - + col2 BETWEEN - col1 * - - ( - col2 ) * - col0 + - col2 AND + 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * + + col1 col1 FROM tab2 AS cor0 WHERE ( + + 97 = ( - + col2 ) )
----

query I rowsort
SELECT - 68 + - col1 AS col0 FROM tab0 AS cor0 WHERE ( ( - col2 - col1 + col2 IS NULL ) )
----

query I rowsort
SELECT + col1 * + 98 AS col1 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> 12
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL + 54 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + 54 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + + col1 NOT BETWEEN col1 * - col2 * 31 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT SUM( ALL + 26 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT SUM ( ALL + 26 ) AS col2 FROM tab2
----
78

query I rowsort
SELECT DISTINCT + col0 + - - 58 FROM tab2
----
104
122
133

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col2 FROM tab0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab1
----
59
59
59

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE 50 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 / + + col2 + - + col0 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 90 * + + col1 FROM tab0 cor0 WHERE col0 * + 87 - - col2 - col2 = ( + - 68 )
----

query I rowsort
SELECT - + col2 * + 6 - - col1 AS col1 FROM tab1 cor0 WHERE NOT col2 * + 87 - - - col2 + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT DISTINCT col2 * - CAST( - col0 AS SIGNED ) col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5042
SELECT DISTINCT col2 * - CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col0 * + 55 * - col2 AS col1 FROM tab2
----
-140800
-239250
-58190

query II rowsort
SELECT ALL 51 * - col0 * + col1 AS col2, + 88 FROM tab1 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + - ( + col1 ) FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT 56 * COUNT( * ) AS col0 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-5050
SELECT 56 * COUNT ( * ) AS col0 FROM tab0
----
168

query I rowsort
SELECT col1 * 45 FROM tab2 AS cor0
----
2295
3015
3465

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( + 20 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT col0 * + CAST( + 65 AS SIGNED ) + - + col0 + - col0 FROM tab2 AS cor0
----
2898
4032
4725

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT col0 * + CAST ( + 65 AS INTEGER ) + - + col0 + - col0 FROM tab2 AS cor0
----
2898
4032
4725

query I rowsort
SELECT ALL + col1 * + 8 AS col2 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 > ( 4 + col1 )
----
-75

query II rowsort
SELECT DISTINCT - col2 * + col0 AS col0, 36 FROM tab0
----
-705
36
-870
36
-9603
36

query III rowsort
SELECT * FROM tab1 WHERE - ( - col2 ) * 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 66 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT 71 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - - COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5060
SELECT - - COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + + col1 * - - col2 FROM tab2 AS cor0
----
1150
3040
3828

query II rowsort
SELECT col0, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT + + CAST( NULL AS SIGNED ) * - col0 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT + + CAST ( NULL AS INTEGER ) * - col0 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 * + + 92 FROM tab0 AS cor0
----
64860
80040
883476

query I rowsort
SELECT - + 46 * - + ( col0 ) FROM tab1 cor0
----
2346
3910
4186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT + - MAX( ALL col0 ) DIV - + MAX( DISTINCT 33 ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + - MAX ( ALL col0 ) / - + MAX ( DISTINCT 33 ) AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT col2 + + + col1 - ( + ( 85 ) ) FROM tab2
----
-11
32
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col2 NOT IN ( - col1, + CAST( NULL AS SIGNED ), - 70 - - + col2 + + col1 - + 25, col2 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col2 NOT IN ( - col1, + CAST ( NULL AS INTEGER ), - 70 - - + col2 + + col1 - + 25, col2 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL + ( 1 ) + + 82 + - - 88 * - 0 + + - COUNT( * ) + - COUNT( ALL + col0 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL + ( 1 ) + + 82 + - - 88 * - 0 + + - COUNT ( * ) + - COUNT ( ALL + col0 ) FROM tab2
----
77

query I rowsort
SELECT 65 + + + 42 AS col2 FROM tab1
----
107
107
107

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + 49
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab0 cor0 WHERE NOT 64 <> + col2 + + 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5075
SELECT MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT DISTINCT COUNT( * ) AS col1, - 99 AS col1 FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT COUNT ( * ) AS col1, - 99 AS col1 FROM tab0
----
3
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT + ( - COUNT( * ) ) * - ( - 13 ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + ( - COUNT ( * ) ) * - ( - 13 ) AS col1 FROM tab1
----
-39

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( NOT col0 < NULL ) )
----

query I rowsort
SELECT ALL 62 + 90 FROM tab1 AS cor0 WHERE NOT col2 + + col1 + - + 1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5081
SELECT - COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + MAX( ALL 20 ) AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5082
SELECT + MAX ( ALL 20 ) AS col2 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT - MAX( ALL - - ( + - 5 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT - MAX ( ALL - - ( + - 5 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab1 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + - SUM( - 84 ) FROM tab1 WHERE NOT + - col2 - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + - SUM ( - 84 ) FROM tab1 WHERE NOT + - col2 - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 42 FROM tab0
----
-1974
-4158
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 30 + + col2 * col2 * col2 IS NOT NULL
----

query I rowsort
SELECT 79 + + - ( 86 ) AS col1 FROM tab2
----
-7
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col1 * + col2 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 32 + + - col2, - col2 AS col1 FROM tab0
----
-131
-99
-42
-10
-79
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT ALL - ( col0 ) * + CAST( col2 AS SIGNED ) * col1 FROM tab2 cor0
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - ( col0 ) * + CAST ( col2 AS INTEGER ) * col1 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 28 * - - col1 <> - 70 * + 77
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 + col0 + + 43 FROM tab0 AS cor0
----
11
120
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 + + + 51 + - + 14 col1, 88 FROM tab1 AS cor0
----
75
88
75
88
75
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL + 10 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + 10 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + MIN( ALL - col0 ) * - 75 FROM tab1 AS cor0
----
6825

skipif mysql # not compatible
query I rowsort label-5098
SELECT + MIN ( ALL - col0 ) * - 75 FROM tab1 AS cor0
----
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - SUM( DISTINCT + + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5099
SELECT - SUM ( DISTINCT + + col0 ) FROM tab1
----
-227

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col0 col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + COUNT( * ) * COUNT( * ) * SUM( ALL + 47 ) AS col0 FROM tab0
----
1269

skipif mysql # not compatible
query I rowsort label-5105
SELECT + COUNT ( * ) * COUNT ( * ) * SUM ( ALL + 47 ) AS col0 FROM tab0
----
1269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col1 FROM tab2
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT SUM( 10 ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT SUM ( 10 ) AS col2 FROM tab2
----
30

query II rowsort
SELECT DISTINCT ( col0 ) AS col1, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL + - 18 AS col2 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT - MAX( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - MAX ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 69 AS col1 FROM tab0 cor0
----
-69
-69
-69

query I rowsort
SELECT col0 * 41 AS col0 FROM tab1
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL + MAX( - 9 ) AS col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + MAX ( - 9 ) AS col1 FROM tab0, tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT + CAST( + + 71 AS SIGNED ) ) + + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT + CAST ( + + 71 AS INTEGER ) ) + + + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5119
SELECT 56 + CAST( NULL AS SIGNED ) col0, - ( + SUM( col1 ) ) * - 43 - - 83 FROM tab1 WHERE NULL = - col0 + - + ( - 39 ) / - 22
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5119
SELECT 56 + CAST ( NULL AS INTEGER ) col0, - ( + SUM ( col1 ) ) * - 43 - - 83 FROM tab1 WHERE NULL = - col0 + - + ( - 39 ) / - 22
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 62 * 54 * col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 49 + col2 AS col0 FROM tab1
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT COUNT( * ) * 41 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT COUNT ( * ) * 41 AS col1 FROM tab0
----
123

query I rowsort
SELECT - + col2 + + 11 AS col1 FROM tab1 AS cor0
----
-48
-57
-85

query I rowsort
SELECT ALL - col1 + - col0 * col0 * - col2 + - 13 AS col0 FROM tab2 AS cor0
----
163750
326170
48604

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1 cor0 WHERE NOT col0 * - + col0 * + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL col0 * col1 * CAST( col1 AS SIGNED ) + + + 26 * 5 + - + ( + - 56 ) AS col2 FROM tab0
----
283
38553
98601

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL col0 * col1 * CAST ( col1 AS INTEGER ) + + + 26 * 5 + - + ( + - 56 ) AS col2 FROM tab0
----
283
38553
98601

query III rowsort
SELECT * FROM tab2 WHERE + 1 * - col0 + + ( col2 ) + - col1 + col0 IN ( col0 + - ( + ( - + col0 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col1 - - - col2 AS col2 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - col2 * + ( + col0 ) AND - col2
----

query I rowsort
SELECT ALL - + col1 - + - col1 + - col1 * - col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - 4 * col2 FROM tab2
----
-12320
-15544
-4692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + ( + 67 ) col2 FROM tab0
----
2680
2680
2680

query I rowsort
SELECT + col0 * + - col1 * + - 43 * col1 AS col2 FROM tab1
----
429828
8643817
91375

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5136
SELECT * FROM tab1 WHERE NOT + CAST( - + col2 AS DECIMAL ) + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5136
SELECT * FROM tab1 WHERE NOT + CAST ( - + col2 AS REAL ) + + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 + col0 col2 FROM tab0 AS cor0
----
10
108
47
96
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - COUNT( * ) * - 73 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - COUNT ( * ) * - 73 FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT DISTINCT - col1 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <> 12 + - 56
----

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <> 12 + - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
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-5140
SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT ALL + + COUNT( * ) col2, + 90 col2 FROM tab0 AS cor0 WHERE NULL <= + col0
----
0
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5141
SELECT ALL + + COUNT ( * ) col2, + 90 col2 FROM tab0 AS cor0 WHERE NULL <= + col0
----
0
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL - + col0 DIV - col1 - - col2 * + - 23 * - col2 col1 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
12167
36800
77373

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT ALL - + col0 / - col1 - - col2 * + - 23 * - col2 col1 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
12167
36800
77373

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 > + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL - 93 * 67 * SUM( + col2 ) * - + 39 FROM tab2
----
29404089

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - 93 * 67 * SUM ( + col2 ) * - + 39 FROM tab2
----
29404089

query I rowsort
SELECT DISTINCT + col2 + - 29 * - + 39 AS col2 FROM tab1
----
1190
1199
1227

query II rowsort
SELECT DISTINCT + - 2 AS col0, + col0 + - + col1 * + - ( col0 ) AS col1 FROM tab2 cor0
----
-2
2392
-2
4992
-2
5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5147
SELECT COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5147
SELECT COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab0 AS cor0 WHERE NOT 62 IS NULL
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78, - col0 * - - col1 col1 FROM tab2 AS cor0
----
78
-2346
78
-4928
78
-5025

query I rowsort
SELECT + + col2 + - 22 AS col0 FROM tab0 cor0
----
-12
25
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, - col2 - - 16 col2 FROM tab1 cor0
----
-14
-80
-47
-52
-5
-43

query I rowsort
SELECT + 20 * - ( - 59 ) * 29 + - 52 AS col1 FROM tab0 AS cor0
----
34168
34168
34168

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - - 3 * + MAX( + + col1 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
243

skipif mysql # not compatible
query I rowsort label-5153
SELECT - - 3 * + MAX ( + + col1 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
243

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
28
37
9

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab2
----
39

query III rowsort
SELECT * FROM tab0 WHERE + col1 > + 12 + + col0 / - 47 * + col1 - + + col1 * + - col2 + col1 - - 16
----

query II rowsort
SELECT - 26 + + - col1 AS col1, + 12 AS col2 FROM tab0
----
-107
12
-27
12
-47
12

query II rowsort
SELECT - 20, 56 * + 45 * 96 + + - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-20
241845
-20
241856
-20
241874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + col0 col1, + 89 * - 43 AS col0 FROM tab2 WHERE - + ( + - 34 ) > - col1
----
104
-3827
133
-3827
69
-3827

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5160
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + - col0, 62 + - - col2 + - - col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT CAST ( NULL AS REAL ) + + - col0, 62 + - - col2 + - - col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

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-5163
SELECT + COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5163
SELECT + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL col0 * 10 AS col0 FROM tab0
----
150
870
970

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 46 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 * 6 IS NULL
----

query I rowsort
SELECT 81 + 84 FROM tab0 AS cor0
----
165
165
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + - ( + 1 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5173
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + CAST( + 89 AS SIGNED ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5173
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + CAST ( + 89 AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 40 AS col2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT col1 * + 63 AS col0 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT COUNT( ALL + 69 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT COUNT ( ALL + 69 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col1
----
0

query II rowsort
SELECT - col0 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT DISTINCT - 49 * + + ( + col1 ) * 84 AS col0 FROM tab0
----
-333396
-4116
-86436

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 > ( - 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT - 20 AS col2, COUNT( * ) FROM tab2, tab1 AS cor0
----
-20
9

skipif mysql # not compatible
query II rowsort label-5180
SELECT - 20 AS col2, COUNT ( * ) FROM tab2, tab1 AS cor0
----
-20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + MIN( + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5181
SELECT + MIN ( + + col0 ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT DISTINCT + 37 * 83 DIV col2 AS col1 FROM tab2
----
133
52
76

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + 37 * 83 / col2 AS col1 FROM tab2
----
133
52
76

query I rowsort
SELECT - + 90 * 23 FROM tab1 WHERE NOT - 42 BETWEEN - col0 AND col0
----

query II rowsort
SELECT DISTINCT + - ( - 81 ) AS col0, 70 * - + col0 + + - col2 FROM tab0 AS cor0
----
81
-1097
81
-6100
81
-6889

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - 94 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col2 * - col0 + + col0, col0 col2 FROM tab2 AS cor0
----
-197056
64
-291375
75
-53912
46

query I rowsort
SELECT DISTINCT 42 * col1 FROM tab1 AS cor0
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + ( MAX( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5188
SELECT + ( MAX ( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT + - SUM( + 2 ) DIV - 67 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + - SUM ( + 2 ) / - 67 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT + + 79 AS col0, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79
-9

skipif mysql # not compatible
query II rowsort label-5190
SELECT + + 79 AS col0, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + - MAX( ALL + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5192
SELECT + - MAX ( ALL + + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - ( + + 9 ) FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + col2 * - ( + + col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query II rowsort label-5195
SELECT - ( - ( + col2 ) ) DIV + col1 - + col1 col2, + ( + 41 ) AS col1 FROM tab0 AS cor0
----
-21
41
-81
41
98
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5195
SELECT - ( - ( + col2 ) ) / + col1 - + col1 col2, + ( + 41 ) AS col1 FROM tab0 AS cor0
----
-21
41
-81
41
98
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT + + 45 DIV - 28 col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT DISTINCT + + 45 / - 28 col2 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + COUNT( * ) * SUM( - col1 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-5197
SELECT + COUNT ( * ) * SUM ( - col1 ) FROM tab0
----
-309

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT + 15 * - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + 15 * - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab1 WHERE - + 7 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT DISTINCT + col1 + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + col1 + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT ALL 18 * 34 + col0 + + 22 DIV col2 + + col0 AS col1 FROM tab0
----
642
788
806

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL 18 * 34 + col0 + + 22 / col2 + + col0 AS col1 FROM tab0
----
642
788
806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT ALL - CAST( NULL AS SIGNED ) - 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - CAST ( NULL AS INTEGER ) - 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> col2
----

query I rowsort
SELECT DISTINCT - + col1 - - 46 FROM tab0 AS cor0
----
-35
25
45

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE 68 + ( + 98 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE 68 + ( + 98 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - COUNT( * ) * - + MIN( + col1 ) * - 39 * 78 col0 FROM tab2 cor0
----
-465426

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT - COUNT ( * ) * - + MIN ( + col1 ) * - 39 * 78 col0 FROM tab2 cor0
----
-465426

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ( - - MIN( + col2 ) ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT ( - - MIN ( + col2 ) ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col1 col0 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT - col2 * - + 51 AS col0 FROM tab1
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ( + + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5213
SELECT ( + + COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT 98 * - - 80 FROM tab0
----
7840
7840
7840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT + col1 * - CAST( col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5215
SELECT + col1 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT - CAST( - 75 AS SIGNED ) FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5216
SELECT - CAST ( - 75 AS INTEGER ) FROM tab1
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT col1 DIV - - col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5217
SELECT col1 / - - col2 FROM tab0
----
0
1
2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR - 13 BETWEEN NULL AND + ( - col1 )
----

query I rowsort
SELECT + ( + 64 ) FROM tab2
----
64
64
64

query I rowsort
SELECT ALL ( - 4 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + COUNT( * ) + MAX( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= - 30
----

query I rowsort
SELECT DISTINCT + + ( - 72 ) * + col2 * + col1 FROM tab1 AS cor0
----
-21240
-230112
-96768

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col1 BETWEEN + 27 AND - col0
----

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab2 WHERE NOT ( + 92 <= + + col0 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT DISTINCT col2 DIV col0 * ( + - 50 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT col2 / col0 * ( + - 50 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 89 * + + ( - - col2 ) * - - col2 + + col1 col1 FROM tab0
----
-86356610
-88979
-9240166

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - 34 * 64 * + COUNT( * ) AS col0 FROM tab1
----
-6528

skipif mysql # not compatible
query I rowsort label-5228
SELECT - 34 * 64 * + COUNT ( * ) AS col0 FROM tab1
----
-6528

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT DISTINCT - 28 AS col1, COUNT( * ) FROM tab0
----
-28
3

skipif mysql # not compatible
query II rowsort label-5229
SELECT DISTINCT - 28 AS col1, COUNT ( * ) FROM tab0
----
-28
3

query II rowsort
SELECT DISTINCT - + col1 + - - ( - 35 ), + col1 AS col0 FROM tab1 AS cor0
----
-40
5
-49
14
-82
47

query II rowsort
SELECT col0 - ( col1 ), - col1 AS col0 FROM tab1 AS cor0
----
37
-14
44
-47
80
-5

query I rowsort
SELECT ALL + - ( col0 ) FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL - 69 * + col1 + CAST( + col1 AS SIGNED ) - - ( - ( col0 ) ) + + col0 col1 FROM tab1 AS cor0
----
-3196
-340
-952

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5233
SELECT ALL - 69 * + col1 + CAST ( + col1 AS INTEGER ) - - ( - ( col0 ) ) + + col0 col1 FROM tab1 AS cor0
----
-3196
-340
-952

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE - 43 - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - - 51 AS col2 FROM tab0 AS cor0
----
-30
30
50

query IIIIII rowsort
SELECT ALL * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL 35 AS col0, 97 FROM tab2 AS cor0
----
35
97
35
97
35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - 10 * + + 51 * - COUNT( * ) AS col1 FROM tab2 cor0
----
1530

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 10 * + + 51 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
1530

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT - COUNT( * ) + + 29 AS col1 FROM tab2 AS cor0 WHERE ( + col1 <> - col1 )
----
26

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT - COUNT ( * ) + + 29 AS col1 FROM tab2 AS cor0 WHERE ( + col1 <> - col1 )
----
26

query I rowsort
SELECT ALL ( + - 24 ) AS col1 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( - col0 ) + - + col1 + col2 FROM tab0
----
-19
195
76

query I rowsort
SELECT 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab2 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 71 * - - 29 * + - ( col2 ) AS col2, ( + + col1 ) + 29 col0 FROM tab2 AS cor0
----
119422
96
47357
80
82360
106

query I rowsort
SELECT DISTINCT 10 * + + ( - + 76 ) FROM tab2 AS cor0
----
-760

query I rowsort
SELECT DISTINCT + - col2 + - 56 AS col1 FROM tab2 AS cor0
----
-114
-79
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT SUM( DISTINCT 32 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT SUM ( DISTINCT 32 ) AS col1 FROM tab1 AS cor0
----
32

query I rowsort
SELECT ALL 16 * - - 65 FROM tab0
----
1040
1040
1040

query III rowsort
SELECT * FROM tab0 WHERE NULL < col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT + col0 + - + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL - CAST( NULL AS SIGNED ) + - 65 - col1 + - 35 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - CAST ( NULL AS INTEGER ) + - 65 - col1 + - 35 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT + col2 * + ( col2 ) + 74 - + CAST( NULL AS SIGNED ) + + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT + col2 * + ( col2 ) + 74 - + CAST ( NULL AS INTEGER ) + + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab1 AS cor0
----
-29
-29
-29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 49 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT + 31 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5261
SELECT + 31 / col2 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT + 34 * - col0 AS col0 FROM tab2 AS cor0
----
-1564
-2176
-2550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 21 AS col2 FROM tab0 cor0
----
-21

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col2 + + col1 + - - col0 FROM tab2 AS cor0 WHERE 17 IS NOT NULL
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-5267
SELECT - MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10

query II rowsort
SELECT DISTINCT + 9, col0 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9
46
9
64
9
75

query I rowsort
SELECT AVG ( ALL - 44 ) AS col2 FROM tab1 WHERE NOT ( - + 22 + + - col1 ) = ( NULL )
----
NULL

query II rowsort
SELECT 12 AS col2, col2 AS col2 FROM tab2
----
12
23
12
40
12
58

query II rowsort
SELECT DISTINCT col2 AS col1, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT MAX( - ( col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT MAX ( - ( col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT MIN( DISTINCT - - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5273
SELECT MIN ( DISTINCT - - col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL - - 39 * 73 FROM tab0 AS cor0
----
2847
2847
2847

query II rowsort
SELECT DISTINCT + + col1, + col1 AS col0 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT + COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * + - 44 + + col0 AS col1 FROM tab1 AS cor0
----
-2511
-2901
-4173

query II rowsort
SELECT + col2 AS col0, col1 * col2 * + col1 * - - col0 FROM tab1 AS cor0
----
59
125375
68
13669292
96
959616

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 11 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT - col1 + - - 61 + - + CAST( + col1 AS SIGNED ) FROM tab2
----
-41
-73
-93

skipif mysql # not compatible
query I rowsort label-5280
SELECT - col1 + - - 61 + - + CAST ( + col1 AS INTEGER ) FROM tab2
----
-41
-73
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5281
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) + + + col2 * 16 + + col0 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + ( CAST ( NULL AS REAL ) ) + + + col2 * 16 + + col0 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, - ( - - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, - ( - - col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5283
SELECT col2 + - col2 * - CAST( NULL AS SIGNED ) col0, 13 col1 FROM tab2 AS cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5283
SELECT col2 + - col2 * - CAST ( NULL AS INTEGER ) col0, 13 col1 FROM tab2 AS cor0
----
NULL
13
NULL
13
NULL
13

query I rowsort
SELECT col2 + - + ( col2 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + ( + 59 ) * + 62 + 23 FROM tab1 cor0
----
215845
248767
351191

query I rowsort
SELECT - + 89 * - col1 + - col2 FROM tab2 AS cor0
----
4516
5905
6813

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT 93 + + - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5288
SELECT 93 + + - COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT + 64 * - ( - - col1 ) FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT - 1 * - 79 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT ALL col2 AS col2, CAST( 56 AS SIGNED ) - + col1 FROM tab0
----
10
35
47
-25
99
55

skipif mysql # not compatible
query II rowsort label-5291
SELECT ALL col2 AS col2, CAST ( 56 AS INTEGER ) - + col1 FROM tab0
----
10
35
47
-25
99
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - COUNT( - - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - COUNT ( - - col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col2 * ( + 29 ) AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT + col2 * col1 * + - 23 FROM tab0
----
-2277
-4830
-87561

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT 69 * - ( - + COUNT( * ) ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5295
SELECT 69 * - ( - + COUNT ( * ) ) FROM tab2
----
207

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL 73 + 28 FROM tab0
----
101
101
101

query I rowsort
SELECT ALL 12 * - ( + - col2 ) * 57 AS col0 FROM tab1
----
40356
46512
65664

query I rowsort
SELECT ALL - 60 - - + col2 AS col1 FROM tab2
----
-2
-20
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL + COUNT( * ) * + + MIN( - CAST( - 74 AS SIGNED ) ) + + - ( - 92 ) AS col1 FROM tab2 AS cor0
----
314

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + COUNT ( * ) * + + MIN ( - CAST ( - 74 AS INTEGER ) ) + + - ( - 92 ) AS col1 FROM tab2 AS cor0
----
314

query I rowsort
SELECT DISTINCT + ( 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT + - 98 AS col1 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + COUNT( * ) + + - 81 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5303
SELECT + COUNT ( * ) + + - 81 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5304
SELECT ALL + CAST( NULL AS DECIMAL ) - + ( + 15 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + CAST ( NULL AS REAL ) - + ( + 15 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT ALL + 30 DIV - + col2 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT ALL + 30 / - + col2 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - 0 FROM tab0 AS cor0 WHERE NOT NULL <> 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - MIN( col0 ) * 75 FROM tab0 AS cor0
----
-1125

skipif mysql # not compatible
query I rowsort label-5307
SELECT - MIN ( col0 ) * 75 FROM tab0 AS cor0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - ( - - MAX( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - ( - - MAX ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - + col1 * + 11 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - - SUM( 72 ) FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5310
SELECT - - SUM ( 72 ) FROM tab1 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + - SUM( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5311
SELECT + - SUM ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL 46 AS col1 FROM tab0 WHERE NOT NULL > - - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT ALL + 0 * col0 * - 93 DIV + 40 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + 0 * col0 * - 93 / + 40 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT - 43 DIV + col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT - 43 / + col0 FROM tab0
----
-2
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + 81 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 33 * - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL + ( + + SUM( ALL + col1 ) ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5318
SELECT ALL + ( + + SUM ( ALL + col1 ) ) col1 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT ALL ( + 35 ) DIV - 36 * - col1 + + col1 + - 32 FROM tab0
----
-11
-31
49

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL ( + 35 ) / - 36 * - col1 + + col1 + - 32 FROM tab0
----
-11
-31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT SUM( DISTINCT - - 48 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5320
SELECT SUM ( DISTINCT - - 48 ) AS col1 FROM tab2
----
48

query I rowsort
SELECT - col1 * - 44 AS col1 FROM tab1
----
2068
220
616

query I rowsort
SELECT ALL - - 19 + - col2 FROM tab2 AS cor0
----
-21
-39
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 * - 64 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT col1 + + col0 + - - col2 DIV col2 FROM tab1 AS cor0
----
139
66
91

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT col1 + + col0 + - - col2 / col2 FROM tab1 AS cor0
----
139
66
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 * + col1 = 34
----

query I rowsort
SELECT DISTINCT + - 14 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT COUNT( * ) + + 88 AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5327
SELECT COUNT ( * ) + + 88 AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 24 <= + 76 + 21
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 24 <= + 76 + 21
----
0

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - MIN( ALL - - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5330
SELECT - MIN ( ALL - - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + col1 + + - 76 AS col0 FROM tab0 AS cor0
----
-55
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5332
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - - col1 AS SIGNED ) / - col2 + - 76 NOT BETWEEN ( - CAST( - ( - col0 ) AS SIGNED ) ) + col0 AND + col2 * - 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5332
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) / - col2 + - 76 NOT BETWEEN ( - CAST ( - ( - col0 ) AS INTEGER ) ) + col0 AND + col2 * - 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 + - - col0 * + 71 + col0 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # DIV for integer division: 
query II rowsort label-5334
SELECT DISTINCT + + col2 + + col1 AS col0, + col1 DIV - col2 col0 FROM tab2 AS cor0
----
117
-1
125
-1
74
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5334
SELECT DISTINCT + + col2 + + col1 AS col0, + col1 / - col2 col0 FROM tab2 AS cor0
----
117
-1
125
-1
74
-2

query I rowsort
SELECT + col0 - 54 AS col2 FROM tab2 AS cor0
----
-8
10
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT - 84 - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT - 84 - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 83 - col1 * - col0 + col0 - - col0 FROM tab2 AS cor0
----
2355
4973
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT ALL + + col2 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT DISTINCT col2 - 56 / + CAST( NULL AS SIGNED ) - col0 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5339
SELECT DISTINCT col2 - 56 / + CAST ( NULL AS INTEGER ) - col0 col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5341
SELECT col0 DIV + col2 AS col2, + col0 AS col1 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-5341
SELECT col0 / + col2 AS col2, + col0 AS col1 FROM tab2
----
1
64
1
75
2
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT DISTINCT + + COUNT( ALL col0 ), 18 AS col1 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-5342
SELECT DISTINCT + + COUNT ( ALL col0 ), 18 AS col1 FROM tab2 AS cor0
----
3
18

query I rowsort
SELECT DISTINCT 56 * + - 10 FROM tab2
----
-560

query I rowsort
SELECT - col2 * 30 AS col0 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5345
SELECT 8 * - + 36 + ( + CAST( NULL AS DECIMAL ) ) + - 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT 8 * - + 36 + ( + CAST ( NULL AS REAL ) ) + - 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 82 ) AS col2 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL - COUNT( * ) * - 71 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - COUNT ( * ) * - 71 FROM tab2 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT COUNT( * ) * - + 41 AS col0 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT COUNT ( * ) * - + 41 AS col0 FROM tab1
----
-123

query I rowsort
SELECT ALL - col1 + - col2 + col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 62 + - col1 + - - col0 - + col1 * 50 FROM tab2
----
-2493
-3280
-3801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 = + + ( + 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + COUNT( * ) * - - COUNT( * ) + - - MAX( DISTINCT - - col0 ) * COUNT( * ) - 63 AS col1 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( * ) * - - COUNT ( * ) + - - MAX ( DISTINCT - - col0 ) * COUNT ( * ) - 63 AS col1 FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + MAX( ALL col0 ) + + + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5355
SELECT + MAX ( ALL col0 ) + + + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT ALL col0 * 52 FROM tab0
----
4524
5044
780

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT CAST( NULL AS SIGNED ) * AVG ( col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( col2 ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - col1 col1, + 8 * + - 64 AS col2 FROM tab1
----
-10
-512
-28
-512
-94
-512

query I rowsort
SELECT DISTINCT + 38 + + 74 AS col0 FROM tab1
----
112

query I rowsort
SELECT + 85 FROM tab2 AS cor0 WHERE - col1 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab2 AS cor0 WHERE NOT col2 * + 9 NOT BETWEEN - 82 + - + col0 * + col1 + + - 88 AND - 32 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5364
SELECT + + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT col2 - - - 77 FROM tab1
----
-18
-9
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT + CAST( - 41 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif mysql # not compatible
query I rowsort label-5366
SELECT + CAST ( - 41 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL + - col2 - + + col0 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL COUNT( * ) - - 8 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) - - 8 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - MAX( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - MAX ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + 36 - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + 36 - COUNT ( * ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < 32 * 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT + col2 DIV 8 FROM tab0
----
1
12
5

skipif mysql # not compatible
query I rowsort label-5372
SELECT + col2 / 8 FROM tab0
----
1
12
5

query I rowsort
SELECT - - 38 - + 11 AS col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 46 * 36 AS col2 FROM tab2
----
-1656
-1656
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5375
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * - MIN( col1 ) DIV - ( + 65 ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * - MIN ( col1 ) / - ( + 65 ) FROM tab0
----
3
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5376
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( - col1 ) AND - col0 + col1 + + - col2 + - - ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( - col1 ) AND - col0 + col1 + + - col2 + - - ( CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT - col2 AS col0, - col1 * col0 * 50 FROM tab2 AS cor0
----
-23
-117300
-40
-246400
-58
-251250

query II rowsort
SELECT col2 AS col0, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-5379
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT COUNT( ALL - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT COUNT ( ALL - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT COUNT( DISTINCT - col2 ) AS col0, 16 FROM tab2 AS cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-5381
SELECT COUNT ( DISTINCT - col2 ) AS col0, 16 FROM tab2 AS cor0
----
3
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5382
SELECT + col1 * + col1 DIV CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5382
SELECT + col1 * + col1 / CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - 3 * - + 85 AS col1 FROM tab1 AS cor0
----
255
255
255

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT ALL - 63 DIV - ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - 63 / - ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT + col0 + col1 * + col0 + + col2 FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
1277
1924
293

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT SUM( + 6 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5386
SELECT SUM ( + 6 ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + 86 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + 64 + - col0 col0, - 33 FROM tab2
----
-2990
-33
-4160
-33
-4875
-33

query I rowsort
SELECT - col0 * + col1 + + col1 * + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT - col0 + + col2 DIV - col0 * + 36 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5390
SELECT - col0 + + col2 / - col0 * + 36 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + 73 + - col1 FROM tab0 AS cor0
----
-8
52
72

query I rowsort
SELECT col2 + - 38 FROM tab1 AS cor0
----
21
30
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT 66 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5393
SELECT 66 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
66
66
66

query I rowsort
SELECT + 41 FROM tab1 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5395
SELECT * FROM tab0 WHERE NOT col1 - - col0 * 37 = col2 * - ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5395
SELECT * FROM tab0 WHERE NOT col1 - - col0 * 37 = col2 * - ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0 WHERE NOT 71 NOT BETWEEN - 46 AND 50 * 1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5400
SELECT ALL * FROM tab1 WHERE + col1 * + col2 + - CAST( NULL AS DECIMAL ) * - col1 BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-5400
SELECT ALL * FROM tab1 WHERE + col1 * + col2 + - CAST ( NULL AS REAL ) * - col1 BETWEEN NULL AND - col1
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT 56 <= NULL
----

query I rowsort
SELECT col1 + 64 FROM tab2
----
115
131
141

query I rowsort
SELECT col2 + - 19 AS col1 FROM tab2
----
21
39
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT - SUM( - col1 ) DIV 57 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - SUM ( - col1 ) / 57 AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL ( 13 ) * + col0 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT SUM( ALL - col0 ) DIV - 93 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5406
SELECT SUM ( ALL - col0 ) / - 93 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 <> ( col1 + + col2 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - 96 FROM tab2 WHERE col0 - + 55 NOT BETWEEN ( - 94 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL CAST( NULL AS SIGNED ) / + 99 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL CAST ( NULL AS INTEGER ) / + 99 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) - 34 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) - 34 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + ( + 45 ) + - MAX( col1 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5411
SELECT + ( + 45 ) + - MAX ( col1 ) FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL + 71 DIV ( col1 ) + col2 DIV 31 FROM tab1
----
15
3
8

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + 71 / ( col1 ) + col2 / 31 FROM tab1
----
15
3
8

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( col2 * - col2 + col0 )
----

query I rowsort
SELECT - ( + 88 ) AS col0 FROM tab0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + 10 * + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT col2 * 53 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT col2 * 53 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT ALL + 88 DIV + 14 AS col0 FROM tab2 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + 88 / + 14 AS col0 FROM tab2 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT MIN( + 21 ) FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT MIN ( + 21 ) FROM tab1 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + SUM( DISTINCT col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5421
SELECT + SUM ( DISTINCT col1 ) FROM tab1
----
66

query I rowsort
SELECT + 29 * - 22 FROM tab0
----
-638
-638
-638

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT NULL BETWEEN + 0 AND ( NULL )
----

query I rowsort
SELECT 59 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 77 + + 7 * - col0
----

query I rowsort
SELECT DISTINCT + - 83 + + 29 AS col1 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT - 6 + ( - 32 ) * - 77 FROM tab1 AS cor0
----
2458
2458
2458

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 4 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - 23 + ( MAX( ALL - col2 ) ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5430
SELECT - 23 + ( MAX ( ALL - col2 ) ) AS col2 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 71 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 71 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 28 ) FROM tab1 AS cor0
----
28

query I rowsort
SELECT + 82 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3854
8118
820

query I rowsort
SELECT + col0 + + 95 * + 59 AS col1 FROM tab2 cor0
----
5651
5669
5680

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 + col0 IN ( col0 + 90 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL MAX( + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL MAX ( + col0 ) FROM tab1 cor0
----
91

query I rowsort
SELECT - 58 * 38 + col1 AS col2 FROM tab1 AS cor0
----
-2157
-2190
-2199

query III rowsort
SELECT * FROM tab1 WHERE 10 IS NULL
----

query I rowsort
SELECT 55 + + col1 * col1 FROM tab0
----
496
56
6616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT - CAST( NULL AS SIGNED ) + - - 82 + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT - CAST ( NULL AS INTEGER ) + - - 82 + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT 8 DIV - + 47 + - 44 AS col2 FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-5442
SELECT 8 / - + 47 + - 44 AS col2 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT - MAX( ALL 46 ) col1 FROM tab1 WHERE + 89 / col1 IS NOT NULL
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5444
SELECT DISTINCT - MAX ( ALL 46 ) col1 FROM tab1 WHERE + 89 / col1 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5445
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE col0 + col1 * + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - 75 IS NULL
----
0

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 AS cor0 WHERE + 10 + col1 IS NOT NULL
----
8
8
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT IN ( - 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 - + 75 AS col2 FROM tab0 cor0
----
-162
-172
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 74 NOT BETWEEN + col2 AND - col2 AND ( - col1 ) > ( - 84 )
----

query I rowsort
SELECT + + 46 - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-41
-51
31

query I rowsort
SELECT col1 * + + 55 - col1 * 96 FROM tab0 AS cor0
----
-3321
-41
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + col1 ) col2 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - ( - + MIN( col2 ) ) + COUNT( * ) * 80 AS col2 FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-5456
SELECT - ( - + MIN ( col2 ) ) + COUNT ( * ) * 80 AS col2 FROM tab0
----
250

query I rowsort
SELECT ( - 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5458
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 + 35 * CAST( NULL AS SIGNED ) AND + ( + col1 ) + 31
----

skipif mysql # not compatible
query III rowsort label-5458
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 + 35 * CAST ( NULL AS INTEGER ) AND + ( + col1 ) + 31
----

query II rowsort
SELECT - 82 AS col1, - col2 + - + 68 AS col2 FROM tab0 AS cor0
----
-82
-115
-82
-167
-82
-78

query II rowsort
SELECT + 46 AS col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
46
40
46
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL - + MAX( DISTINCT - ( 13 ) ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - + MAX ( DISTINCT - ( 13 ) ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT - COUNT( * ) * 92 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT - COUNT ( * ) * 92 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5463
SELECT + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + COUNT( * ) col0 FROM tab0 cor0 WHERE NOT ( - 27 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5465
SELECT + COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT ( - 27 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT DISTINCT col0 DIV + 97 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT col0 / + 97 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col0 * col1 * - ( + - col1 ) AS col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT - + ( + col0 ) * 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT COUNT( ALL - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT COUNT ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * - col2 + col1 col2 FROM tab2 WHERE NOT col1 NOT IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT COUNT( * ) * - 15 AS col1 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-5472
SELECT COUNT ( * ) * - 15 AS col1 FROM tab1
----
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col2 + - - 33 ) <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 91 * COUNT( ALL - col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5474
SELECT 91 * COUNT ( ALL - col0 ) FROM tab1
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + 21 + + 81
----

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 > col0 - - col2 + + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 70 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1610
2800
4060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5481
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + col2 * - + col2 / - + CAST( col0 AS SIGNED ) + + col1 AND ( - 4 - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5481
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + col2 * - + col2 / - + CAST ( col0 AS INTEGER ) + + col1 AND ( - 4 - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5482
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - + 71 + - 18 BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5482
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - + 71 + - 18 BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + + 35 col1 FROM tab2 AS cor0
----
44
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - + 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

query II rowsort
SELECT - col1, col0 AS col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT col0 * - + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - + 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 65 col0 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT + ( ( MAX( - - ( - col1 ) ) ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + ( ( MAX ( - - ( - col1 ) ) ) ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL + 10 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT ALL col1 + ( + col0 ) FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * ( 84 ) + 79 col1 FROM tab0 WHERE ( + - 48 * - col1 * + col1 / - 67 + col1 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5497
SELECT col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT - 94 + + COUNT( * ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT - 94 + + COUNT ( * ) FROM tab0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - - 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + ( + col1 ) col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT COUNT( * ) + + COUNT( * ) + - + MIN( DISTINCT - col2 ) * + + 93 FROM tab0 AS cor0
----
9213

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( * ) + + COUNT ( * ) + - + MIN ( DISTINCT - col2 ) * + + 93 FROM tab0 AS cor0
----
9213

query II rowsort
SELECT + + 28 AS col0, col2 * - ( + col1 ) * + col1 + 31 AS col1 FROM tab2 AS cor0
----
28
-237129
28
-260331
28
-59792

query I rowsort
SELECT ALL - - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - col1 * + 25 AS col0 FROM tab2
----
-1275
-1675
-1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT + 0 DIV MIN( ALL 70 ) + + - 12 AS col0 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 0 / MIN ( ALL 70 ) + + - 12 AS col0 FROM tab0 cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT DISTINCT + 73 DIV - - ( + + 78 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + 73 / - - ( + + 78 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < ( - ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT 15 DIV col0 + + + 39 DIV 86 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5509
SELECT 15 / col0 + + + 39 / 86 AS col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( col1 ) * + 10 AS col1 FROM tab1 cor0
----
-140
-470
-50

query II rowsort
SELECT DISTINCT + 22, + col2 * - col2 * - col2 AS col1 FROM tab1
----
22
205379
22
314432
22
884736

query I rowsort
SELECT DISTINCT + - 1 AS col0 FROM tab0 WHERE - col2 = NULL
----

query I rowsort
SELECT + col0 * - + 88 AS col2 FROM tab2
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - COUNT( DISTINCT - + 2 ) * COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - COUNT ( DISTINCT - + 2 ) * COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT 33 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
query II rowsort label-5515
SELECT 33 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
33
NULL
33
NULL
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT MAX( DISTINCT 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5516
SELECT MAX ( DISTINCT 83 ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT 22 * col0 AS col2 FROM tab1
----
1122
1870
2002

query I rowsort
SELECT ( - - 17 ) FROM tab1
----
17
17
17

query I rowsort
SELECT ALL + 0 * + 90 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5520
SELECT + col0 * - + col1 * + + 71 AS col0, - 35 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-129717
NULL
-6887
NULL
-86265
NULL

skipif mysql # not compatible
query II rowsort label-5520
SELECT + col0 * - + col1 * + + 71 AS col0, - 35 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-129717
NULL
-6887
NULL
-86265
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - MAX( ALL col1 ) * - 35 AS col1 FROM tab0 AS cor0
----
2835

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - MAX ( ALL col1 ) * - 35 AS col1 FROM tab0 AS cor0
----
2835

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 73 >= NULL
----

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 AS cor0 WHERE + col2 * + col0 * + col1 IS NULL
----

query I rowsort
SELECT 8 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT - - COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT COUNT( * ) + + - 7 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5528
SELECT COUNT ( * ) + + - 7 FROM tab1 cor0
----
-4

query I rowsort
SELECT DISTINCT - col0 - - ( + - 5 ) AS col2 FROM tab1 AS cor0
----
-56
-90
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT + col2 DIV + + 44 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5530
SELECT + col2 / + + 44 AS col0 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5531
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5531
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT - col1 DIV + 19 AS col2 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5532
SELECT - col1 / + 19 AS col2 FROM tab1
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - MIN( col1 ) AS col2 FROM tab1 WHERE - col0 + + 79 BETWEEN + col0 AND ( - col1 * + col1 / - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - MIN ( col1 ) AS col2 FROM tab1 WHERE - col0 + + 79 BETWEEN + col0 AND ( - col1 * + col1 / - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + + col1 * - 91 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5534
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + + col1 * - 91 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 22 * 93 AS col1 FROM tab2 WHERE 84 - - + col2 IS NOT NULL
----
2046
2046
2046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * - 66 * + + 86 + + col1 * + 10 col2 FROM tab2
----
-4906
-5006
-5166

query I rowsort
SELECT ALL + col1 - col0 * - ( 37 ) FROM tab0 cor0
----
3240
3590
636

query I rowsort
SELECT ALL - + col2 + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
1248
236
3128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - COUNT( DISTINCT + + 18 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5540
SELECT - COUNT ( DISTINCT + + 18 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5541
SELECT DISTINCT - + 15 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - + 15 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 55 + + col0 + - - 61 + + 53 / - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT col1 DIV + 23 - 0 DIV col2 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5544
SELECT col1 / + 23 - 0 / col2 FROM tab1 AS cor0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT - col0 DIV + 44 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5545
SELECT - col0 / + 44 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

query II rowsort
SELECT - col0 AS col1, 66 * - col2 + - + 26 AS col2 FROM tab2 AS cor0
----
-46
-1544
-64
-2666
-75
-3854

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( - col1 ), + 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35, 66 * + - ( col2 ) col1 FROM tab1 AS cor0
----
35
-3894
35
-4488
35
-6336

query I rowsort
SELECT ALL - + col2 * + - 88 - + col2 FROM tab2 AS cor0
----
2001
3480
5046

query II rowsort
SELECT DISTINCT col0 * - 98 * + col2 AS col0, + 48 FROM tab1
----
-479808
48
-491470
48
-606424
48

onlyif mysql # DIV for integer division: 
query II rowsort label-5551
SELECT - 61 * + col2 DIV col2 AS col2, 43 AS col0 FROM tab1
----
-61
43
-61
43
-61
43

skipif mysql # not compatible
query II rowsort label-5551
SELECT - 61 * + col2 / col2 AS col2, 43 AS col0 FROM tab1
----
-61
43
-61
43
-61
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT - + MAX( + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT - + MAX ( + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5553
SELECT ALL CAST( NULL AS SIGNED ) * - - col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5553
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT DISTINCT 19 * + CAST( + 98 AS SIGNED ) AS col2 FROM tab2
----
1862

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT 19 * + CAST ( + 98 AS INTEGER ) AS col2 FROM tab2
----
1862

query I rowsort
SELECT DISTINCT 46 + - 19 FROM tab1
----
27

query I rowsort
SELECT DISTINCT - + 56 * - - 42 * - col0 AS col1 FROM tab0 AS cor0
----
204624
228144
35280

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 - + col2 ) IS NOT NULL
----

query I rowsort
SELECT - + col0 + 75 * 74 * + 33 AS col1 FROM tab0 cor0
----
183053
183063
183135

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 47 + - + 59 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT DISTINCT col1 DIV - 66 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT col1 / - 66 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query III rowsort label-5561
SELECT ( + col0 ) + + 31 AS col2, 28 * + col1 DIV - - col1 AS col0, col0 AS col2 FROM tab2
----
9 values hashing to d8335a212e2dc7b047ab14e1cadadcb3

skipif mysql # not compatible
query III rowsort label-5561
SELECT ( + col0 ) + + 31 AS col2, 28 * + col1 / - - col1 AS col0, col0 AS col2 FROM tab2
----
9 values hashing to d8335a212e2dc7b047ab14e1cadadcb3

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT ALL 19 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL 19 / + col2 FROM tab1
----
0
0
0

query II rowsort
SELECT + col2, - col0 * col2 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT DISTINCT + - ( ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + - ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + + ( + + 36 ) AS col2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT col1 * + 0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + - COUNT( * ) AS col1, - 41 * COUNT( * ) * ( - ( - + 63 ) ) + MAX( + col2 ) FROM tab2 AS cor0
----
-3
-7691

skipif mysql # not compatible
query II rowsort label-5567
SELECT + - COUNT ( * ) AS col1, - 41 * COUNT ( * ) * ( - ( - + 63 ) ) + MAX ( + col2 ) FROM tab2 AS cor0
----
-3
-7691

query II rowsort
SELECT + + col1 AS col0, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL 46 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 46 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + col2 + + col0 + col1 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT - col0 DIV - 46 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - col0 / - 46 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5573
SELECT ALL 66, - CAST( NULL AS SIGNED ) / ( + ( col1 ) ) + - col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + 18 + - + 99 + 70 / + - col2 IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-5573
SELECT ALL 66, - CAST ( NULL AS INTEGER ) / ( + ( col1 ) ) + - col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + 18 + - + 99 + 70 / + - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT ALL - CAST( NULL AS SIGNED ) / CAST( 97 AS SIGNED ) / - - 51 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - CAST ( NULL AS INTEGER ) / CAST ( 97 AS INTEGER ) / - - 51 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - 12 + col0 col1 FROM tab0
----
-57
15
25

query I rowsort
SELECT ALL 67 * + 2 + col2 FROM tab0
----
144
181
233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT + CAST( - ( + 79 ) AS SIGNED ) FROM tab2
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-5578
SELECT + CAST ( - ( + 79 ) AS INTEGER ) FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + - ( - + MAX( ALL - col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5579
SELECT + - ( - + MAX ( ALL - col0 ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT + MIN( - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + MIN ( - col0 ) AS col2 FROM tab0 cor0
----
-97

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT 96 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5582
SELECT MAX ( - - col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL - COUNT( * ) + + 53 + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - COUNT ( * ) + + 53 + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5584
SELECT CAST( col2 AS SIGNED ) AS col2, col0 FROM tab2 WHERE NOT ( NOT NULL <> NULL )
----

skipif mysql # not compatible
query II rowsort label-5584
SELECT CAST ( col2 AS INTEGER ) AS col2, col0 FROM tab2 WHERE NOT ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5585
SELECT DISTINCT - 72 col1, + ( COUNT( * ) ) FROM tab1 AS cor0
----
-72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5585
SELECT DISTINCT - 72 col1, + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-72
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 19 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5587
SELECT ALL + + col0 AS col0, col0 DIV + 94 * - 52 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-5587
SELECT ALL + + col0 AS col0, col0 / + 94 * - 52 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT DISTINCT + - 64 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL + COUNT( * ) * + - 19 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST( - col0 AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + COUNT ( * ) * + - 19 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST ( - col0 AS INTEGER ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 34 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5590
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 34 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT + CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5591
SELECT + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT - ( + SUM( DISTINCT - + 48 ) ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - ( + SUM ( DISTINCT - + 48 ) ) AS col0 FROM tab2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT + 17 * CAST( + COUNT( * ) AS SIGNED ) + - COUNT( ALL - 14 ) + + 39 * - 41 FROM tab2
----
-1551

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 17 * CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( ALL - 14 ) + + 39 * - 41 FROM tab2
----
-1551

query II rowsort
SELECT - 29 + - col0, col1 FROM tab0
----
-116
21
-126
1
-44
81

query I rowsort
SELECT ALL + - 5 FROM tab2 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT + COUNT( * ) * - + 39 AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + COUNT ( * ) * - + 39 AS col2 FROM tab2
----
-117

query I rowsort
SELECT DISTINCT col1 * - - 75 AS col2 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab1 WHERE + col1 - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT AVG ( + col1 ) AS col0 FROM tab0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - ( + + SUM( + col1 ) ) + SUM( ALL - col2 ) FROM tab0
----
-259

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - ( + + SUM ( + col1 ) ) + SUM ( ALL - col2 ) FROM tab0
----
-259

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 3 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * + + col2 col0 FROM tab1
----
-2596
-2992
-4224

query II rowsort
SELECT + col2 + - - col2 AS col2, col2 FROM tab2
----
116
58
46
23
80
40

query I rowsort
SELECT DISTINCT + 94 + + col2 FROM tab2
----
117
134
152

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( 95 ) <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col1 / - + col2 * + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT - - 1 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5607
SELECT - - 1 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - ( + 63 ) * 43 - COUNT( * ) AS col2 FROM tab2 cor0
----
-2712

skipif mysql # not compatible
query I rowsort label-5608
SELECT - ( + 63 ) * 43 - COUNT ( * ) AS col2 FROM tab2 cor0
----
-2712

query I rowsort
SELECT DISTINCT + ( ( - + ( ( col1 ) ) ) ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 82 / + 82 + + col2 - col1 + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - + MAX( + col1 ) + - - COUNT( * ) + + 51 FROM tab2 AS cor0 WHERE + col1 * + 80 * ( ( - - col1 ) ) - - col0 * + - 76 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-5612
SELECT - + MAX ( + col1 ) + - - COUNT ( * ) + + 51 FROM tab2 AS cor0 WHERE + col1 * + 80 * ( ( - - col1 ) ) - - col0 * + - 76 IS NOT NULL
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 63 / - 18 AND - col2 / 90
----

query I rowsort
SELECT 87 * - - 23 FROM tab2 AS cor0
----
2001
2001
2001

query I rowsort
SELECT DISTINCT - 89 - + + 67 AS col1 FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL MAX( - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL MAX ( - col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT - col0 - + col2 + - col1 * 10 * - ( + 57 ) AS col1 FROM tab0
----
11873
374
46108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 >= + col1
----

query I rowsort
SELECT ALL - 27 * + - 11 * + col2 * 83 AS col1 FROM tab0 cor0
----
1158597
2440449
246510

query I rowsort
SELECT 97 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL ( - - MAX( DISTINCT ( col1 ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL ( - - MAX ( DISTINCT ( col1 ) ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - - 29 IS NULL )
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT - col0 NOT IN ( - 25, 50, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 13 ) FROM tab1 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL - CAST( 82 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 26 >= ( NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - CAST ( 82 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 26 >= ( NULL ) ) )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 66 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - 4 AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - MIN( - col1 ) + MIN( ALL - + 25 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - MIN ( - col1 ) + MIN ( ALL - + 25 ) AS col0 FROM tab2
----
52

query I rowsort
SELECT 84 + - col0 * + col2 FROM tab1 AS cor0
----
-4812
-4931
-6104

query I rowsort
SELECT - ( - - col1 ) + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + - col2 * + ( - col2 ) + - - col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL - + CAST( - - 41 AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - + CAST ( - - 41 AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT 34 * - - 10 - + + 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
267

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT 98 col2, COUNT( * ) AS col0 FROM tab2
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5638
SELECT 98 col2, COUNT ( * ) AS col0 FROM tab2
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5639
SELECT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT 87 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - + 55 FROM tab0 AS cor0 WHERE + 87 BETWEEN - col2 + - col1 AND - - col0
----
-55
-55

query I rowsort
SELECT + 15 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN + 20 AND col2 / col1
----

query I rowsort
SELECT col2 - - - col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * col2 IN ( - - col2, - ( - + 80 ) + 18 / col2, col0 )
----

query I rowsort
SELECT + col0 + + col2 + + 50 * col0 AS col0 FROM tab2 AS cor0
----
2369
3304
3883

query I rowsort
SELECT ALL 95 - - + col2 AS col2 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 9 * col0, + col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 85 ) * - col2 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT col0 DIV + 12 col0 FROM tab1
----
4
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT col0 / + 12 col0 FROM tab1
----
4
7
7

query I rowsort
SELECT DISTINCT 32 * + col2 * - 63 AS col1 FROM tab1
----
-118944
-137088
-193536

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL + MIN( + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + MIN ( + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregat