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 # aggregate syntax: 
query I rowsort label-5654
SELECT + MAX( + col0 ) AS col2 FROM tab2
----
75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT - COUNT( * ) * - COUNT( * ) * - COUNT( * ) AS col0, + 57 AS col2 FROM tab0
----
-27
57

skipif mysql # not compatible
query II rowsort label-5655
SELECT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) AS col0, + 57 AS col2 FROM tab0
----
-27
57

query I rowsort
SELECT DISTINCT - 22 * - + col2 AS col0 FROM tab2
----
1276
506
880

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

query I rowsort
SELECT DISTINCT + col1 * col2 + + 56 + + - col0 - col2 AS col1 FROM tab2 AS cor0
----
1160
3032
3809

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT ALL - 19 DIV 68 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - 19 / 68 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT ALL ( + 1 ) DIV COUNT( + col1 ) FROM tab1 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5661
SELECT DISTINCT + - 26 DIV - - col1, - col1 + + col1 AS col2 FROM tab0 cor0
----
-1
0
-26
0
0
0

skipif mysql # not compatible
query II rowsort label-5661
SELECT DISTINCT + - 26 / - - col1, - col1 + + col1 AS col2 FROM tab0 cor0
----
-1
0
-26
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5662
SELECT + col1, col1 * - col2 DIV + CAST( - col2 AS SIGNED ) FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-5662
SELECT + col1, col1 * - col2 / + CAST ( - col2 AS INTEGER ) FROM tab1
----
14
14
47
47
5
5

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

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

query I rowsort
SELECT ALL col1 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT + + 75 + + - 64 * + ( - COUNT( * ) ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + + 75 + + - 64 * + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
267

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

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

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

query I rowsort
SELECT - - col2 * + col0 AS col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT COUNT( * ) + + + SUM( DISTINCT col1 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5669
SELECT COUNT ( * ) + + + SUM ( DISTINCT col1 ) FROM tab1
----
69

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col1 * + 37 + 38 FROM tab0
----
3035
75
815

query I rowsort
SELECT DISTINCT 85 * - 65 + + col1 + - col0 FROM tab2
----
-5512
-5520
-5533

query II rowsort
SELECT DISTINCT - col2 + col2 * + ( - 95 ) AS col1, col2 FROM tab2
----
-2208
23
-3840
40
-5568
58

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

query II rowsort
SELECT ALL 24 + + 25, - col0 AS col2 FROM tab1 cor0
----
49
-51
49
-85
49
-91

query I rowsort
SELECT - col2 * - 63 - - 60 FROM tab1 AS cor0
----
3777
4344
6108

query I rowsort
SELECT ALL + + col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 88 + + col0 FROM tab1
----
139
173
179

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = + 21 AND NOT NULL IS NOT NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5683
SELECT - - MIN ( col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT col2 * - - 38 AS col1 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5685
SELECT + + col1 * + ( + 83 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
4233
5561
6391

skipif mysql # not compatible
query I rowsort label-5685
SELECT + + col1 * + ( + 83 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
4233
5561
6391

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 48 col2 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT 69 * - - 58 FROM tab1
----
4002

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

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

query II rowsort
SELECT ALL col1 AS col0, 93 * - 38 FROM tab0
----
1
-3534
21
-3534
81
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL - COUNT( * ) * 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL - COUNT ( * ) * 84 FROM tab1
----
-252

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5694
SELECT DISTINCT - CAST( NULL AS DECIMAL ), + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5694
SELECT DISTINCT - CAST ( NULL AS REAL ), + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL

query II rowsort
SELECT + col2 AS col2, 48 - - col0 AS col1 FROM tab0 AS cor0
----
10
135
47
63
99
145

query II rowsort
SELECT ALL + col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT col0 DIV - - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5697
SELECT col0 / - - col2 FROM tab0 AS cor0
----
0
0
8

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

query I rowsort
SELECT + - 39 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( * ) * - 54 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( * ) * - 54 FROM tab0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) * + - col2 + - col2 NOT BETWEEN + col0 AND ( + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) + 53 AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) + 53 AS col1 FROM tab1 AS cor0
----
56

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + - - col2 - - - 70 col0 FROM tab1 AS cor0
----
-4279
-436
-688

query I rowsort
SELECT + col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query II rowsort
SELECT ALL col2 * - - col1 AS col1, 29 FROM tab1 AS cor0
----
1344
29
295
29
3196
29

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

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 55 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT DISTINCT COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
9

query I rowsort
SELECT + 68 FROM tab1 WHERE - 77 + + - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + ( + + col0 ), + 39 FROM tab0 AS cor0
----
15
39
87
39
97
39

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 WHERE NOT NULL > - col1
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5721
SELECT ALL COUNT ( col1 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - MAX( DISTINCT + 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5722
SELECT - MAX ( DISTINCT + 57 ) FROM tab1
----
-57

query II rowsort
SELECT + 18 AS col2, col2 AS col0 FROM tab0
----
18
10
18
47
18
99

query II rowsort
SELECT ALL + 57, + col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

query I rowsort
SELECT - + col0 * - 78 * - - ( + col1 ) AS col2 FROM tab0 cor0
----
142506
7566
94770

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col0, + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + MAX( ALL 45 ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-5729
SELECT + MAX ( ALL 45 ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
138

query I rowsort
SELECT ALL - 21 + - 89 FROM tab2 AS cor0
----
-110
-110
-110

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 + + col1 FROM tab1 AS cor0
----
36130
36428
389254

query I rowsort
SELECT DISTINCT - col2 * + 57 + + col2 + - - col1 FROM tab2 AS cor0
----
-1237
-2163
-3181

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

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

query I rowsort
SELECT ALL - col0 + 56 FROM tab1 AS cor0
----
-29
-35
5

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

query I rowsort
SELECT + 24 + col0 AS col2 FROM tab2 AS cor0
----
70
88
99

query II rowsort
SELECT ALL - 11 AS col2, + col1 + col2 AS col0 FROM tab0 cor0
----
-11
100
-11
128
-11
31

query I rowsort
SELECT col2 + + ( col0 ) - + 54 AS col2 FROM tab1 AS cor0
----
105
90
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT DISTINCT col0 * - 13 * 54 - + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-35816
-59675
-63929

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT col0 * - 13 * 54 - + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-35816
-59675
-63929

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + MAX( ALL + - 46 ) AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-5742
SELECT + MAX ( ALL + - 46 ) AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT 86 DIV - - COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5743
SELECT 86 / - - COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT + 90 * - - col0 AS col0 FROM tab2
----
4140
5760
6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - 89 ) * - - 90 + col2 + + - col1 col1 FROM tab0 WHERE NULL < col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5746
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2, + 42 FROM tab2
----
3
42

skipif mysql # not compatible
query II rowsort label-5746
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2, + 42 FROM tab2
----
3
42

query I rowsort
SELECT DISTINCT - 52 + - - col2 - - col2 * - col1 * col1 AS col1 FROM tab0
----
-308372
-4452
-52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE + 4 > NULL AND NOT col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 + 95 col2, 14 * col0 col2 FROM tab1 cor0
----
107
1190
107
1274
107
714

query I rowsort
SELECT ALL col2 - + col2 * + 23 FROM tab0 AS cor0
----
-1034
-2178
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5752
SELECT - 46 + + - 51 DIV + COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5752
SELECT - 46 + + - 51 / + COUNT ( * ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL ( + + 72 ) FROM tab2
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab1
----
80

query I rowsort
SELECT DISTINCT 87 FROM tab1 cor0
----
87

query I rowsort
SELECT - 44 AS col2 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 88 * + 72 AS col0 FROM tab1 AS cor0
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT MIN( DISTINCT - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5759
SELECT MIN ( DISTINCT - col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT + SUM( + 15 ) col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT DISTINCT + SUM ( + 15 ) col0 FROM tab1 AS cor0
----
45

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

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

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

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT 60 * COUNT( * ) + + 22 AS col2 FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-5768
SELECT 60 * COUNT ( * ) + + 22 AS col2 FROM tab0 AS cor0
----
202

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 22 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + ( - 54 ) + - col0 AS col2 FROM tab2
----
-100
-118
-129

query I rowsort
SELECT ALL 61 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5773
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= ( - CAST( + + ( - col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5773
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= ( - CAST ( + + ( - col2 ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN + 1 AND NULL
----

query I rowsort
SELECT - - ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT DISTINCT 20 DIV + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT 20 / + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + 95 - + 73 * - COUNT( * ) + - - 3 col1 FROM tab1 AS cor0
----
317

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5778
SELECT + 95 - + 73 * - COUNT ( * ) + - - 3 col1 FROM tab1 AS cor0
----
317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT + ( col2 ) + + + 52 DIV + 18 FROM tab1
----
61
70
98

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + ( col2 ) + + + 52 / + 18 FROM tab1
----
61
70
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT ALL 53 + CAST( NULL AS SIGNED ) + + 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL 53 + CAST ( NULL AS INTEGER ) + + 42 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL ( 2 ) + + COUNT( * ) col2 FROM tab1
----
5

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

query I rowsort
SELECT 10 AS col2 FROM tab2 cor0
----
10
10
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5784
SELECT ALL + COUNT( * ) DIV - 58 + + 67 AS col0 FROM tab2 AS cor0
----
67

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 70 * - ( + 92 ) NOT BETWEEN NULL AND - 64
----

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

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

query I rowsort
SELECT DISTINCT col2 * + 36 * + + 77 * col2 AS col1 FROM tab2
----
1466388
4435200
9325008

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

skipif mysql # not compatible
query I rowsort label-5788
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1
----
-9

query II rowsort
SELECT ALL 71 * 87, + col0 FROM tab1
----
6177
51
6177
85
6177
91

query I rowsort
SELECT - col1 * + 88 * col0 FROM tab0 AS cor0
----
-106920
-160776
-8536

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

query I rowsort
SELECT ALL - + 78 AS col1 FROM tab1 AS cor0
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * + col2 col2, col0 + - col2 col2 FROM tab1 AS cor0
----
1344
-45
295
26
3196
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT ALL + + 71 DIV 40 DIV col2 + col2 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + + 71 / 40 / col2 + col2 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT ALL ( + - 78 ) + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-14
-3
-32

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

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

query I rowsort
SELECT DISTINCT + 46 * + col2 + - col0 * - 47 * + + 64 AS col2 FROM tab0
----
262156
296330
47282

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

skipif mysql # not compatible
query I rowsort label-5798
SELECT + SUM ( DISTINCT + 31 ) AS col1 FROM tab1
----
31

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT 46 * + COUNT( + - col2 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5801
SELECT 46 * + COUNT ( + - col2 ) FROM tab2
----
138

query II rowsort
SELECT col2, - col2 * + col2 FROM tab1
----
59
-3481
68
-4624
96
-9216

query I rowsort
SELECT DISTINCT col1 * + + 85 FROM tab1 cor0
----
1190
3995
425

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

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

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

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT 44 + + COUNT ( * ) - COUNT ( * ) FROM tab1
----
44

query I rowsort
SELECT ALL col0 + col0 * + 84 FROM tab0
----
1275
7395
8245

query III rowsort
SELECT * FROM tab0 WHERE + col0 < - 29
----

query I rowsort
SELECT + - col1 + + 37 FROM tab1 cor0
----
-10
23
32

query I rowsort
SELECT DISTINCT col2 - + 68 + - - 35 FROM tab0 cor0
----
-23
14
66

query I rowsort
SELECT col0 * 77 + col0 + col2 + - col1 FROM tab0 AS cor0
----
1136
6775
7664

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT - + 88 DIV + ( - 95 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT - + 88 / + ( - 95 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

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

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

query I rowsort
SELECT DISTINCT - 52 + - col2 AS col1 FROM tab0
----
-151
-62
-99

query I rowsort
SELECT 12 * + col0 AS col0 FROM tab0
----
1044
1164
180

query I rowsort
SELECT - 50 * - 75 * - 67 * col1 AS col2 FROM tab2
----
-12813750
-16833750
-19346250

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + COUNT( * ) - 37 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5818
SELECT + COUNT ( * ) - 37 FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT DISTINCT ( - MIN( + - col0 ) ), + 38 AS col0 FROM tab2
----
75
38

skipif mysql # not compatible
query II rowsort label-5819
SELECT DISTINCT ( - MIN ( + - col0 ) ), + 38 AS col0 FROM tab2
----
75
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT 60 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + 94 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + col0 col0 FROM tab0
----
-42
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 21 + - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - - COUNT( * ) * - 41 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-5827
SELECT - - COUNT ( * ) * - 41 FROM tab0 AS cor0
----
-123

query I rowsort
SELECT + col2 * + col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT - - COUNT( * ) AS col1, + 75 AS col1 FROM tab1 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-5829
SELECT - - COUNT ( * ) AS col1, + 75 AS col1 FROM tab1 AS cor0
----
3
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT 16 DIV - 29 * ( + 76 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT 16 / - 29 * ( + 76 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col0 col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

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

query II rowsort
SELECT DISTINCT + - col2, + col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT - ( - COUNT( 65 ) ) * + 66 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - ( - COUNT ( 65 ) ) * + 66 FROM tab0 AS cor0
----
198

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

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

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

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

query II rowsort
SELECT ALL + col1 + + 37, col1 FROM tab1
----
42
5
51
14
84
47

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

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

query I rowsort
SELECT - ( - ( + 43 ) ) * - 7 * col1 + + col1 * + 30 + + col2 AS col0 FROM tab2 WHERE NOT - - col0 = col1
----
-13798
-18099
-20827

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5841
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 + - 53 * 98 * 32 + CAST( + col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - CAST ( NULL AS REAL ) + + col2 + - 53 * 98 * 32 + CAST ( + col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + ( 70 ) AS col2 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT - - col0 * - col2 + - 84 * - - 88 * + - 10 FROM tab1 AS cor0
----
67732
68905
69024

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL - COUNT( * ) + - 97 AS col2 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - COUNT ( * ) + - 97 AS col2 FROM tab2 AS cor0
----
-100

query I rowsort
SELECT + 72 - - 33 AS col0 FROM tab0 AS cor0
----
105
105
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT ALL + - COUNT( * ) + + + COUNT( * ) DIV + + 6 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) / + + 6 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col0 * + col0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT - COUNT ( * ) - ( + 48 ) col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT 57 - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1158
-1770
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT - SUM( + col0 ) - + - COUNT( * ) AS col2 FROM tab0 cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - SUM ( + col0 ) - + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-196

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

query III rowsort
SELECT * FROM tab2 WHERE ( - + col1 ) = NULL
----

query I rowsort
SELECT col2 - - col2 + - - 62 + + + col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col1 + 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT 81 + + - 60 DIV col1 FROM tab0
----
21
79
81

skipif mysql # not compatible
query I rowsort label-5853
SELECT 81 + + - 60 / col1 FROM tab0
----
21
79
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT MAX( - col1 ) AS col2, + 18 FROM tab0
----
-1
18

skipif mysql # not compatible
query II rowsort label-5854
SELECT MAX ( - col1 ) AS col2, + 18 FROM tab0
----
-1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT 75 * + MAX( DISTINCT + col0 ) FROM tab2
----
5625

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT 75 * + MAX ( DISTINCT + col0 ) FROM tab2
----
5625

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

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

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - COUNT ( 78 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 90 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 15 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + + 18 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + + 18 <= NULL
----
0

query I rowsort
SELECT ALL + 19 * - col1 FROM tab1
----
-266
-893
-95

query I rowsort
SELECT - col0 * - 92 AS col0 FROM tab0 AS cor0
----
1380
8004
8924

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

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

query I rowsort
SELECT + col2 * + 55 AS col1 FROM tab0 AS cor0
----
2585
5445
550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + + - col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT col2 + col0 + + - col0 + - col0 * col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT - col2 + 20 AS col2 FROM tab2
----
-20
-3
-38

query I rowsort
SELECT ( + ( 8 ) ) * - 8 + col2 - - col2 AS col1 FROM tab2
----
-18
16
52

query I rowsort
SELECT ALL + col1 * - + col0 * + + 33 AS col2 FROM tab0
----
-3201
-40095
-60291

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

query I rowsort
SELECT - 81 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL + CAST( - 23 AS SIGNED ) + + - 24 col1 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5874
SELECT ALL + CAST ( - 23 AS INTEGER ) + + - 24 col1 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - + 94 - - col1 FROM tab0 AS cor0
----
-13
-73
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT 66 + + COUNT( * ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5877
SELECT 66 + + COUNT ( * ) AS col0 FROM tab2
----
69

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

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

query I rowsort
SELECT col1 + - col2 + col2 FROM tab2
----
51
67
77

query I rowsort
SELECT + ( - - col1 ) + + col1 AS col2 FROM tab1
----
10
28
94

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5882
SELECT * FROM tab0 AS cor0 WHERE + CAST( col0 AS SIGNED ) * + + col2 + - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5882
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col0 AS INTEGER ) * + + col2 + - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 42
----

query I rowsort
SELECT DISTINCT + 76 * + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3496
4864
5700

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL + - MAX( ALL - col1 ) * + SUM( ALL + + 73 ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + - MAX ( ALL - col1 ) * + SUM ( ALL + + 73 ) FROM tab0 AS cor0
----
219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL MIN( ALL ( col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL MIN ( ALL ( col1 ) ) AS col0 FROM tab2
----
51

query I rowsort
SELECT - 38 * + col0 AS col1 FROM tab0
----
-3306
-3686
-570

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

skipif mysql # not compatible
query II rowsort label-5893
SELECT ALL + COUNT ( * ), + COUNT ( * ) - ( + 93 ) AS col0 FROM tab1
----
3
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - 25 AND 20
----

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

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

query I rowsort
SELECT - 11 * + col2 FROM tab1
----
-1056
-649
-748

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > col0
----

query I rowsort
SELECT ALL AVG ( col1 ) FROM tab2 WHERE col2 + col2 = NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5900
SELECT ALL CAST ( col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col0
----

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

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

query I rowsort
SELECT ALL - col0 * col2 + + col2 * - 34 AS col0 FROM tab0
----
-1210
-12969
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab0 WHERE col1 NOT BETWEEN 49 - - 15 AND ( NULL )
----
10

skipif mysql # not compatible
query I rowsort label-5904
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 WHERE col1 NOT BETWEEN 49 - - 15 AND ( NULL )
----
10

query I rowsort
SELECT col2 + + ( ( col1 ) ) FROM tab1
----
110
115
64

query I rowsort
SELECT ALL 20 + col2 * col1 AS col1 FROM tab2
----
1193
3100
3906

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL + 93 * + ( - col2 ) + + col2 DIV col2 FROM tab0
----
-4370
-9206
-929

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 93 * + ( - col2 ) + + col2 / col2 FROM tab0
----
-4370
-9206
-929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5909
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

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

query I rowsort
SELECT ALL + col0 + - 28 AS col1 FROM tab0
----
-13
59
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab2 WHERE ( col2 + + col0 * col0 ) <= col1
----

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 WHERE ( col2 + + col0 * col0 ) <= col1
----

query I rowsort
SELECT DISTINCT - col2 * - 5 AS col2 FROM tab0
----
235
495
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5914
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * 38 >= NULL
----

skipif mysql # not compatible
query III rowsort label-5914
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * 38 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL MIN ( 86 ) AS col0 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 61 * + col1 + col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 61 * + col1 + col1 * col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - 58 + - MAX( DISTINCT - col2 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 58 + - MAX ( DISTINCT - col2 ) FROM tab0
----
-48

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

query I rowsort
SELECT DISTINCT + ( + 95 ) * - 3 AS col1 FROM tab0
----
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE ( NULL ) < ( col1 )
----

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

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

query I rowsort
SELECT DISTINCT 93 * col2 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE NOT NULL IN ( - ( + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <> col2 + - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 45 FROM tab1 WHERE NOT ( - ( - 50 ) ) BETWEEN - col0 AND + 20 - + col0
----
45
45
45

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + col1 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
68
96

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

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

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

query I rowsort
SELECT col2 * col0 - + 84 * + col1 AS col1 FROM tab0
----
-6099
-894
9519

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5936
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> - col2 / 83 + 32
----

skipif mysql # not compatible
query III rowsort label-5936
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> - col2 / 83 + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * col0 col0 FROM tab0 AS cor0
----
-522
-582
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT MAX( ( col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5938
SELECT MAX ( ( col2 ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - 93 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 77 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL - COUNT( * ) + + COUNT( + 14 ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - COUNT ( * ) + + COUNT ( + 14 ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----
0

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

query I rowsort
SELECT + col0 * - 84 * - col0 FROM tab1
----
218484
606900
695604

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

skipif mysql # not compatible
query I rowsort label-5945
SELECT - SUM ( + + col2 ) FROM tab0
----
-156

query I rowsort
SELECT 88 * + col2 AS col0 FROM tab0
----
4136
8712
880

query I rowsort
SELECT + col2 * 89 FROM tab1
----
5251
6052
8544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5948
SELECT ALL 53 * CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT col0 * + col1 + - ( col2 ) = col2 + - col0 * - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL 53 * CAST ( NULL AS REAL ) FROM tab1 WHERE NOT col0 * + col1 + - ( col2 ) = col2 + - col0 * - col0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL COUNT( * ) + + 9 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----
9

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL COUNT ( * ) + + 9 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5952
SELECT ALL * FROM tab0 AS cor0 WHERE ( 31 * CAST( NULL AS SIGNED ) + col2 ) <> col2 + 99
----

skipif mysql # not compatible
query III rowsort label-5952
SELECT ALL * FROM tab0 AS cor0 WHERE ( 31 * CAST ( NULL AS INTEGER ) + col2 ) <> col2 + 99
----

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT - + COUNT( * ) DIV + SUM( ALL - col2 ) + + MIN( + col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5954
SELECT - + COUNT ( * ) / + SUM ( ALL - col2 ) + + MIN ( + col2 ) col2 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT DISTINCT - 41 DIV 35 - + 80 * - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7119

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - 41 / 35 - + 80 * - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7119

query I rowsort
SELECT - 5 FROM tab1 WHERE NOT - col2 IS NULL
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE col1 NOT IN ( 77 )
----
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT DISTINCT COUNT( + - 88 ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT COUNT ( + - 88 ) AS col1 FROM tab0, tab0 AS cor0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + COUNT( * ) col0 FROM tab1 cor0 WHERE ( - col2 ) NOT BETWEEN col2 * + 82 AND 73
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5960
SELECT + COUNT ( * ) col0 FROM tab1 cor0 WHERE ( - col2 ) NOT BETWEEN col2 * + 82 AND 73
----
3

query I rowsort
SELECT - + col2 * + + 42 + - col1 FROM tab2 cor0
----
-1017
-1757
-2503

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

query I rowsort
SELECT ALL 8 * - 79 + 41 FROM tab0 AS cor0
----
-591
-591
-591

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 + - 50 + - col2 AS col1 FROM tab0 AS cor0
----
608
810
9454

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

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

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

query I rowsort
SELECT - col0 + - 59 FROM tab0 cor0
----
-146
-156
-74

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

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

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

query I rowsort
SELECT 66 * col1 * col2 + col2 AS col1 FROM tab1
----
19529
211004
88800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL + CAST( col1 AS SIGNED ) + - - col0 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + CAST ( col1 AS INTEGER ) + - - col0 AS col2 FROM tab2
----
141
142
97

query II rowsort
SELECT - ( - - col0 ), - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL - COUNT( * ) + 50 AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COUNT ( * ) + 50 AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5975
SELECT DISTINCT - 28 FROM tab1 WHERE NOT ( col2 + - - CAST( NULL AS DECIMAL ) + col2 * + 34 * col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - 28 FROM tab1 WHERE NOT ( col2 + - - CAST ( NULL AS REAL ) + col2 * + 34 * col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT ALL col2 DIV - - 12 + - col1 AS col2 FROM tab0
----
-21
-78
7

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL col2 / - - 12 + - col1 AS col2 FROM tab0
----
-21
-78
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( - col2 )
----

query I rowsort
SELECT ALL 22 FROM tab2 AS cor0 WHERE col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT col1 + + + 17 FROM tab0
----
18
38
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + 81 / - col0 ) NOT BETWEEN ( - 12 / - 97 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 / 50 * + 82 = 73 + ( col0 ) / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 63 < + - 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-5987
SELECT + - COUNT ( * ) / + - COUNT ( * ) - + 86 FROM tab0 AS cor0
----
-85

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5990
SELECT CAST( col2 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) + - - col0 NOT IN ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-5990
SELECT CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) + - - col0 NOT IN ( - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL - 99 - COUNT( * ) + 49 - CAST( COUNT( * ) AS SIGNED ) * 16 FROM tab0, tab1 cor0
----
-203

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - 99 - COUNT ( * ) + 49 - CAST ( COUNT ( * ) AS INTEGER ) * 16 FROM tab0, tab1 cor0
----
-203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL - CAST( NULL AS SIGNED ) - 10 col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5993
SELECT ALL - CAST ( NULL AS INTEGER ) - 10 col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT ALL - 85 DIV + 46 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - 85 / + 46 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) DIV - - col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) / - - col2 AS col2 FROM tab1
----
-1
0

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

skipif mysql # not compatible
query I rowsort label-5998
SELECT + 30 / - COUNT ( * ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON - 88 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL col1 + - + col2 * + col1 + + col2 FROM tab1
----
-1234
-231
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT + COUNT( * ) + + + 65 + 99 FROM tab1
----
167

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + COUNT ( * ) + + + 65 + 99 FROM tab1
----
167

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT 53 DIV + COUNT( * ) + 2 AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 53 / + COUNT ( * ) + 2 AS col0 FROM tab1
----
19

query I rowsort
SELECT ALL col1 + + 31 AS col2 FROM tab0
----
112
32
52

query III rowsort
SELECT * FROM tab2 WHERE + 24 NOT BETWEEN - col1 AND col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - 38 IN ( + - 73 * col2 * + + 40 )
----

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

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

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

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

query II rowsort
SELECT DISTINCT - ( + col1 ), - col0 AS col2 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

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

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

query I rowsort
SELECT - - 8 FROM tab2 WHERE ( NULL ) > + col0 * - col0
----

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

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

query I rowsort
SELECT ALL 23 + col1 AS col1 FROM tab2
----
100
74
90

query I rowsort
SELECT - 35 + col1 + + 51 * - ( col0 ) + + 53 FROM tab2 WHERE NULL < col2 * - col1
----

query II rowsort
SELECT ALL col2, col0 + 6 AS col0 FROM tab2
----
23
52
40
70
58
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT - + col0 + + col0 DIV 87 * - ( - + ( + col0 ) ) + - - 57 AS col1 FROM tab0 AS cor0
----
42
57
57

skipif mysql # not compatible
query I rowsort label-6020
SELECT - + col0 + + col0 / 87 * - ( - + ( + col0 ) ) + - - 57 AS col1 FROM tab0 AS cor0
----
42
57
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 >= col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT + + COUNT( * ) - - COUNT( ALL - + 20 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + + COUNT ( * ) - - COUNT ( ALL - + 20 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL - COUNT( * ) FROM tab2 WHERE - 43 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - 43 IS NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT + + 62 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT + + 62 / - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6029
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * ( - 85 ) NOT BETWEEN NULL AND - 95 - + col0
----

skipif mysql # not compatible
query III rowsort label-6029
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * ( - 85 ) NOT BETWEEN NULL AND - 95 - + col0
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6032
SELECT CAST ( - col1 AS INTEGER ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6033
SELECT ALL 41 DIV ( - col0 ) AS col2, 95 + + 29 - - 0 FROM tab0
----
-2
124
0
124
0
124

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL 41 / ( - col0 ) AS col2, 95 + + 29 - - 0 FROM tab0
----
-2
124
0
124
0
124

query I rowsort
SELECT - col0 * - - col1 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT 98, + COUNT( * ) * + 60 AS col0 FROM tab0
----
98
180

skipif mysql # not compatible
query II rowsort label-6035
SELECT 98, + COUNT ( * ) * + 60 AS col0 FROM tab0
----
98
180

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + SUM( - col2 ) * + - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
366

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + SUM ( - col2 ) * + - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
366

query I rowsort
SELECT ALL - + col2 / - + col2 FROM tab1 AS cor0 WHERE - 88 * + 69 + - col0 IS NULL
----

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

query III rowsort
SELECT col2 AS col1, - col2, + col1 AS col1 FROM tab0
----
9 values hashing to d4e419af229943af9b46e6d04e8e70cb

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6043
SELECT ALL + 23, 71 DIV - + ( - - col1 ) AS col1 FROM tab0
----
23
-3
23
-71
23
0

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL + 23, 71 / - + ( - - col1 ) AS col1 FROM tab0
----
23
-3
23
-71
23
0

query I rowsort
SELECT + col0 + + 87 AS col1 FROM tab0
----
102
174
184

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

query I rowsort
SELECT ALL - - 56 + - 5 AS col2 FROM tab2 cor0
----
51
51
51

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

query I rowsort
SELECT DISTINCT 45 - - - 62 FROM tab2 AS cor0
----
-17

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT ALL COUNT( * ) AS col1, - 4 FROM tab1 AS cor0
----
3
-4

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL COUNT ( * ) AS col1, - 4 FROM tab1 AS cor0
----
3
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6051
SELECT - col1 * - + col0 DIV col0 * col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6051
SELECT - col1 * - + col0 / col0 * col1 FROM tab0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * 10 * - col1 col2 FROM tab2
----
-26520
-34840
-40040

query I rowsort
SELECT DISTINCT - 69 + - + col1 FROM tab0
----
-150
-70
-90

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> - col0
----

query I rowsort
SELECT DISTINCT col1 + - + 41 FROM tab2
----
10
26
36

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab2 cor0 WHERE col0 + + col0 IS NOT NULL
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT + CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6059
SELECT + CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
51
85
91

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

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

query I rowsort
SELECT DISTINCT - 81 * ( + 11 ) AS col1 FROM tab2
----
-891

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT - col0 * - CAST ( - ( + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col2 - - col0 * + 72 * 57 + 42 + + - 74 AS col2 FROM tab1 AS cor0
----
200056
345327
368808

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

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

query I rowsort
SELECT ALL + 8 * + col1 AS col2 FROM tab0
----
168
648
8

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6075
SELECT ALL + COUNT ( * ) col2 FROM tab2 WHERE + col2 - ( ( col1 ) ) + + col2 + col1 * + + 45 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6076
SELECT ALL + col2 + - + col1 AS col2, + ( + - CAST( + col2 AS SIGNED ) ) FROM tab1 WHERE NOT - col2 - + col2 + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL + col2 + - + col1 AS col2, + ( + - CAST ( + col2 AS INTEGER ) ) FROM tab1 WHERE NOT - col2 - + col2 + col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 * 63 FROM tab0 WHERE NOT - 2 + - + col2 + - 49 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6078
SELECT DISTINCT 56 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT 56 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT + + col0 + - ( + - col1 ) * - + col2 DIV col2 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-6081
SELECT + + col0 + - ( + - col1 ) * - + col2 / col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - 71 + + + col0 AS col1 FROM tab1 AS cor0
----
-20
14
20

query II rowsort
SELECT ALL 99 * + + 96, col2 AS col1 FROM tab0 AS cor0 WHERE NOT 81 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT ALL col1 DIV 60 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL col1 / 60 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT + CAST( NULL AS SIGNED ) * ( - col1 ) + 57 AS col0 FROM tab0 WHERE - col1 * - ( - col1 ) + 52 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT + CAST ( NULL AS INTEGER ) * ( - col1 ) + 57 AS col0 FROM tab0 WHERE - col1 * - ( - col1 ) + 52 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT - col2 DIV 58 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT - col2 / 58 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - SUM( DISTINCT col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6087
SELECT - SUM ( DISTINCT col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 18 * + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6088
SELECT 18 * + COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT MAX( ALL + + col0 ) + - 58 AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT MAX ( ALL + + col0 ) + - 58 AS col1 FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL - col1 - + 61 * + + 91 + - col2 AS col0 FROM tab0 cor0
----
-5582
-5651
-5679

query I rowsort
SELECT ALL - col2 * - - 99 + col0 + - col2 FROM tab1 AS cor0
----
-5815
-6709
-9549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT DISTINCT col2 * + CAST( + + 31 AS SIGNED ) + col2 * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
6903
7968
8364

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT col2 * + CAST ( + + 31 AS INTEGER ) + col2 * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
6903
7968
8364

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + - COUNT( * ) - + - COUNT( * ) * + 13 * - + MIN( - col0 ) + 15 FROM tab2 AS cor0
----
2937

skipif mysql # not compatible
query I rowsort label-6093
SELECT + - COUNT ( * ) - + - COUNT ( * ) * + 13 * - + MIN ( - col0 ) + 15 FROM tab2 AS cor0
----
2937

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6094
SELECT + CAST( NULL AS DECIMAL ) / - 98 + - 39 + - + 99 - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + CAST ( NULL AS REAL ) / - 98 + - 39 + - + 99 - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 68 col1 FROM tab2 AS cor0
----
-10
-28
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6096
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) + - col1 >= - col2 + - col1 + - col0 * col2 + - - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-6096
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) + - col1 >= - col2 + - col1 + - col0 * col2 + - - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT - + COUNT( * ) - + COUNT( DISTINCT + ( + 65 ) ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( DISTINCT + ( + 65 ) ) AS col0 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6098
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - 44 + col2 + - ( - col0 ) + + CAST( + - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6098
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - 44 + col2 + - ( - col0 ) + + CAST ( + - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6099
SELECT ALL col1 DIV - - CAST( col2 AS SIGNED ) + + - col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL col1 / - - CAST ( col2 AS INTEGER ) + + - col2 FROM tab0 AS cor0
----
-46
-8
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * - col0 + + col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-6100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * - col0 + + col1 > NULL
----

query I rowsort
SELECT 71 + col2 + - + col2 * - ( 15 ) AS col0 FROM tab2
----
439
711
999

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6102
SELECT col1 + - + CAST( ( - col1 ) AS SIGNED ), col2 AS col2 FROM tab2
----
102
23
134
58
154
40

skipif mysql # not compatible
query II rowsort label-6102
SELECT col1 + - + CAST ( ( - col1 ) AS INTEGER ), col2 AS col2 FROM tab2
----
102
23
134
58
154
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT MIN( DISTINCT + 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT MIN ( DISTINCT + 21 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT DISTINCT 61 col2, COUNT( * ) FROM tab2
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6104
SELECT DISTINCT 61 col2, COUNT ( * ) FROM tab2
----
61
3

query I rowsort
SELECT ALL - + col1 * col0 + - - 64 AS col1 FROM tab2 WHERE - 72 * - + 76 * 51 IS NULL
----

query I rowsort
SELECT - col1 * - + 38 FROM tab2
----
1938
2546
2926

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

skipif mysql # not compatible
query I rowsort label-6107
SELECT + col1 * + 84 + 38 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6109
SELECT DISTINCT COUNT( * ) * ( CAST( 61 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT COUNT ( * ) * ( CAST ( 61 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + 3 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT - 33 * - - 63 AS col2 FROM tab1 cor0 WHERE NOT col0 + CAST( col0 AS SIGNED ) + + col2 - + col1 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - 33 * - - 63 AS col2 FROM tab1 cor0 WHERE NOT col0 + CAST ( col0 AS INTEGER ) + + col2 - + col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6111
SELECT ALL + CAST( - 1 AS SIGNED ), - COUNT( * ) * 9 AS col1 FROM tab2
----
-1
-27

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL + CAST ( - 1 AS INTEGER ), - COUNT ( * ) * 9 AS col1 FROM tab2
----
-1
-27

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6113
SELECT DISTINCT - + MIN( - col0 ) AS col2, - 2 * COUNT( * ) * + - 29 FROM tab0 AS cor0
----
97
174

skipif mysql # not compatible
query II rowsort label-6113
SELECT DISTINCT - + MIN ( - col0 ) AS col2, - 2 * COUNT ( * ) * + - 29 FROM tab0 AS cor0
----
97
174

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

query I rowsort
SELECT DISTINCT + col1 * + col1 * - ( + + 22 ) AS col1 FROM tab1 AS cor0
----
-4312
-48598
-550

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + - col0, col1 * - + 33, + col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + + col0 * - - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-249682
-426270
-563061

query I rowsort
SELECT DISTINCT 48 * col0 * col2 FROM tab2
----
122880
208800
50784

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

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT COUNT ( * ) + + 94 FROM tab1
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab0, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + ( - col2 ) * - - CAST ( + + col0 AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
-624
-849
-9602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + 15 * - SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3405

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + 15 * - SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3405

query I rowsort
SELECT DISTINCT - col2 + - - 4 FROM tab0
----
-43
-6
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT - col0 DIV - col1 + col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-6127
SELECT - col0 / - col1 + col1 FROM tab0
----
25
81
98

query I rowsort
SELECT ALL 29 * col1 * col2 * - - col0 + - col0 AS col0 FROM tab2
----
1564736
5716416
8451975

query III rowsort
SELECT * FROM tab1 WHERE 87 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT COUNT( * ) * 19 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6131
SELECT COUNT ( * ) * 19 AS col2 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col2 * + + col0 / - 63 AND - - col0 * + col0 + + ( col2 )
----

query I rowsort
SELECT + 66 * + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
28050
282282
47124

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

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

query I rowsort
SELECT ALL 39 - + 17 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT - col2 * - 52 - CAST( - 87 AS SIGNED ) FROM tab1
----
3155
3623
5079

skipif mysql # not compatible
query I rowsort label-6137
SELECT - col2 * - 52 - CAST ( - 87 AS INTEGER ) FROM tab1
----
3155
3623
5079

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab1
----
40

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

query II rowsort
SELECT ALL + col2, + 29 + + col1 FROM tab2
----
23
80
40
106
58
96

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT + 79 DIV 34 col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT + 79 / 34 col0 FROM tab1
----
2
2
2

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

query I rowsort
SELECT DISTINCT - + 55 FROM tab0 cor0
----
-55

query I rowsort
SELECT - 68 FROM tab1 AS cor0 WHERE NOT col2 / col2 < col2 + + ( col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT + 2, ( COUNT( * ) ) col1 FROM tab2
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6150
SELECT + 2, ( COUNT ( * ) ) col1 FROM tab2
----
2
3

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

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

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

query II rowsort
SELECT col0 AS col1, 64 AS col2 FROM tab0
----
15
64
87
64
97
64

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT - 66 * + - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-6156
SELECT - 66 * + - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL + CAST( + + 4 AS SIGNED ) + + - 37 FROM tab1
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + CAST ( + + 4 AS INTEGER ) + + - 37 FROM tab1
----
-33
-33
-33

query II rowsort
SELECT - col1 + + - col0 + - + col2 AS col0, col0 FROM tab2 AS cor0
----
-120
46
-181
64
-200
75

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

skipif mysql # not compatible
query I rowsort label-6159
SELECT - COUNT ( - + col1 ) + + + 45 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + ( 91 ) * + 8 - - + ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
3074
5656
5753

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT ALL + col2 - col2 - col2 * + + col2 DIV + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + col2 - col2 - col2 * + + col2 / + col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 22 * + col2, + 28 * + col1 )
----

query I rowsort
SELECT - col2 * col1 + + - col1 * + col0 + - 57 FROM tab1 AS cor0
----
-2115
-7530
-777

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 18, - col0, + + col1, - col0, + col1 + 7 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT ALL col0 DIV + 54 FROM tab1 AS cor0
----
0
1
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL COUNT( * ) * - + COUNT( * ) * + CAST( MAX( 57 ) AS SIGNED ) FROM tab2
----
-513

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * + CAST ( MAX ( 57 ) AS INTEGER ) FROM tab2
----
-513

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 81 + + - ( 43 ) < - - col1
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT MIN( DISTINCT - col0 ) col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6171
SELECT MIN ( DISTINCT - col0 ) col0 FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT + + 71 + COUNT( * ) AS col0 FROM tab0 WHERE NOT - col0 * + CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) <> NULL
----
71

skipif mysql # not compatible
query I rowsort label-6172
SELECT + + 71 + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col0 * + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) <> NULL
----
71

query I rowsort
SELECT col0 * + 58 FROM tab1
----
2958
4930
5278

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 59 * - col2 / - col0 >= + + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT SUM( 19 ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6175
SELECT SUM ( 19 ) AS col2 FROM tab0
----
57

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

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

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

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

query II rowsort
SELECT + + col1 AS col1, 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT 48 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT MIN( - 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT MIN ( - 0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - col1 + - + 33 * + + col1 FROM tab1 AS cor0
----
-1598
-170
-476

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT + col0 DIV col2 + - col2 FROM tab0 AS cor0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-6182
SELECT + col0 / col2 + - col2 FROM tab0 AS cor0
----
-2
-47
-99

query I rowsort
SELECT - - 5 + + 66 AS col0 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + col1 FROM tab1 WHERE NULL <= + CAST( 22 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6184
SELECT + col1 FROM tab1 WHERE NULL <= + CAST ( 22 AS INTEGER )
----

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

query I rowsort
SELECT + col2 * - col0 * - - col0 AS col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT 28 + + 79 AS col1 FROM tab0
----
107

query III rowsort
SELECT * FROM tab0 WHERE + col0 = + col2 * + 35
----

query I rowsort
SELECT ALL - col2 + + col2 - - col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT COUNT( * ) AS col1, COUNT( ALL - ( - 98 ) ) * 71 * + + MIN( - - col0 ) + + + 54 FROM tab0
----
3
3249

skipif mysql # not compatible
query II rowsort label-6190
SELECT COUNT ( * ) AS col1, COUNT ( ALL - ( - 98 ) ) * 71 * + + MIN ( - - col0 ) + + + 54 FROM tab0
----
3
3249

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT 82 col2, SUM( ALL - col1 ) AS col1 FROM tab1
----
82
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6192
SELECT 82 col2, SUM ( ALL - col1 ) AS col1 FROM tab1
----
82
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT DISTINCT 66 DIV + col0 + - col2 * - 19 FROM tab0
----
1881
190
897

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT 66 / + col0 + - col2 * - 19 FROM tab0
----
1881
190
897

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1 WHERE - + col1 <= - 55 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT 29 AS col1, + col1 / 99 * CAST( NULL AS SIGNED ) + - 66 AS col1 FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
query II rowsort label-6195
SELECT 29 AS col1, + col1 / 99 * CAST ( NULL AS INTEGER ) + - 66 AS col1 FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83, + 78 col2 FROM tab2 AS cor0
----
-83
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - 66 / 83 / - + col0 <= - - col2 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - 66 / 83 / - + col0 <= - - col2 - - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6198
SELECT ALL - COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-6198
SELECT ALL - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - + 16 + col1 col0 FROM tab2
----
1011
1027
1037

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT col2 + 10 DIV col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6200
SELECT col2 + 10 / col2 AS col0 FROM tab2
----
23
40
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL NOT BETWEEN - 36 AND NULL )
----

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

query I rowsort
SELECT + col2 + + - 34 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
13
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + col0 / - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col1 / + col2
----

query I rowsort
SELECT + + col0 * col0 + - 18 * - - col0 FROM tab1 cor0
----
1683
5695
6643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6208
SELECT - MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 * + col1 <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 * + col1 <> + col1
----
0

query I rowsort
SELECT ALL + ( + - 96 ) * col1 AS col1 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT ALL + col1 * - - 58 AS col2 FROM tab1
----
2726
290
812

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT - 72 * + + col1 FROM tab1 AS cor0
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT 52 * + - 63 FROM tab1
----
-3276

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

query II rowsort
SELECT col1 * + ( - ( - col1 ) ) AS col0, + 77 FROM tab0 AS cor0
----
1
77
441
77
6561
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 / - 20 < - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - - 77 * MAX( + col1 ) * + 50 * + - 68 AS col2 FROM tab0 AS cor0
----
-21205800

skipif mysql # not compatible
query I rowsort label-6218
SELECT - - 77 * MAX ( + col1 ) * + 50 * + - 68 AS col2 FROM tab0 AS cor0
----
-21205800

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

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

query II rowsort
SELECT ALL col0 + + - 73 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
-27
-46
-9
-64
2
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT ALL MAX( - col1 ) DIV + - COUNT( * ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL MAX ( - col1 ) / + - COUNT ( * ) AS col2 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + - COUNT( ALL - 22 ) + + - 60 * - 93 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
5580

skipif mysql # not compatible
query I rowsort label-6222
SELECT + - COUNT ( ALL - 22 ) + + - 60 * - 93 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
5580

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

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

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

query II rowsort
SELECT ALL 86 * + 15 AS col1, + ( + + col1 ) - + + col2 * - col2 AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 91 + + 6 FROM tab1 AS cor0
----
97
97
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT 10 * + + COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT 10 * + + COUNT ( * ) AS col1 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6231
SELECT + - col2 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6231
SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6232
SELECT ALL - 93 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-93
NULL
-93
NULL
-93
NULL

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-93
NULL
-93
NULL
-93
NULL

query I rowsort
SELECT DISTINCT col1 * - 60 + col1 FROM tab0 AS cor0
----
-1239
-4779
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - + col0 > + 6
----
46
51
23
75
67
58

query I rowsort
SELECT DISTINCT ( + + 36 ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL + SUM( col1 ) * + - COUNT( * ) col2 FROM tab0 WHERE NOT NULL <= - 97
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6236
SELECT ALL + SUM ( col1 ) * + - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL <= - 97
----
NULL

query I rowsort
SELECT ALL - col0 * - - ( - col0 ) AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT DISTINCT - col0 DIV - - ( - 4 ) FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT - col0 / - - ( - 4 ) FROM tab2
----
11
16
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - ( - COUNT( * ) ) * - 93 * + COUNT( * ) AS col1 FROM tab1
----
-837

skipif mysql # not compatible
query I rowsort label-6240
SELECT - ( - COUNT ( * ) ) * - 93 * + COUNT ( * ) AS col1 FROM tab1
----
-837

query I rowsort
SELECT + 87 * 24 AS col2 FROM tab2 AS cor0
----
2088
2088
2088

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

query I rowsort
SELECT DISTINCT - 21 * - col1 AS col2 FROM tab0
----
1701
21
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT 40 * + + CAST( col2 AS SIGNED ) FROM tab2
----
1600
2320
920

skipif mysql # not compatible
query I rowsort label-6244
SELECT 40 * + + CAST ( col2 AS INTEGER ) FROM tab2
----
1600
2320
920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 30 AS col2 FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT - COUNT( * ) DIV + 23 + - + 91 AS col0 FROM tab2 cor0 WHERE 90 > + 34
----
-91

skipif mysql # not compatible
query I rowsort label-6248
SELECT - COUNT ( * ) / + 23 + - + 91 AS col0 FROM tab2 cor0 WHERE 90 > + 34
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6249
SELECT - CAST( NULL AS DECIMAL ) * col0 * + col2 + + ( - col2 ) * - 9 - - col2 + - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL col2 DIV - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL col2 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT + ( + - 4 ) * - COUNT( col0 ) + + 17 AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6252
SELECT + ( + - 4 ) * - COUNT ( col0 ) + + 17 AS col2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT 62 * + - 6 AS col2 FROM tab1
----
-372

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

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 2 / - + ( - + COUNT ( * ) ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT - 20 DIV 30 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 20 / 30 AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT col0 * - 59 AS col0 FROM tab2
----
-2714
-3776
-4425

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 + - col0 + col1 FROM tab1
----
249659
426195
563064

query I rowsort
SELECT col1 - + col0 FROM tab2 WHERE 24 / 56 IS NULL
----

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

query I rowsort
SELECT ALL ( + - 16 ) * - 57 + + col2 AS col1 FROM tab2 AS cor0
----
935
952
970

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) * 89 col0 FROM tab2 AS cor0
----
270

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6265
SELECT ALL * FROM tab0 AS cor0 WHERE 44 NOT IN ( col1 * col2, col0, + 14 * - CAST( NULL AS DECIMAL ) * + - col0 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6265
SELECT ALL * FROM tab0 AS cor0 WHERE 44 NOT IN ( col1 * col2, col0, + 14 * - CAST ( NULL AS REAL ) * + - col0 + - col2 )
----

query I rowsort
SELECT DISTINCT 38 * 99 AS col0 FROM tab2
----
3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL CAST( - + 45 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL CAST ( - + 45 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT - 54, + MIN( ALL - - 12 ) AS col2 FROM tab0
----
-54
12

skipif mysql # not compatible
query II rowsort label-6269
SELECT - 54, + MIN ( ALL - - 12 ) AS col2 FROM tab0
----
-54
12

query I rowsort
SELECT + 28 + - 51 AS col2 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + 32 + + 27 AS col1 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + col0 * + col0 + + + 12 AS col0 FROM tab0 AS cor0
----
237
7581
9421

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( DISTINCT - - 11 ) * - 59 + MIN( - + col0 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( DISTINCT - - 11 ) * - 59 + MIN ( - + col0 ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT col0 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 44 * - col0 AS col2 FROM tab2
----
-2024
-2816
-3300

query I rowsort
SELECT ALL - col2 * - - ( 53 ) FROM tab1 AS cor0
----
-3127
-3604
-5088

query I rowsort
SELECT ALL + + col2 - - - 65 - - col0 * col0 AS col1 FROM tab1 AS cor0
----
2632
7219
8284

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT ALL + col1 DIV + - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + col1 / + - col1 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT MAX( DISTINCT + 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT MAX ( DISTINCT + 25 ) FROM tab0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT + 84 * + 56 + + 86 - + COUNT( * ) DIV + 7 + + - 59 * + - COUNT( * ) col2 FROM tab0
----
4967

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6283
SELECT + 84 * + 56 + + 86 - + COUNT ( * ) / + 7 + + - 59 * + - COUNT ( * ) col2 FROM tab0
----
4967

query I rowsort
SELECT 61 * - - col1 + + - 8 * + - col2 FROM tab2
----
3295
4551
5017

query I rowsort
SELECT ALL 63 + - 7 FROM tab2
----
56
56
56

query III rowsort
SELECT * FROM tab2 WHERE - ( - - 0 ) <> 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT MIN( - - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6287
SELECT MIN ( - - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6288
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6288
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6290
SELECT CAST ( MIN ( ALL col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - ( - 75 ) * col0 FROM tab2 AS cor0
----
3450
4800
5625

query I rowsort
SELECT 12 * + ( + - ( - col1 ) ) + + 53 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
1025
305
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT + CAST( + + col1 AS SIGNED ) + - col2 * + 13 * - 68 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-623139
-769059
-8489051

skipif mysql # not compatible
query I rowsort label-6293
SELECT + CAST ( + + col1 AS INTEGER ) + - col2 * + 13 * - 68 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-623139
-769059
-8489051

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - ( COUNT( * ) ) * 33 * 84 + - - 61 FROM tab2 AS cor0 WHERE + col1 * - + col2 + col2 * + 94 * - col1 / 87 + col2 IS NULL OR + 82 IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-6294
SELECT - ( COUNT ( * ) ) * 33 * 84 + - - 61 FROM tab2 AS cor0 WHERE + col1 * - + col2 + col2 * + 94 * - col1 / 87 + col2 IS NULL OR + 82 IS NULL
----
61

query I rowsort
SELECT DISTINCT 70 FROM tab1 cor0
----
70

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

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab2 WHERE - col2 >= - + col1
----
141
142
97

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

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

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + 65 FROM tab2
----
56

query I rowsort
SELECT DISTINCT + 48 + - + col0 FROM tab1
----
-3
-37
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 49 + + col2 + - ( - col1 ) + - col0 + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( + 32 ) AS col2 FROM tab1
----
19
53
59

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL MIN ( DISTINCT + 17 ) AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + + 82 * - - col0 + - col0 FROM tab0 WHERE + col1 IS NOT NULL
----
1215
7047
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col1 * 25 * + - col1 col2 FROM tab2
----
-112158
-148148
-64974

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

query I rowsort
SELECT + - col0 FROM tab0 cor0 WHERE col2 IN ( - 37, + col0, + 58, col2 )
----
-15
-87
-97

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

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

query I rowsort
SELECT ALL col2 + + + col0 FROM tab2 cor0
----
104
133
69

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

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL MIN ( ALL 35 ) AS col1 FROM tab1 AS cor0
----
35

query I rowsort
SELECT - + col1 * 99 AS col0 FROM tab2 cor0
----
-5049
-6633
-7623

query I rowsort
SELECT + col2 * - col0 * + col1 * 88 AS col2 FROM tab1
----
-2206600
-25593568
-6031872

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - col2 DIV + col0 - + col0 + + col1 FROM tab0
----
-66
-97
63

skipif mysql # not compatible
query I rowsort label-6313
SELECT - col2 / + col0 - + col0 + + col1 FROM tab0
----
-66
-97
63

query I rowsort
SELECT ALL + col0 + - + 12 + col0 AS col0 FROM tab1
----
158
170
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - - 38 col0 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL MAX( ALL - 40 ) AS col1 FROM tab2 WHERE + col0 * - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL MAX ( ALL - 40 ) AS col1 FROM tab2 WHERE + col0 * - col2 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT DISTINCT SUM( 38 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT SUM ( 38 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT 19 DIV + SUM( + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT 19 / + SUM ( + col0 ) FROM tab2 AS cor0
----
0

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

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

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

query I rowsort
SELECT ALL - col2 * - - 36 AS col0 FROM tab0 cor0
----
-1692
-3564
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT DISTINCT + - SUM( ALL - + 27 ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT + - SUM ( ALL - + 27 ) / - + COUNT ( * ) FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 88 col0 FROM tab2 cor0
----
-2024
-3520
-5104

query I rowsort
SELECT + + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT - + 62, - 98 AS col0 FROM tab0 AS cor0
----
-62
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 8 col1, + col1 + - col1 * - 55 AS col1 FROM tab0 AS cor0
----
8
1176
8
4536
8
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col0 * + 84 + + - 29 + + - col2 FROM tab0 AS cor0
----
15
1184
87
7269
97
8020

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL 0 + - - col2 AS col1 FROM tab0
----
10
47
99

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

query III rowsort
SELECT * FROM tab2 WHERE - 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6335
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) < 5
----

skipif mysql # not compatible
query III rowsort label-6335
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) < 5
----

query I rowsort
SELECT DISTINCT - 52 + ( - col2 ) FROM tab1 AS cor0
----
-111
-120
-148

query I rowsort
SELECT - col1 * + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT - 46 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col1 + + + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - + 74 * - - 86 * col1 FROM tab0 AS cor0
----
-133644
-515484
-6364

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + ( - 64 ) / + 22 AS col1 FROM tab1 WHERE NOT + - 95 NOT IN ( - + col2, - col0 * + 16 )
----

query I rowsort
SELECT + 34 - + col2 + - + col2 FROM tab0 AS cor0
----
-164
-60
14

query I rowsort
SELECT DISTINCT - col1 + + + 2 FROM tab2 AS cor0
----
-49
-65
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ( - 63 ) - + MIN( - col0 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6346
SELECT ( - 63 ) - + MIN ( - col0 ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT - col2 - - 91 AS col0 FROM tab1 AS cor0
----
-5
23
32

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE 80 * - col0 IS NULL
----

query I rowsort
SELECT - 23 * + 39 * - col2 + + 87 + col1 AS col2 FROM tab0 cor0
----
42327
88891
9078

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + SUM( - + 45 ) AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + SUM ( - + 45 ) AS col1 FROM tab0
----
-135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + SUM( col0 ) * - - 49 AS col1 FROM tab0
----
9751

skipif mysql # not compatible
query I rowsort label-6357
SELECT + SUM ( col0 ) * - - 49 AS col1 FROM tab0
----
9751

query I rowsort
SELECT - col0 * - col2 * 28 AS col2 FROM tab0
----
19740
24360
268884

query I rowsort
SELECT - col0 * - - col2 * ( 57 ) * - col0 + 6 * - + 24 AS col0 FROM tab2
----
18596106
2773932
9338736

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 25 * - - col1 * col1 * - ( col1 ) col1 FROM tab2 AS cor0
----
46
-3316275
64
-11413325
75
-7519075

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

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

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

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

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

query I rowsort
SELECT + col2 * - 57 AS col0 FROM tab0
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col1 ) col0 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

query II rowsort
SELECT ALL + col2 AS col2, - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 12 + + ( col1 ) ) BETWEEN col0 + + - col1 AND NULL
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL + + COUNT( DISTINCT + CAST( + col2 AS SIGNED ) ) * + 85 col0 FROM tab2 AS cor0
----
255

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

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 55 ) > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT - 31 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT - 31 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT COUNT( 4 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6377
SELECT COUNT ( 4 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) NOT IN ( - col2 * + 58 + 73, 27, - - 84 ) )
----

query I rowsort
SELECT ALL col1 + + col1 + + col0 * - col0 FROM tab2
----
-2014
-3942
-5491

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT + 9 DIV 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT + 9 / 86 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 44 + - 1 AS col1 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + COUNT( * ) + + 49 FROM tab2 WHERE + col0 IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-6383
SELECT + COUNT ( * ) + + 49 FROM tab2 WHERE + col0 IS NULL
----
49

query I rowsort
SELECT ALL 42 + - col1 FROM tab0
----
-39
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT - COUNT( * ) + - 61 - COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - COUNT ( * ) + - 61 - COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-67

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

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

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

query I rowsort
SELECT DISTINCT ( 62 ) + col1 FROM tab0
----
143
63
83

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

query I rowsort
SELECT ( + col2 ) * 30 FROM tab1
----
1770
2040
2880

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

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab0
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT + SUM( col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + SUM ( col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6394
SELECT DISTINCT - 16 AS col1 FROM tab2 WHERE NOT - col0 <= CAST( NULL AS DECIMAL ) + - 19
----

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - 16 AS col1 FROM tab2 WHERE NOT - col0 <= CAST ( NULL AS REAL ) + - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT DISTINCT - CAST( 16 AS SIGNED ) FROM tab2 WHERE NOT ( col2 ) <> ( col2 )
----
-16

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT - CAST ( 16 AS INTEGER ) FROM tab2 WHERE NOT ( col2 ) <> ( col2 )
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - 80 * + COUNT ( * ) FROM tab1
----
-240

query I rowsort
SELECT col1 * - 82 FROM tab1 WHERE ( + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT + ( + MIN( 96 ) ) * + ( - SUM( - col0 ) ) AS col1 FROM tab0
----
19104

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT + ( + MIN ( 96 ) ) * + ( - SUM ( - col0 ) ) AS col1 FROM tab0
----
19104

query I rowsort
SELECT + 87 + - col2 * col0 FROM tab0
----
-618
-783
-9516

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

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( + 85 ) AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT - 76 + col1 * - 46 FROM tab2
----
-2422
-3158
-3618

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( + col2 * col1 + - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT AVG ( - col2 ) + COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT AVG ( - col2 ) + COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - ( + 52 ) + + COUNT( * ) * MIN( col2 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6407
SELECT - ( + 52 ) + + COUNT ( * ) * MIN ( col2 ) AS col0 FROM tab2
----
17

query I rowsort
SELECT 51 AS col2 FROM tab0 WHERE NOT - 71 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - - 90 * col0 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT col1 * 33 + - col2 * col1 FROM tab0
----
-1134
-66
483

query I rowsort
SELECT ALL - 13 * col1 + col1 FROM tab2
----
-612
-804
-924

query I rowsort
SELECT 8 + + col0 * + col2 AS col1 FROM tab2
----
1066
2568
4358

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

skipif mysql # not compatible
query I rowsort label-6413
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT 93 DIV COUNT( * ) + - ( - COUNT( * ) ) AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT 93 / COUNT ( * ) + - ( - COUNT ( * ) ) AS col2 FROM tab1
----
34

query I rowsort
SELECT ALL - col1 + 76 * col1 FROM tab0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT + COUNT( DISTINCT col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT + COUNT ( DISTINCT col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

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

skipif mysql # not compatible
query III rowsort label-6418
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT + CAST( + 95 AS SIGNED ) * + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
2185
3800
5510

skipif mysql # not compatible
query I rowsort label-6419
SELECT + CAST ( + 95 AS INTEGER ) * + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
2185
3800
5510

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 6 * - 37 BETWEEN - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT ALL col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + col2 * - 68 FROM tab1 AS cor0
----
-4012
-4624
-6528

query I rowsort
SELECT - 12 * col0 AS col1 FROM tab2 AS cor0
----
-552
-768
-900

query I rowsort
SELECT + 83 * + col2 FROM tab2 AS cor0
----
1909
3320
4814

query I rowsort
SELECT - - col0 * + 70 FROM tab0 cor0
----
1050
6090
6790

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT + - 67 * ( col1 DIV 11 ) FROM tab2 AS cor0
----
-268
-402
-469

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + - 67 * ( col1 / 11 ) FROM tab2 AS cor0
----
-268
-402
-469

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6433
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 39 + col1 BETWEEN ( - col2 ) AND - col1 * + CAST( - col0 AS DECIMAL ) + + col1
----

skipif mysql # not compatible
query III rowsort label-6433
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 39 + col1 BETWEEN ( - col2 ) AND - col1 * + CAST ( - col0 AS REAL ) + + col1
----

query I rowsort
SELECT DISTINCT col1 * + 38 * + col1 FROM tab1
----
7448
83942
950

query I rowsort
SELECT DISTINCT col0 + + col2 * col1 AS col2 FROM tab0
----
196
297
3822

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT DISTINCT - 11 / - + AVG ( - col1 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT - 11 / - + AVG ( - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6438
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 / - 97 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6438
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 / - 97 - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL col0 + - - col1 - col2 * - col1 FROM tab2
----
1270
3221
4028

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL MAX( ALL col1 ) + 21 * 96 FROM tab0
----
2097

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL MAX ( ALL col1 ) + 21 * 96 FROM tab0
----
2097

query I rowsort
SELECT col2 + - + col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - col0 + 97 AS col2 FROM tab1
----
12
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT COUNT( * ) * - - 39 + - 33 AS col1 FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-6445
SELECT COUNT ( * ) * - - 39 + - 33 AS col1 FROM tab2 cor0
----
84

query I rowsort
SELECT ALL + col0 - + - col0 * - col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 25 )
----

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

query I rowsort
SELECT ALL col0 + col2 FROM tab0 WHERE NOT NULL >= - 16
----

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - 49 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT 75 DIV - - col1 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-6453
SELECT 75 / - - col1 FROM tab1 AS cor0
----
1
15
5

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

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

query I rowsort
SELECT ALL col0 * 8 FROM tab0 AS cor0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + 8 * 91 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
2184

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + 8 * 91 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2184

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - 65 ) * col2 )
----

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

query I rowsort
SELECT + ( col1 ) FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 56 * COUNT ( * ) - + 60 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
-60

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

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

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 * 54 FROM tab0 AS cor0
----
10
-1134
47
-4374
99
-54

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT - ( - + SUM( + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - ( - + SUM ( + col1 ) ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT 61 + - + col1 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT 61 + - + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT DISTINCT + 41 AS col0 FROM tab1 WHERE NOT - 0 NOT BETWEEN + CAST( + ( + col1 ) AS SIGNED ) * 70 AND + 7 * - col1
----

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + 41 AS col0 FROM tab1 WHERE NOT - 0 NOT BETWEEN + CAST ( + ( + col1 ) AS INTEGER ) * 70 AND + 7 * - col1
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 74 = + col0 * - - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 29 * 24 + col1 AS col0 FROM tab0 AS cor0
----
-615
-675
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 - + - col1 <> + ( + 32 ) + - ( ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 - + - col1 <> + ( + 32 ) + - ( ( col2 ) )
----
0

query II rowsort
SELECT ALL 42 * - 95, col1 AS col0 FROM tab0 AS cor0
----
-3990
1
-3990
21
-3990
81

query I rowsort
SELECT DISTINCT 10 - - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT CAST( NULL AS SIGNED ) + + 91 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT ALL AVG ( DISTINCT 79 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > col1 / - CAST( NULL AS SIGNED ) / col1 + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL AVG ( DISTINCT 79 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > col1 / - CAST ( NULL AS INTEGER ) / col1 + - 17
----
NULL

query I rowsort
SELECT ALL - - col2 + + 90 * - col2 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 )
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 43 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL AVG ( ALL + col2 ) - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL AVG ( ALL + col2 ) - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 68 )
----
NULL

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

query I rowsort
SELECT DISTINCT - - 46 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * + 91 IS NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL + COUNT( * ) * - - 71 AS col2 FROM tab1 cor0
----
213

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + COUNT ( * ) * - - 71 AS col2 FROM tab1 cor0
----
213

query I rowsort
SELECT - - col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
4896
5015
6188

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

query I rowsort
SELECT ALL - col0 * - col0 FROM tab2 WHERE NOT + + col2 BETWEEN + + col2 AND + 33
----
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT DISTINCT MAX( DISTINCT - col1 ) + + MIN( DISTINCT - + CAST( - col1 AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT MAX ( DISTINCT - col1 ) + + MIN ( DISTINCT - + CAST ( - col1 AS INTEGER ) ) FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-6493
SELECT 27 / + col0 AS col2 FROM tab1
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT DISTINCT + 76 + + col1 DIV col1 + - col0 + - - 59 AS col1 FROM tab0
----
121
39
49

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + 76 + + col1 / col1 + - col0 + - - 59 AS col1 FROM tab0
----
121
39
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6496
SELECT - 18, + 60 * 43 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-18
NULL
-18
NULL
-18
NULL

skipif mysql # not compatible
query II rowsort label-6496
SELECT - 18, + 60 * 43 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-18
NULL
-18
NULL
-18
NULL

query I rowsort
SELECT + + col0 - + - 19 + - - 84 AS col1 FROM tab0 cor0
----
118
190
200

query I rowsort
SELECT - col1 - - col1 AS col1 FROM tab0 AS cor0 WHERE - col1 + - + 4 > NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 87 + col1 * - col0 * ( 24 ) FROM tab2 AS cor0
----
-118423
-120762
-56437

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6500
SELECT * FROM tab2 AS cor0 WHERE col1 + - 98 - - + col2 * 91 * + ( - col1 ) * + col0 NOT IN ( - CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6500
SELECT * FROM tab2 AS cor0 WHERE col1 + - 98 - - + col2 * 91 * + ( - col1 ) * + col0 NOT IN ( - CAST ( NULL AS INTEGER ) + - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL MIN ( DISTINCT - - col2 ) AS col0 FROM tab0 cor0
----
10

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

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

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

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

query I rowsort
SELECT ALL col0 * 86 + - 21 + - col0 * 97 FROM tab1 AS cor0
----
-1022
-582
-956

query I rowsort
SELECT - ( - 51 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 90 + - - col1 IN ( + 81, ( col2 ) + - + 54 )
----
51
51
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IN ( - col0, col0 * 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - SUM( DISTINCT - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - SUM ( DISTINCT - col2 ) FROM tab2
----
121

query II rowsort
SELECT + col0 AS col1, - col0 + - col2 * col1 FROM tab0
----
15
-3822
87
-297
97
-196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6510
SELECT ALL * FROM tab1 WHERE 25 / - CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6510
SELECT ALL * FROM tab1 WHERE 25 / - CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----

query I rowsort
SELECT + 36 * col2 FROM tab2
----
1440
2088
828

query I rowsort
SELECT col2 * - 31 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 4 = + + 63
----
-3

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 4 = + + 63
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT MAX( ALL + + col2 ) * + 48 col2, COUNT( ALL - col0 ) AS col1 FROM tab2
----
2784
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6514
SELECT MAX ( ALL + + col2 ) * + 48 col2, COUNT ( ALL - col0 ) AS col1 FROM tab2
----
2784
3

query II rowsort
SELECT 8, - ( + + 9 ) AS col1 FROM tab2 AS cor0
----
8
-9
8
-9
8
-9

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + col0, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 15 AS col1, 57 col1 FROM tab0 AS cor0
----
15
57

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

query I rowsort
SELECT ALL - col2 + + 55 AS col1 FROM tab1 AS cor0
----
-13
-4
-41

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 88
----

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 AS cor0 WHERE NOT col2 IN ( - col0 )
----
-225
-7569
-9409

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * + 44 + + 80 * - 99 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT ALL 61 / - ( 19 ) AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN + 93 * - 10 * - + col1 AND + + 49 + - 15 * + CAST( NULL AS SIGNED ) AND ( + 36 + 22 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 61 / - ( 19 ) AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN + 93 * - 10 * - + col1 AND + + 49 + - 15 * + CAST ( NULL AS INTEGER ) AND ( + 36 + 22 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT + COUNT ( + - 84 ) FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT CAST ( 24 AS INTEGER ) FROM tab0
----
24

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

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

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

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL + COUNT ( * ) AS col2, 93 AS col0 FROM tab2
----
3
93

query I rowsort
SELECT - - col0 FROM tab2 WHERE NULL <> col2
----

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

query I rowsort
SELECT - col1 + - 69 AS col2 FROM tab2
----
-120
-136
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * col2 col1 FROM tab0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT - COUNT( DISTINCT + 64 ) + + 66 AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - COUNT ( DISTINCT + 64 ) + + 66 AS col0 FROM tab0
----
65

query II rowsort
SELECT DISTINCT - col1 - + ( - 18 ) AS col2, 76 FROM tab2 AS cor0
----
-33
76
-49
76
-59
76

query II rowsort
SELECT 24, 19 AS col0 FROM tab2 AS cor0
----
24
19
24
19
24
19

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

query I rowsort
SELECT ALL col1 * + 9 FROM tab2
----
459
603
693

query I rowsort
SELECT + col2 * + - col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT + 93 * - ( - col2 ) AS col0 FROM tab1 AS cor0
----
5487
6324
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6541
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT col2 DIV 28 DIV col1 DIV - col1 + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
94

skipif mysql # not compatible
query I rowsort label-6542
SELECT col2 / 28 / col1 / - col1 + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
94

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

skipif mysql # not compatible
query I rowsort label-6543
SELECT + 19 / + + ( ( col2 ) ) FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT DISTINCT - 85 DIV - + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - 85 / - + COUNT ( * ) FROM tab2 AS cor0
----
28

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT ALL + + SUM ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - ( 88 ) - + - col2 / + col1 + + col1 IS NULL )
----

query I rowsort
SELECT ALL - 83 * 59 AS col0 FROM tab1
----
-4897
-4897
-4897

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 65 col2 FROM tab1
----
3315
5525
5915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 38 * - col1 * - - col2 + + + col0 + + - col0 col0 FROM tab0
----
-144585
-3761
-7959

query I rowsort
SELECT DISTINCT - ( + + 52 ) + - col1 FROM tab2
----
-103
-119
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL ( col0 ) DIV + 34 + + col2 + col2 * col1 FROM tab0
----
200
222
3854

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL ( col0 ) / + 34 + + col2 + col2 * col1 FROM tab0
----
200
222
3854

query I rowsort
SELECT + col2 + - 19 FROM tab2
----
21
39
4

query I rowsort
SELECT DISTINCT + 72 * + col2 + + - col1 AS col0 FROM tab0 AS cor0
----
3303
699
7127

query II rowsort
SELECT ALL - col0 * - col1 * - + col0 * - col2 - col1 + - col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
12615526
77
21858616
67
2481966
51

query I rowsort
SELECT ALL - 41 + + col0 AS col0 FROM tab1 AS cor0
----
10
44
50

query I rowsort
SELECT DISTINCT + - col2 - 22 AS col0 FROM tab0 AS cor0
----
-121
-32
-69

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

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

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

query I rowsort
SELECT - ( + - ( - 97 ) ) AS col0 FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6563
SELECT 19 * - MAX( DISTINCT + ( col1 ) ) AS col0, COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
-893
1

skipif mysql # not compatible
query II rowsort label-6563
SELECT 19 * - MAX ( DISTINCT + ( col1 ) ) AS col0, COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
-893
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT + 89 DIV col2 * col2 AS col1 FROM tab0
----
0
47
80

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 89 / col2 * col2 AS col1 FROM tab0
----
0
47
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT COUNT( * ) * + 81 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-6565
SELECT COUNT ( * ) * + 81 FROM tab1
----
243

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6568
SELECT - col0 * + col2 AS col2, col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-705
128
-870
31
-9603
100

skipif mysql # not compatible
query II rowsort label-6568
SELECT - col0 * + col2 AS col2, col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-705
128
-870
31
-9603
100

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT - - 28 + + - 83 IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

query I rowsort
SELECT DISTINCT - 91 FROM tab1 AS cor0 WHERE NOT NULL > 6
----

query I rowsort
SELECT - 15 AS col2 FROM tab0 cor0
----
-15
-15
-15

query II rowsort
SELECT - col1, 75 * - col2 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 92 IS NULL
----
-1
7425
-21
15750
-81
285525

query II rowsort
SELECT - 72 AS col2, 80 AS col2 FROM tab0 AS cor0
----
-72
80
-72
80
-72
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT + + MIN( DISTINCT + col0 ) * - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + + MIN ( DISTINCT + col0 ) * - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
153

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

query I rowsort
SELECT ALL - 66 * + col2 * - col2 AS col2 FROM tab0
----
145794
646866
6600

query II rowsort
SELECT col2 AS col1, - ( - col2 ) + 65 FROM tab2
----
23
88
40
105
58
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ( MAX( ALL col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6581
SELECT ( MAX ( ALL col2 ) ) FROM tab1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT - 71 + + COUNT( col2 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - 71 + + COUNT ( col2 ) FROM tab0
----
-68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT - MIN( DISTINCT - col1 ) * + 91 FROM tab1 AS cor0
----
4277

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - MIN ( DISTINCT - col1 ) * + 91 FROM tab1 AS cor0
----
4277

query I rowsort
SELECT ALL col2 * 56 + - col0 FROM tab2
----
1242
2176
3173

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

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - + COUNT ( * ) / - + 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT 13 * col2 - - + col2 * + + 65 + - col2 AS col2 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT - col1 DIV + col1 + col0 - - + 70 AS col0 FROM tab0 AS cor0
----
156
166
84

skipif mysql # not compatible
query I rowsort label-6590
SELECT - col1 / + col1 + col0 - - + 70 AS col0 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT ALL - ( - - 33 ) - + col1 FROM tab0 AS cor0
----
-114
-34
-54

query I rowsort
SELECT ALL - col2 - + 38 AS col1 FROM tab2 AS cor0
----
-61
-78
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT - 2 + - 84 * - - COUNT( * ) * - MAX( ALL 25 ) AS col0 FROM tab1 AS cor0
----
6298

skipif mysql # not compatible
query I rowsort label-6594
SELECT - 2 + - 84 * - - COUNT ( * ) * - MAX ( ALL 25 ) AS col0 FROM tab1 AS cor0
----
6298

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

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

query I rowsort
SELECT + col2 + + 41 AS col0 FROM tab0
----
140
51
88

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT col0 - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 + col2 * col1 AS col0 FROM tab1 cor0 WHERE - 63 NOT BETWEEN 35 AND 90
----
1358
300
3243

query II rowsort
SELECT DISTINCT col0, 57 FROM tab1 AS cor0
----
51
57
85
57
91
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 <= ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6602
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= + 54 + - CAST( NULL AS SIGNED ) * - + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6602
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= + 54 + - CAST ( NULL AS INTEGER ) * - + ( - col1 )
----

query I rowsort
SELECT col2 * 22 AS col1 FROM tab2
----
1276
506
880

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

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

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

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

query II rowsort
SELECT + - 80 + + - 99 * + + col2 - col0 * 90 AS col0, + 32 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN + 16 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + - 4 ) col0 FROM tab0 AS cor0 WHERE NOT - 95 * - 10 IS NOT NULL
----

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

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

query I rowsort
SELECT - - col1 + - + col1 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
1262
241
3175

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

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

query I rowsort
SELECT - 45 * 89 FROM tab0
----
-4005
-4005
-4005

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT ALL col2 DIV - col1 + + + 95 AS col1 FROM tab1
----
84
89
94

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL col2 / - col1 + + + 95 AS col1 FROM tab1
----
84
89
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT ALL col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT 10 * + + col2 AS col1 FROM tab0
----
100
470
990

query I rowsort
SELECT DISTINCT - 85 * + + col0 AS col2 FROM tab0 AS cor0
----
-1275
-7395
-8245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6617
SELECT - col2, + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-6617
SELECT - col2, + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 12 * - ( + - 53 ) FROM tab2 AS cor0
----
636
636
636

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - ( - 34 ) / 65 AND col0
----

query I rowsort
SELECT + 11 + - col1 FROM tab1
----
-3
-36
6

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col1 ) = - 80 * - 23 * - col2
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6625
SELECT col2, col1 DIV + col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-6625
SELECT col2, col1 / + col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL COUNT ( col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * + col2 + 71 FROM tab1 WHERE NULL IS NULL
----
3552
4695
9287

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ( - ( + SUM( DISTINCT col0 ) ) ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT ( - ( + SUM ( DISTINCT col0 ) ) ) col1 FROM tab1
----
-227

query II rowsort
SELECT col0 * + col0 AS col2, - col2 + + 42 FROM tab1
----
2601
-54
7225
-17
8281
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL + SUM( 87 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + SUM ( 87 ) FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-6631
SELECT + col1 DIV col0 * + 65 + + col2 * col1, col0 col1 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6631
SELECT + col1 / col0 * + 65 + + col2 * col1, col0 col1 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT COUNT( * ) AS col2, 58 AS col2 FROM tab2 cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-6632
SELECT COUNT ( * ) AS col2, 58 AS col2 FROM tab2 cor0
----
3
58

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 * + + 24 * col0 - + + col0 + 92 AS col1 FROM tab1 AS cor0
----
-10230593
-13514591
-5992663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 80 col2 FROM tab2 AS cor0
----
-22
-40
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) + - - 17 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) + - - 17 FROM tab1
----
20

query II rowsort
SELECT DISTINCT - 38 + col0, col1 AS col2 FROM tab0
----
-23
81
49
21
59
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col1, + 23 * - + 51 AS col1 FROM tab0
----
6
-1173

skipif mysql # not compatible
query II rowsort label-6643
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1, + 23 * - + 51 AS col1 FROM tab0
----
6
-1173

query II rowsort
SELECT + col1 + + col0 AS col1, col0 + + col0 AS col2 FROM tab0 AS cor0
----
108
174
96
30
98
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - - MIN( DISTINCT + col0 ) * - 53 col0 FROM tab1 AS cor0
----
-2703

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6646
SELECT ALL - CAST( col2 AS SIGNED ), - col1 AS col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL - CAST ( col2 AS INTEGER ), - col1 AS col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT - CAST( NULL AS SIGNED ) / - 56 / 50 AS col2 FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT - CAST ( NULL AS INTEGER ) / - 56 / 50 AS col2 FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6648
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 76 + + col2 + + + col1 + - 46 + 43 + CAST( 11 AS SIGNED ) * + 95 >= - + ( col2 ) * + col2 * - col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6648
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 76 + + col2 + + + col1 + - 46 + 43 + CAST ( 11 AS INTEGER ) * + 95 >= - + ( col2 ) * + col2 * - col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + 94 AS col1 FROM tab0 AS cor0
----
-5
47
84

query I rowsort
SELECT ALL 73 - + + col0 FROM tab2 AS cor0
----
-2
27
9

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

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

query I rowsort
SELECT - 53 * + + col2 AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

query II rowsort
SELECT ALL - 79, + 64 AS col0 FROM tab0 AS cor0
----
-79
64
-79
64
-79
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT 70 DIV + 23 col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6657
SELECT 70 / + 23 col1 FROM tab1
----
3
3
3

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE + col0 * + + col0 <> + col2
----
10
47
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT DISTINCT - 51 DIV MIN( ALL - col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - 51 / MIN ( ALL - col2 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT DISTINCT - col1 * 4 - - 64 + + + col2 + - ( - ( + CAST( NULL AS SIGNED ) ) ) - + 79 * + 78 + - col0 + + + 73 + - 86 * + + col2 / + - 44 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT - col1 * 4 - - 64 + + + col2 + - ( - ( + CAST ( NULL AS INTEGER ) ) ) - + 79 * + 78 + - col0 + + + 73 + - 86 * + + col2 / + - 44 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 WHERE NOT col0 + + col2 / - col0 IS NULL
----
-1
-21
-81

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

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

query II rowsort
SELECT ALL - 82, + 11 * - col0 AS col0 FROM tab2 WHERE NOT + col0 < + col0 - + col1 + - ( - col0 ) + 3 / - 62
----
-82
-506
-82
-704

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - col0, + col1 / - 92, 89 * + col2 * col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + 44 + - SUM( - ( - col1 ) ) col2 FROM tab2 AS cor0
----
-151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6670
SELECT + 44 + - SUM ( - ( - col1 ) ) col2 FROM tab2 AS cor0
----
-151

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

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

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

query I rowsort
SELECT DISTINCT - ( + + 62 ) FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT COUNT( * ) col2, 13 + 56 FROM tab0
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6674
SELECT COUNT ( * ) col2, 13 + 56 FROM tab0
----
3
69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col1 ) * col0 + col1 * - col1 col0 FROM tab2 cor0
----
-1001
-255
536

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + 95 ) * - 23 IS NULL
----

query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT + col2 + - 69 + ( - - 74 ) DIV - col0 AS col2 FROM tab1
----
-1
-10
26

skipif mysql # not compatible
query I rowsort label-6679
SELECT + col2 + - 69 + ( - - 74 ) / - col0 AS col2 FROM tab1
----
-1
-10
26

query I rowsort
SELECT ALL col0 * - - col1 + + col2 AS col2 FROM tab2
----
2369
4968
5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 98 * + col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
9801
21
990
81
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT - COUNT( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT 55 * + 98 NOT IN ( - col2 + col2, 0 / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT 55 * + 98 NOT IN ( - col2 + col2, 0 / col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT - + col2 DIV + - 27 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - + col2 / + - 27 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - MAX( + ( + - col2 ) ) col0 FROM tab0 cor0
----
10

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

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

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

query I rowsort
SELECT DISTINCT 69 * - - col0 AS col0 FROM tab2
----
3174
4416
5175

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT MIN( ALL - - 18 ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-6688
SELECT MIN ( ALL - - 18 ) AS col2 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6689
SELECT DISTINCT col2 AS col0, col2 + - CAST( - 3 AS SIGNED ) FROM tab2
----
23
26
40
43
58
61

skipif mysql # not compatible
query II rowsort label-6689
SELECT DISTINCT col2 AS col0, col2 + - CAST ( - 3 AS INTEGER ) FROM tab2
----
23
26
40
43
58
61

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 * - col1 + + - 86 / + + 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - 73 + - ( + + col1 ) FROM tab0 AS cor0
----
-154
-74
-94

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

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

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

query I rowsort
SELECT + - 39 * + + 88 FROM tab2 AS cor0
----
-3432
-3432
-3432

query I rowsort
SELECT ALL - + ( + 50 ) * - col0 + col1 AS col2 FROM tab0 AS cor0
----
4371
4851
831

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - 27 * COUNT( * ) + SUM( + col0 ) FROM tab1 cor0
----
146

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 27 * COUNT ( * ) + SUM ( + col0 ) FROM tab1 cor0
----
146

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

query I rowsort
SELECT 95 + + - 67 AS col2 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6702
SELECT * FROM tab0 WHERE + ( + - CAST( + col1 AS SIGNED ) ) <= - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6702
SELECT * FROM tab0 WHERE + ( + - CAST ( + col1 AS INTEGER ) ) <= - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6703
SELECT ALL + col2 * + CAST( 26 AS DECIMAL ) AS col0 FROM tab0 WHERE - 33 + - 64 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + col2 * + CAST ( 26 AS REAL ) AS col0 FROM tab0 WHERE - 33 + - 64 <> NULL
----

query I rowsort
SELECT col2 + + col0 AS col1 FROM tab0 WHERE NULL = col0
----

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

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

query I rowsort
SELECT col1 * + 7 + + 12 FROM tab2 WHERE + 63 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT - CAST( NULL AS SIGNED ) + + 72 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - + 69 + - SUM( 88 ) - - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-786

skipif mysql # not compatible
query I rowsort label-6708
SELECT - + 69 + - SUM ( 88 ) - - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-786

query II rowsort
SELECT - ( col1 ) - 78 + - ( - col0 ), + 85 * 51 AS col2 FROM tab1 WHERE NOT - 24 IS NULL
----
-34
4335
-41
4335
2
4335

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

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

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

skipif mysql # not compatible
query I rowsort label-6711
SELECT - MAX ( ALL ( + 75 ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
225

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col2 IS NULL OR NOT ( NOT + col0 * + 47 NOT BETWEEN NULL AND NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT ALL - CAST( NULL AS SIGNED ) * - 86 * - 53 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - CAST ( NULL AS INTEGER ) * - 86 * - 53 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6717
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-6717
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6718
SELECT + 86 DIV + - col0, + col1 DIV + col0 - + 99 AS col1 FROM tab1
----
-1
-99
-1
-99
0
-99

skipif mysql # not compatible
query II rowsort label-6718
SELECT + 86 / + - col0, + col1 / + col0 - + 99 AS col1 FROM tab1
----
-1
-99
-1
-99
0
-99

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

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

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

query I rowsort
SELECT 1 * + 72 * - + ( - col2 ) AS col0 FROM tab0
----
3384
7128
720

query I rowsort
SELECT - - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT 75 * + MIN( - + col0 ) + - - 21 AS col0 FROM tab2
----
-5604

skipif mysql # not compatible
query I rowsort label-6723
SELECT 75 * + MIN ( - + col0 ) + - - 21 AS col0 FROM tab2
----
-5604

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 25 * 83 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6725
SELECT + COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL CAST ( NULL AS INTEGER ) * 20 * - 50 * - CAST ( NULL AS INTEGER ) - + 4 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 * - - 94 FROM tab2 AS cor0
----
9024
9024
9024

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 33 BETWEEN ( NULL ) AND 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6731
SELECT DISTINCT 66 * - + 20 * - 84 * 27 * - 41, - col2 + - - CAST( + 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-122744160
40
-122744160
58
-122744160
75

skipif mysql # not compatible
query II rowsort label-6731
SELECT DISTINCT 66 * - + 20 * - 84 * 27 * - 41, - col2 + - - CAST ( + 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-122744160
40
-122744160
58
-122744160
75

query I rowsort
SELECT + 91 * + + col2 FROM tab0
----
4277
9009
910

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

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

query I rowsort
SELECT col1 - + 76 + + col1 AS col0 FROM tab0
----
-34
-74
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL - col2 - - col0 DIV + 39 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - col2 - - col0 / + 39 AS col1 FROM tab2
----
-22
-39
-57

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

skipif mysql # not compatible
query II rowsort label-6738
SELECT DISTINCT - 42 - + 94 AS col0, COUNT ( * ) FROM tab1 cor0
----
-136
3

query I rowsort
SELECT DISTINCT col2 - + + col1 + col0 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT ALL - + col0 - + col0 AS col1 FROM tab0 cor0
----
-174
-194
-30

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT ALL - - 87 DIV col1 DIV + 95 * + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - - 87 / col1 / + 95 * + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 39 - + col2 + - - col1 * + col0 * - ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
25055
290807
68487

query I rowsort
SELECT 36 * ( 97 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = col2
----

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

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

query II rowsort
SELECT ALL + col0 * + col2 AS col0, col0 + 94 + - 20 AS col2 FROM tab0 AS cor0
----
705
89
870
161
9603
171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 41 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 61 > NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 * + + col2 col2 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT ALL + ( + 59 ) AS col1 FROM tab1
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + + ( 78 ) + - ( - 79 ) FROM tab1 AS cor0
----
162
171
204

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + + ( 78 ) + - ( - 79 ) FROM tab1 AS cor0
----
162
171
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - - 57 col2 FROM tab0 cor0
----
1197
4617
57

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

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

query I rowsort
SELECT ALL col0 * + - ( - col0 ) FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + 56 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6757
SELECT ALL SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + 56 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - ( - + col1 ) * - ( 15 ) ) > + 42
----

query I rowsort
SELECT DISTINCT 72 + - col2 FROM tab2 cor0
----
14
32
49

query I rowsort
SELECT DISTINCT + col1 + + - 85 + + + 30 FROM tab2 AS cor0
----
-4
12
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 41 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 - + 18 AS col1 FROM tab0 AS cor0
----
-19
-39
-99

query I rowsort
SELECT - col0 + + 92 AS col1 FROM tab1 AS cor0
----
1
41
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT - 17 * + COUNT( * ) - + - 86 + - 81 AS col1 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - 17 * + COUNT ( * ) - + - 86 + - 81 AS col1 FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT DISTINCT - ( - ( - CAST( col0 AS SIGNED ) ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - ( - ( - CAST ( col0 AS INTEGER ) ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 + - 15 FROM tab1
----
-100
-106
-66

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

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

query I rowsort
SELECT DISTINCT col1 * + col2 * + 54 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 88, + col1 - + col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - - MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT 98 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 81 AS col0, col0 FROM tab2
----
81
46
81
64
81
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) * - 53 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) * - 53 FROM tab1
----
0

query I rowsort
SELECT + col1 * 22 AS col1 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - MIN( + + 71 ) * - 12 AS col1 FROM tab0
----
852

skipif mysql # not compatible
query I rowsort label-6776
SELECT - MIN ( + + 71 ) * - 12 AS col1 FROM tab0
----
852

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + col2 * - + col0 * - col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - + col1 AS col0, - ( + col1 ) * + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1
-96
-21
-1806
-81
-1134

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col0 * - 90 col1 FROM tab2
----
-230400
-391500
-95220

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

skipif mysql # not compatible
query I rowsort label-6788
SELECT MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col0 * + ( + col0 ) AS col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT col0 * + - 4 + + - col0 FROM tab0
----
-435
-485
-75

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, 69 + - + 19, col0, 14 * + ( + col0 ) + + col0 * - + col2, + col2 )
----

query I rowsort
SELECT DISTINCT + + col1 - - + 17 FROM tab2 cor0
----
68
84
94

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

query I rowsort
SELECT col1 * - - 52 * - col2 - + col2 FROM tab2 AS cor0
----
-160200
-202130
-61019

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 49 / - col0 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 49 / - col0 + col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT - col1 - + 22 - - - col1 - + + col2 DIV - + 48 + + ( + - 1 ) col2 FROM tab0 AS cor0
----
-185
-23
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6798
SELECT DISTINCT - col1 - + 22 - - - col1 - + + col2 / - + 48 + + ( + - 1 ) col2 FROM tab0 AS cor0
----
-185
-23
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - + 96 col2 FROM tab1
----
1248
199
3100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT - 79 + - - CAST( NULL AS SIGNED ) * + + 81 - - 60 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 79 + - - CAST ( NULL AS INTEGER ) * + + 81 - - 60 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT col1 DIV + + ( 7 ) - 59 DIV 5 FROM tab0
----
-11
-8
0

skipif mysql # not compatible
query I rowsort label-6802
SELECT col1 / + + ( 7 ) - 59 / 5 FROM tab0
----
-11
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 + - col1 col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6803
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 + - col1 col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - SUM( ALL - 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-6804
SELECT - SUM ( ALL - 85 ) FROM tab2
----
255

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6807
SELECT ALL + CAST( - 47 AS SIGNED ) DIV + 90 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + CAST ( - 47 AS INTEGER ) / + 90 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col0 ) * - 24 * - col1 * - + 34 AS col0 FROM tab0 AS cor0
----
-1490832
-79152
-991440

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

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

query I rowsort
SELECT - 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT DISTINCT + col1 AS col2, - col1 + 18 + 95 FROM tab1 AS cor0
----
14
99
47
66
5
108

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 33 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6814
SELECT - + ( + - MIN ( + 76 ) ) AS col1 FROM tab1 AS cor0
----
76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT - 40 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-40
-3

skipif mysql # not compatible
query II rowsort label-6816
SELECT - 40 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-40
-3

query I rowsort
SELECT ALL - + ( 97 ) * col2 AS col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT ALL - col2 + - + col2 * - - 51 AS col0 FROM tab1
----
-3068
-3536
-4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 85 col2 FROM tab1
----
1190
3995
425

query I rowsort
SELECT ALL - col1 + - col1 * + 99 FROM tab0 cor0
----
-100
-2100
-8100

query I rowsort
SELECT + 69 + - - ( - - 4 ) FROM tab2 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT + + CAST( + 92 AS SIGNED ) * - + 65 - + - col1 FROM tab2 AS cor0
----
-5903
-5913
-5929

skipif mysql # not compatible
query I rowsort label-6822
SELECT + + CAST ( + 92 AS INTEGER ) * - + 65 - + - col1 FROM tab2 AS cor0
----
-5903
-5913
-5929

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

query I rowsort
SELECT ALL - 33 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query II rowsort
SELECT - col1 * - 93 AS col1, col0 + - col1 + - col0 AS col2 FROM tab2
----
4743
-51
6231
-67
7161
-77

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

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

query II rowsort
SELECT + - col1 + + col0, + col2 FROM tab1 AS cor0
----
37
96
44
68
80
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT - CAST( + 5 AS SIGNED ) - + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - CAST ( + 5 AS INTEGER ) - + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + - col1 / + + col2 AS col1 FROM tab2 AS cor0 WHERE + 88 / - col1 + - 8 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 - - 90 FROM tab2 AS cor0
----
13
23
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 AS cor0 WHERE NOT col0 + + + col1 + + 38 + - col0 * + col2 = - col2
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6832
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6832
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + 35 * - MIN( ALL col2 ) * - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-60375

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + 35 * - MIN ( ALL col2 ) * - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-60375

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

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL COUNT ( * ) / - + MIN ( ALL col0 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * + 48 col0 FROM tab0
----
3600
3600
3600

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

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

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

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6839
SELECT - col2, - col2 * 49 + + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6839
SELECT - col2, - col2 * 49 + + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64, + 33 col1 FROM tab0 AS cor0
----
-64
33
-64
33
-64
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 2 FROM tab0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col2 + - 1 IS NULL
----
14
47
5

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

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

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

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

query I rowsort
SELECT + col2 + col0 FROM tab1 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT col0 + col0 FROM tab2 WHERE NULL IN ( CAST( 26 AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query I rowsort label-6848
SELECT col0 + col0 FROM tab2 WHERE NULL IN ( CAST ( 26 AS INTEGER ) / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT COUNT( ALL 94 ) + - COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6849
SELECT COUNT ( ALL 94 ) + - COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT 6 + col1 * + col2 FROM tab0 WHERE 51 IS NOT NULL
----
105
216
3813

query I rowsort
SELECT col0 * 10 + + col1 AS col0 FROM tab1
----
524
855
957

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

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

query I rowsort
SELECT - 24 * 98 AS col0 FROM tab2
----
-2352
-2352
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT SUM( 97 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND - col1 * 59
----
291

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT SUM ( 97 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND - col1 * 59
----
291

query I rowsort
SELECT - 63 + col0 AS col2 FROM tab2
----
-17
1
12

query III rowsort
SELECT * FROM tab1 WHERE - col1 + col2 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - ( + COUNT( * ) ) * MIN( col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6859
SELECT - ( + COUNT ( * ) ) * MIN ( col0 ) FROM tab2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6860
SELECT DISTINCT MAX( - 42 ) / CAST( + MIN( ALL col1 ) AS SIGNED ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col1 * - col2 AND 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT MAX ( - 42 ) / CAST ( + MIN ( ALL col1 ) AS INTEGER ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col1 * - col2 AND 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT 87 * + COUNT( * ) AS col2 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT 87 * + COUNT ( * ) AS col2 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT COUNT( * ) + - 76 col0 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6862
SELECT COUNT ( * ) + - 76 col0 FROM tab0
----
-73

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * 17 ) <> col1
----

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

query III rowsort
SELECT * FROM tab2 WHERE + 5 <> 36 * ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 / + 92
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 / + 92
----
0

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

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

query I rowsort
SELECT col1 + 67 * col0 AS col1 FROM tab1
----
3431
5700
6144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6872
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT - MIN( - col0 ) + - AVG ( ALL col1 + col0 ) FROM tab2 WHERE + 36 < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT - MIN ( - col0 ) + - AVG ( ALL col1 + col0 ) FROM tab2 WHERE + 36 < - col2
----
NULL

query I rowsort
SELECT - col0 + - 45 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT + col2 + 42 AS col0 FROM tab1
----
101
110
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT 20 * - 27 FROM tab1
----
-540

query I rowsort
SELECT 21 + - col2 AS col2 FROM tab2
----
-19
-2
-37

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

query I rowsort
SELECT DISTINCT + + 61 - ( + 32 ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6883
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col1 * - CAST( NULL AS DECIMAL ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col1 * - CAST ( NULL AS REAL ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL col1 - 45 AS col2 FROM tab1 cor0
----
-31
-40
2

query I rowsort
SELECT 55 * 22 AS col1 FROM tab2 AS cor0
----
1210
1210
1210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 31 ) < + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT + ( - + COUNT( * ) ) * 42 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6887
SELECT + ( - + COUNT ( * ) ) * 42 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL - COUNT( * ) * - 79 AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - COUNT ( * ) * - 79 AS col0 FROM tab1
----
237

query I rowsort
SELECT 17 + 51 AS col1 FROM tab2 WHERE NOT ( 6 ) IN ( - 95 + 93 )
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - COUNT( * ) * + - 33 * + 1 AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6890
SELECT - COUNT ( * ) * + - 33 * + 1 AS col1 FROM tab1
----
99

query I rowsort
SELECT ALL 25 * - 85 * col1 FROM tab0
----
-172125
-2125
-44625

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND 37
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND 37
----
0

query I rowsort
SELECT + 4 * + col0 FROM tab1
----
204
340
364

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL MAX( DISTINCT + + 14 ) col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6896
SELECT ALL MAX ( DISTINCT + + 14 ) col0 FROM tab0 AS cor0
----
14

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

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

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

query I rowsort
SELECT ALL + ( + + 28 ) AS col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT + 61 DIV + 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 61 / + 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col0 FROM tab1 cor0
----
1344
295
3196

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * - 19 col2 FROM tab1 AS cor0
----
-532
-532
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT + 84 * - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 84 * - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col1 * 99 AS col2 FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT ALL + col2 + 96 * - col1 AS col1 FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND col1
----
-4873
-6374
-7352

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

skipif mysql # not compatible
query I rowsort label-6908
SELECT - MIN ( + + col0 ) FROM tab0 AS cor0
----
-15

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

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

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

query I rowsort
SELECT - col1 * + - col1 + - 50 + col0 * + col0 FROM tab0
----
6736
7960
9360

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col2 - + + col0 AND NOT NULL = - col0
----

query I rowsort
SELECT - col1 + + col0 - + - col1 AS col1 FROM tab1
----
51
85
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + 58 col0 FROM tab1
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL - 1 + + col2 FROM tab2
----
22
39
57

query I rowsort
SELECT ALL - col2 * - 26 + - ( + col1 ) FROM tab1
----
1529
1721
2482

query I rowsort
SELECT + col1 + - ( - col1 ) * 3 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL COUNT( * ) + + 22 AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL COUNT ( * ) + + 22 AS col2 FROM tab0
----
25

query II rowsort
SELECT + col2 + - + col0, 35 AS col1 FROM tab0
----
-77
35
2
35
32
35

query III rowsort
SELECT * FROM tab0 WHERE - 23 * col0 > 60
----

query I rowsort
SELECT ALL + 49 - + col0 AS col2 FROM tab0 WHERE - col2 * + 37 + - col0 NOT BETWEEN ( - col1 * + ( 9 * 73 ) ) AND ( NULL )
----
-48

query I rowsort
SELECT ALL + + 59 * + col0 - col1 FROM tab2 AS cor0
----
2663
3699
4358

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - 75 >= ( - - col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < ( - 95 + 61 + - 92 * + col2 / 29 )
----

query I rowsort
SELECT ALL - ( - col1 ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 = + col0 / col0 )
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6929
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - AVG ( ALL col2 ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT ALL CAST( + 66 AS SIGNED ) * - COUNT( * ) * + + ( + 89 ) - MAX( col1 ) * 42 AS col0 FROM tab0 AS cor0
----
-21024

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL CAST ( + 66 AS INTEGER ) * - COUNT ( * ) * + + ( + 89 ) - MAX ( col1 ) * 42 AS col0 FROM tab0 AS cor0
----
-21024

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT - SUM( DISTINCT - 49 ) AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN col0 AND - ( + col0 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - SUM ( DISTINCT - 49 ) AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN col0 AND - ( + col0 ) + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT col0 * + CAST( + 28 AS SIGNED ) - + col0 * - col2 * 36 col0 FROM tab2
----
158700
39376
93952

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6933
SELECT col0 * + CAST ( + 28 AS INTEGER ) - + col0 * - col2 * 36 col0 FROM tab2
----
158700
39376
93952

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT MIN( DISTINCT + 71 ) AS col0 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6936
SELECT MIN ( DISTINCT + 71 ) AS col0 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL col2 * ( - - col0 ) FROM tab0 cor0
----
705
870
9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6939
SELECT SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT MIN( DISTINCT 23 ) AS col0 FROM tab2 WHERE NOT ( ( + + ( + col0 ) ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT MIN ( DISTINCT 23 ) AS col0 FROM tab2 WHERE NOT ( ( + + ( + col0 ) ) ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT 71 FROM tab2 WHERE NOT - col1 + col2 - + col1 * + CAST( - col1 AS SIGNED ) * + 22 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6941
SELECT 71 FROM tab2 WHERE NOT - col1 + col2 - + col1 * + CAST ( - col1 AS INTEGER ) * + 22 + - col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT + CAST( 24 AS SIGNED ) * 95 FROM tab2
----
2280
2280
2280

skipif mysql # not compatible
query I rowsort label-6943
SELECT + CAST ( 24 AS INTEGER ) * 95 FROM tab2
----
2280
2280
2280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT + 19 DIV - + 24 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6947
SELECT + 19 / - + 24 col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - - 9 AS SIGNED ) * - col1 + + ( - + 91 ) + + 10 NOT BETWEEN 22 AND CAST( ( col1 ) AS SIGNED ) + - 44
----

skipif mysql # not compatible
query III rowsort label-6949
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - - 9 AS INTEGER ) * - col1 + + ( - + 91 ) + + 10 NOT BETWEEN 22 AND CAST ( ( col1 ) AS INTEGER ) + - 44
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + - + col1 + + + col2 + ( + col1 ) * - 34 col0 FROM tab2
----
-1742
-2267
-2635

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT ALL COUNT( * ) col0, 61 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6952
SELECT ALL COUNT ( * ) col0, 61 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0
61

query II rowsort
SELECT col0 + - + col2, 78 AS col2 FROM tab1 AS cor0
----
-45
78
23
78
26
78

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

query I rowsort
SELECT DISTINCT + col2 + - 84 * col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - COUNT( * ) * 40 FROM tab1 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - COUNT ( * ) * 40 FROM tab1 cor0
----
-120

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL = + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT - col1 * + - CAST( ( + col1 ) AS SIGNED ) FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - col1 * + - CAST ( ( + col1 ) AS INTEGER ) FROM tab2
----
2601
4489
5929

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

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

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

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

query I rowsort
SELECT ALL col2 * - 27 + - col1 FROM tab2
----
-1157
-1633
-672

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

query I rowsort
SELECT DISTINCT 72 + - col0 FROM tab1
----
-13
-19
21

query I rowsort
SELECT ALL col0 - 66 AS col0 FROM tab2 AS cor0
----
-2
-20
9

query I rowsort
SELECT 11 + - 91 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT 71 * - col1 * + + col1 FROM tab2 AS cor0
----
-184671
-318719
-420959

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * ( - col0 ) + col1 - - + ( 52 ) / col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL MAX( ALL col2 ) FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL MAX ( ALL col2 ) FROM tab1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + 69, col2 )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6978
SELECT ALL * FROM tab2 WHERE - - CAST( NULL AS DECIMAL ) * - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6978
SELECT ALL * FROM tab2 WHERE - - CAST ( NULL AS REAL ) * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL + SUM( DISTINCT - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + SUM ( DISTINCT - + col0 ) FROM tab1
----
-227

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - col2 + + - col0 + - 46 AS col0 FROM tab0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT - col2, + col2 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT + col2 + - - col0 AS col2 FROM tab0
----
196
62
97

query II rowsort
SELECT DISTINCT + ( + + 89 ) - - col2, + col1 FROM tab2
----
112
51
129
77
147
67

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6992
SELECT - col2 DIV CAST( - + col0 AS SIGNED ) + + col2 * + + col2, + col1 AS col2 FROM tab1 AS cor0
----
3481
5
4624
47
9217
14

skipif mysql # not compatible
query II rowsort label-6992
SELECT - col2 / CAST ( - + col0 AS INTEGER ) + + col2 * + + col2, + col1 AS col2 FROM tab1 AS cor0
----
3481
5
4624
47
9217
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT 27 * + 31 - - COUNT( + 15 ) AS col0 FROM tab1 AS cor0
----
840

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT 27 * + 31 - - COUNT ( + 15 ) AS col0 FROM tab1 AS cor0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL - MAX( DISTINCT + + 64 ) - - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - MAX ( DISTINCT + + 64 ) - - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT - 10 * - col1 FROM tab1
----
140
470
50

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

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

query I rowsort
SELECT + 76 * - 57 FROM tab1
----
-4332
-4332
-4332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT + + MAX( DISTINCT + + col1 ) DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6999
SELECT + + MAX ( DISTINCT + + col1 ) / + COUNT ( * ) AS col1 FROM tab1 cor0
----
15

query I rowsort
SELECT ALL - 16 * + col2 * + 44 + - 6 FROM tab0 AS cor0
----
-33094
-69702
-7046

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT + + 20 + + COUNT( * ) FROM tab1 AS cor0 WHERE - 51 + col1 <= NULL
----
20

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + + 20 + + COUNT ( * ) FROM tab1 AS cor0 WHERE - 51 + col1 <= NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7002
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * 90 NOT IN ( + + 59 + - col0 + - CAST( col2 AS SIGNED ), col2 * col0 )
----

skipif mysql # not compatible
query III rowsort label-7002
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * 90 NOT IN ( + + 59 + - col0 + - CAST ( col2 AS INTEGER ), col2 * col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT DISTINCT - MIN( ALL ( - 20 ) ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - MIN ( ALL ( - 20 ) ) AS col0 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 87 col0 FROM tab0
----
1305
7569
8439

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL SUM( 44 ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL SUM ( 44 ) FROM tab1
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT col2 * - + col0 + - + col2 <= - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT col2 * - + col0 + - + col2 <= - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( DISTINCT - 87 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7010
SELECT COUNT ( DISTINCT - 87 ) col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 * CAST( - 57 AS SIGNED ) + + - col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 * CAST ( - 57 AS INTEGER ) + + - col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + col1 DIV + col1 + + col2 AS col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7012
SELECT + col1 / + col1 + + col2 AS col0 FROM tab0
----
100
11
48

query I rowsort
SELECT 95 AS col0 FROM tab2 WHERE + 53 <> + - col1 * col0 + - 90 * + 33 + col1 + + col1 / - col0
----
95
95
95

query I rowsort
SELECT ALL + 55 FROM tab2
----
55
55
55

query I rowsort
SELECT + 81 + + 62 FROM tab2
----
143
143
143

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - + 80 col0 FROM tab2 AS cor0
----
-103
-120
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7020
SELECT CAST( NULL AS DECIMAL ) / col1 col0 FROM tab2
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 AS col1, - 67 * + + 91 col0 FROM tab0
----
66
-6097

query I rowsort
SELECT DISTINCT + col0 + + - 17 FROM tab2
----
29
47
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT - MIN( - + col2 ) * - 62 + + + 97 + + - 34 AS col1 FROM tab2 AS cor0
----
-3533

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - MIN ( - + col2 ) * - 62 + + + 97 + + - 34 AS col1 FROM tab2 AS cor0
----
-3533

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7027
SELECT ALL * FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7027
SELECT ALL * FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT - CAST ( NULL AS INTEGER ) > NULL
----

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

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

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

query I rowsort
SELECT col0 * - ( + ( - col1 ) ) FROM tab1 AS cor0 WHERE NULL < + - 11 / - col0 * col2 - - 17 + col1 * - col2 / - + col0 + - 64 + col0 AND NULL = NULL
----

query I rowsort
SELECT ALL - col1 * - col1 * 69 AS col2 FROM tab1 AS cor0
----
13524
152421
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT MIN( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT MIN ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

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

query I rowsort
SELECT DISTINCT - + 25 * 59 AS col2 FROM tab1 AS cor0
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT - ( - COUNT( * ) ) * + ( + 54 ) col0 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7035
SELECT DISTINCT - ( - COUNT ( * ) ) * + ( + 54 ) col0 FROM tab1
----
162

query I rowsort
SELECT DISTINCT + 88 FROM tab2 WHERE - ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 29 + col2 FROM tab1
----
30
39
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 38 > - col0 )
----

query I rowsort
SELECT - 25 + 82 AS col1 FROM tab0
----
57
57
57

query I rowsort
SELECT + col1 + + 29 * + ( - col1 ) FROM tab0 cor0
----
-2268
-28
-588

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7041
SELECT + - col2 AS col1, CAST( + 78 AS SIGNED ) FROM tab2 AS cor0
----
-23
78
-40
78
-58
78

skipif mysql # not compatible
query II rowsort label-7041
SELECT + - col2 AS col1, CAST ( + 78 AS INTEGER ) FROM tab2 AS cor0
----
-23
78
-40
78
-58
78

query I rowsort
SELECT DISTINCT + + 5 + + - col1 FROM tab1 WHERE NULL NOT BETWEEN + + col1 + + col2 AND + col0
----

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

query I rowsort
SELECT + 35 * - 42 - - col2 AS col0 FROM tab2
----
-1412
-1430
-1447

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL MAX( DISTINCT - col2 ) + 22 AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL MAX ( DISTINCT - col2 ) + 22 AS col2 FROM tab1 AS cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT DISTINCT + col1 DIV - + col1 + col0 col1 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT DISTINCT + col1 / - + col1 + col0 col1 FROM tab0 AS cor0
----
14
86
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col1 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL + col2 + - col0 AS col1, 3 AS col1 FROM tab2 AS cor0
----
-17
3
-23
3
-24
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT DISTINCT 83 - - COUNT( * ) - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT + ( - 11 ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT 83 - - COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT + ( - 11 ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + 27 AS col1 FROM tab2 AS cor0
----
-19
-37
-48

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

query I rowsort
SELECT col1 + 3 - 29 FROM tab1 cor0
----
-12
-21
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( CAST( + + 59 AS DECIMAL ) AS SIGNED ) NOT BETWEEN + 90 + + col1 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( CAST ( + + 59 AS REAL ) AS INTEGER ) NOT BETWEEN + 90 + + col1 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 31 + - col2 + col1 FROM tab1 AS cor0
----
-23
-51
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + - 50 col0 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT col0 * - - col1 * - col2 * col1, col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL - CAST( + 12 AS SIGNED ) col1 FROM tab1
----
-12
-12
-12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT - 31 DIV - ( + COUNT( * ) ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7060
SELECT - 31 / - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT - col1 * + + 42 * col0 FROM tab2 AS cor0
----
-206976
-211050
-98532

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

query I rowsort
SELECT 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 / - ( col1 ) + + col0 * 94 <= ( 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT col2 DIV - 95 + - col0 AS col1 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-7065
SELECT col2 / - 95 + - col0 AS col1 FROM tab1 AS cor0
----
-52
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT - + COUNT( * ) * + 71 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - + COUNT ( * ) * + 71 FROM tab0 AS cor0
----
-213

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

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

query I rowsort
SELECT ALL 4 + - 79 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL 50 * 26 FROM tab0
----
1300
1300
1300

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

query I rowsort
SELECT DISTINCT - ( - col2 ) + - - 79 FROM tab2
----
102
119
137

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col2
----

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

query I rowsort
SELECT DISTINCT + - col1 * 50 AS col2 FROM tab2 AS cor0
----
-2550
-3350
-3850

query I rowsort
SELECT ALL 30 * - 78 FROM tab2 AS cor0
----
-2340
-2340
-2340

query I rowsort
SELECT DISTINCT - col1 + + + 29 AS col0 FROM tab0 cor0
----
-52
28
8

query I rowsort
SELECT 31 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > - col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7081
SELECT ALL + - CAST( NULL AS SIGNED ) * + + 78 / - col2, + 50 + - + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
137
NULL
147
NULL
65

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL + - CAST ( NULL AS INTEGER ) * + + 78 / - col2, + 50 + - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
137
NULL
147
NULL
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 62 * - col1 * + col2 BETWEEN + col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7083
SELECT DISTINCT 91 DIV - - col1 AS col2, - col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

skipif mysql # not compatible
query II rowsort label-7083
SELECT DISTINCT 91 / - - col1 AS col2, - col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

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

query I rowsort
SELECT + 56 + col0 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL OR + col0 + + - 35 + + + 1 + col0 IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE - 57 > NULL
----

query II rowsort
SELECT + - 20 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-20
51
-20
85
-20
91

query II rowsort
SELECT DISTINCT col2 * + col2 - 57, - ( - - 61 ) AS col0 FROM tab2 cor0
----
1543
-61
3307
-61
472
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT DISTINCT + CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
85
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7092
SELECT + 87 DIV ( - COUNT( * ) ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-7092
SELECT + 87 / ( - COUNT ( * ) ) FROM tab2
----
-29

query I rowsort
SELECT ALL + + 77 - - + col2 AS col2 FROM tab2 WHERE NOT + 19 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT + col0 DIV - + 52 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT + col0 / - + 52 FROM tab1
----
-1
-1
0

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + col2 + 5 + 91 FROM tab1 AS cor0
----
4992
5111
6284

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

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

query I rowsort
SELECT ALL 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + 69 * - col2 > - + 40 * - + col0
----
46
64
75

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

query I rowsort
SELECT ALL - 71 * - 33 FROM tab2 AS cor0
----
2343
2343
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT SUM( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7104
SELECT SUM ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
121

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7106
SELECT ALL COUNT( * ) * + 6 + - - CAST( NULL AS DECIMAL ) + - - 44 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL COUNT ( * ) * + 6 + - - CAST ( NULL AS REAL ) + - - 44 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT + - MIN( - + 76 ) * - 51 FROM tab1 AS cor0
----
-3876

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + - MIN ( - + 76 ) * - 51 FROM tab1 AS cor0
----
-3876

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT - + col0 DIV + + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7108
SELECT - + col0 / + + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT + + 63 DIV - + 60 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7109
SELECT + + 63 / - + 60 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL col1 + - - col0 * - 90 AS col0 FROM tab2
----
-4089
-5683
-6683

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + - 48 col1 FROM tab1
----
-16

query I rowsort
SELECT ALL - col1 + - - col0 + - + 79 FROM tab0
----
-13
-145
17

query I rowsort
SELECT ALL col2 * - 94 + + col1 AS col1 FROM tab0
----
-4337
-919
-9305

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT ALL - col2 DIV + col0 + - 12 FROM tab1 AS cor0
----
-12
-12
-13

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - col2 / + col0 + - 12 FROM tab1 AS cor0
----
-12
-12
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT DISTINCT - 57 - CAST( 79 AS SIGNED ) col2 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7118
SELECT DISTINCT - 57 - CAST ( 79 AS INTEGER ) col2 FROM tab2 AS cor0
----
-136

query I rowsort
SELECT ALL + + 29 * + - ( + col2 ) FROM tab1 AS cor0
----
-1711
-1972
-2784

onlyif mysql # DIV for integer division: 
query II rowsort label-7120
SELECT + 98 AS col2, + ( + ( col0 ) ) DIV col2 FROM tab0 AS cor0
----
98
0
98
0
98
8

skipif mysql # not compatible
query II rowsort label-7120
SELECT + 98 AS col2, + ( + ( col0 ) ) / col2 FROM tab0 AS cor0
----
98
0
98
0
98
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7121
SELECT - 36 + 61 AS col2, CAST( 95 AS SIGNED ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
25
NULL
25
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-7121
SELECT - 36 + 61 AS col2, CAST ( 95 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
25
NULL
25
NULL
25
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + col0 IN ( - + col2, col2 )
----

query I rowsort
SELECT DISTINCT - - 21 - col2 AS col2 FROM tab1 AS cor0
----
-38
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT COUNT( * ) * - + 20 * - COUNT( * ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT COUNT ( * ) * - + 20 * - COUNT ( * ) FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + col0 - - 58 * 37, + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT - + ( 23 ) AS col0, SUM( DISTINCT + col1 ) FROM tab2 cor0
----
-23
195

skipif mysql # not compatible
query II rowsort label-7127
SELECT - + ( 23 ) AS col0, SUM ( DISTINCT + col1 ) FROM tab2 cor0
----
-23
195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7128
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT - SUM( + - 27 ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - SUM ( + - 27 ) AS col2 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT COUNT( * ) * 95 * - - 78 AS col0 FROM tab0
----
22230

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT COUNT ( * ) * 95 * - - 78 AS col0 FROM tab0
----
22230

query II rowsort
SELECT ALL col0 AS col0, - 77 AS col0 FROM tab1
----
51
-77
85
-77
91
-77

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

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

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

query II rowsort
SELECT 2 AS col1, col2 FROM tab2
----
2
23
2
40
2
58

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

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT + ( + col1 ) DIV - 87 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT + ( + col1 ) / - 87 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + + 13 * + MAX( + col0 ) FROM tab2 AS cor0 WHERE NOT ( col0 IS NULL )
----
975

skipif mysql # not compatible
query I rowsort label-7138
SELECT + + 13 * + MAX ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( col0 IS NULL )
----
975

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - SUM( col0 ) + COUNT( * ) col0 FROM tab0
----
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT - SUM ( col0 ) + COUNT ( * ) col0 FROM tab0
----
-196

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

query I rowsort
SELECT DISTINCT - 53 + + + 39 FROM tab1 AS cor0
----
-14

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

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - MIN ( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col0 ) ) IS NULL
----

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

query I rowsort
SELECT ALL + col0 + - col2 + - 77 * - + col0 AS col1 FROM tab2
----
3565
4952
5792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 col0 FROM tab0
----
-225
-7569
-9409

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + - - 90 + - 30 * col2 col0 FROM tab1
----
-1639
-1909
-2749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT DISTINCT COUNT( * ) + + CAST( - 99 AS SIGNED ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT COUNT ( * ) + + CAST ( - 99 AS INTEGER ) AS col2 FROM tab0
----
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT + 53 + + 69 FROM tab0 AS cor0
----
122
122
122

query I rowsort
SELECT DISTINCT + 96 - + 9 AS col0 FROM tab2
----
87

query I rowsort
SELECT - col2 * 51 FROM tab0
----
-2397
-5049
-510

query II rowsort
SELECT - col0, + 28 * + 94 AS col1 FROM tab1 cor0
----
-51
2632
-85
2632
-91
2632

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

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

query I rowsort
SELECT DISTINCT + - 99 * - 19 + - 37 AS col2 FROM tab0 AS cor0
----
1844

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT ALL + - MAX( - 17 ) col2, 78 * + COUNT( * ) FROM tab1 AS cor0
----
17
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7163
SELECT ALL + - MAX ( - 17 ) col2, 78 * + COUNT ( * ) FROM tab1 AS cor0
----
17
234

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

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT col0 AS col0, 38 FROM tab1 AS cor0
----
51
38
85
38
91
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL + ( - COUNT( * ) ) * + 19 + - - 64 AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + ( - COUNT ( * ) ) * + 19 + - - 64 AS col1 FROM tab1
----
7

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 66 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 82 * 68 BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 * + + col2 + - + 81 FROM tab2 AS cor0
----
2479
4269
977

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

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

query I rowsort
SELECT - 59 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( + 60 ) IS NULL
----

query II rowsort
SELECT col0 AS col2, + col2 AS col1 FROM tab0 AS cor0 WHERE col1 * - 51 + + col1 IN ( - col2 * 89 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - MIN( DISTINCT + 71 ) * - 32 FROM tab0 AS cor0
----
2272

skipif mysql # not compatible
query I rowsort label-7176
SELECT - MIN ( DISTINCT + 71 ) * - 32 FROM tab0 AS cor0
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL + 81 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + 81 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
84

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

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

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

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

query I rowsort
SELECT - - col2 * 75 + + col1 * + col0 + + - col0 FROM tab2 AS cor0
----
4025
7864
9300

query I rowsort
SELECT ALL - + col2 - - col0 + - + col2 * - 11 + + col2 AS col1 FROM tab0 AS cor0
----
1186
197
532

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

query I rowsort
SELECT ALL ( - 86 ) FROM tab1
----
-86
-86
-86

query I rowsort
SELECT col2 + - 62 * ( col2 ) * + col0 FROM tab2
----
-158680
-269642
-65573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + - + col1 col0 FROM tab0 AS cor0
----
-9
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT + SUM( DISTINCT - col1 ) + - + 38 * ( + 0 ) * - - 94 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + SUM ( DISTINCT - col1 ) + - + 38 * ( + 0 ) * - - 94 FROM tab0 AS cor0
----
-103

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 24 ) * - col1 FROM tab0
----
-1944
-24
-504

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

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

query II rowsort
SELECT col0, ( - 37 ) AS col0 FROM tab0 AS cor0
----
15
-37
87
-37
97
-37

query I rowsort
SELECT + - 67 FROM tab2 cor0
----
-67
-67
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT - 85 * + ( AVG ( ALL + CAST( NULL AS SIGNED ) ) ) * 16 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 85 * + ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) * 16 FROM tab2 AS cor0
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 42 * + col1 + 71 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, 76 AS col0 FROM tab0
----
10
76
47
76
99
76

query I rowsort
SELECT + 17 AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7203
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7203
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

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

query II rowsort
SELECT ALL col2 AS col1, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 58 * col0 AS col1 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab2
----
51

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

skipif mysql # not compatible
query I rowsort label-7208
SELECT - + COUNT ( * ) * - MAX ( ALL col1 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT MIN( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT MIN ( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL - 59 + ( 80 ) + - + col0 AS col0 FROM tab2
----
-25
-43
-54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT + col2 * - CAST( + 43 AS SIGNED ) + 62 AS col0 FROM tab2 cor0
----
-1658
-2432
-927

skipif mysql # not compatible
query I rowsort label-7213
SELECT + col2 * - CAST ( + 43 AS INTEGER ) + 62 AS col0 FROM tab2 cor0
----
-1658
-2432
-927

query I rowsort
SELECT ALL + col1 + + ( + - col2 ) + + 73 AS col2 FROM tab1 AS cor0
----
-9
19
52

query I rowsort
SELECT DISTINCT + 47 * + + 97 * + col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
214273
451341
45590

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

query I rowsort
SELECT + 23 * col1 FROM tab2 cor0 WHERE 86 * + ( 89 ) BETWEEN NULL AND ( NULL )
----

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

query II rowsort
SELECT - 67 * + col2 + + + 35 * ( + + 6 ), - col1 AS col0 FROM tab1 AS cor0
----
-3743
-5
-4346
-47
-6222
-14

query II rowsort
SELECT ALL col2 * col0 + col2 AS col2, - 52 FROM tab2 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL NOT IN ( col0 * + col2 + - ( + 78 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7222
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7222
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - COUNT( * ) - - 10 AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7223
SELECT - COUNT ( * ) - - 10 AS col0 FROM tab1
----
7

query I rowsort
SELECT ALL 16 + 83 AS col1 FROM tab1
----
99
99
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT 17 - - - MIN( ALL + + col0 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-7226
SELECT 17 - - - MIN ( ALL + + col0 ) FROM tab1
----
-34

query II rowsort
SELECT ALL col0 * col1 + - col0 AS col1, col1 FROM tab2
----
2300
51
4864
77
4950
67

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7229
SELECT + col1 AS col0, + col1 DIV ( col1 ) FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-7229
SELECT + col1 AS col0, + col1 / ( col1 ) FROM tab2 AS cor0
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL + COUNT( - + col2 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 = + col1
----
0

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + COUNT ( - + col2 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 = + col1
----
0

query I rowsort
SELECT - - 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE - 64 IS NULL
----

query II rowsort
SELECT ALL col2 * - col1 + 26 * col2 + col1, col1 FROM tab0 AS cor0
----
-2504
81
2476
1
71
21

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 95 * col1 IS NULL
----
14
47
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT + COUNT( * ) * + 76 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + COUNT ( * ) * + 76 FROM tab0 AS cor0
----
228

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 14 - - col0 IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

query I rowsort
SELECT ALL + 91 + + 17 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT - + 99 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col1 - + 12 + - 1 AS col1 FROM tab1 AS cor0
----
-8
1
34

query I rowsort
SELECT - 70 - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-19
-3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 52 col0 FROM tab1 AS cor0
----
-57
-66
-99

query I rowsort
SELECT + col0 - - 34 AS col2 FROM tab0 AS cor0
----
121
131
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + COUNT( * ) + + - SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7250
SELECT + COUNT ( * ) + + - SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT + + COUNT( * ) - - + 59 * + COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + + COUNT ( * ) - - + 59 * + COUNT ( * ) FROM tab0 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT DISTINCT + col2 * + 56 + - + CAST( + col2 AS SIGNED ) + - 40 * col2 + col0 AS col0 FROM tab1 AS cor0
----
1111
1491
970

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT + col2 * + 56 + - + CAST ( + col2 AS INTEGER ) + - 40 * col2 + col0 AS col0 FROM tab1 AS cor0
----
1111
1491
970

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT - col1 * + CAST( - 2 AS SIGNED ) FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-7254
SELECT - col1 * + CAST ( - 2 AS INTEGER ) FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 35 * + 53 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - + 62 * + - col2 + - - 17 AND + + col0 * col2 / + 37
----

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

query II rowsort
SELECT + col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7259
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * + col0 col0 FROM tab2
----
3312
4608
5400

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

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

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

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

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

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

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

query I rowsort
SELECT ALL - 54 + + 3 FROM tab0
----
-51
-51
-51

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

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

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

skipif mysql # not compatible
query I rowsort label-7270
SELECT SUM ( - col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT col2 DIV - col1 + 99 * - - col0 + - + ( col2 ) FROM tab0
----
1438
8603
9405

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT col2 / - col1 + 99 * - - col0 + - + ( col2 ) FROM tab0
----
1438
8603
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT - 19 + + COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - 19 + + COUNT ( * ) FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 38 + + - ( COUNT( * ) ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-7273
SELECT 38 + + - ( COUNT ( * ) ) AS col2 FROM tab2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT col1 + + + 56 DIV - col1 + - ( col1 ) AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT col1 + + + 56 / - col1 + - ( col1 ) AS col1 FROM tab2
----
-1
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT + 74 DIV col0 + col2 + - col0 * - ( col0 ) - - + col2 * - 79 * - + 56 FROM tab0
----
208204
447484
51819

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + 74 / col0 + col2 + - col0 * - ( col0 ) - - + col2 * - 79 * - + 56 FROM tab0
----
208204
447484
51819

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

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

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

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

query I rowsort
SELECT ALL - 15 * + col1 + + 42 + - 89 AS col0 FROM tab0 AS cor0
----
-1262
-362
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT DISTINCT - + col0 - + ( + - col0 ) DIV - col2 FROM tab2 cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - + col0 - + ( + - col0 ) / - col2 FROM tab2 cor0
----
-48
-65
-76

query I rowsort
SELECT DISTINCT col1 * + - col0 + + - 75 AS col0 FROM tab2 AS cor0
----
-2421
-5003
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT - + 23 * + COUNT( * ) - + - 17 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - + 23 * + COUNT ( * ) - + - 17 FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7284
SELECT DISTINCT + + 28, + ( - 24 ) / + - col2 - - 76 - - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7284
SELECT DISTINCT + + 28, + ( - 24 ) / + - col2 - - 76 - - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
28
NULL

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

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

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

query I rowsort
SELECT + - 61 FROM tab2 AS cor0 WHERE - 77 IS NOT NULL
----
-61
-61
-61

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

query I rowsort
SELECT DISTINCT col2 * col0 + - + 56 + + - col1 FROM tab0
----
568
793
9546

query I rowsort
SELECT ALL 56 * - - 22 * - col1 FROM tab0
----
-1232
-25872
-99792

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

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

skipif mysql # not compatible
query I rowsort label-7292
SELECT - ( + + CAST ( NULL AS INTEGER ) ) * + + ( + + 99 ) + COUNT ( * ) + + MAX ( + col0 ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 + col1 / + CAST( + - 53 AS SIGNED ) * - - ( - col1 ) + + + 60 - + 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7294
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 + col1 / + CAST ( + - 53 AS INTEGER ) * - - ( - col1 ) + + + 60 - + 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * - 69 * - - ( + 42 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * - 69 * - - ( + 42 ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 76 * 63 + - 32 IS NULL
----
51
67
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL - - col1 DIV + ( - col0 ) * + + 33 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - - col1 / + ( - col0 ) * + + 33 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-7300
SELECT ALL - col1 DIV - col1 AS col0, 14 + + col0 + - - col0 * + - 51 * 90 + - ( 73 ) AS col1 FROM tab0 AS cor0
----
1
-399302
1
-445192
1
-68894

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL - col1 / - col1 AS col0, 14 + + col0 + - - col0 * + - 51 * 90 + - ( 73 ) AS col1 FROM tab0 AS cor0
----
1
-399302
1
-445192
1
-68894

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT - - MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

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

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

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

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

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

query I rowsort
SELECT ALL + 21 + + + col2 + - 85 * + col0 AS col0 FROM tab2
----
-3866
-5379
-6296

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 + col1 + ( 82 ) + - 68 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
124
129
78

query I rowsort
SELECT ALL + col2 * - col2 + + - 16 * + col2 * col0 FROM tab2
----
-17457
-42560
-72964

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 + - - 82 AND + - 74 * + col1
----

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

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

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

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

query I rowsort
SELECT - col2 * + 66 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT col1 * + col0 FROM tab1 WHERE col0 + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 8 / col1 + + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE ( + col1 ) NOT IN ( + 3 )
----
-6

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE ( + col1 ) NOT IN ( + 3 )
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7320
SELECT CAST( NULL AS DECIMAL ) / col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT CAST ( NULL AS REAL ) / col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 41 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7322
SELECT 9 DIV COUNT( * ) AS col2 FROM tab1
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 12 ) IS NULL
----

query I rowsort
SELECT ALL 15 + + col1 FROM tab1
----
20
29
62

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + 59 AS col2 FROM tab1
----
118
127
155

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7328
SELECT * FROM tab1 WHERE NOT ( col1 - + CAST( NULL AS DECIMAL ) * col1 ) BETWEEN ( - 96 * col1 ) AND 47 + - col1
----

skipif mysql # not compatible
query III rowsort label-7328
SELECT * FROM tab1 WHERE NOT ( col1 - + CAST ( NULL AS REAL ) * col1 ) BETWEEN ( - 96 * col1 ) AND 47 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( 3 + 55 )
----

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

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

query I rowsort
SELECT col1 * col1 + + col2 * + 58 FROM tab2
----
3935
7853
8249

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * 91 >= - col0 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 69 + - col1 >= ( - col0 )
----

query I rowsort
SELECT - 11 + col1 * col2 FROM tab2 WHERE NOT 76 IS NULL
----
1162
3069
3875

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

query I rowsort
SELECT col0 + + 27 AS col1 FROM tab2
----
102
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT - col1 * + col0 + CAST( 70 AS SIGNED ) col1 FROM tab1
----
-355
-4207
-644

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7338
SELECT - col1 * + col0 + CAST ( 70 AS INTEGER ) col1 FROM tab1
----
-355
-4207
-644

query I rowsort
SELECT 93 + - col2 FROM tab1
----
-3
25
34

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL MAX( col1 ) FROM tab0 WHERE ( NULL ) = ( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL MAX ( col1 ) FROM tab0 WHERE ( NULL ) = ( + 95 )
----
NULL

query I rowsort
SELECT DISTINCT - 42 - + col2 FROM tab2
----
-100
-65
-82

query I rowsort
SELECT + col2 * 27 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL MAX( col0 ) * 52 FROM tab2 AS cor0
----
3900

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL MAX ( col0 ) * 52 FROM tab2 AS cor0
----
3900

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 <= col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col1 * 9 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( - 2 + col0 )
----

query I rowsort
SELECT DISTINCT col1 + 69 AS col0 FROM tab1 WHERE NULL IN ( 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT ALL - CAST( NULL AS SIGNED ) + + 23 * + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - CAST ( NULL AS INTEGER ) + + 23 * + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col2 * ( 56 )
----

query I rowsort
SELECT DISTINCT - - 88 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - 26 * 6 + - SUM( ALL col0 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-7355
SELECT - 26 * 6 + - SUM ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT - 46 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col1 / + col0 + - col0 ) >= NULL
----
-46

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT - 46 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 / + col0 + - col0 ) >= NULL
----
-46

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

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( NULL ) >= + ( col0 ) / + col0
----

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

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

query I rowsort
SELECT + col1 + col0 AS col1 FROM tab0 WHERE - 23 <= + col2
----
108
96
98

query I rowsort
SELECT DISTINCT col1 + - 63 * - col1 FROM tab1
----
3008
320
896

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col1 * + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 86 + + - col2 * + 57 AS col0 FROM tab2
----
-1397
-2366
-3392

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL - col1 - - 54 DIV 72 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - col1 - - 54 / 72 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7365
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif mysql # not compatible
query IIIIII rowsort label-7365
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT SUM( ALL - col0 ) + + - COUNT( * ) + + COUNT( DISTINCT - col1 + - 23 * col0 ) * + COUNT( * ) FROM tab2
----
-179

skipif mysql # not compatible
query I rowsort label-7366
SELECT SUM ( ALL - col0 ) + + - COUNT ( * ) + + COUNT ( DISTINCT - col1 + - 23 * col0 ) * + COUNT ( * ) FROM tab2
----
-179

query I rowsort
SELECT 45 * ( col0 ) AS col0 FROM tab2
----
2070
2880
3375

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 87 - 33 col2 FROM tab2 AS cor0
----
46
-120
64
-120
75
-120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 86 = ( - col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT + ( - ( + - CAST( + col1 AS SIGNED ) ) ) AS col1 FROM tab2
----
51
67
77

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT - + 4 * - + MAX( + - ( - - ( - col0 ) ) ) * 77 AS col2 FROM tab2 AS cor0
----
23100

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - + 4 * - + MAX ( + - ( - - ( - col0 ) ) ) * 77 AS col2 FROM tab2 AS cor0
----
23100

query I rowsort
SELECT - - col0 * + 60 AS col0 FROM tab0 AS cor0
----
5220
5820
900

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + 99 )
----

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

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

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

query I rowsort
SELECT DISTINCT - - ( + col2 ) * - col1 * 64 * col0 AS col1 FROM tab0 AS cor0
----
-1169280
-3654720
-614592

query I rowsort
SELECT DISTINCT col0 * + col2 + - + ( + - 5 ) FROM tab0 AS cor0
----
710
875
9608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - 17 ) * + col0 col2 FROM tab2 AS cor0
----
17986
43520
73950

query I rowsort
SELECT ALL - + 99 * col2 AS col1 FROM tab2 AS cor0
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - - COUNT( * ) * + - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7389
SELECT - - COUNT ( * ) * + - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-231

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

skipif mysql # not compatible
query I rowsort label-7390
SELECT + ( - MIN ( + + 45 ) ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + 18 * col1 * + col0 + - - 13 + - col0 AS col1 FROM tab2 AS cor0
----
42195
88653
90388

query I rowsort
SELECT col0 + 71 FROM tab0 AS cor0
----
158
168
86

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL COUNT( + - col2 ) * + + 16 AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL COUNT ( + - col2 ) * + + 16 AS col1 FROM tab0
----
48

query I rowsort
SELECT ALL 7 * + col2 + + col2 - + + 86 FROM tab2
----
234
378
98

query I rowsort
SELECT col0 + - - 31 AS col0 FROM tab0
----
118
128
46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * - 82 * ( + 4 ) + - col2 + + 92 col2 FROM tab2
----
-4851
-4868
-4886

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT + COUNT( * ) + + - 29 * MIN( + 45 ) + 72 + 54 * + COUNT( * ) AS col1 FROM tab1
----
-1068

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT + COUNT ( * ) + + - 29 * MIN ( + 45 ) + 72 + 54 * + COUNT ( * ) AS col1 FROM tab1
----
-1068

query II rowsort
SELECT ALL col1 - - 12 AS col2, + col1 AS col1 FROM tab2
----
63
51
79
67
89
77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7405
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * col0 NOT BETWEEN col1 AND - - col2 + + CAST( + ( - col1 ) + + 92 * + CAST( col2 AS SIGNED ) AS SIGNED ) )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-7405
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * col0 NOT BETWEEN col1 AND - - col2 + + CAST ( + ( - col1 ) + + 92 * + CAST ( col2 AS INTEGER ) AS INTEGER ) )
----
46
51
23
64
77
40

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

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

query I rowsort
SELECT ALL - 55 * - col1 + 23 FROM tab0 AS cor0
----
1178
4478
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND + 1 - - + col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT MIN( ALL 2 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7410
SELECT MIN ( ALL 2 ) FROM tab0 AS cor0
----
2

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

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

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

query I rowsort
SELECT col1 * + + 81 AS col1 FROM tab2
----
4131
5427
6237

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 NOT IN ( - col0 + + + col1 + + col2 - + + col1 * - 40 * + col0 + - col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT 52 * + 93 * + ( - COUNT( * ) ) AS col0 FROM tab0
----
-14508

skipif mysql # not compatible
query I rowsort label-7421
SELECT 52 * + 93 * + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-14508

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

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

query I rowsort
SELECT + 98 + + col0 FROM tab1
----
149
183
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - 31 + + - ( + COUNT( * ) ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 31 + + - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-34

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

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

query I rowsort
SELECT ALL + 50 * - 76 FROM tab1 AS cor0
----
-3800
-3800
-3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT DISTINCT MAX( + col2 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT MAX ( + col2 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT - 47 * + - 22 FROM tab2 cor0
----
1034

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 * - 10 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - COUNT( - 21 ) + - 11 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - COUNT ( - 21 ) + - 11 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - COUNT( * ) * - - 73 AS col2 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7433
SELECT - COUNT ( * ) * - - 73 AS col2 FROM tab1
----
-219

query I rowsort
SELECT ALL + col0 * 36 * + col0 + + - col0 AS col0 FROM tab2
----
147392
202425
76130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT + COUNT( * ) * 81 * MAX( + + col2 ) - - COUNT( * ) + - COUNT( * ) * 58 DIV - SUM( DISTINCT + - col2 ) AS col0 FROM tab0
----
24059

skipif mysql # not compatible
query I rowsort label-7435
SELECT + COUNT ( * ) * 81 * MAX ( + + col2 ) - - COUNT ( * ) + - COUNT ( * ) * 58 / - SUM ( DISTINCT + - col2 ) AS col0 FROM tab0
----
24059

query I rowsort
SELECT DISTINCT 36 + + + col2 * - col0 - - 61 FROM tab0
----
-608
-773
-9506

query I rowsort
SELECT ALL 45 + - col0 FROM tab2
----
-1
-19
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7438
SELECT - ( 26 ) * col0 - - ( + ( col0 ) ), - CAST( NULL AS DECIMAL ) + - + col1 col2 FROM tab0
----
-2175
NULL
-2425
NULL
-375
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7438
SELECT - ( 26 ) * col0 - - ( + ( col0 ) ), - CAST ( NULL AS REAL ) + - + col1 col2 FROM tab0
----
-2175
NULL
-2425
NULL
-375
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + col1 - + col2 col2 FROM tab1
----
161
2000
520

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

query I rowsort
SELECT ALL - + 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query II rowsort
SELECT - 94 AS col2, + 71 FROM tab1
----
-94
71
-94
71
-94
71

onlyif mysql # aggregate syntax: 
query III rowsort label-7443
SELECT ALL + + 39, 10 + SUM( ALL + + col1 ) AS col2, - + SUM( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
39
76
-66

skipif mysql # not compatible
query III rowsort label-7443
SELECT ALL + + 39, 10 + SUM ( ALL + + col1 ) AS col2, - + SUM ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
39
76
-66

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT ALL - 23 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - 23 / + col1 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 5 col1 FROM tab0 AS cor0
----
-105
-405
-5

query II rowsort
SELECT ALL 17 AS col1, - col0 FROM tab1 AS cor0
----
17
-51
17
-85
17
-91

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

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

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

query I rowsort
SELECT ( col1 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 * + col1 * - col2, col1 col1 FROM tab2
----
-107800
77
-136010
67
-41055
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + COUNT( * ) * - 38 AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-7458
SELECT + COUNT ( * ) * - 38 AS col2 FROM tab2
----
-114

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 58 IS NULL )
----

query I rowsort
SELECT + 76 + - 9 + - 2 AS col1 FROM tab1 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT + + col2 + + + col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT + + col2 + + + col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT MIN( ALL col1 ) col1, + COUNT( * ) * + MAX( ALL ( 42 ) ) FROM tab0 cor0
----
1
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7462
SELECT MIN ( ALL col1 ) col1, + COUNT ( * ) * + MAX ( ALL ( 42 ) ) FROM tab0 cor0
----
1
126

query I rowsort
SELECT + 44 FROM tab2 AS cor0 WHERE + col0 * + 17 * + + col1 IS NOT NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col1 + 4 + - col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col1 + 4 + - col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 53 FROM tab1 WHERE col2 + - 7 = + col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT ALL 10 * - + ( + - 25 ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL 10 * - + ( + - 25 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) - + col2 + - col1 * - col1 col0 FROM tab0 AS cor0
----
-99
410
6433

query I rowsort
SELECT ALL col0 - + col1 FROM tab1 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT - - col2 + - - col2 / - 77 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT - - col2 + - - col2 / - 77 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - + col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL + SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IN ( - 44 * + - 98, - col2 * - 54 )
----

query I rowsort
SELECT DISTINCT 1 - - - 42 AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL SUM( ALL + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL SUM ( ALL + - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - col2 * + 15 AS col2 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT + 81 IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col2 * 0 - - col1 + - col2 <= + + 64 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - - 14 * + - COUNT( 32 ) * - 9 AS col2 FROM tab1 WHERE NULL <= - 18
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT - - 14 * + - COUNT ( 32 ) * - 9 AS col2 FROM tab1 WHERE NULL <= - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL COUNT( ALL + - col2 ) + - COUNT( * ) * + + 16 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL COUNT ( ALL + - col2 ) + - COUNT ( * ) * + + 16 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT + col2 DIV 67 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT + col2 / 67 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col0 * + - col2 < NULL
----

query I rowsort
SELECT DISTINCT col1 + - + 43 + - col0 FROM tab1
----
-123
-80
-87

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 - + + col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT ALL + - 42 AS col1 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT ALL ( - 19 ) DIV 64 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL ( - 19 ) / 64 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 37 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT - + MIN( CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - + MIN ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 34 * + - col2 FROM tab1
----
-2006
-2312
-3264

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT ALL COUNT( * ) DIV - 67 * + 71 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL COUNT ( * ) / - 67 * + 71 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
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-7492
SELECT ALL + COUNT ( ALL col2 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 * + + 17 FROM tab2 AS cor0
----
1088
1275
782

query I rowsort
SELECT DISTINCT - + col1 * 55 AS col2 FROM tab2 AS cor0
----
-2805
-3685
-4235

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( + 7 * - ( col1 ), + col2 + 59 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 * - + 77 * ( + col1 ) IS NULL
----

query II rowsort
SELECT - 79, - col1 * + + col2 + - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 94 / + - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( 80 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + COUNT( ALL + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7500
SELECT + COUNT ( ALL + + col0 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT ALL col2, + col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT col0 * - 54 AS col0 FROM tab1
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT ALL + 14 DIV COUNT( * ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + 14 / COUNT ( * ) AS col1 FROM tab1
----
4

query I rowsort
SELECT + 86 * - 47 AS col1 FROM tab2
----
-4042
-4042
-4042

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT DISTINCT 22, COUNT( * ) col1 FROM tab1
----
22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7506
SELECT DISTINCT 22, COUNT ( * ) col1 FROM tab1
----
22
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 NOT IN ( - 85, - col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7508
SELECT DISTINCT + COUNT( * ) AS col0, 64 FROM tab0 AS cor0
----
3
64

skipif mysql # not compatible
query II rowsort label-7508
SELECT DISTINCT + COUNT ( * ) AS col0, 64 FROM tab0 AS cor0
----
3
64

query I rowsort
SELECT DISTINCT ( ( col0 ) ) AS col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT 32 DIV - - COUNT( * ) col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7510
SELECT 32 / - - COUNT ( * ) col2 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + MAX( ALL + col1 ) + - 47 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + MAX ( ALL + col1 ) + - 47 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT - + 42 * + col1 - + 18 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - col0 + - 61 * + + col2 - - - col2 AS col1 FROM tab1
----
-3743
-4307
-6003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT COUNT( * ) DIV + - 12 + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7515
SELECT COUNT ( * ) / + - 12 + COUNT ( * ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col0 + + col1, col2 AS col0 FROM tab2
----
141
40
142
58
97
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 15 NOT IN ( - + 21 / - 48, ( 61 ) * + col1 - - - col0 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 90 AS col1 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT - col1 * - - col0 - col0 DIV col0 + - col2 FROM tab1
----
-4346
-485
-811

skipif mysql # not compatible
query I rowsort label-7519
SELECT - col1 * - - col0 - col0 / col0 + - col2 FROM tab1
----
-4346
-485
-811

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NOT col1 * + - col2 / + 77 + + + col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7521
SELECT - MAX( ALL - col1 ) - - 86 DIV - - COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-7521
SELECT - MAX ( ALL - col1 ) - - 86 / - - COUNT ( * ) FROM tab0
----
29

query I rowsort
SELECT + col2 - 73 FROM tab2
----
-15
-33
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-7523
SELECT + 58 DIV col1 DIV + col0 - + + col2 AS col2, + col0 col0 FROM tab0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7523
SELECT + 58 / col1 / + col0 - + + col2 AS col2, + col0 col0 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT col0 - - + col1 + + col2, - col0 AS col0 FROM tab2
----
120
-46
181
-64
200
-75

query I rowsort
SELECT - col1 - - + 4 + + col0 AS col1 FROM tab2
----
-1
-9
12

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT col2 + + col0 * col0 * ( + + col2 ) FROM tab0
----
10622
75700
931590

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT COUNT( * ) * MIN( + - 99 ) * + COUNT( * ) AS col1 FROM tab1
----
-891

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT COUNT ( * ) * MIN ( + - 99 ) * + COUNT ( * ) AS col1 FROM tab1
----
-891

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query II rowsort
SELECT ALL ( + col0 ) * + + col1 + col1 AS col1, + col1 * - + col2 FROM tab0
----
1296
-3807
1848
-210
98
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT MAX( ALL + ( + col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7533
SELECT MAX ( ALL + ( + col1 ) ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL 71 * + + 46 + + col0 AS col1 FROM tab1 cor0
----
3317
3351
3357

query I rowsort
SELECT + ( + + 2 ) * col1 * - col0 * - - 12 AS col0 FROM tab1 AS cor0
----
-10200
-102648
-17136

query I rowsort
SELECT col0 * + 97 AS col1 FROM tab0 AS cor0
----
1455
8439
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 col0 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7539
SELECT DISTINCT * FROM tab2 WHERE + + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7539
SELECT DISTINCT * FROM tab2 WHERE + + CAST ( NULL AS REAL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL MIN( DISTINCT + 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL MIN ( DISTINCT + 45 ) FROM tab0
----
45

query I rowsort
SELECT ALL col1 + + - col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN - col1 AND ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT + + ( COUNT( * ) ) DIV - - ( 44 ) FROM tab2 WHERE + 62 IN ( + 36 - + 1, + col0 - col1 * - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT + + ( COUNT ( * ) ) / - - ( 44 ) FROM tab2 WHERE + 62 IN ( + 36 - + 1, + col0 - col1 * - 70 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 97 * - + 4 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7545
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT + COUNT( * ) * - 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7546
SELECT + COUNT ( * ) * - 29 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - - col0 + + col0 + - col1 + - col0 + + + 40 FROM tab2 AS cor0
----
27
35
48

query I rowsort
SELECT DISTINCT - 58 * + + 92 - + + 48 - col0 * 84 AS col0 FROM tab2 AS cor0
----
-10760
-11684
-9248

query I rowsort
SELECT + col1 * col2 * + col1 + + + 48 FROM tab1 AS cor0
----
150260
1523
18864

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7552
SELECT + 45 / + CAST( NULL AS SIGNED ) + - col0 * 19 / - CAST( - + col1 AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT + 45 / + CAST ( NULL AS INTEGER ) + - col0 * 19 / - CAST ( - + col1 AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE col1 * - 39 >= 35
----

query I rowsort
SELECT DISTINCT 86 + - 51 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL 36 + SUM( DISTINCT - col0 ) FROM tab1
----
-191

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL 36 + SUM ( DISTINCT - col0 ) FROM tab1
----
-191

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7558
SELECT 35 DIV CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT 35 / CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT - 40 DIV - - 40 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 40 / - - 40 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7560
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN + - col1 * + + col2 + + col0 AND - - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7560
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN + - col1 * + + col2 + + col0 AND - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT col1 AS col0, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7563
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - 48 AS col0, col2 - 18 FROM tab1
----
-48
41
-48
50
-48
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT MAX( + col0 ) + + + 93 AS col1 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-7565
SELECT MAX ( + col0 ) + + + 93 AS col1 FROM tab1 AS cor0
----
184

query II rowsort
SELECT 32 * - + col2 + - 68 AS col0, col1 FROM tab1 AS cor0 WHERE NOT 76 + + col0 * + + col0 <> + 28
----

query I rowsort
SELECT - col1 * 64 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( * ) * - 1 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( * ) * - 1 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col1 * + col0 * ( - col0 ) * + + 47 NOT BETWEEN - - col0 + - col2 AND NULL
----

query I rowsort
SELECT + - 20 + - - 5 FROM tab2 WHERE - col2 * - col0 * - 64 NOT IN ( + col2, - col2 / - col2 )
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN NULL AND - col0 / + 68 * - ( 57 )
----

query I rowsort
SELECT - 17 * + col1 + col1 AS col1 FROM tab0 WHERE NULL NOT IN ( 95 * + + col1 + col1 * - - col1, - ( - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + SUM( DISTINCT + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7575
SELECT + SUM ( DISTINCT + col2 ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT + col1 + + 18 + - col2 FROM tab2
----
27
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL 38 + COUNT( DISTINCT 47 ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL 38 + COUNT ( DISTINCT 47 ) AS col0 FROM tab1
----
39

query I rowsort
SELECT DISTINCT - col1 + + + 9 FROM tab0
----
-12
-72
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 58 + 72 col0 FROM tab2 AS cor0
----
130
130
130

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT ALL + col2 * - 18 + + col1 FROM tab0
----
-159
-1781
-765

query I rowsort
SELECT + col1 FROM tab2 WHERE - - ( + col2 ) + + col0 * + 58 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 79 + col2 + - col0 + col0 FROM tab1
----
138
147
175

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT - 45 DIV - col1 AS col0 FROM tab1
----
0
3
9

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 45 / - col1 AS col0 FROM tab1
----
0
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL COUNT( * ) - + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 - - + 56 AS col2 FROM tab2 AS cor0
----
-2
16
33

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 - - + col0 BETWEEN - col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7590
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1, col1 * + - col1 FROM tab2
----
-51
-2601
-67
-4489
-77
-5929

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1, col1 * + - col1 FROM tab2
----
-51
-2601
-67
-4489
-77
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT MIN( + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7591
SELECT MIN ( + + col1 ) FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 / - col1 - + 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT DISTINCT + CAST( - - 7 AS SIGNED ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT + CAST ( - - 7 AS INTEGER ) AS col2 FROM tab2
----
7

query I rowsort
SELECT - col2 - + + col0 FROM tab0 AS cor0 WHERE NOT - col2 * - 92 >= NULL
----

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 86 BETWEEN NULL AND ( + - col1 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 86 BETWEEN NULL AND ( + - col1 ) * CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 76 AS col0 FROM tab2 AS cor0
----
-51
-76
-67
-76
-77
-76

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 39 / + - 25 NOT BETWEEN col0 AND + + col2 + + + ( - col0 ) / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7599
SELECT ALL + - 60, + 42 DIV - ( + COUNT( + - 76 ) ) AS col2 FROM tab1 AS cor0
----
-60
-14

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL + - 60, + 42 / - ( + COUNT ( + - 76 ) ) AS col2 FROM tab1 AS cor0
----
-60
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 65 * + - 90 NOT IN ( - 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + COUNT( * ) + - 36 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-27

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + COUNT ( * ) + - 36 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-27

query I rowsort
SELECT DISTINCT - col1 + - - col2 + - 33 FROM tab0 AS cor0
----
-44
-67
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT ( - - COUNT( * ) ) AS col2, + 12 * - - 73 AS col1 FROM tab0 AS cor0
----
3
876

skipif mysql # not compatible
query II rowsort label-7603
SELECT ( - - COUNT ( * ) ) AS col2, + 12 * - - 73 AS col1 FROM tab0 AS cor0
----
3
876

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7604
SELECT DISTINCT + 94 * col0 + + col1 + - 57 + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + col1 + - 45 + - 22 + - 54 - - 5 / + col0 * + 99 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT + 94 * col0 + + col1 + - 57 + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + col1 + - 45 + - 22 + - 54 - - 5 / + col0 * + 99 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 48 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT DISTINCT - 40 * + 69 AS col0, - MIN( + col2 ) col2 FROM tab0 AS cor0
----
-2760
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7607
SELECT DISTINCT - 40 * + 69 AS col0, - MIN ( + col2 ) col2 FROM tab0 AS cor0
----
-2760
-10

query I rowsort
SELECT col0 + - 19 FROM tab0 AS cor0
----
-4
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7609
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7609
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 70 * - 7 AS col1, - 75 col2 FROM tab2 AS cor0
----
-490
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT CAST( + col2 AS SIGNED ) + 7 FROM tab0
----
106
17
54

skipif mysql # not compatible
query I rowsort label-7611
SELECT CAST ( + col2 AS INTEGER ) + 7 FROM tab0
----
106
17
54

query I rowsort
SELECT DISTINCT - col0 + + 90 FROM tab1
----
-1
39
5

query II rowsort
SELECT + - 80 AS col2, col1 - - + 5 - - col0 * col1 - - col0 * - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 69 + - + 74 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT col2 * + 38 + - col1 + - col1 * - - col1 col2 FROM tab2 cor0 WHERE - ( 32 ) + + 42 > - col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7615
SELECT col2 * + 38 + - col1 + - col1 * - - col1 col2 FROM tab2 cor0 WHERE - ( 32 ) + + 42 > - col2 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + MAX( DISTINCT 33 ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7616
SELECT + MAX ( DISTINCT 33 ) AS col2 FROM tab1 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-7617
SELECT + 7, col1 DIV 63 * col0 AS col0 FROM tab2 cor0
----
7
0
7
64
7
75

skipif mysql # not compatible
query II rowsort label-7617
SELECT + 7, col1 / 63 * col0 AS col0 FROM tab2 cor0
----
7
0
7
64
7
75

query I rowsort
SELECT ALL - ( - ( - col1 ) ) + 14 AS col2 FROM tab0
----
-67
-7
13

query II rowsort
SELECT ALL 42 + - col1, col2 FROM tab0
----
-39
47
21
10
41
99

query I rowsort
SELECT - col1 * - - 25 * - 25 FROM tab0 AS cor0
----
13125
50625
625

query I rowsort
SELECT - 25 * - 43 FROM tab2 AS cor0
----
1075
1075
1075

onlyif mysql # DIV for integer division: 
query II rowsort label-7622
SELECT ALL + - 49 DIV - 86, - col0 col0 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7622
SELECT ALL + - 49 / - 86, - col0 col0 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

query II rowsort
SELECT DISTINCT - 66 * + + 4 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-264
1
-264
21
-264
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT + COUNT( DISTINCT + col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7624
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + ( - - ( - 91 ) ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query III rowsort
SELECT * FROM tab0 WHERE NOT - 55 + - ( 82 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 90 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT + col0 * + + col0 * - 7 AS col1 FROM tab0
----
-1575
-52983
-65863

query I rowsort
SELECT DISTINCT col1 * 84 AS col2 FROM tab0
----
1764
6804
84

query I rowsort
SELECT - 28 * col2 * + col1 * - ( col2 ) AS col0 FROM tab2
----
3449600
6310864
755412

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7631
SELECT - + CAST( NULL AS DECIMAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT - + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + + 60 * - 92 + - COUNT( * ) * 11 + + 63 FROM tab1 AS cor0
----
-5490

skipif mysql # not compatible
query I rowsort label-7632
SELECT + + 60 * - 92 + - COUNT ( * ) * 11 + + 63 FROM tab1 AS cor0
----
-5490

query I rowsort
SELECT DISTINCT + + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT + CAST( - 92 AS SIGNED ) + - + 63 FROM tab2
----
-155

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + CAST ( - 92 AS INTEGER ) + - + 63 FROM tab2
----
-155

query I rowsort
SELECT - col1 + + + col1 * col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1, col1 + col1 ) )
----

query I rowsort
SELECT DISTINCT - + 9 FROM tab0 AS cor0 WHERE NOT NULL > - 32
----

query I rowsort
SELECT ALL + + 94 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT + COUNT( col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7639
SELECT + COUNT ( col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 79 * - 29 AS col0 FROM tab1 AS cor0
----
-2291
-2291
-2291

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT 26 DIV - - col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7641
SELECT 26 / - - col2 FROM tab0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - 20 * + 23 * - + col0 FROM tab1
----
23556
39159
41928

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT COUNT( * ) - + - MIN( DISTINCT - - 42 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( * ) - + - MIN ( DISTINCT - - 42 ) AS col0 FROM tab2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col0 - 62 * - 77 AS col1 FROM tab0
----
4789
4861
4871

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT + col1 + + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT + col1 + + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 - + col2 FROM tab1 AS cor0
----
-148
-157
-185

query I rowsort
SELECT col1 * + + col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - + 62 * - + col1 FROM tab0 AS cor0
----
1302
5022
62

query II rowsort
SELECT 43, + col0 AS col2 FROM tab2 AS cor0
----
43
46
43
64
43
75

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col1 FROM tab1 cor0
----
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 24 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col0, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL - CAST( NULL AS SIGNED ) / - 74 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - CAST ( NULL AS INTEGER ) / - 74 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 2 AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT + 29 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + 29 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7662
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT col1 * - 71 * 13 + + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19362
-74682
-922

skipif mysql # not compatible
query I rowsort label-7663
SELECT col1 * - 71 * 13 + + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19362
-74682
-922

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT MAX( DISTINCT + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT MAX ( DISTINCT + - col2 ) FROM tab1
----
-59

query I rowsort
SELECT 72 AS col1 FROM tab1 WHERE NOT NULL >= + 79 * - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT DISTINCT col0 DIV + 43 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT col0 / + 43 AS col0 FROM tab2
----
1

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab0 WHERE NOT - 56 IS NULL
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL - col0 / + 13 * + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - col0 / + 13 * + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 53 + ( - - 80 ) AS col0 FROM tab1 AS cor0
----
133
133
133

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 56 * - + ( - - ( + col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - 12 AS col0 FROM tab2 AS cor0
----
11
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + COUNT( * ) + 30 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7672
SELECT + COUNT ( * ) + 30 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( DISTINCT col0 ) * COUNT( * ) + 13 AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( DISTINCT col0 ) * COUNT ( * ) + 13 AS col2 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7675
SELECT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7675
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - MIN( 7 ) + + - 85 AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-7676
SELECT - MIN ( 7 ) + + - 85 AS col1 FROM tab2
----
-92

query I rowsort
SELECT - 42 + + col0 * - 4 FROM tab0
----
-102
-390
-430

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - ( - 16 ) ) + - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + + 71 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7680
SELECT ALL col0 * - col1 - CAST( + - col1 AS SIGNED ), - col2 + - 92 - + - 13 AS col2 FROM tab0
----
-1134
-126
-1806
-89
-96
-178

skipif mysql # not compatible
query II rowsort label-7680
SELECT ALL col0 * - col1 - CAST ( + - col1 AS INTEGER ), - col2 + - 92 - + - 13 AS col2 FROM tab0
----
-1134
-126
-1806
-89
-96
-178

query I rowsort
SELECT ALL col1 + 29 + - + col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT col1 + - col2 * - 42 AS col1 FROM tab2 AS cor0
----
1017
1757
2503

query I rowsort
SELECT - col2 * - 75 * + col0 + + col1 - + + col2 AS col2 FROM tab1 cor0
----
367118
376071
464079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL 56 + 7 + + CAST( - 55 AS SIGNED ) * - col0 - - col0 AS col0 FROM tab0 WHERE NOT - col0 + + 91 - col2 * + col1 * - col2 - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL 56 + 7 + + CAST ( - 55 AS INTEGER ) * - col0 - - col0 AS col0 FROM tab0 WHERE NOT - col0 + + 91 - col2 * + col1 * - col2 - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + + 94 / - col1 + col1 / - 6 NOT BETWEEN 67 - - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT 10 DIV 42 * - 4 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT 10 / 42 * - 4 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT 11 * - col2 + col2 + - - col0 DIV col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-455
-796
-9

skipif mysql # not compatible
query I rowsort label-7689
SELECT 11 * - col2 + col2 + - - col0 / col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-455
-796
-9

query I rowsort
SELECT ALL + col2 * + + 84 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
10838016
1462020
18255552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL - + CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - + CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT 43 DIV - - col2 FROM tab0 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT 43 / - - col2 FROM tab0 cor0
----
0
4

query I rowsort
SELECT col1 * + 41 AS col0 FROM tab0 WHERE NOT col0 + col2 IS NULL
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 1
----

query I rowsort
SELECT ALL - col2 * + 80 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) + + 37 FROM tab2
----
3
40

skipif mysql # not compatible
query II rowsort label-7697
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) + + 37 FROM tab2
----
3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT - CAST( 97 AS SIGNED ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - CAST ( 97 AS INTEGER ) FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT COUNT( * ) * COUNT( * ) + 14 FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-7699
SELECT COUNT ( * ) * COUNT ( * ) + 14 FROM tab0 cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 * + 6 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * + 72 - - + col2 * col1 * col0, col1, + col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + + ( - 71 ) ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT DISTINCT 25 * + 57 + - 26 + - COUNT( * ) AS col1, - 66 FROM tab2
----
1396
-66

skipif mysql # not compatible
query II rowsort label-7705
SELECT DISTINCT 25 * + 57 + - 26 + - COUNT ( * ) AS col1, - 66 FROM tab2
----
1396
-66

query I rowsort
SELECT - 69 + + col1 - - col0 FROM tab1
----
-4
21
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7707
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + COUNT( + + ( + 48 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7708
SELECT + COUNT ( + + ( + 48 ) ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT + ( - 66 ) + - 71 DIV + 60 AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + ( - 66 ) + - 71 / + 60 AS col1 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT ALL col2 - col2 + - + 74 AS col1 FROM tab2 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - 86 + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - 86 + col2 IS NULL
----
-3

query I rowsort
SELECT ALL 38 * - + 19 FROM tab0 AS cor0
----
-722
-722
-722

query I rowsort
SELECT DISTINCT + ( + 11 ) FROM tab1
----
11

query I rowsort
SELECT DISTINCT - col2 + + 7 FROM tab2
----
-16
-33
-51

query I rowsort
SELECT DISTINCT - 62 * + - col0 FROM tab2
----
2852
3968
4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT SUM( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7719
SELECT SUM ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT 58 * 47 * - 1 AS col0 FROM tab2
----
-2726

query I rowsort
SELECT DISTINCT + + col0 * col2 * + 35 * 22 * - 58 - 87 * 23 AS col0 FROM tab0 AS cor0
----
-31487301
-38856201
-428871981

query I rowsort
SELECT - col2 / + col0 * - 11 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT 21 * + col0 FROM tab1 AS cor0 WHERE NOT 88 * + 14 > 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 35 col2, col0 FROM tab0 AS cor0
----
-35
15
-35
87
-35
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 67 * - + col1 * - - 56 * - 93 + - + col1 BETWEEN - - col1 AND - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 21 AS col2, 54 FROM tab2 AS cor0
----
21
54
21
54
21
54

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 - - col0 IS NOT NULL
----

query I rowsort
SELECT - 1 * 83 + + 68 AS col2 FROM tab2
----
-15
-15
-15

query II rowsort
SELECT DISTINCT ( col1 ) AS col2, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ( - 77 ) AS col0 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL 85 * 37 FROM tab0 AS cor0
----
3145
3145
3145

query I rowsort
SELECT ALL - + col2 * - 61 * - col0 FROM tab1 AS cor0
----
-298656
-305915
-377468

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT 31 DIV ( + ( + 42 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT 31 / ( + ( + 42 ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT ALL + 27 + + - 24 AS col0, - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
3
-9

skipif mysql # not compatible
query II rowsort label-7734
SELECT ALL + 27 + + - 24 AS col0, - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
3
-9

query I rowsort
SELECT ALL - 45 + + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL col1 + + col0 * + 27 * - col1 * + 21 AS col0 FROM tab0
----
-1035888
-54998
-688824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7737
SELECT - CAST( NULL AS DECIMAL ) - + 6 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT - CAST ( NULL AS REAL ) - + 6 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 * col2 < NULL
----

query I rowsort
SELECT - + ( col1 ) + - ( + 97 ) * - 9 AS col2 FROM tab0 AS cor0
----
792
852
872

query I rowsort
SELECT - col0 + + + col1 * - col1 FROM tab1 cor0
----
-110
-2300
-247

query I rowsort
SELECT - col2 + - 43 FROM tab1 AS cor0
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT ( - - COUNT( * ) ) * + 64 AS col1 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT ( - - COUNT ( * ) ) * + 64 AS col1 FROM tab1 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-7743
SELECT - 34 + col1 + col0 DIV 25, col0 FROM tab2 AS cor0
----
18
46
36
75
45
64

skipif mysql # not compatible
query II rowsort label-7743
SELECT - 34 + col1 + col0 / 25, col0 FROM tab2 AS cor0
----
18
46
36
75
45
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 >= NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT COUNT( * ) AS col1 FROM tab2 WHERE + 66 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7746
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE + 66 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT - SUM( - 86 ) * + COUNT( * ) col2 FROM tab0
----
774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT DISTINCT - SUM ( - 86 ) * + COUNT ( * ) col2 FROM tab0
----
774

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT - 69 DIV - 99 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT - 69 / - 99 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7750
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT - SUM( DISTINCT 41 ) * 93 AS col0, - COUNT( * ) + - + 85 FROM tab2 AS cor0
----
-3813
-88

skipif mysql # not compatible
query II rowsort label-7751
SELECT - SUM ( DISTINCT 41 ) * 93 AS col0, - COUNT ( * ) + - + 85 FROM tab2 AS cor0
----
-3813
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT - col1 DIV + - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7752
SELECT - col1 / + - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7753
SELECT + col1 * - + CAST( NULL AS SIGNED ) + col1 col1, col2 + + col2 FROM tab2 AS cor0
----
NULL
116
NULL
46
NULL
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7753
SELECT + col1 * - + CAST ( NULL AS INTEGER ) + col1 col1, col2 + + col2 FROM tab2 AS cor0
----
NULL
116
NULL
46
NULL
80

query I rowsort
SELECT ALL col0 * - + 47 FROM tab2 AS cor0
----
-2162
-3008
-3525

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + 77 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + 83 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
36
69
78

query I rowsort
SELECT + - col0 * col0 - - ( + 67 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + MIN( - 37 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-7758
SELECT + MIN ( - 37 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-37

query II rowsort
SELECT ALL - - col2 AS col0, col0 AS col2 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 * 61 * + - col2 * + col2 + col1 NOT BETWEEN - + 27 AND col1
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + ( + - col2 ) + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * col2 col0 FROM tab2
----
-2185
-3800
-5510

query I rowsort
SELECT DISTINCT - 12 + + col1 FROM tab1
----
-7
2
35

query I rowsort
SELECT ALL 41 + + ( col2 ) FROM tab0
----
140
51
88

query I rowsort
SELECT ALL - ( + col0 ) + + + col1 AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 + + + ( + - 37 ) AS col0 FROM tab2
----
-101
-112
-83

query II rowsort
SELECT - 27 AS col0, + col2 FROM tab2
----
-27
23
-27
40
-27
58

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE ( NOT - col0 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1 cor0
----
79

query I rowsort
SELECT DISTINCT + + 54 AS col2 FROM tab1 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT ALL + 84 + + - ( - 24 ) * + 72 + - col2 * CAST( - - col2 AS SIGNED ) FROM tab0
----
-397
-7989
1712

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + 84 + + - ( - 24 ) * + 72 + - col2 * CAST ( - - col2 AS INTEGER ) FROM tab0
----
-397
-7989
1712

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 46 + - ( - - col2 ) / - + 46 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( ALL 56 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( ALL 56 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 59 - + 63, + col2 * + - col0 * col1 * - 51 AS col2 FROM tab0 AS cor0
----
-4
2912355
-4
489753
-4
931770

query I rowsort
SELECT - - 29 * + - col2 - + + col0 AS col2 FROM tab0 AS cor0
----
-1378
-2968
-377

query I rowsort
SELECT + - 10 + - 60 AS col0 FROM tab1 AS cor0 WHERE col1 - - + col0 + + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7779
SELECT 90 - CAST( NULL AS DECIMAL ) / + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT 90 - CAST ( NULL AS REAL ) / + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT - COUNT( * ) DIV COUNT( ALL + 77 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7780
SELECT - COUNT ( * ) / COUNT ( ALL + 77 ) AS col2 FROM tab2
----
-1

query II rowsort
SELECT - 32 AS col0, col0 AS col1 FROM tab2
----
-32
46
-32
64
-32
75

query I rowsort
SELECT col1 * 2 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT 45 * + col1 FROM tab2
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT 39 * + COUNT( * ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-7784
SELECT 39 * + COUNT ( * ) AS col2 FROM tab1
----
117

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col0 ) > - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT ALL - COUNT( * ) DIV + + 32 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - COUNT ( * ) / + + 32 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT DISTINCT - + COUNT( * ), + 71 AS col1 FROM tab0 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT - + COUNT ( * ), + 71 AS col1 FROM tab0 AS cor0
----
-3
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT + 5 + ( - col1 ) AS col0 FROM tab2
----
-46
-62
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE + col1 * 62 >= - 67
----
3

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE + col1 * 62 >= - 67
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT MIN( ALL col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7791
SELECT MIN ( ALL col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 78 + col0 AS col2 FROM tab0
----
165
175
93

query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT 73 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + SUM( 2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7796
SELECT + SUM ( 2 ) FROM tab2
----
6

query I rowsort
SELECT ALL - 32 * - col1 + + 50 AS col2 FROM tab2
----
1682
2194
2514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * col2 + 57 col0 FROM tab0
----
-225
-3
-537

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7799
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-7799
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT - col1 + col2 DIV + col2 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-7800
SELECT - col1 + col2 / + col2 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT 53 / 20 BETWEEN 46 * col1 AND ( NULL )
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) + col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT - 25 DIV + ( - col2 ) + + col0 * ( + col1 + + col1 * + 40 ) col2 FROM tab0
----
3977
49815
74909

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7805
SELECT - 25 / + ( - col2 ) + + col0 * ( + col1 + + col1 * + 40 ) col2 FROM tab0
----
3977
49815
74909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL col2 * col0 + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL col2 * col0 + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT ( COUNT( * ) ) + - ( 64 ) AS col0 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT ( COUNT ( * ) ) + - ( 64 ) AS col0 FROM tab0
----
-61

query III rowsort
SELECT * FROM tab0 WHERE 92 / col1 < 31
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - COUNT( * ) * COUNT( ALL + 25 / col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COUNT ( * ) * COUNT ( ALL + 25 / col0 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL - COUNT( * ) - 60 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - COUNT ( * ) - 60 FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT 16 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT 16 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT + 12 * + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + 12 * + COUNT ( * ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - COUNT( * ) + MIN( ALL - col0 ) * COUNT( * ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7813
SELECT - COUNT ( * ) + MIN ( ALL - col0 ) * COUNT ( * ) AS col0 FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL + ( + COUNT( DISTINCT - 62 ) ) * COUNT( * ) + + 45 AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL + ( + COUNT ( DISTINCT - 62 ) ) * COUNT ( * ) + + 45 AS col1 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col1 + col0 * + 88 AS col1 FROM tab2 AS cor0
----
4099
5709
6667

query I rowsort
SELECT - col1 * - 50 AS col2 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT ALL + col2 + col1 * 89 AS col0 FROM tab1
----
1342
4251
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT 23 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT 23 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col2 * - col1 + - 9 AS col2 FROM tab2 AS cor0
----
1164
3071
3877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT DISTINCT + 26 / 22 + - ( - col2 + CAST( NULL AS SIGNED ) ) / 51 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + 26 / 22 + - ( - col2 + CAST ( NULL AS INTEGER ) ) / 51 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( 60 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT + CAST( NULL AS SIGNED ) + 63 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT + CAST ( NULL AS INTEGER ) + 63 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT - - col2 + + 11 * col2 AS col0 FROM tab2 AS cor0
----
276
480
696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 - - 88 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - + MAX( ALL + 88 ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7828
SELECT - + MAX ( ALL + 88 ) AS col0 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + col1 * + col0 * col1 AS col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT col2 * + 43 AS col2 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( col0 * ( - col1 ) ) = col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 97 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 42 * + col1 AS col0 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL COUNT( ALL + + col1 ) * MIN( + col2 + + col0 * 75 ) FROM tab0
----
3516

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL COUNT ( ALL + + col1 ) * MIN ( + col2 + + col0 * 75 ) FROM tab0
----
3516

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT 26 * + ( - COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-7835
SELECT 26 * + ( - COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT col0 DIV + 78 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT col0 / + 78 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 18 AS col2 FROM tab1 cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7838
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col2 > - col2 + + col0 * col1 AND + 74 < col2
----

skipif mysql # not compatible
query III rowsort label-7838
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 > - col2 + + col0 * col1 AND + 74 < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7839
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-7839
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) BETWEEN NULL AND 71 + - 30 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT - + MIN( - 19 ) FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT - + MIN ( - 19 ) FROM tab1 cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 51 * + col2 AS col0 FROM tab2 WHERE NOT - 0 * col1 + 94 = + col2 * col0
----
-1173
-2040
-2958

query I rowsort
SELECT - 74 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + + - col1 col0 FROM tab0
----
3
63
83

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 21 > 72
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + col0 + + + col1 AS col2 FROM tab0
----
108
96
98

query II rowsort
SELECT ALL + + col0 AS col2, + col0 + - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT + col0 - 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - 53 AS col2 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT 73 + + SUM( + + col0 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT 73 + + SUM ( + + col0 ) FROM tab2 AS cor0
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 64 col0 FROM tab1
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL COUNT( ALL 69 ) * + 41 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL COUNT ( ALL 69 ) * + 41 FROM tab1
----
123

query I rowsort
SELECT DISTINCT - 1 + ( - 51 + - col0 ) AS col2 FROM tab0 WHERE - 92 IS NOT NULL
----
-139
-149
-67

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 ) > NULL
----

query I rowsort
SELECT ALL - 47 * 35 + + + col0 + - + col0 FROM tab0
----
-1645
-1645
-1645

query I rowsort
SELECT 78 FROM tab0 WHERE NULL NOT IN ( - 66 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 5 * + col2 IS NULL
----

query I rowsort
SELECT col2 - - - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + COUNT( + 6 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + COUNT ( + 6 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - COUNT( * ) * + COUNT( * ) - 64 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-7862
SELECT - COUNT ( * ) * + COUNT ( * ) - 64 FROM tab2
----
-73

query I rowsort
SELECT DISTINCT 11 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 86 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + 77 + + + MAX( + - col0 ) + - 88 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7864
SELECT ALL + 77 + + + MAX ( + - col0 ) + - 88 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) * col0 NOT IN ( - 4 )
----

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) * col0 NOT IN ( - 4 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT - ( - - 40 ) + - CAST( NULL AS SIGNED ) + - - COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT - ( - - 40 ) + - CAST ( NULL AS INTEGER ) + - - COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT + col0 DIV ( - col1 ) * - col0 FROM tab0
----
0
348
9409

skipif mysql # not compatible
query I rowsort label-7867
SELECT + col0 / ( - col1 ) * - col0 FROM tab0
----
0
348
9409

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT DISTINCT 67 + + + col1 + - col0 AS col1, col0 AS col0 FROM tab2
----
59
75
72
46
80
64

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 25 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + + 69 ) > - col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7872
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - col0, + col0 + col0 )
----

skipif mysql # not compatible
query III rowsort label-7872
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col0, + col0 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 49 + - col1 - ( - + 56 ) / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - + COUNT( ( + 84 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7875
SELECT - + COUNT ( ( + 84 ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col2 AS col2, 88 - - 38 AS col2 FROM tab1 AS cor0
----
59
126
68
126
96
126

query I rowsort
SELECT + 87 * + col1 * + col1 AS col1 FROM tab0
----
38367
570807
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT 55, + COUNT( * ) AS col0 FROM tab1
----
55
3

skipif mysql # not compatible
query II rowsort label-7878
SELECT 55, + COUNT ( * ) AS col0 FROM tab1
----
55
3

query I rowsort
SELECT - col1 * - 58 * 61 FROM tab1
----
166286
17690
49532

query I rowsort
SELECT - col1 * + + 53 AS col1 FROM tab0
----
-1113
-4293
-53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 NOT BETWEEN col0 AND ( + + 77 ) )
----
51
14
96

query I rowsort
SELECT DISTINCT - 90 * + + col2 AS col1 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab0 WHERE NOT ( col0 * + col1 IS NULL )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + - SUM( - - 31 ) AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7884
SELECT + - SUM ( - - 31 ) AS col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL col1 * + + col1 AS col0, + 33 AS col1 FROM tab2
----
2601
33
4489
33
5929
33

query III rowsort
SELECT * FROM tab1 WHERE NOT + 21 NOT BETWEEN NULL AND + - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT - - col2 DIV + col2 - col1 col1 FROM tab0 WHERE + 17 IS NOT NULL
----
-20
-80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7888
SELECT - - col2 / + col2 - col1 col1 FROM tab0 WHERE + 17 IS NOT NULL
----
-20
-80
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 53 * col1 * - - col0 IS NULL
----

query I rowsort
SELECT ALL + - col1 * - ( + col0 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + 66, - col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - 50 + - 78 col0 FROM tab0 AS cor0
----
-129
-149
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT - SUM( ALL + col2 ) * 96 col0 FROM tab2 AS cor0
----
-11616

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT DISTINCT - SUM ( ALL + col2 ) * 96 col0 FROM tab2 AS cor0
----
-11616

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + 56 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 56 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + 59 + - - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
1274
156
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + + SUM( + col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-7896
SELECT + + SUM ( + col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ( + 18 ) + - - COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7897
SELECT ( + 18 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
21

query II rowsort
SELECT ALL + 76 * + col1 AS col2, + col0 FROM tab0 AS cor0
----
1596
87
6156
15
76
97

query I rowsort
SELECT DISTINCT - col0 * + col2 * 25 AS col1 FROM tab1 AS cor0
----
-122400
-125375
-154700

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL - COUNT( * ) * MIN( ALL + col1 ) + + - 44 AS col1 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - COUNT ( * ) * MIN ( ALL + col1 ) + + - 44 AS col1 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT ALL - 37 + - ( - ( - col2 ) ) FROM tab2 AS cor0
----
-60
-77
-95

query I rowsort
SELECT + 92 + + col1 AS col1 FROM tab1
----
106
139
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT ( + 50 ) * - CAST( col0 AS SIGNED ) + col2 FROM tab0
----
-4340
-4751
-703

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT ( + 50 ) * - CAST ( col0 AS INTEGER ) + col2 FROM tab0
----
-4340
-4751
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT + COUNT( * ) + COUNT( * ) * + - CAST( NULL AS SIGNED ) * 4 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT + COUNT ( * ) + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * 4 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col1 * + ( - 78 ) * + + ( + col2 ) FROM tab0 WHERE - 83 IS NULL
----

query I rowsort
SELECT DISTINCT - 1 + - col1 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT + 65 DIV + col1 AS col2 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-7908
SELECT + 65 / + col1 AS col2 FROM tab1
----
1
13
4

query II rowsort
SELECT - - col0 AS col2, - col2 + col2 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7910
SELECT - col2 - 41 DIV + 77 AS col2, 49 FROM tab2 AS cor0
----
-23
49
-40
49
-58
49

skipif mysql # not compatible
query II rowsort label-7910
SELECT - col2 - 41 / + 77 AS col2, 49 FROM tab2 AS cor0
----
-23
49
-40
49
-58
49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 67 IS NULL
----

query I rowsort
SELECT ALL - - 43 AS col0 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - + 26 * - 21 * + col0 FROM tab1 AS cor0
----
27846
46410
49686

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT - col1 DIV - 89 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT - col1 / - 89 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + - 44 FROM tab1
----
-2068
-220
-616

query I rowsort
SELECT + col0 * 72 * - col2 * + col2 AS col1 FROM tab1
----
-21303720
-30296448
-33841152

query I rowsort
SELECT DISTINCT + 52 / col0 FROM tab1 WHERE NOT 82 + + ( - 95 ) + + col2 NOT BETWEEN + - 73 + col0 AND - col0
----

query II rowsort
SELECT - col1, col0 FROM tab0 cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 60 - - 64 FROM tab1 AS cor0 WHERE col0 + col1 + col0 - col2 NOT BETWEEN - + col1 * - 97 + - - 47 + - col0 + + col2 AND ( col2 * 68 )
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT IN ( - - ( - + col2 ) ) )
----

query I rowsort
SELECT ALL + 82 + + - col1 FROM tab2 AS cor0
----
15
31
5

query I rowsort
SELECT ALL - + 85 * + - col2 * - col2 FROM tab1 AS cor0
----
-295885
-393040
-783360

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT SUM( + col1 ) + + COUNT( * ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT SUM ( + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - 11 FROM tab2 AS cor0
----
506
704
825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT - 23 * + - col2 FROM tab1
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT 43 DIV - ( - ( + 36 ) ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7929
SELECT 43 / - ( - ( + 36 ) ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT ALL CAST( NULL AS SIGNED ) / + ( - col2 ) * - - 92 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL CAST ( NULL AS INTEGER ) / + ( - col2 ) * - - 92 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT COUNT( ALL + col1 ) * 88 DIV 15 AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7931
SELECT COUNT ( ALL + col1 ) * 88 / 15 AS col2 FROM tab0
----
17

query I rowsort
SELECT + col2 - col0 - - 57 AS col0 FROM tab1
----
102
31
34

query II rowsort
SELECT col0 - col2 AS col2, - 83 AS col2 FROM tab1
----
-45
-83
23
-83
26
-83

query I rowsort
SELECT ALL 58 * col2 + - col0 FROM tab2
----
1288
2256
3289

query II rowsort
SELECT ALL - col2 - + + col2 AS col2, 55 AS col2 FROM tab0
----
-198
55
-20
55
-94
55

query II rowsort
SELECT col2 + + col2 AS col1, + 15 AS col2 FROM tab1
----
118
15
136
15
192
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - - col0 * + col0 - - 35 IN ( + - col2 ) OR NOT col1 = NULL
----

query I rowsort
SELECT + 59 * 1 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT 88 * col2 DIV + - col0 FROM tab1
----
-165
-61
-65

skipif mysql # not compatible
query I rowsort label-7939
SELECT 88 * col2 / + - col0 FROM tab1
----
-165
-61
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT - 74 DIV - COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 74 / - COUNT ( * ) FROM tab2
----
24

query I rowsort
SELECT + 45 AS col2 FROM tab2 WHERE NOT - + col2 IS NULL
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT DISTINCT + AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT + AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + col1 * - col0 FROM tab0 AS cor0
----
5238
65610
98658

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT + col2 DIV - col2 col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7944
SELECT DISTINCT + col2 / - col2 col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7945
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( + ( - col1 ) AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7945
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( + ( - col1 ) AS REAL ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT + COUNT( * ) col0, - 66 FROM tab1 cor0
----
3
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7946
SELECT + COUNT ( * ) col0, - 66 FROM tab1 cor0
----
3
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL + - COUNT( - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + - COUNT ( - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL - SUM( ALL col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7948
SELECT ALL - SUM ( ALL col1 ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT - + 41 DIV - col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT - + 41 / - col0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - MAX( - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - MAX ( - col0 ) AS col2 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7952
SELECT DISTINCT * FROM tab2 WHERE + - ( + - 59 ) NOT BETWEEN ( - CAST( + ( col1 ) AS SIGNED ) * - col2 - + + col1 * - col2 + - col2 * col0 * col0 ) AND col1
----
46
51
23

skipif mysql # not compatible
query III rowsort label-7952
SELECT DISTINCT * FROM tab2 WHERE + - ( + - 59 ) NOT BETWEEN ( - CAST ( + ( col1 ) AS INTEGER ) * - col2 - + + col1 * - col2 + - col2 * col0 * col0 ) AND col1
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 + col1 + + - 59 + + ( - col2 ) + - col0 col1 FROM tab0
----
-174
-293
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + MAX( - 23 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + MAX ( - 23 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT - 59 * 44 FROM tab2 AS cor0
----
-2596
-2596
-2596

query I rowsort
SELECT 92 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0 + + - col1 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + col2 + + + 21 + + 74 AS col0 FROM tab2
----
118
135
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7961
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + CAST ( NULL AS REAL ) * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 6 + - - 88 + 72 AS col0 FROM tab0 AS cor0
----
166
166
166

query I rowsort
SELECT 10 + - col0 FROM tab1 AS cor0
----
-41
-75
-81

query I rowsort
SELECT ALL + + 63 * - col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

query I rowsort
SELECT DISTINCT + col2 * + + 12 + + col2 AS col1 FROM tab1 AS cor0
----
1248
767
884

query I rowsort
SELECT DISTINCT col1 - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ( + COUNT( * ) ) + + - ( + + 17 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7967
SELECT ( + COUNT ( * ) ) + + - ( + + 17 ) FROM tab2 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT + - col1 + + - 58 + - - 56 DIV + 23 FROM tab1 AS cor0
----
-103
-61
-70

skipif mysql # not compatible
query I rowsort label-7968
SELECT + - col1 + + - 58 + - - 56 / + 23 FROM tab1 AS cor0
----
-103
-61
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 col1 FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL - SUM( DISTINCT + ( col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - SUM ( DISTINCT + ( col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <> - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL + COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL - MIN( ALL - ( + - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - MIN ( ALL - ( + - col1 ) ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - col0 * - - 35 * 0 + + col1 * 70 * col0 - + - col0 * + + 88 * + 91 * + - 76 * 35 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - col0 * - - 35 * 0 + + col1 * 70 * col0 - + - col0 * + + 88 * + 91 * + - 76 * 35 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 - ( + col0 ) AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 78 * - + col0 AS col1 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT - col1 - 40 AS col2 FROM tab1 AS cor0
----
-45
-54
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) - + 48 + + - COUNT( * ) * + + 27 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) - + 48 + + - COUNT ( * ) * + + 27 FROM tab1 AS cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT DISTINCT - 31 * + 99 * - - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-3069

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT - 31 * + 99 * - - col2 / col2 AS col1 FROM tab1 AS cor0
----
-3069

onlyif mysql # DIV for integer division: 
query II rowsort label-7981
SELECT ALL + - col2 DIV 40, - col2 DIV - - 39 AS col2 FROM tab0 AS cor0
----
-1
-1
-2
-2
0
0

skipif mysql # not compatible
query II rowsort label-7981
SELECT ALL + - col2 / 40, - col2 / - - 39 AS col2 FROM tab0 AS cor0
----
-1
-1
-2
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 AS col2, + 42 FROM tab2 AS cor0
----
-46
42
-64
42
-75
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 + + col2 - - 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col0 / 82 * + col1 * + + 3 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - SUM( DISTINCT + ( 69 ) ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7987
SELECT - SUM ( DISTINCT + ( 69 ) ) FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 66 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 63 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - COUNT( ALL - 41 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7991
SELECT - COUNT ( ALL - 41 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 - - - col1 / + 80 + + - col1 col0 FROM tab2 WHERE NOT - 92 + - 48 + + 76 + + col2 * 87 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT ALL - ( - 36 ) + - col2 FROM tab1
----
-23
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 0 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7997
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - CAST( col0 AS SIGNED ) <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7997
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - CAST ( col0 AS INTEGER ) <> - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT COUNT( * ) * - 34 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT COUNT ( * ) * - 34 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 96 + col0 AS col1 FROM tab2
----
142
160
171

query I rowsort
SELECT - 62 + + 98 + - + col0 AS col0 FROM tab0
----
-51
-61
21

query I rowsort
SELECT col1 + - col2 + - 65 AS col2 FROM tab2
----
-28
-37
-56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 5 IS NULL
----

query I rowsort
SELECT - col2 - - col2 + col1 * 25 AS col1 FROM tab0 AS cor0
----
2025
25
525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + col0 col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - COUNT( * ) - + 55 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8006
SELECT - COUNT ( * ) - + 55 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ( 82 ) - + - ( - - 76 ) * COUNT( ALL + col0 ) AS col2 FROM tab0
----
310

skipif mysql # not compatible
query I rowsort label-8007
SELECT ( 82 ) - + - ( - - 76 ) * COUNT ( ALL + col0 ) AS col2 FROM tab0
----
310

onlyif mysql # aggregate syntax: 
query III rowsort label-8008
SELECT ALL 4 AS col2, - 18 + + COUNT( * ) AS col0, - 37 + ( + 61 ) col2 FROM tab2
----
4
-15
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8008
SELECT ALL 4 AS col2, - 18 + + COUNT ( * ) AS col0, - 37 + ( + 61 ) col2 FROM tab2
----
4
-15
24

query I rowsort
SELECT ALL - col1 + + + col0 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT DISTINCT COUNT( * ) * + ( - - 2 ) AS col1, - 87 AS col0 FROM tab1
----
6
-87

skipif mysql # not compatible
query II rowsort label-8010
SELECT DISTINCT COUNT ( * ) * + ( - - 2 ) AS col1, - 87 AS col0 FROM tab1
----
6
-87

query II rowsort
SELECT col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + COUNT( * ) * 15 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + COUNT ( * ) * 15 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 > NULL
----

query I rowsort
SELECT DISTINCT 48 * col2 FROM tab1
----
2832
3264
4608

query I rowsort
SELECT ALL + + ( - 38 ) FROM tab1 AS cor0
----
-38
-38
-38

query II rowsort
SELECT 7, ( + - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
7
-23
7
-40
7
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 95 col1 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8019
SELECT 29 DIV + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8019
SELECT 29 / + COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 * - - 54 col0 FROM tab2
----
-126684
-266112
-271350

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab1
----
-72

query I rowsort
SELECT 75 AS col0 FROM tab2 WHERE ( + 8 ) BETWEEN 92 AND col1 - - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT + 6 DIV - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT + 6 / - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT - ( + - MAX( DISTINCT 34 ) ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8024
SELECT - ( + - MAX ( DISTINCT 34 ) ) AS col2 FROM tab2 AS cor0
----
34

query I rowsort
SELECT + 44 AS col0 FROM tab2 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT + MIN( ALL + + col0 ) * - 41 FROM tab1 cor0
----
-2091

skipif mysql # not compatible
query I rowsort label-8026
SELECT + MIN ( ALL + + col0 ) * - 41 FROM tab1 cor0
----
-2091

query II rowsort
SELECT + 72 + ( + 51 ) AS col1, - 87 + col2 + + col1 FROM tab2 AS cor0
----
123
-13
123
30
123
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + COUNT( * ) + - 81 AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + COUNT ( * ) + - 81 AS col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + COUNT( * ) + ( + + 97 ) * + 95 * 13 FROM tab0 cor0
----
119798

skipif mysql # not compatible
query I rowsort label-8030
SELECT + COUNT ( * ) + ( + + 97 ) * + 95 * 13 FROM tab0 cor0
----
119798

query I rowsort
SELECT - - 68 + - col1 FROM tab2 cor0
----
-9
1
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT ALL - 45 AS col1 FROM tab1
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col0 ) <> - 4 + + col1 + ( + 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) FROM tab0 WHERE NOT NULL = - 73 * col1
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) FROM tab0 WHERE NOT NULL = - 73 * col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 51 IN ( - col2 + col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 3 ) FROM tab1
----
3

query II rowsort
SELECT - ( col1 ) AS col0, col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-1
98
-21
-11
-81
-34

query I rowsort
SELECT ALL + + 89 * + - col2 + - + ( + 42 ) - - col2 FROM tab2 AS cor0
----
-2066
-3562
-5146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 74 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 74 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN + col2 * col2 AND + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN + col2 * col2 AND + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8042
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + + col2 * col0 * - 88 * 38 FROM tab0 AS cor0
----
-2357520
-2909280
-32112432

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 + + + ( col0 ) = NULL )
----

query I rowsort
SELECT col2 + 91 FROM tab2 cor0
----
114
131
149

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT + - 63 * - col1 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

query II rowsort
SELECT 85 AS col2, 48 FROM tab1 AS cor0
----
85
48
85
48
85
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = + col2 + 93 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - 99 ) * - + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL 51 * COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL 51 * COUNT ( * ) FROM tab0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 97 ) col2 FROM tab1
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 91 + + 23 FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT - MIN( ALL - + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - MIN ( ALL - + col0 ) AS col2 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 18 + + ( + col1 ) + + col1 col2, col1 AS col2 FROM tab2 AS cor0
----
116
67
136
77
84
51

query I rowsort
SELECT DISTINCT + col2 * + col1 - - 74 AS col0 FROM tab1 AS cor0
----
1418
3270
369

query I rowsort
SELECT DISTINCT + col2 * - + col1 + + col2 AS col1 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + 21 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 11 + + 69 AS col2 FROM tab0 cor0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT + COUNT( - col0 ) DIV + 53 - - - 32 AS col0 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + COUNT ( - col0 ) / + 53 - - - 32 AS col0 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT ALL + - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT + 64 + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - 11 * + COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 11 * + COUNT ( * ) FROM tab2 AS cor0
----
-33

query II rowsort
SELECT ALL col2 AS col0, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL - MIN( ALL col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - MIN ( ALL col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT + SUM( DISTINCT 10 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8068
SELECT + SUM ( DISTINCT 10 ) FROM tab0
----
10

query II rowsort
SELECT col0 AS col0, 28 FROM tab1
----
51
28
85
28
91
28

query I rowsort
SELECT DISTINCT 9 * - col1 FROM tab2
----
-459
-603
-693

query II rowsort
SELECT col1 * + col1 * - 14 AS col0, 92 - + - col1 FROM tab0
----
-14
93
-6174
113
-91854
173

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 13 * + ( + + col1 ) NOT IN ( col0 - ( + col1 ) + col0 )
----

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT + SUM( + - 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-8074
SELECT + SUM ( + - 77 ) FROM tab0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT MIN( ALL - 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8075
SELECT MIN ( ALL - 51 ) FROM tab0
----
-51

query I rowsort
SELECT ALL - - 90 AS col0 FROM tab2 cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT - - col1 DIV + col1 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8077
SELECT - - col1 / + col1 AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT - COUNT( DISTINCT ( - - col0 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - COUNT ( DISTINCT ( - - col0 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + SUM( col2 ) + 91 AS col1 FROM tab2 cor0
----
212

skipif mysql # not compatible
query I rowsort label-8079
SELECT + SUM ( col2 ) + 91 AS col1 FROM tab2 cor0
----
212

query I rowsort
SELECT + + col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT - 69 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - 77 * + - COUNT( * ) + - SUM( - col1 ) + - 75 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - 77 * + - COUNT ( * ) + - SUM ( - col1 ) + - 75 FROM tab1
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT ALL + ( + 21 ) DIV - col2 + 9 AS col1 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + ( + 21 ) / - col2 + 9 AS col1 FROM tab1
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL 66 * - + CAST( NULL AS SIGNED ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL 66 * - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - + col1 ) ) + + col0 col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT - - col0 * - col0 + col2 FROM tab1 cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL COUNT( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL COUNT ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT - + col2 - - col2 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT - + col2 - - col2 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT COUNT( - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8091
SELECT COUNT ( - - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col1 * col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col1 * col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT ALL - + 12 DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - + 12 / - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4

query I rowsort
SELECT 67 + ( 29 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 5 AND NULL
----

query I rowsort
SELECT ( + 24 ) AS col2 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT 88 * - col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT - + COUNT( - - 55 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - + COUNT ( - - 55 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT + SUM( + + 48 ) AS col2 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-8099
SELECT + SUM ( + + 48 ) AS col2 FROM tab0 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT ALL + ( + - col1 ) DIV - + col1 + + + ( col0 ) col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8100
SELECT ALL + ( + - col1 ) / - + col1 + + + ( col0 ) col0 FROM tab0 AS cor0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 39 AS col2, col2 col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-39
23
-39
40
-39
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT 64 * - MIN( ALL + + ( - - col0 ) ) AS col1 FROM tab2 WHERE NOT col1 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT 64 * - MIN ( ALL + + ( - - col0 ) ) AS col1 FROM tab2 WHERE NOT col1 = ( NULL )
----
NULL

query II rowsort
SELECT - col0 * col2, ( + col2 ) FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT + + ( + 69 ) DIV 21 AS col0 FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8106
SELECT + + ( + 69 ) / 21 AS col0 FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL 82 * + 21 col2 FROM tab2 AS cor0 WHERE + CAST( - 93 AS SIGNED ) IS NOT NULL
----
1722
1722
1722

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT ALL 82 * + 21 col2 FROM tab2 AS cor0 WHERE + CAST ( - 93 AS INTEGER ) IS NOT NULL
----
1722
1722
1722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + + COUNT( * ) + + MIN( ALL 21 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + + COUNT ( * ) + + MIN ( ALL 21 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-8110
SELECT - col0 + - 31 DIV col0 DIV + - col0, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
query II rowsort label-8110
SELECT - col0 + - 31 / col0 / + - col0, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT ALL + col0, + col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + ( 52 ) AS col2 FROM tab0 WHERE NOT + + 12 * col1 IS NOT NULL
----

query II rowsort
SELECT ( + col0 ), col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL 1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT - 11 - CAST( NULL AS SIGNED ) * - + col1 + - 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT - 11 - CAST ( NULL AS INTEGER ) * - + col1 + - 34 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8116
SELECT ALL - CAST( NULL AS SIGNED ) + - + 79 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 79 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col0 AS col0 FROM tab2
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col1 NOT BETWEEN - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 53 + + col0 col1 FROM tab2
----
145
181
203

query I rowsort
SELECT + col0 + - ( - + 18 ) AS col1 FROM tab0
----
105
115
33

query II rowsort
SELECT DISTINCT + 80, - 81 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE - 36 > - col1
----
-32

query I rowsort
SELECT ALL - ( ( + + ( col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 86 * - col0 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT DISTINCT + 36 * + - 68 FROM tab1
----
-2448

query I rowsort
SELECT + ( 50 ) * + + 7 FROM tab0
----
350
350
350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + 47 col1 FROM tab2 AS cor0
----
2397
3149
3619

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT + col1 * + ( 68 ) AS col0 FROM tab2
----
3468
4556
5236

query II rowsort
SELECT - col0, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT 73 NOT BETWEEN col0 AND - col0
----

query I rowsort
SELECT DISTINCT 29 * - + col0 * + col1 FROM tab0
----
-2813
-35235
-52983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - 21 * + col0 AS col1 FROM tab1 AS cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - - ( COUNT( * ) ) + - 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8137
SELECT - - ( COUNT ( * ) ) + - 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
-9

query I rowsort
SELECT - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col2, 12 AS col1 FROM tab2 AS cor0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-8140
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col2, 12 AS col1 FROM tab2 AS cor0
----
NULL
12
NULL
12
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 46 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 46 < NULL
----
0

query I rowsort
SELECT + - col0 * - + col0 + + col0 FROM tab1 AS cor0
----
2652
7310
8372

query II rowsort
SELECT DISTINCT + col2, + col0 * col0 FROM tab0
----
10
7569
47
225
99
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL MAX ( + col2 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8145
SELECT ALL + CAST( NULL AS SIGNED ) + 30 - - col0 AS col1, 88 AS col1 FROM tab1
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL + CAST ( NULL AS INTEGER ) + 30 - - col0 AS col1, 88 AS col1 FROM tab1
----
NULL
88
NULL
88
NULL
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + ( + col1 ) + + 32 AS col1 FROM tab1
----
126
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8148
SELECT + SUM ( - col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + 47 + + + 44 + + 62 AS col2 FROM tab0
----
153

query I rowsort
SELECT - - col0 * - 52 - + col0 AS col2 FROM tab0 AS cor0
----
-4611
-5141
-795

query I rowsort
SELECT + ( - 27 ) * - col0 + + col2 - - - col0 AS col2 FROM tab2 AS cor0
----
1219
1704
2008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + - col1 - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + - col1 - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + MAX( DISTINCT - ( - - 3 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8153
SELECT + MAX ( DISTINCT - ( - - 3 ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, 99 * + ( col0 ) AS col1 FROM tab0
----
10
8613
47
1485
99
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 7 / - col0 IS NULL
----

query I rowsort
SELECT ALL - 79 * col1 AS col2 FROM tab2
----
-4029
-5293
-6083

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8160
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 62 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT - CAST ( NULL AS REAL ) * 62 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT - 41 DIV - ( COUNT( * ) ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - 41 / - ( COUNT ( * ) ) FROM tab1
----
13

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * + col2 col0 FROM tab0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 58 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * col2 ) <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0 * col1, - col0 * 82 * - 8 AS col0 FROM tab2
----
2346
30176
4928
41984
5025
49200

query II rowsort
SELECT DISTINCT - - col0, - col0 FROM tab0 WHERE + - 41 / - col2 + - col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + - 43 AS col2 FROM tab0
----
-124
-44
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - 92 * - - 99 + 57 - COUNT( * ) FROM tab2 AS cor0
----
-9054

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - 92 * - - 99 + 57 - COUNT ( * ) FROM tab2 AS cor0
----
-9054

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - 62 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT + COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - ( + + ( + 25 ) ) FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT - COUNT( + col1 ) - + COUNT( * ) + + COUNT( * ) + + COUNT( * ) + 86 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8176
SELECT - COUNT ( + col1 ) - + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) + 86 FROM tab1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT - 38 * col0 - + ( - 71 ) DIV col2 AS col1 FROM tab2
----
-1745
-2431
-2849

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 38 * col0 - + ( - 71 ) / col2 AS col1 FROM tab2
----
-1745
-2431
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 56 + COUNT( * ) - - ( 69 ) FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-8178
SELECT 56 + COUNT ( * ) - - ( 69 ) FROM tab1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT COUNT( * ) + + 8 - - - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8179
SELECT COUNT ( * ) + + 8 - - - COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT ALL - col0 + 8 FROM tab2
----
-38
-56
-67

query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 AS col1 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT + col2 + 66 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
191
258
260

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT DISTINCT SUM( + + ( + 4 ) ) AS col0, MIN( DISTINCT + + 98 ) FROM tab1 AS cor0
----
12
98

skipif mysql # not compatible
query II rowsort label-8183
SELECT DISTINCT SUM ( + + ( + 4 ) ) AS col0, MIN ( DISTINCT + + 98 ) FROM tab1 AS cor0
----
12
98

query I rowsort
SELECT ( + - 65 ) AS col2 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
11

query II rowsort
SELECT DISTINCT - col2, 96 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT - + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8189
SELECT - + col2 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 50 col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT ALL - col1 * + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query III rowsort
SELECT * FROM tab1 WHERE NOT 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + - 18 AS col2 FROM tab0
----
-8
29
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8195
SELECT ALL 41 DIV ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL 41 / ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - COUNT( * ) * 4 + - COUNT( * ) AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8196
SELECT - COUNT ( * ) * 4 + - COUNT ( * ) AS col1 FROM tab1
----
-15

query I rowsort
SELECT - ( col1 ) + - + 86 AS col2 FROM tab2
----
-137
-153
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - 18 + - - COUNT( * ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - 18 + - - COUNT ( * ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 76 IS NULL
----
0

query I rowsort
SELECT - 63 * col0 AS col2 FROM tab2 AS cor0
----
-2898
-4032
-4725

query II rowsort
SELECT + col0 * - col2 AS col0, - col1 FROM tab0 AS cor0
----
-705
-81
-870
-21
-9603
-1

query I rowsort
SELECT col0 * + ( col2 ) + col1 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col1 * - 76 FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT ALL - col1 + - + 71 FROM tab1 AS cor0
----
-118
-76
-85

query I rowsort
SELECT DISTINCT - - 74 + - - col2 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
121
173
84

query I rowsort
SELECT ALL - 39 - col0 FROM tab2 AS cor0
----
-103
-114
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 81 col1 FROM tab2 AS cor0
----
14
30
4

query I rowsort
SELECT ALL - - col0 * - ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 93 * ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + 57 FROM tab0 AS cor0
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT + + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT + + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 4 ) col0 FROM tab0 AS cor0
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / - col2 IS NULL
----

query II rowsort
SELECT ALL 56, col2 FROM tab2
----
56
23
56
40
56
58

query I rowsort
SELECT DISTINCT + col2 * - col2 * - col0 * - 5 * col1 - - col2 + + col0 - col0 * + col2 * - ( - 63 ) FROM tab0
----
-13464028
-5358278
-968213

query I rowsort
SELECT - 40 * - col2 * - col1 FROM tab1
----
-11800
-127840
-53760

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - MAX( DISTINCT ( - 73 ) ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8216
SELECT - MAX ( DISTINCT ( - 73 ) ) FROM tab1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT ALL 97 AS col1, + 80 AS col0 FROM tab2
----
97
80
97
80
97
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8220
SELECT SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT COUNT( - + ( col2 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8221
SELECT DISTINCT COUNT ( - + ( col2 ) ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT 61 AS col1, + col0 * - - 58 + col0 AS col2 FROM tab1 AS cor0
----
61
3009
61
5015
61
5369

query I rowsort
SELECT + 29 * - col2 - col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT + MIN( - 73 ) AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8224
SELECT + MIN ( - 73 ) AS col2 FROM tab0 AS cor0
----
-73

query II rowsort
SELECT 65, - col2 * + col0 * - + 8 * - + 39 * + col0 AS col2 FROM tab1 AS cor0
----
65
-132997800
65
-175689696
65
-77905152

query I rowsort
SELECT ALL - - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL - MIN( ALL + + 86 ) AS col1 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - MIN ( ALL + + 86 ) AS col1 FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - ( COUNT( * ) ) * 21 - - - 99 + + 39 AS col2 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8229
SELECT - ( COUNT ( * ) ) * 21 - - - 99 + + 39 AS col2 FROM tab1 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8230
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) >= 35 * + 86 - + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8230
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) >= 35 * + 86 - + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT ALL - COUNT( * ) * + 82 AS col0, - 81 FROM tab0 cor0
----
-246
-81

skipif mysql # not compatible
query II rowsort label-8231
SELECT ALL - COUNT ( * ) * + 82 AS col0, - 81 FROM tab0 cor0
----
-246
-81

query II rowsort
SELECT + col0, 50 FROM tab0
----
15
50
87
50
97
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 col0 FROM tab0 WHERE col0 + - col0 + - col2 < + col2
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT MAX( + ( - col2 ) ) + + COUNT( * ) * + SUM( + + 1 ) + 43 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT MAX ( + ( - col2 ) ) + + COUNT ( * ) * + SUM ( + + 1 ) + 43 FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col1 FROM tab2
----
-27
-27
-27

query II rowsort
SELECT + col1 AS col2, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + ( COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8237
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8238
SELECT ALL col1 + 48 + - + 16 + + col1 * - 49 * - CAST( - + 30 AS SIGNED ) + + - col1 DIV + 35 FROM tab1
----
-20534
-69012
-7313

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL col1 + 48 + - + 16 + + col1 * - 49 * - CAST ( - + 30 AS INTEGER ) + + - col1 / + 35 FROM tab1
----
-20534
-69012
-7313

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - MIN( col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8239
SELECT - MIN ( col2 ) FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col1 / + - col1 * - - col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 25 + - - col2 AS col2 FROM tab0 cor0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL + COUNT( * ) FROM tab0 WHERE col0 * + 71 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + COUNT ( * ) FROM tab0 WHERE col0 * + 71 + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - COUNT( * ) * 43 AS col0 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-8244
SELECT - COUNT ( * ) * 43 AS col0 FROM tab2
----
-129

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * col2 + col1 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - 28 * 72 FROM tab0
----
-2016
-2016
-2016

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 90 + 90 AND 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 85 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8251
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 85 col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8252
SELECT * FROM tab1 WHERE col0 * - CAST( 66 AS SIGNED ) NOT IN ( + col0 + + col2 * 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8252
SELECT * FROM tab1 WHERE col0 * - CAST ( 66 AS INTEGER ) NOT IN ( + col0 + + col2 * 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 / 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 + 13 * col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8255
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8255
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - CAST ( + col2 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT ALL - CAST( NULL AS SIGNED ) + AVG ( col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - CAST ( NULL AS INTEGER ) + AVG ( col2 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT MAX( DISTINCT - col0 ) DIV - COUNT( * ) col2 FROM tab1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT MAX ( DISTINCT - col0 ) / - COUNT ( * ) col2 FROM tab1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT col0 + - col2 col0 FROM tab0 WHERE col2 - col0 BETWEEN + col1 AND ( - CAST( NULL AS SIGNED ) + + 57 / - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8258
SELECT col0 + - col2 col0 FROM tab0 WHERE col2 - col0 BETWEEN + col1 AND ( - CAST ( NULL AS INTEGER ) + + 57 / - col1 )
----

query I rowsort
SELECT - col0 + - 72 FROM tab1
----
-123
-157
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL + COUNT( * ) - - COUNT( * ) * - COUNT( col0 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * - COUNT ( col0 ) AS col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT 91 + SUM( col0 - + col2 ) FROM tab2
----
155

skipif mysql # not compatible
query I rowsort label-8261
SELECT 91 + SUM ( col0 - + col2 ) FROM tab2
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT DISTINCT 23 AS col1 FROM tab1 WHERE col1 * 1 - ( - CAST( - 37 AS SIGNED ) - CAST( - col2 AS SIGNED ) ) * + col1 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT 23 AS col1 FROM tab1 WHERE col1 * 1 - ( - CAST ( - 37 AS INTEGER ) - CAST ( - col2 AS INTEGER ) ) * + col1 >= ( NULL )
----

query I rowsort
SELECT + 48 + col1 FROM tab2
----
115
125
99

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab0 WHERE NULL <= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 - - 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 42 * col2 - + 79 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT - col2 + - 60 DIV col2 AS col0 FROM tab1
----
-60
-68
-96

skipif mysql # not compatible
query I rowsort label-8267
SELECT - col2 + - 60 / col2 AS col0 FROM tab1
----
-60
-68
-96

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT 61 * + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - 5 + + col2 AS col2 FROM tab1
----
54
63
91

query I rowsort
SELECT + 5 * + col2 + + col2 FROM tab0
----
282
594
60

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL MAX( col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL MAX ( col0 ) AS col2 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 NOT IN ( 88 / - 33 )
----

query I rowsort
SELECT DISTINCT + 88 + 69 * - AVG ( 26 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 43 )
----
NULL

query I rowsort
SELECT ALL 63 AS col2 FROM tab1 AS cor0 WHERE - 36 = ( ( col0 ) + + col1 / 23 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 + 71 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL + MAX( DISTINCT + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + MAX ( DISTINCT + 10 ) FROM tab1
----
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8279
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT ALL col0 * - 92 AS col2 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT ALL ( col1 ) * 39 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + 1 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( col1 ) ) BETWEEN + col1 AND 7
----
2

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 1 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( col1 ) ) BETWEEN + col1 AND 7
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT - + MAX( ALL CAST( - 14 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8284
SELECT - + MAX ( ALL CAST ( - 14 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( 85 )
----
85
5
59

query I rowsort
SELECT col2 * col0 + - 59 AS col0 FROM tab1 cor0
----
4837
4956
6129

query I rowsort
SELECT 10 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 84 col0 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT + col2 * col1 - col0 FROM tab0 AS cor0 WHERE col0 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COUNT( * ) * 75 + + MIN( col0 - ( col2 ) * - 27 ) FROM tab1 AS cor0
----
1903

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) * 75 + + MIN ( col0 - ( col2 ) * - 27 ) FROM tab1 AS cor0
----
1903

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8291
SELECT CAST( col0 AS SIGNED ) DIV 18 + + col2 * col0 AS col0 FROM tab0
----
705
874
9608

skipif mysql # not compatible
query I rowsort label-8291
SELECT CAST ( col0 AS INTEGER ) / 18 + + col2 * col0 AS col0 FROM tab0
----
705
874
9608

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT COUNT( * ) * 50 AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT COUNT ( * ) * 50 AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----
0

query I rowsort
SELECT + col1 FROM tab2 WHERE ( + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT 88 DIV - SUM( DISTINCT + col1 ) + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8294
SELECT 88 / - SUM ( DISTINCT + col1 ) + COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 61 + col1 AS col2 FROM tab1
----
108
66
75

query I rowsort
SELECT DISTINCT col0 + - 39 FROM tab0
----
-24
48
58

query I rowsort
SELECT DISTINCT 57 FROM tab2 WHERE NOT NULL IN ( + col1 * + col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + COUNT( * ) + + - 85 * COUNT( + 4 ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + COUNT ( * ) + + - 85 * COUNT ( + 4 ) FROM tab0
----
-252

query I rowsort
SELECT DISTINCT + col0 + - + col1 + - col0 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - SUM ( col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND ( - col2 + col0 ) = NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab0 WHERE ( 63 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - col1 DIV - 11 - - col0 FROM tab0
----
22
88
97

skipif mysql # not compatible
query I rowsort label-8306
SELECT - col1 / - 11 - - col0 FROM tab0
----
22
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT 49 * COUNT( * ) FROM tab0 WHERE ( NOT - 90 + col2 NOT BETWEEN 26 AND col2 + col2 * ( 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT 49 * COUNT ( * ) FROM tab0 WHERE ( NOT - 90 + col2 NOT BETWEEN 26 AND col2 + col2 * ( 2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT ( - - SUM( DISTINCT - col0 ) ) - 22 col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8308
SELECT DISTINCT ( - - SUM ( DISTINCT - col0 ) ) - 22 col1 FROM tab2 AS cor0
----
-207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 - + + col2 / 75 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 43 + 72 + + + 11 - - 63 * - col1 FROM tab0 AS cor0
----
-1197
-4977
63

query II rowsort
SELECT + col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT col0 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 * col2 AND ( NULL ) OR NOT - col0 = 75 + - col1 * 83
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8313
SELECT + + col1 AS col0, + CAST( col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

skipif mysql # not compatible
query II rowsort label-8313
SELECT + + col1 AS col0, + CAST ( col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

query II rowsort
SELECT DISTINCT + - 63 AS col1, + 89 FROM tab1 AS cor0
----
-63
89

query I rowsort
SELECT + col2 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - col2 < 32
----

query I rowsort
SELECT + ( 42 ) AS col2 FROM tab0 AS cor0
----
42
42
42

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 2 ) + - 46 >= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT - ( SUM( ALL CAST( 33 AS SIGNED ) ) ) AS col0 FROM tab2 WHERE NOT NULL >= ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - ( SUM ( ALL CAST ( 33 AS INTEGER ) ) ) AS col0 FROM tab2 WHERE NOT NULL >= ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 5 AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT col2 * + 19 * - 77 * CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-144837
-307230
-5569641

skipif mysql # not compatible
query I rowsort label-8322
SELECT col2 * + 19 * - 77 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-144837
-307230
-5569641

query I rowsort
SELECT ALL 34 * + + 87 * 31 AS col0 FROM tab1
----
91698
91698
91698

query I rowsort
SELECT ALL ( 44 ) * - 57 FROM tab0
----
-2508
-2508
-2508

query II rowsort
SELECT col1 * 79 AS col1, + col0 FROM tab0
----
1659
87
6399
15
79
97

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 >= + ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT + 75 DIV col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + 75 / col0 AS col2 FROM tab2
----
1

query II rowsort
SELECT ( 99 ) AS col0, - col0 FROM tab0
----
99
-15
99
-87
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT 17 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8329
SELECT 17 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT - 7 DIV MIN( - - col0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT - 7 / MIN ( - - col0 ) FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8334
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + ( + + 98 ) FROM tab2 AS cor0
----
98
98
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col2 * + col0 / + col1 + + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + ( MAX( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + ( MAX ( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 * - 71 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT col1 - + 49 FROM tab0
----
-28
-48
32

query I rowsort
SELECT ALL + col2 * - + col1 - col2 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT - col0 * + 30 + - - 65 * + col0 FROM tab2
----
1610
2240
2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT COUNT( * ) + - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT COUNT ( * ) + - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab1 cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT col2 - + ( - 50 ) DIV - col2 - - col1 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT col2 - + ( - 50 ) / - col2 - - col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - MAX( DISTINCT + 9 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - MAX ( DISTINCT + 9 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT - CAST( - 83 AS SIGNED ) AS col2 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8348
SELECT - CAST ( - 83 AS INTEGER ) AS col2 FROM tab2
----
83
83
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 51 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL - col0 * - - col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 * 84 - - - col1 * - - col1 + - col1 + - - 82 col1 FROM tab0
----
-1
8396
-21
460
-81
-2612

query I rowsort
SELECT col0 * 61 AS col2 FROM tab1
----
3111
5185
5551

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8357
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8358
SELECT CAST( NULL AS DECIMAL ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT CAST ( NULL AS REAL ) * + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( + ( col2 ) ) * - col1 + + col1 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( * ) * + 22 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( * ) * + 22 AS col1 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - 13 * - MIN( + + col0 ) - - - ( COUNT( * ) ) * - 55 FROM tab1 WHERE NOT 98 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT - 13 * - MIN ( + + col0 ) - - - ( COUNT ( * ) ) * - 55 FROM tab1 WHERE NOT 98 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8362
SELECT DISTINCT - + COUNT( - CAST( - + col0 AS DECIMAL ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - + COUNT ( - CAST ( - + col0 AS REAL ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - + MAX( + - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8363
SELECT - + MAX ( + - col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + + col1 * - 27 FROM tab0 cor0
----
-2187
-27
-567

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8365
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - + col2 - + ( + col2 ) >= 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT COUNT( + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( + + col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col2 * + + col2 + col2 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT - 85 DIV - col0 + col2 + col1 AS col1 FROM tab1 AS cor0
----
111
115
65

skipif mysql # not compatible
query I rowsort label-8371
SELECT - 85 / - col0 + col2 + col1 AS col1 FROM tab1 AS cor0
----
111
115
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 5 col1, 54 AS col1 FROM tab0 cor0
----
26
54
6
54
86
54

query I rowsort
SELECT DISTINCT - - 90 + - col0 FROM tab2 cor0
----
15
26
44

query I rowsort
SELECT - col2 * + 21 - ( - + col1 ) + + - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-1293
-529
-904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( col2 ) + + ( + 30 ) - col0 col1 FROM tab1 AS cor0
----
-1365
-3257
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL - 99 * - COUNT( * ) * COUNT( * ) * 97 FROM tab0 AS cor0
----
86427

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - 99 * - COUNT ( * ) * COUNT ( * ) * 97 FROM tab0 AS cor0
----
86427

query I rowsort
SELECT col2 + 80 * + 35 AS col1 FROM tab1 AS cor0
----
2859
2868
2896

query I rowsort
SELECT 37 + + 53 AS col1 FROM tab2
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8379
SELECT MAX( - 8 ) + COUNT( * ) + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8379
SELECT MAX ( - 8 ) + COUNT ( * ) + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 9 + + col2 AS col1 FROM tab2
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT - MAX( DISTINCT col0 ) + - MIN( - col2 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - MAX ( DISTINCT col0 ) + - MIN ( - col2 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COUNT( * ) + + COUNT( ALL - col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8382
SELECT COUNT ( * ) + + COUNT ( ALL - col2 ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8383
SELECT * FROM tab1 WHERE + 95 NOT IN ( CAST( NULL AS SIGNED ) * - + 0 + - col0 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8383
SELECT * FROM tab1 WHERE + 95 NOT IN ( CAST ( NULL AS INTEGER ) * - + 0 + - col0 * - + col2 )
----

query I rowsort
SELECT ALL ( + col1 ) + - + col0 AS col2 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE + 72 - col0 IN ( - col2 + + ( col1 ) * + 0 + + col0 + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT 23 + - COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT 23 + - COUNT ( * ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT - + MIN( DISTINCT - + col2 ) FROM tab2 WHERE - 35 * + col2 / 4 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-8387
SELECT - + MIN ( DISTINCT - + col2 ) FROM tab2 WHERE - 35 * + col2 / 4 IS NOT NULL
----
58

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE + col2 + ( - 89 ) * - 22 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT col0 DIV col2 DIV - + col2 - - 83 FROM tab1 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8390
SELECT col0 / col2 / - + col2 - - 83 FROM tab1 AS cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 19 + + 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col1 + + 51
----

query I rowsort
SELECT col2 - + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, 88 AS col1 FROM tab2
----
23
88
40
88
58
88

query I rowsort
SELECT - 96 / ( - + col0 ) AS col0 FROM tab2 WHERE NOT + col2 * - - col1 * - - 75 NOT BETWEEN ( + col0 ) AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query II rowsort
SELECT ALL + - col1 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query II rowsort label-8398
SELECT - col0 AS col1, + 2 DIV - col2 * + 55 FROM tab2 cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-8398
SELECT - col0 AS col1, + 2 / - col2 * + 55 FROM tab2 cor0
----
-46
0
-64
0
-75
0

query II rowsort
SELECT ALL - 56 AS col2, + col1 FROM tab1 AS cor0
----
-56
14
-56
47
-56
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 <> NULL
----

query I rowsort
SELECT 75 - + - 52 FROM tab0 AS cor0 WHERE NOT 3 >= + + col0
----
127
127
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col1 + + 56 FROM tab2 AS cor0
----
23
107
40
133
58
123

query II rowsort
SELECT - col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 / + col2 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT - 62 + + ( - + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col2 AND NULL
----
51
14
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8407
SELECT + col0 DIV + col1 AS col0, - col0 FROM tab0
----
0
-15
4
-87
97
-97

skipif mysql # not compatible
query II rowsort label-8407
SELECT + col0 / + col1 AS col0, - col0 FROM tab0
----
0
-15
4
-87
97
-97

query III rowsort
SELECT + + ( + - col1 ) AS col0, col2 AS col1, - + col1 FROM tab0 AS cor0
----
9 values hashing to d913e221ecc10d358292499cd595ac75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 54 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 67 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL - SUM( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - CAST( - + CAST( + 0 AS SIGNED ) AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - SUM ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - CAST ( - + CAST ( + 0 AS INTEGER ) AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8412
SELECT DISTINCT + 62 * col1, - 20 + - col0 DIV - - col0 col0, + 87 AS col0 FROM tab0 AS cor0
----
9 values hashing to 110d5c903c2b65a29e148c8a54da2d3e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8412
SELECT DISTINCT + 62 * col1, - 20 + - col0 / - - col0 col0, + 87 AS col0 FROM tab0 AS cor0
----
9 values hashing to 110d5c903c2b65a29e148c8a54da2d3e

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL - 2 * SUM( col0 ) FROM tab2
----
-370

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - 2 * SUM ( col0 ) FROM tab2
----
-370

query I rowsort
SELECT + col2 + - 25 AS col1 FROM tab1
----
34
43
71

query I rowsort
SELECT ALL col1 + + + 50 FROM tab2 AS cor0
----
101
117
127

query I rowsort
SELECT 81 * - col1 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL MAX( - col1 ) * - - 81 + - ( - + 23 ) FROM tab2 cor0
----
-4108

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL MAX ( - col1 ) * - - 81 + - ( - + 23 ) FROM tab2 cor0
----
-4108

query I rowsort
SELECT DISTINCT - col0 * 71 AS col2 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT DISTINCT - col2 - - + ( col0 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col1 * - 47 - col2 FROM tab0
----
-146
-3854
-997

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT + 66 * col0 - + 22 - - col2 AS col1 FROM tab2
----
3037
4242
4986

query I rowsort
SELECT + 66 + ( col0 ) AS col1 FROM tab1
----
117
151
157

query I rowsort
SELECT + col0 * col0 + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - MIN( - col0 ) + - 19 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-8425
SELECT - MIN ( - col0 ) + - 19 FROM tab2
----
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN 64 * - 11 * CAST( - col1 AS SIGNED ) AND + - 8
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8427
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN 64 * - 11 * CAST ( - col1 AS INTEGER ) AND + - 8
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT DISTINCT + + 81 DIV + + col2 + col2 - - 39 + col0 FROM tab2 cor0
----
111
145
173

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + + 81 / + + col2 + col2 - - 39 + col0 FROM tab2 cor0
----
111
145
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - COUNT( - col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - COUNT ( - col2 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 70 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query I rowsort
SELECT ALL + 89 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT 56 * + COUNT( * ) * MAX( + 29 ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1624

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT 56 * + COUNT ( * ) * MAX ( + 29 ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1624

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 5 + - col0 * + + col1 < + col1 * - col1 * + col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 87 * col0 AS col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - MIN( DISTINCT + 65 ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - MIN ( DISTINCT + 65 ) AS col1 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT + col2 AS col2, - col2 * col2 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - 40 * + 8 IS NOT NULL
----

query II rowsort
SELECT ALL 26, - 23 AS col0 FROM tab2
----
26
-23
26
-23
26
-23

query I rowsort
SELECT ( + 23 ) AS col1 FROM tab2
----
23
23
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col0 * ( + col0 ) * col2 + - col0 + - - 76 + - col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT + col2 + + + col0 DIV col0 AS col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8441
SELECT + col2 + + + col0 / col0 AS col0 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 * 32 + - col0 * - ( col1 ) FROM tab2
----
3082
6208
6881

query I rowsort
SELECT DISTINCT + col0 + + 85 * - col0 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL COUNT( DISTINCT + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL COUNT ( DISTINCT + - col1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col0 * - 19 * + - col2 AS col1 FROM tab1 cor0
----
-117572
-93024
-95285

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * + col0 - + col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 23 + + 29 * + 88 FROM tab0 AS cor0
----
2576
2596
2656

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col1 AND - col2 * 31 * - 80 + + - col2
----

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8451
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + - MAX( DISTINCT - col0 ) + MIN( col0 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8452
SELECT + - MAX ( DISTINCT - col0 ) + MIN ( col0 ) FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - SUM( ALL - ( - 17 ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT - SUM ( ALL - ( - 17 ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT ALL + 55 AS col2, + SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
55
223

skipif mysql # not compatible
query II rowsort label-8454
SELECT ALL + 55 AS col2, + SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
55
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8455
SELECT CAST( NULL AS SIGNED ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8455
SELECT CAST ( NULL AS INTEGER ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - ( + - 14 ) col0, col1 + - col1 AS col0 FROM tab0
----
1134
0
14
0
294
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT + MAX( DISTINCT 66 ) DIV + 36 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT + MAX ( DISTINCT 66 ) / + 36 FROM tab2
----
1

query I rowsort
SELECT ALL - ( + 74 ) + + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-133
-142
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT col1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT col1 / - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 91 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT ALL + + col2 * + ( + 39 ) DIV + + 1 - + col1 AS col0 FROM tab0 AS cor0
----
1752
369
3860

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + + col2 * + ( + 39 ) / + + 1 - + col1 AS col0 FROM tab0 AS cor0
----
1752
369
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8462
SELECT MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT - col0 DIV + 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT - col0 / + 82 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + - COUNT( * ) * 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-747

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + - COUNT ( * ) * 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-747

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT DISTINCT + 49 DIV + col1 col2 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8465
SELECT DISTINCT + 49 / + col1 col2 FROM tab1 AS cor0
----
1
3
9

query I rowsort
SELECT + - col1 * + col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + 82 AS col2 FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( - + CAST( NULL AS SIGNED ) + + col1, col0, + 60 )
----

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( - + CAST ( NULL AS INTEGER ) + + col1, col0, + 60 )
----

query I rowsort
SELECT + col0 * - 31 AS col0 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN + 85 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + 5 AS col1 FROM tab0
----
26
6
86

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + - 26, col1, + 33 * + col1, col1 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL + + MAX( ALL + + CAST( - + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + + MAX ( ALL + + CAST ( - + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT 99 AS col2, + 34 AS col2 FROM tab2 AS cor0
----
99
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8477
SELECT MAX ( - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL - COUNT( * ) + + - 9 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - COUNT ( * ) + + - 9 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + COUNT( 83 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8480
SELECT + COUNT ( 83 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( + ( - - 86 ) ) FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - 20 AS col0 FROM tab0 AS cor0 WHERE - 2 IS NOT NULL
----
-20
-20
-20

query I rowsort
SELECT ALL + + 67 - - 78 FROM tab1 cor0
----
145
145
145

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT 73 DIV - 8 - + col2 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-4
38
5

skipif mysql # not compatible
query I rowsort label-8484
SELECT 73 / - 8 - + col2 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-4
38
5

query I rowsort
SELECT + + col0 - ( - col2 ) AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT 44 - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT 44 - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT + col0 * + col1 * col2 - + + col2 * - 49 - - col1 - + + col0 DIV 39 + + - col2 * + col2 FROM tab2 cor0
----
197556
290994
54606

skipif mysql # not compatible
query I rowsort label-8487
SELECT + col0 * + col1 * col2 - + + col2 * - 49 - - col1 - + + col0 / 39 + + - col2 * + col2 FROM tab2 cor0
----
197556
290994
54606

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT col0 DIV + col2 - + 39 FROM tab1
----
-38
-38
-39

skipif mysql # not compatible
query I rowsort label-8488
SELECT col0 / + col2 - + 39 FROM tab1
----
-38
-38
-39

query I rowsort
SELECT col0 + + - col2 * col0 AS col1 FROM tab2
----
-1012
-2496
-4275

query II rowsort
SELECT + 74 + - col2 AS col1, 72 FROM tab2
----
16
72
34
72
51
72

query I rowsort
SELECT col1 * + - 4 FROM tab2
----
-204
-268
-308

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8492
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8493
SELECT ALL 94 DIV - col1 AS col1, - 49 AS col1 FROM tab0
----
-1
-49
-4
-49
-94
-49

skipif mysql # not compatible
query II rowsort label-8493
SELECT ALL 94 / - col1 AS col1, - 49 AS col1 FROM tab0
----
-1
-49
-4
-49
-94
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8494
SELECT ALL + col1 DIV + CAST( - + col0 AS SIGNED ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + col1 / + CAST ( - + col0 AS INTEGER ) FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT + 72 DIV COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 72 / COUNT ( * ) FROM tab1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT ALL + 10 DIV - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + 10 / - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT DISTINCT - CAST( - ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT - CAST ( - ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + + MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8498
SELECT + + MIN ( - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8499
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT COUNT( * ) AS col1, ( + COUNT( * ) ) + COUNT( * ) AS col0 FROM tab2
----
3
6

skipif mysql # not compatible
query II rowsort label-8500
SELECT COUNT ( * ) AS col1, ( + COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2
----
3
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT ALL - COUNT( * ) DIV - - MIN( col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - COUNT ( * ) / - - MIN ( col2 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col1 + + + col2 )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + + 19 * + + col1 * col0 - + ( - + col1 ) FROM tab2 cor0
----
44625
93709
95542

query II rowsort
SELECT ALL + col0 AS col0, col2 AS col0 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT + col0 DIV + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT + col0 / + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 49 * - 5 + - 7 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
-94
135
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 71 + - COUNT( * ) AS col2 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8509
SELECT 71 + - COUNT ( * ) AS col2 FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT + COUNT( * ) * + COUNT( * ) FROM tab2, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8510
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2, tab0 AS cor0
----
81

query I rowsort
SELECT col2 + + col1 - - 41 * col2 * col2 AS col0 FROM tab2
----
138049
21763
65717

query I rowsort
SELECT DISTINCT 31 + col0 AS col0 FROM tab1
----
116
122
82

query I rowsort
SELECT ALL + col0 * col2 FROM tab0 WHERE - col2 IN ( 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 4 + - ( + col2 ) AS col2 FROM tab0
----
-103
-14
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - - COUNT( * ) * 65 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8516
SELECT - - COUNT ( * ) * 65 FROM tab0 AS cor0
----
195

query I rowsort
SELECT DISTINCT - 91 + 73 AS col1 FROM tab2
----
-18

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 8 < - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8520
SELECT DISTINCT + SUM( DISTINCT col1 ) DIV - 98 - 45 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + SUM ( DISTINCT col1 ) / - 98 - 45 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT + - ( + 85 ) AS col1, - col1 FROM tab0 WHERE NOT NULL = + col2 * 1
----

query I rowsort
SELECT ALL + col2 * - + col1 * 82 FROM tab2
----
-252560
-318652
-96186

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 74 IN ( + 64 * + 85 + + col2, col1, - col1 * - col0 * - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col0, 11 * + col1 FROM tab2
----
46
561
64
847
75
737

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT DISTINCT - ( + 69 ), 1 + + 46 * - COUNT( * ) AS col0 FROM tab1
----
-69
-137

skipif mysql # not compatible
query II rowsort label-8525
SELECT DISTINCT - ( + 69 ), 1 + + 46 * - COUNT ( * ) AS col0 FROM tab1
----
-69
-137

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT COUNT( * ) * + COUNT( * ) + + ( - COUNT( * ) ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT COUNT ( * ) * + COUNT ( * ) + + ( - COUNT ( * ) ) col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8530
SELECT - CAST( NULL AS SIGNED ) * - 55, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8530
SELECT - CAST ( NULL AS INTEGER ) * - 55, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8531
SELECT DISTINCT - col2 DIV 39 + + + col1, col2 DIV col0 * col0 AS col0 FROM tab1 AS cor0
----
12
51
4
0
46
0

skipif mysql # not compatible
query II rowsort label-8531
SELECT DISTINCT - col2 / 39 + + + col1, col2 / col0 * col0 AS col0 FROM tab1 AS cor0
----
12
51
4
0
46
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8532
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 77 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - CAST ( NULL AS REAL ) * + + 77 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 * - + col2 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0, - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8535
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8535
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT 41 * COUNT( ALL col1 ) col1 FROM tab2
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8536
SELECT DISTINCT 41 * COUNT ( ALL col1 ) col1 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + 65 * + + col2 * + col2 + - 91 + - 48 + - 26 + - + col0 >= - 76 AND NOT + col0 * + + col2 / + + col2 + 4 >= ( - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + 65 * + + col2 * + col2 + - 91 + - 48 + - 26 + - + col0 >= - 76 AND NOT + col0 * + + col2 / + + col2 + 4 >= ( - 55 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT 19 * - COUNT( * ) + MIN( DISTINCT 22 ) AS col2, + 31 AS col0 FROM tab1
----
-35
31

skipif mysql # not compatible
query II rowsort label-8538
SELECT 19 * - COUNT ( * ) + MIN ( DISTINCT 22 ) AS col2, + 31 AS col0 FROM tab1
----
-35
31

query I rowsort
SELECT - 45 * - 43 + 73 FROM tab2
----
2008
2008
2008

query I rowsort
SELECT ALL + col1 - + - col0 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT + - col2 * col0 + + 7 * + - col1 FROM tab2 AS cor0
----
-1415
-3099
-4819

query I rowsort
SELECT + + col0 + + - 3 + + + col1 * - col2 * - col1 FROM tab1 AS cor0
----
150300
1557
18864

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 69 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + ( COUNT( * ) ) + 2 AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + ( COUNT ( * ) ) + 2 AS col0 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT col0 * + col2 - + col0 + - col0 * - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
254541
431205
569205

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT + - 33 * col1 * - col2 * - - 0 DIV 22 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT + - 33 * col1 * - col2 * - - 0 / 22 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 9 ) col2, - col0 + col1 + col0 FROM tab2 AS cor0
----
-9
51
-9
67
-9
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + 97 AS col0 FROM tab2 cor0
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT 14 + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-8551
SELECT 14 + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
14

query II rowsort
SELECT DISTINCT - col1, 62 - - 78 * col1 + 23 AS col2 FROM tab1
----
-14
1177
-47
3751
-5
475

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT 47 AS col0, + COUNT( * ) FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-8553
SELECT 47 AS col0, + COUNT ( * ) FROM tab1
----
47
3

query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 26 AS col2 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - + COUNT( - - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8556
SELECT - + COUNT ( - - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col1 BETWEEN + 0 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT - 83 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 83 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 19 + col0 * - + col1 FROM tab1
----
-406
-4258
-695

query I rowsort
SELECT ALL - ( + 15 ) + - col2 AS col1 FROM tab2 cor0
----
-38
-55
-73

query I rowsort
SELECT col1 + + 24 AS col1 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT DISTINCT + CAST( + - 73 AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + CAST ( + - 73 AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 - - ( - ( - col0 ) ) col1 FROM tab0 AS cor0 WHERE ( + col0 IS NOT NULL )
----
109
119
37

query I rowsort
SELECT DISTINCT - col1 * 3 + - col0 FROM tab2 cor0
----
-199
-276
-295

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT ALL + + col1 DIV col0 * col2 AS col1 FROM tab2 AS cor0
----
0
23
40

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + + col1 / col0 * col2 AS col1 FROM tab2 AS cor0
----
0
23
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT + + col1 * + - col2 / - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + + col1 * + - col2 / - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL col1 * + - 51 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - 42 < + col0 * + col0 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL col1 * + - 51 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - 42 < + col0 * + col0 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - 68 AS col2 FROM tab0
----
-47
-67
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL 66 + + COUNT( * ) - - COUNT( * ) + + 99 * + + SUM( DISTINCT col0 ) * + COUNT( * ) * - 72 - + COUNT( DISTINCT - 20 ) FROM tab0
----
-4255345

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL 66 + + COUNT ( * ) - - COUNT ( * ) + + 99 * + + SUM ( DISTINCT col0 ) * + COUNT ( * ) * - 72 - + COUNT ( DISTINCT - 20 ) FROM tab0
----
-4255345

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT 71 + - MAX( col2 ) AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8571
SELECT 71 + - MAX ( col2 ) AS col1 FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL COUNT( + 2 ) + - 78 + - - 41 AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL COUNT ( + 2 ) + - 78 + - - 41 AS col2 FROM tab2
----
-34

query III rowsort
SELECT ALL * FROM tab1 WHERE 33 = + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT - COUNT( DISTINCT col2 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8574
SELECT - COUNT ( DISTINCT col2 ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + + ( + + COUNT( * ) ) * - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 = + + col0
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + + ( + + COUNT ( * ) ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 = + + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - + 91 + + col2
----

skipif mysql # not compatible
query I rowsort label-8576
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - + 91 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8577
SELECT ALL - - 87 DIV + 25 - - - col0 + - CAST( - ( + - 56 ) AS SIGNED ) FROM tab0 AS cor0
----
-140
-150
-68

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - - 87 / + 25 - - - col0 + - CAST ( - ( + - 56 ) AS INTEGER ) FROM tab0 AS cor0
----
-140
-150
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - - col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT 57 + - + col1 FROM tab2
----
-10
-20
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT ALL + col0 DIV + - 91 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + col0 / + - 91 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + ( 84 ) * + 58 + - MAX( ALL 61 ) FROM tab0 cor0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + ( 84 ) * + 58 + - MAX ( ALL 61 ) FROM tab0 cor0 WHERE NULL < ( NULL )
----
NULL

query II rowsort
SELECT 95 AS col2, + 26 AS col2 FROM tab2 AS cor0
----
95
26
95
26
95
26

query II rowsort
SELECT col2, - col1 AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 45 col2, + col2 AS col0 FROM tab2 AS cor0
----
45
23
45
40
45
58

query II rowsort
SELECT ALL + col1, + 34 FROM tab1 AS cor0
----
14
34
47
34
5
34

query II rowsort
SELECT - col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL - col0 DIV + + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - col0 / + + col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * col1 col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8592
SELECT * FROM tab2 cor0 WHERE NOT - 6 BETWEEN NULL AND + 4 * + col1 + - col1 * ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8592
SELECT * FROM tab2 cor0 WHERE NOT - 6 BETWEEN NULL AND + 4 * + col1 + - col1 * ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT * FROM tab1 WHERE NOT CAST( + col1 AS SIGNED ) + + 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8593
SELECT * FROM tab1 WHERE NOT CAST ( + col1 AS INTEGER ) + + 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 47 BETWEEN + + col2 AND ( - + 47 )
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + - - col1 AND 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT ALL + COUNT( * ) * + MAX( ALL + col0 ) AS col0, 86 AS col0 FROM tab2 AS cor0
----
225
86

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL + COUNT ( * ) * + MAX ( ALL + col0 ) AS col0, 86 AS col0 FROM tab2 AS cor0
----
225
86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 27 * - 59 * col2 FROM tab1 AS cor0
----
-108324
-152928
-93987

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT IN ( + col2, - ( col2 ) * - col0 / - col0 + 58 + + col1, - - col0, col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + 42 IS NULL
----

query I rowsort
SELECT DISTINCT 4 * 16 AS col1 FROM tab2, tab0 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8603
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( - 1 ) AND CAST( NULL AS SIGNED ) * + 85
----

skipif mysql # not compatible
query III rowsort label-8603
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( - 1 ) AND CAST ( NULL AS INTEGER ) * + 85
----

query I rowsort
SELECT - col1 - - - col2 AS col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT - COUNT( * ) DIV + + 11 + 51 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8605
SELECT - COUNT ( * ) / + + 11 + 51 FROM tab1
----
51

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0
----
15

query II rowsort
SELECT ALL col0 + - + col2 AS col1, - 65 AS col0 FROM tab2
----
17
-65
23
-65
24
-65

query I rowsort
SELECT 91 + - 48 FROM tab2
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 + - - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT + 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT - CAST( - 88 AS SIGNED ) AS col1 FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8612
SELECT - CAST ( - 88 AS INTEGER ) AS col1 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT COUNT( - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8613
SELECT COUNT ( - - col2 ) FROM tab0
----
3

query I rowsort
SELECT 75 * - + col2 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 46 * + ( - SUM( DISTINCT col0 ) ) AS col0 FROM tab0 AS cor0
----
-9154

skipif mysql # not compatible
query I rowsort label-8615
SELECT 46 * + ( - SUM ( DISTINCT col0 ) ) AS col0 FROM tab0 AS cor0
----
-9154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - col1 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT DISTINCT + COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) + + - 93 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) + + - 93 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 10 * - + ( col2 ) AS col1 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + MIN( + 19 ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8620
SELECT + MIN ( + 19 ) AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL MAX( DISTINCT - - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL MAX ( DISTINCT - - col1 ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + 87 + - - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 87 + - - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + + SUM( + 88 ) FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + SUM ( + 88 ) FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT 56 BETWEEN col1 * col1 + col2 / + 63 AND NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + - COUNT( 72 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8627
SELECT + - COUNT ( 72 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT - COUNT( col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - COUNT ( col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT ( + col2 ) + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT ( + col2 ) + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * col1 IN ( - - col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8631
SELECT ALL + CAST( + 87 AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
87
NULL
87
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL + CAST ( + 87 AS INTEGER ) AS col0, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
87
NULL
87
NULL
87
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL - CAST( + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - + col0 * + col1 + - ( - 49 ) AS col0 FROM tab0 AS cor0
----
-1166
-1778
-48

query I rowsort
SELECT ALL + - 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - - col2 + 32 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT col0 * - col0 + + col2 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + - 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT ALL col0 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL col0 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NOT + col1 + - col2 > NULL
----

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE 58 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * ( + 25 ) col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8641
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * ( + 25 ) col2 FROM tab1 AS cor0
----
225

query I rowsort
SELECT - + 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * col2 * 77 col0 FROM tab2
----
135520
196504
77924

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - MIN( - 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8645
SELECT - MIN ( - 73 ) FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8646
SELECT col2 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8646
SELECT col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL ( 10 ) AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT + col0 + - col1 + + + 21 * + + col0 AS col0 FROM tab0
----
1893
2133
249

query II rowsort
SELECT DISTINCT ( - - col2 ), 89 * - ( 78 ) AS col2 FROM tab2
----
23
-6942
40
-6942
58
-6942

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( + col0 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * - col2 col1 FROM tab0
----
1000
103823
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL - - COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8652
SELECT ALL - - COUNT ( * ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL MAX( DISTINCT + - 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL MAX ( DISTINCT + - 10 ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT col1 * - col1 + + + col2 - + 82 FROM tab0 AS cor0
----
-513
-6596
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8655
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL > - CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8655
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL > - CAST ( col0 AS REAL )
----

query I rowsort
SELECT col0 + - 83 AS col0 FROM tab2 AS cor0
----
-19
-37
-8

query I rowsort
SELECT col2 + + 90 AS col2 FROM tab1
----
149
158
186

query I rowsort
SELECT ALL col1 + - + 60 FROM tab1
----
-13
-46
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8659
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8660
SELECT + SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL 10 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT DISTINCT ( - 33 ) - + - COUNT( * ) AS col1, - 18 col2 FROM tab1 AS cor0
----
-30
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8662
SELECT DISTINCT ( - 33 ) - + - COUNT ( * ) AS col1, - 18 col2 FROM tab1 AS cor0
----
-30
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - - SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - - SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL + SUM( - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + SUM ( - col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT + ( - 27 ) - - 94 AS col2 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT CAST( + col0 AS SIGNED ) + + col2 + - + col0 + - + col2 + - + col0 * + + col2 * col2 FROM tab2
----
-102400
-24334
-252300

skipif mysql # not compatible
query I rowsort label-8666
SELECT CAST ( + col0 AS INTEGER ) + + col2 + - + col0 + - + col2 + - + col0 * + + col2 * col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - 89 + - + ( - COUNT( - col2 ) ) AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - 89 + - + ( - COUNT ( - col2 ) ) AS col2 FROM tab2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT + col0 * - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 + + + col1 AS col2 FROM tab0
----
-189
-3726
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 90 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + col0 - + 53 AS col1 FROM tab0
----
-55
-85
24

query I rowsort
SELECT - col1 * - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 BETWEEN 33 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL 60 * col1 AS col1 FROM tab0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT + MAX( ALL + - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT + MAX ( ALL + - 98 ) FROM tab1
----
-98

query I rowsort
SELECT 65 AS col1 FROM tab1 AS cor0 WHERE NOT 51 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT 4 <> col1 - col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8679
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8679
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( + 56 ) * 24 * + 54 AS col0 FROM tab1 AS cor0
----
72576

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT col1 + + col0 + - col2 AS col1 FROM tab0
----
-1
49
98

query I rowsort
SELECT 95 + 89 FROM tab1
----
184
184
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8685
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT + CAST( NULL AS SIGNED ) * + col0 * - 73 + 3 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT + CAST ( NULL AS INTEGER ) * + col0 * - 73 + 3 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 24 BETWEEN NULL AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 3 + + + ( - 63 ) FROM tab0
----
-60
-60
-60

query I rowsort
SELECT ALL - 20 + 86 AS col1 FROM tab1
----
66
66
66

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT DISTINCT - CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT + - col1 = NULL
----

query I rowsort
SELECT + + col2 * 96 FROM tab1 AS cor0
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL COUNT( * ) + - + MIN( - + col1 ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL COUNT ( * ) + - + MIN ( - + col1 ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8694
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - ( 55 ) + - 29 < + 72 + - 80 / - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8694
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - ( 55 ) + - 29 < + 72 + - 80 / - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + + COUNT( * ) * + COUNT( * ) + - - 65 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) + - - 65 FROM tab1 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( ( NULL ) <> + 67 ) )
----

query II rowsort
SELECT + col0 - + 13, + 72 AS col0 FROM tab0
----
2
72
74
72
84
72

query I rowsort
SELECT ALL 13 + + + 14 * - col1 FROM tab0 AS cor0
----
-1
-1121
-281

query I rowsort
SELECT ALL 80 - - + ( - col1 ) AS col0 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE 96 + - - ( col2 ) + + - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8703
SELECT ALL - + MIN( 32 ) - + SUM( + CAST( - - 29 AS SIGNED ) ), - COUNT( * ) DIV + 29 + - + COUNT( * ) AS col2 FROM tab0 cor0
----
-119
-3

skipif mysql # not compatible
query II rowsort label-8703
SELECT ALL - + MIN ( 32 ) - + SUM ( + CAST ( - - 29 AS INTEGER ) ), - COUNT ( * ) / + 29 + - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-119
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT + - 85 - + COUNT( * ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT + - 85 - + COUNT ( * ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT - - 34 AS col0 FROM tab1 WHERE ( NOT - col1 IS NULL )
----
34
34
34

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 WHERE NOT - 52 / col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / - - col1 / + - 44 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + ( - + ( - - 52 ) ) * + col1 + - + col0 * + 10 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + COUNT( DISTINCT - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8709
SELECT + COUNT ( DISTINCT - - col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8711
SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT - col2 DIV - + ( - 95 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT - col2 / - + ( - 95 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8713
SELECT - - col0 AS col0, col0 + + CAST( - col1 AS SIGNED ) + - - 19 FROM tab1 AS cor0
----
51
56
85
99
91
63

skipif mysql # not compatible
query II rowsort label-8713
SELECT - - col0 AS col0, col0 + + CAST ( - col1 AS INTEGER ) + - - 19 FROM tab1 AS cor0
----
51
56
85
99
91
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + - ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT COUNT( * ) + 87 * COUNT( * ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-8717
SELECT COUNT ( * ) + 87 * COUNT ( * ) AS col2 FROM tab0
----
264

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 45 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 1 IS NULL
----

query I rowsort
SELECT DISTINCT 31 + col0 AS col0 FROM tab0
----
118
128
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT - col2 DIV col1 + - col2 FROM tab0
----
-10
-198
-47

skipif mysql # not compatible
query I rowsort label-8721
SELECT - col2 / col1 + - col2 FROM tab0
----
-10
-198
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 81 )
----

query I rowsort
SELECT DISTINCT + col1 * col2 - 97 FROM tab1
----
1247
198
3099

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col0 + col1 < col2 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) + 53 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) + 53 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN 22 + ( col1 ) AND ( + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN 22 + ( col1 ) AND ( + 2 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - col2 NOT IN ( - col1 / + 19 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 + 28 AND col0 * 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + 97 AS col1 FROM tab2
----
4947
6499
7469

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + 97 AS col1 FROM tab2
----
4947
6499
7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ( 13 ) FROM tab1
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT ALL - 72 col2 FROM tab1 WHERE - 77 BETWEEN - 47 AND ( CAST( 23 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8733
SELECT ALL - 72 col2 FROM tab1 WHERE - 77 BETWEEN - 47 AND ( CAST ( 23 AS INTEGER ) + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col2 - col0 ) AND ( NULL )
----

query I rowsort
SELECT col1 * 29 + - 33 FROM tab1 AS cor0
----
112
1330
373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8736
SELECT DISTINCT - 33 * - SUM( ALL col0 * 64 ) + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8736
SELECT DISTINCT - 33 * - SUM ( ALL col0 * 64 ) + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL col1 - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL col1 - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT SUM ( col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT + 15 AS col0 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < col2 - col1
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < col2 - col1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 67 * - 74 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL + COUNT( - col0 ) - 65 * COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + COUNT ( - col0 ) - 65 * COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT ALL col2 + ( col0 ) FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT * FROM tab2 cor0 WHERE 56 / 75 < + 16 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT col2 / - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST( + 26 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8745
SELECT col2 / - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST ( + 26 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8746
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 56 + + col0 * + col2 AND ( CAST( 66 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-8746
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 56 + + col0 * + col2 AND ( CAST ( 66 AS INTEGER ) + col1 )
----

query I rowsort
SELECT + ( 65 ) AS col1 FROM tab0 AS cor0 WHERE - 60 IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN - 64 AND col2
----

query I rowsort
SELECT ALL 43 * + 67 FROM tab2 AS cor0
----
2881
2881
2881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( + col1 ) col0 FROM tab1 AS cor0 WHERE NOT col1 < ( + col2 )
----
NULL

query I rowsort
SELECT + + ( + 11 ) * 11 AS col2 FROM tab0 AS cor0
----
121
121
121

query I rowsort
SELECT - col1 * - + col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT col1 DIV - 35 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8753
SELECT col1 / - 35 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * 63 AS col1 FROM tab1
----
3717
4284
6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL - 27 - CAST( - COUNT( * ) + MAX( - col1 ) AS SIGNED ) FROM tab1 WHERE NOT + ( + col0 ) <> 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - 27 - CAST ( - COUNT ( * ) + MAX ( - col1 ) AS INTEGER ) FROM tab1 WHERE NOT + ( + col0 ) <> 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8757
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 6 > ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL 91 FROM tab2 AS cor0 WHERE 65 <> CAST( - 45 AS SIGNED )
----
91
91
91

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL 91 FROM tab2 AS cor0 WHERE 65 <> CAST ( - 45 AS INTEGER )
----
91
91
91

query I rowsort
SELECT DISTINCT + + col1 * + + 67 + - 97 FROM tab2 cor0
----
3320
4392
5062

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( - col0 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL COUNT( * ) * ( 34 ) AS col0 FROM tab1 WHERE ( 29 * - 22 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL COUNT ( * ) * ( 34 ) AS col0 FROM tab1 WHERE ( 29 * - 22 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 54 - + 95 + + col0 * col1 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( 36 ) * col1 )
----

query I rowsort
SELECT + col2 * - 60 * - col0 FROM tab1 AS cor0
----
293760
300900
371280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - - col0 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - 34 + + col1 FROM tab0 AS cor0
----
-13
-33
47

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE 57 + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - col1 + + 56 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT + col2 + - ( - - col2 ) + 26 * + col2 FROM tab0 cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL COUNT( - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL COUNT ( - col0 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + 2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + + + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + 1 + - - COUNT( * ) col0 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8776
SELECT + 1 + - - COUNT ( * ) col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT COUNT( * ) AS col2 FROM tab1 WHERE col0 * + col1 BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8777
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE col0 * + col1 BETWEEN ( NULL ) AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - ( col1 ) AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT ( - 18 ) AS col1, col0 - - 47 FROM tab2
----
-18
111
-18
122
-18
93

query I rowsort
SELECT DISTINCT col0 - - col2 AS col2 FROM tab2 AS cor0 WHERE col2 < col1
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col2 + + col0 AND col0 * ( 81 )
----
87
21
10
97
1
99

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NULL IS NULL
----
43
43
43

query I rowsort
SELECT col1 - + - 22 + + col1 AS col0 FROM tab0 AS cor0
----
184
24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - COUNT( DISTINCT col0 ) + 41 AS col2 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - COUNT ( DISTINCT col0 ) + 41 AS col2 FROM tab1
----
38

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE col0 + 36 - col2 BETWEEN ( - 26 * 70 ) AND 96 / col2
----

query I rowsort
SELECT ALL + col0 * col0 * + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
107870
315328
376800

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT + + col0 DIV + + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + + col0 / + + col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col0 / - - col0 * - col0 IN ( 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT ALL + col1 * col0 DIV 41 * + col1 + - col2 FROM tab2 AS cor0
----
2884
8116
9200

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + col1 * col0 / 41 * + col1 + - col2 FROM tab2 AS cor0
----
2884
8116
9200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT DISTINCT + COUNT( * ) DIV 83 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + COUNT ( * ) / 83 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 72 * - 45 AS col0 FROM tab1 AS cor0
----
-3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8793
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 47 AS col2 FROM tab1 AS cor0
----
2209
235
658

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 85 * col2 - - 17 )
----

query II rowsort
SELECT DISTINCT 39, 26 AS col2 FROM tab0 AS cor0
----
39
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col2 FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 32 NOT IN ( + - col0 - - + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 38 * + - ( col2 ) * 95 FROM tab0
----
-169670
-357390
-36100

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( - ( - col0 ) * + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * + col1 col2 FROM tab0
----
3564
44
924

query I rowsort
SELECT ALL - ( - col2 ) + - col1 AS col1 FROM tab0 WHERE NOT ( + col1 ) BETWEEN 37 AND - + col0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0, tab1 cor0
----
NULL

query I rowsort
SELECT ALL col1 * + 46 FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL 12 * + CAST( + - 1 AS SIGNED ) FROM tab1
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL 12 * + CAST ( + - 1 AS INTEGER ) FROM tab1
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT - SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8807
SELECT - SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT ALL 41 * ( + col1 ) FROM tab0 cor0 WHERE NOT col1 DIV col2 + + col0 = ( col0 )
----
3321
861

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL 41 * ( + col1 ) FROM tab0 cor0 WHERE NOT col1 / col2 + + col0 = ( col0 )
----
3321
861

query I rowsort
SELECT ALL + 52 * - - 35 FROM tab0 AS cor0
----
1820
1820
1820

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT - MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8811
SELECT - MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL - 12 DIV + + 64 * + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - 12 / + + 64 * + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT ALL col0 DIV + + col1 + + col1 * - 44 + - ( + col2 ) AS col2 FROM tab1
----
-2135
-262
-709

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL col0 / + + col1 + + col1 * - 44 + - ( + col2 ) AS col2 FROM tab1
----
-2135
-262
-709

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + - col1 ) <= ( 7 + - - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + - col1 ) <= ( 7 + - - 72 )
----
0

query I rowsort
SELECT DISTINCT ( - ( + col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT COUNT( col0 ) FROM tab1 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT COUNT ( col0 ) FROM tab1 WHERE NOT NULL <= col1
----
0

query II rowsort
SELECT 95 * col1, + 52 * - 43 AS col1 FROM tab0
----
1995
-2236
7695
-2236
95
-2236

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1 + 17 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1 + 17 * - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8820
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + col2 ) < col0 / - + 20 - - CAST( - col0 AS SIGNED ) + + 79 * col0 )
----

skipif mysql # not compatible
query III rowsort label-8820
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + col2 ) < col0 / - + 20 - - CAST ( - col0 AS INTEGER ) + + 79 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT - ( + + MAX( ALL - + col1 ) ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - ( + + MAX ( ALL - + col1 ) ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT 21 * - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8822
SELECT 21 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8823
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8823
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ) col1, + 73 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 12 = ( 1 )
----
-59
365
-68
3431
-96
1022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + CAST( NULL AS SIGNED ), 75 * - col2 * - + col2 * 24 / + col2 )
----

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + CAST ( NULL AS INTEGER ), 75 * - col2 * - + col2 * 24 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND ( - 82 * + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 5 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + SUM( ALL - + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8829
SELECT + SUM ( ALL - + col0 ) AS col0 FROM tab1
----
-227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT + COUNT( * ) DIV + 42 * - COUNT( * ) * - - 38 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8831
SELECT + COUNT ( * ) / + 42 * - COUNT ( * ) * - - 38 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 * - 84 + + 45 <= ( + col0 - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 20 FROM tab2
----
26
44
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8836
SELECT ALL * FROM tab2 WHERE ( + col0 - + col2 * - ( - - 90 ) * col1 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8836
SELECT ALL * FROM tab2 WHERE ( + col0 - + col2 * - ( - - 90 ) * col1 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT col2 + + 37 + + 60 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT col2 + + 37 + + 60 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col2 * + + 97 * col0 AS col2 FROM tab1
----
474926
486460
600283

query I rowsort
SELECT 72 + + - col2 AS col1 FROM tab2
----
14
32
49

query I rowsort
SELECT 64 + - 76 AS col2 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT - col1 + + 73 FROM tab2
----
-4
22
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + - col1 col1 FROM tab0 AS cor0
----
10
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT MAX( DISTINCT - col1 ) + 16 col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8843
SELECT MAX ( DISTINCT - col1 ) + 16 col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + col2 - 95 AS col2 FROM tab2 AS cor0
----
-37
-55
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT col0 DIV + 96 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8845
SELECT col0 / + 96 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 30 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8847
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - - 19 * 2 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8849
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) * + - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) * + - col0 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT MIN( DISTINCT col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT MIN ( DISTINCT col0 ) col0 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT - CAST( NULL AS SIGNED ) * - 43 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT - CAST ( NULL AS INTEGER ) * - 43 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( - ( - 35 ) * col2 * - 96 ) <= ( - ( - 7 ) )
----

query I rowsort
SELECT DISTINCT - 4 * + - 56 AS col0 FROM tab0
----
224

query I rowsort
SELECT ALL + + 81 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + ( - - ( - col1 ) ) FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL col0 * - + 8 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL col0 * - + 8 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 54 FROM tab2 cor0
----
54
54
54

query II rowsort
SELECT ALL + col2 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT DISTINCT 70 + - - 55 DIV - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT 70 + - - 55 / - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT 54 * + + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT 54 * + + COUNT ( * ) FROM tab1
----
162

query II rowsort
SELECT 0 AS col1, + col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT MAX( + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT MAX ( + col0 ) FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT COUNT( * ) col0 FROM tab1 cor0 WHERE ( NULL ) IN ( - col1 * - CAST( - col2 AS SIGNED ) + - 63 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT COUNT ( * ) col0 FROM tab1 cor0 WHERE ( NULL ) IN ( - col1 * - CAST ( - col2 AS INTEGER ) + - 63 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * - ( ( + 44 ) ) AS col0, + col2 col2 FROM tab1 AS cor0
----
2068
68
220
59
616
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + 81 * - COUNT( * ) FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + 81 * - COUNT ( * ) FROM tab1 AS cor0
----
-243

query I rowsort
SELECT + col0 + 92 AS col2 FROM tab1 AS cor0
----
143
177
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + - 62 + - - COUNT( * ) + 38 - MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8867
SELECT + - 62 + - - COUNT ( * ) + 38 - MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT DISTINCT - COUNT( * ), - 55 * 45 AS col1 FROM tab0 AS cor0
----
-3
-2475

skipif mysql # not compatible
query II rowsort label-8868
SELECT DISTINCT - COUNT ( * ), - 55 * 45 AS col1 FROM tab0 AS cor0
----
-3
-2475

query I rowsort
SELECT ALL + - ( - ( 42 ) ) FROM tab0 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 + + + col2 col2 FROM tab2 AS cor0
----
120
181
200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 * + + col2 + - 32 + + col2 = ( 38 + 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NULL < col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 77 + - + 28 * col2 + + + col1 + 90 = ( - col2 / - 54 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + ( col2 ) + - col1 FROM tab2
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8875
SELECT DISTINCT + MAX( ALL - col1 ) DIV + COUNT( * ) AS col0, - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8875
SELECT DISTINCT + MAX ( ALL - col1 ) / + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-1
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT + + COUNT( - col2 ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8876
SELECT + + COUNT ( - col2 ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 * + 10 col0 FROM tab0 AS cor0
----
-123
-795
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL - MAX( DISTINCT - 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - MAX ( DISTINCT - 10 ) FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 96 - - 59 col1 FROM tab2 AS cor0
----
4955
6491
7451

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 NOT BETWEEN + + col1 AND NULL
----
15
81
47

query II rowsort
SELECT col1 - col0, col1 AS col1 FROM tab1 AS cor0
----
-37
14
-44
47
-80
5

query I rowsort
SELECT DISTINCT - 79 * - col0 - - - col1 + + + col2 AS col1 FROM tab0 AS cor0
----
1151
6862
7761

query I rowsort
SELECT + 6 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( + col2, 58, - + 8 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT + + 11 DIV + COUNT( * ) + - + 38 AS col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8886
SELECT + + 11 / + COUNT ( * ) + - + 38 AS col1 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col0, + col1 AS col1 FROM tab0 cor0
----
-48
1
-48
21
-48
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col0 - - + col1 + + 25 AS col0 FROM tab1 cor0
----
-51
-12
-85
-55
-91
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( * ) * - MAX( DISTINCT - - 83 ) AS col0 FROM tab1 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( * ) * - MAX ( DISTINCT - - 83 ) AS col0 FROM tab1 cor0
----
-249

query I rowsort
SELECT + col2 * + 40 * + col2 FROM tab1 AS cor0
----
139240
184960
368640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 1 ) col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 70 * col0 AS col0 FROM tab2 AS cor0
----
3220
4480
5250

query I rowsort
SELECT ALL - - col1 * - col1 - ( - 94 ) * - - 85 AS col2 FROM tab1 AS cor0
----
5781
7794
7965

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col1 ) + - - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT COUNT( * ) * + MAX( DISTINCT + 52 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8896
SELECT COUNT ( * ) * + MAX ( DISTINCT + 52 ) FROM tab1
----
156

query I rowsort
SELECT col0 * col0 * 93 FROM tab2
----
196788
380928
523125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT - MAX( DISTINCT + - CAST( - col2 AS SIGNED ) ) + 14 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT - MAX ( DISTINCT + - CAST ( - col2 AS INTEGER ) ) + 14 FROM tab1
----
-82

query I rowsort
SELECT + col2 * + col0 * + 20 AS col0 FROM tab2
----
21160
51200
87000

query I rowsort
SELECT DISTINCT col2 * + 29 FROM tab2 AS cor0
----
1160
1682
667

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 * + + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL + MAX( ALL + 9 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + MAX ( ALL + 9 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + + ( - col2 ) * ( - 92 ) FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT - - ( - COUNT( * ) ) AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8904
SELECT - - ( - COUNT ( * ) ) AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT DISTINCT col1 * - col0 - + 52 AS col1 FROM tab0 cor0
----
-1267
-149
-1879

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT + MAX( 8 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 44 IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT + MAX ( 8 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 44 IS NOT NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT 39 + COUNT( ALL + col1 ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT 39 + COUNT ( ALL + col1 ) AS col1 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8909
SELECT - + 23 col0, CAST( NULL AS SIGNED ) * + + col2 FROM tab1 WHERE NULL IS NULL
----
-23
NULL
-23
NULL
-23
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8909
SELECT - + 23 col0, CAST ( NULL AS INTEGER ) * + + col2 FROM tab1 WHERE NULL IS NULL
----
-23
NULL
-23
NULL
-23
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT + CAST( - ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8910
SELECT + CAST ( - ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + + col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL + COUNT( DISTINCT - ( col2 ) ) * + 31 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + COUNT ( DISTINCT - ( col2 ) ) * + 31 FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT col0 DIV + - 86 + + - 51 + - + col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-110
-120
-147

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT col0 / + - 86 + + - 51 + - + col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-110
-120
-147

query I rowsort
SELECT ALL + 37 * + col0 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT 10 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 10 / col1 FROM tab2
----
0

query I rowsort
SELECT ALL 37 + - col1 * - col2 * - col0 * - + 13 AS col1 FROM tab1
----
326012
3780905
891109

query I rowsort
SELECT 15 + + + col1 + + col0 FROM tab0
----
111
113
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT MAX( col2 ) + + 73 FROM tab1
----
169

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT MAX ( col2 ) + + 73 FROM tab1
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL + col2 DIV - 64 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + col2 / - 64 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT + ( + SUM( col1 ) ) + - + COUNT( * ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + ( + SUM ( col1 ) ) + - + COUNT ( * ) AS col2 FROM tab0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * - ( - - 31 ) + - col0 col0 FROM tab2
----
2932
2943
2961

query I rowsort
SELECT 64 + + col0 FROM tab1
----
115
149
155

query I rowsort
SELECT ALL - col0 - - 72 AS col0 FROM tab0 AS cor0
----
-15
-25
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT DISTINCT COUNT( * ) DIV - + 59 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT COUNT ( * ) / - + 59 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8925
SELECT COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - SUM( DISTINCT + - col0 ) * - COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - SUM ( DISTINCT + - col0 ) * - COUNT ( * ) FROM tab1
----
-681

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8927
SELECT + 33 - col1 AS col1 FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) = - 57
----

skipif mysql # not compatible
query I rowsort label-8927
SELECT + 33 - col1 AS col1 FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) = - 57
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 < + 92
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT + col2 * 39 * col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT + col2 * 39 * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT - MIN( col1 ) * - MAX( + - col1 ) AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - MIN ( col1 ) * - MAX ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT DISTINCT + ( + + col1 ) AS col0, + col0 AS col1 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) = - col0
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 96 + - 86 AS col1 FROM tab0
----
10
10
10

query III rowsort
SELECT * FROM tab0 WHERE NOT - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + - col0 ) + - - 23 FROM tab0
----
-64
-74
8

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab2, tab2 cor0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT 45 + MAX( DISTINCT 66 ) AS col0, ( - COUNT( * ) ) AS col2 FROM tab1
----
111
-3

skipif mysql # not compatible
query II rowsort label-8939
SELECT 45 + MAX ( DISTINCT 66 ) AS col0, ( - COUNT ( * ) ) AS col2 FROM tab1
----
111
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - col2 * + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - col2 * + + col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + 88 * + - col2 )
----

query II rowsort
SELECT col2, 97 FROM tab2 AS cor0
----
23
97
40
97
58
97

query I rowsort
SELECT - 45 FROM tab0 AS cor0 WHERE - col1 + + + col2 IS NOT NULL
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 * col2 col0 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT DISTINCT col1 * + - 72 * + 31 FROM tab2
----
-113832
-149544
-171864

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL + ( MIN( ALL - + col0 ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + ( MIN ( ALL - + col0 ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT col1 + + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-97
115
32

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE - col2 = col0
----

query I rowsort
SELECT ( col0 ) FROM tab0 AS cor0 WHERE + col1 > - col2 + + - col2
----
15
87
97

query I rowsort
SELECT - 54 + + ( + - col0 ) FROM tab1 AS cor0
----
-105
-139
-145

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND ( col2 + + - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - col1 + + 99 col2 FROM tab0 cor0
----
112
132
52

query I rowsort
SELECT ALL - col0 - - - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + col1 + - 41 + - col2 FROM tab0 AS cor0
----
-139
-30
-7

query I rowsort
SELECT DISTINCT + 93 * + 13 * col2 AS col0 FROM tab2 AS cor0
----
27807
48360
70122

query I rowsort
SELECT + - 53 * - col2 FROM tab1 AS cor0
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col0 + + + col1 AS col0 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT DISTINCT col0 + - + col1 + - col1 DIV - - col1 + + 55 * col0 FROM tab0
----
4850
5430
758

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT col0 + - + col1 + - col1 / - - col1 + + 55 * col0 FROM tab0
----
4850
5430
758

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE - col0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8962
SELECT + col1 AS col1, col2 + + CAST( NULL AS SIGNED ) + - ( + + col0 ) FROM tab0 WHERE + + col1 * - - col1 <> NULL
----

skipif mysql # not compatible
query II rowsort label-8962
SELECT + col1 AS col1, col2 + + CAST ( NULL AS INTEGER ) + - ( + + col0 ) FROM tab0 WHERE + + col1 * - - col1 <> NULL
----

query II rowsort
SELECT + col0, 8 AS col1 FROM tab2 AS cor0
----
46
8
64
8
75
8

query II rowsort
SELECT - col2 AS col1, col1 * + col2 AS col0 FROM tab1 AS cor0
----
-59
295
-68
3196
-96
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT - + SUM( col1 ) col2 FROM tab1 cor0 WHERE NULL > - col2 * ( + col0 ) * 63 + - - col0 + + - 35
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8965
SELECT DISTINCT - + SUM ( col1 ) col2 FROM tab1 cor0 WHERE NULL > - col2 * ( + col0 ) * 63 + - - col0 + + - 35
----
NULL

query I rowsort
SELECT ALL - col0 * + col0 * + col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + - MIN( + 33 ) AS col0 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8967
SELECT + - MIN ( + 33 ) AS col0 FROM tab0 cor0
----
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col2, col2 * + col1 FROM tab1 cor0
----
59
295
68
3196
96
1344

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + COUNT( ALL + 29 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8971
SELECT + COUNT ( ALL + 29 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 45 col0 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8974
SELECT - COUNT( * ) AS col0, COUNT( * ) + + CAST( + 22 AS SIGNED ) FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-8974
SELECT - COUNT ( * ) AS col0, COUNT ( * ) + + CAST ( + 22 AS INTEGER ) FROM tab1 AS cor0
----
-3
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT 28 DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT 28 / + + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT 58 - ( + COUNT( * ) ) * - MIN( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT 58 - ( + COUNT ( * ) ) * - MIN ( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 58 + - col2 + + col1 * - + col2 * + col1 AS col2 FROM tab2
----
-237142
-260362
-59788

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - + 94 IN ( 16 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 col1 FROM tab1 WHERE col1 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - col0 * - 50 AS col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT DISTINCT - 1 + col2 * + 28 + - - 9 AS col0 FROM tab1
----
1660
1912
2696

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8986
SELECT CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT 14 * - ( - + CAST( NULL AS SIGNED ) ) * - + 83 * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT 14 * - ( - + CAST ( NULL AS INTEGER ) ) * - + 83 * - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - 81 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) * - col1 / + col2 + - 69 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) * - col1 / + col2 + - 69 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * + 47 * - col2 - + - col2 FROM tab0 AS cor0
----
-33088
-40880
-451242

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT SUM( DISTINCT + 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8993
SELECT SUM ( DISTINCT + 17 ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL + - COUNT( * ) - + 53 AS col1 FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + - COUNT ( * ) - + 53 AS col1 FROM tab2 cor0
----
-56

query I rowsort
SELECT ALL - - 79 - col1 FROM tab2 AS cor0
----
12
2
28

query II rowsort
SELECT DISTINCT + + col0, + col0 * col2 AS col2 FROM tab0 cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT col1 + + + col1 * - 50 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT DISTINCT + 54 * 81 AS col1 FROM tab2, tab2 AS cor0
----
4374

query I rowsort
SELECT ALL - col1 * 76 AS col0 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT - ( + - col0 ) * - 23 FROM tab0
----
-2001
-2231
-345

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT - 64 DIV - ( - col0 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT - 64 / - ( - col0 ) FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT SUM( DISTINCT col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9003
SELECT SUM ( DISTINCT col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + ( + 67 ) * + col2 + - col0 AS col0 FROM tab2
----
1495
2616
3811

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 ) <> 43 / - col1 * - 5 + + - col1
----

query I rowsort
SELECT - 44 * + 51 * + 26 FROM tab1
----
-58344
-58344
-58344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 * col0 * + 66 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col2 * col0 * + 66 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT col2 DIV 42 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9008
SELECT col2 / 42 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * + + col2 col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 36 * - col2 * - col0 IS NOT NULL )
----
-4366
-5032
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT + 33 DIV - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-132
-47

skipif mysql # not compatible
query I rowsort label-9010
SELECT + 33 / - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-132
-47

query II rowsort
SELECT - 9 + ( - + 80 ), 23 AS col2 FROM tab0 AS cor0
----
-89
23
-89
23
-89
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9012
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( - CAST( + col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9012
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( - CAST ( + col1 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ALL - 58 * + col2 + - 10 AS col1 FROM tab0
----
-2736
-5752
-590

query I rowsort
SELECT 96 + + col2 + col1 FROM tab1
----
160
206
211

query I rowsort
SELECT + col2 + + + 80 * - col1 FROM tab0
----
-1670
-6433
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 57 NOT BETWEEN + col2 AND + col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col1 ) * + col0 + col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 + - - col1 AS col2 FROM tab2
----
-2244
-4774
-4891

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - + col0 > + col0 + + - 20
----

query II rowsort
SELECT + col0 + - col1, col0 AS col1 FROM tab1
----
37
51
44
91
80
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL + ( - MAX( ALL + 41 ) ) + + ( + 80 ) AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + ( - MAX ( ALL + 41 ) ) + + ( + 80 ) AS col0 FROM tab2
----
39

query I rowsort
SELECT ALL + col1 + + 23 AS col2 FROM tab1
----
28
37
70

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL CAST( NULL AS SIGNED ) + - 84 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT ALL CAST ( NULL AS INTEGER ) + - 84 col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - + col2 AS col2, 51 FROM tab2 AS cor0
----
-23
51
-40
51
-58
51

query II rowsort
SELECT DISTINCT - + col0 AS col2, 50 AS col1 FROM tab1 AS cor0
----
-51
50
-85
50
-91
50

query II rowsort
SELECT col0 AS col0, + 70 + - 28 AS col1 FROM tab2 AS cor0
----
46
42
64
42
75
42

query II rowsort
SELECT - - col1 AS col0, + 50 + col2 + - - col2 FROM tab1 AS cor0
----
14
242
47
186
5
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9029
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 4 - - 37 BETWEEN 55 * - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT + CAST( 54 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + CAST ( 54 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
54

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 62 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT + col1 + + CAST( + + 11 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
12
32
92

skipif mysql # not compatible
query I rowsort label-9033
SELECT + col1 + + CAST ( + + 11 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
12
32
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT - 25 DIV + - 99 + + + COUNT( * ) * + + ( + 86 ) AS col1 FROM tab1 cor0
----
258

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - 25 / + - 99 + + + COUNT ( * ) * + + ( + 86 ) AS col1 FROM tab1 cor0
----
258

query I rowsort
SELECT 87 * - + 51 + + ( + + 16 ) FROM tab2 AS cor0
----
-4421
-4421
-4421

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 7 + - 85, - 98 col1 FROM tab1 AS cor0
----
-78
-98
-78
-98
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT 24 - - MIN( ALL - 43 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT 24 - - MIN ( ALL - 43 ) FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT - - SUM( - ( - - col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - - SUM ( - ( - - col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - 99 * COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - 99 * COUNT ( * ) FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT - + 52 - col2 + + col0 AS col1 FROM tab1 WHERE col2 BETWEEN col0 AND + + col1 * CAST( NULL AS SIGNED ) AND 58 + col2 NOT IN ( + - col1, - 52, - - 90 + - col2, col2 * + 99 * col0 * - col2 * col1 + col2 )
----

skipif mysql # not compatible
query I rowsort label-9040
SELECT - + 52 - col2 + + col0 AS col1 FROM tab1 WHERE col2 BETWEEN col0 AND + + col1 * CAST ( NULL AS INTEGER ) AND 58 + col2 NOT IN ( + - col1, - 52, - - 90 + - col2, col2 * + 99 * col0 * - col2 * col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + 85 * COUNT( * ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + 85 * COUNT ( * ) FROM tab0
----
255

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col2 + 3 * col2 > + col2 * col1
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT + 71 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT - COUNT( * ) * - - MIN( DISTINCT col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - COUNT ( * ) * - - MIN ( DISTINCT col2 ) FROM tab1
----
-177

query I rowsort
SELECT ALL + - col2 * col1 + + col2 + - - col0 * - col0 + + - col0 FROM tab0 WHERE NOT - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col0 ) * - 98 FROM tab0
----
1470
8526
9506

query II rowsort
SELECT ALL 48, col0 AS col2 FROM tab2 AS cor0
----
48
46
48
64
48
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9048
SELECT + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9049
SELECT ALL col1 * + + 1 AS col1, CAST( - col0 AS SIGNED ) + + + col2 + - - col2 FROM tab0
----
1
101
21
-67
81
79

skipif mysql # not compatible
query II rowsort label-9049
SELECT ALL col1 * + + 1 AS col1, CAST ( - col0 AS INTEGER ) + + + col2 + - - col2 FROM tab0
----
1
101
21
-67
81
79

query I rowsort
SELECT DISTINCT + col0 + + ( ( + + col1 ) ) FROM tab2
----
141
142
97

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col0 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT - - col0 DIV + - col0 - - col2 AS col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9052
SELECT - - col0 / + - col0 - - col2 AS col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + + 33 * + ( - - COUNT( - 19 ) ) FROM tab2 AS cor0 WHERE NOT col1 / col0 * - 53 / col0 < - 5 - 50 * + - col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + + 33 * + ( - - COUNT ( - 19 ) ) FROM tab2 AS cor0 WHERE NOT col1 / col0 * - 53 / col0 < - 5 - 50 * + - col2 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT DISTINCT - 53 + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 69
----

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - 53 + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 69
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 47 + - col0 FROM tab0 AS cor0
----
2194
383
4556

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN + 39 * + col2 + + 68 + + - 9 AND - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 = - 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT DISTINCT col0 * 41 + + CAST( col0 AS SIGNED ) FROM tab1
----
2142
3570
3822

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT col0 * 41 + + CAST ( col0 AS INTEGER ) FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ( + + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9062
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - col0 + col1 * + + col1 * col1 FROM tab1
----
103732
2693
40

query I rowsort
SELECT DISTINCT - col1 * - + col0 * + 48 * 61 + 64 FROM tab0
----
284080
3557584
5349520

query I rowsort
SELECT DISTINCT - col0 + - 13 FROM tab2
----
-59
-77
-88

query I rowsort
SELECT ALL - 6 + - + 53 AS col2 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 55 + + 50 FROM tab1
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + 15 * + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9068
SELECT + 15 * + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + 18 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * col2 * + + col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - col1 * + 69 AS col2 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( - ( - col0 ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT + COUNT ( - ( - col0 ) ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT col2 * + - 62 * CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT col2 * + - 62 * CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT - - ( + + COUNT( * ) ), MAX( 58 ) AS col2 FROM tab2 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-9075
SELECT - - ( + + COUNT ( * ) ), MAX ( 58 ) AS col2 FROM tab2 AS cor0
----
3
58

query I rowsort
SELECT ALL 84 AS col0 FROM tab1 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + + SUM( - 4 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + + SUM ( - 4 ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / col2 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9078
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9079
SELECT CAST( + 95 AS SIGNED ), COUNT( ALL col1 ) * + 94 col2 FROM tab1
----
95
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9079
SELECT CAST ( + 95 AS INTEGER ), COUNT ( ALL col1 ) * + 94 col2 FROM tab1
----
95
282

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( 1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col1 * col0 + + + 77
----

query I rowsort
SELECT ALL + 39 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT + AVG ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 11 + col2 + - col1 + - 78 * + - col0 AND NULL
----
NULL

query II rowsort
SELECT ALL - - 99 * col1 + + col0, col0 FROM tab0 AS cor0
----
196
97
2166
87
8034
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9085
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL BETWEEN col0 * + col2 - - - CAST( + - col2 AS SIGNED ) - + col1 + + 18 + - 9 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9085
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL BETWEEN col0 * + col2 - - - CAST ( + - col2 AS INTEGER ) - + col1 + + 18 + - 9 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9086
SELECT * FROM tab0 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9086
SELECT * FROM tab0 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - - COUNT( + 36 ) + + 15 * 67 AS col1 FROM tab2 AS cor0
----
1008

skipif mysql # not compatible
query I rowsort label-9088
SELECT - - COUNT ( + 36 ) + + 15 * 67 AS col1 FROM tab2 AS cor0
----
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT + + col2 + - - 83 DIV 14 * + - col0 DIV - - col1 + - col1 * - - 25 + + col2 AS col1 FROM tab0 AS cor0
----
-1931
-312
-525

skipif mysql # not compatible
query I rowsort label-9089
SELECT + + col2 + - - 83 / 14 * + - col0 / - - col1 + - col1 * - - 25 + + col2 AS col1 FROM tab0 AS cor0
----
-1931
-312
-525

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 38 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + COUNT( * ) + + + 82 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9091
SELECT + COUNT ( * ) + + + 82 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + - ( 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL - col1 * + CAST( - + 74 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - col1 * + CAST ( - + 74 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT - 50 + - col1 FROM tab0 AS cor0
----
-131
-51
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9095
SELECT ALL - col2 + CAST( NULL AS SIGNED ), col0 * - col0 AS col0 FROM tab0
----
NULL
-225
NULL
-7569
NULL
-9409

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL - col2 + CAST ( NULL AS INTEGER ), col0 * - col0 AS col0 FROM tab0
----
NULL
-225
NULL
-7569
NULL
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT - ( + + 85 ) * 35 - col0 + - 3 DIV + col2 + col2 FROM tab0
----
-2943
-2973
-3052

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT - ( + + 85 ) * 35 - col0 + - 3 / + col2 + col2 FROM tab0
----
-2943
-2973
-3052

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL - MAX( - col1 ) + 44 AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - MAX ( - col1 ) + 44 AS col1 FROM tab0
----
45

query I rowsort
SELECT ALL 29 + col1 FROM tab0
----
110
30
50

query I rowsort
SELECT ALL col0 + + 95 AS col1 FROM tab2 AS cor0
----
141
159
170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - col2 / 75
----

query I rowsort
SELECT + col1 * - col1 - + col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9102
SELECT DISTINCT - col1 AS col2, col2 + 56 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN col1 + - col1 AND - - ( - CAST( NULL AS SIGNED ) )
----
-51
79
-67
114
-77
96

skipif mysql # not compatible
query II rowsort label-9102
SELECT DISTINCT - col1 AS col2, col2 + 56 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN col1 + - col1 AND - - ( - CAST ( NULL AS INTEGER ) )
----
-51
79
-67
114
-77
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - COUNT( - 78 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - COUNT ( - 78 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + + SUM( ALL + 20 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9104
SELECT ALL + + SUM ( ALL + 20 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - MIN( + 54 ) col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9105
SELECT DISTINCT - MIN ( + 54 ) col2 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL ( 90 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT 26 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-9107
SELECT 26 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL MIN( 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL MIN ( 63 ) FROM tab0 AS cor0
----
63

query II rowsort
SELECT + col0 AS col2, 55 AS col2 FROM tab2 AS cor0
----
46
55
64
55
75
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - MAX( ALL - col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9110
SELECT - MAX ( ALL - col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9111
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9111
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + ( + - COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9112
SELECT + ( + - COUNT ( * ) ) col0 FROM tab2
----
-3

query I rowsort
SELECT - col1 * 50 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT col1 * + 80 * + 35 + 34 FROM tab2 AS cor0
----
142834
187634
215634

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9115
SELECT ALL - CAST( NULL AS SIGNED ), col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL - CAST ( NULL AS INTEGER ), col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT ALL - - 32, + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 <> - + col0
----

query I rowsort
SELECT col0 * 27 + - 31 + - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
3557
6625
7019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 col1 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 10 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-23460
-49280
-50250

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + - COUNT( * ) + - ( + - COUNT( + col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + - COUNT ( * ) + - ( + - COUNT ( + col0 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 + - 6 - - - 32 FROM tab1
----
21
30
58

query I rowsort
SELECT + ( - 30 ) AS col1 FROM tab2
----
-30
-30
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2
----

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 <= + col0 * + col2
----

query I rowsort
SELECT DISTINCT - 39 * + col1 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 15 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col1 * + col0 NOT BETWEEN NULL AND - + col1
----

query II rowsort
SELECT DISTINCT 52 AS col2, col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
46
52
64
52
75

query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
102400
24334
252300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( - 43 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT MAX( DISTINCT - + 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT MAX ( DISTINCT - + 13 ) FROM tab1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9132
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9132
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT DISTINCT + 16, COUNT( DISTINCT col2 ) AS col0 FROM tab1
----
16
3

skipif mysql # not compatible
query II rowsort label-9133
SELECT DISTINCT + 16, COUNT ( DISTINCT col2 ) AS col0 FROM tab1
----
16
3

query I rowsort
SELECT - col1 * + col1 + + - col2 FROM tab0
----
-100
-451
-6608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - ( 54 ) + - + 81 col0 FROM tab1
----
-4509
-4509
-4509

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT - col0 + - 49 + + col1 DIV 65 * col1 AS col1 FROM tab2
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-9136
SELECT - col0 + - 49 + + col1 / 65 * col1 AS col1 FROM tab2
----
-36
-57
-95

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + col0 OR NOT + + col2 < + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col0 ) * - 53 + 34 * + 95 col1 FROM tab2
----
5668
6622
7205

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + COUNT( * ) + + + 85 AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COUNT ( * ) + + + 85 AS col1 FROM tab0
----
88

query I rowsort
SELECT DISTINCT - col2 * + 0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT DISTINCT + CAST( - + 83 AS SIGNED ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + CAST ( - + 83 AS INTEGER ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT + + col2 * + - col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT COUNT( DISTINCT 15 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT COUNT ( DISTINCT 15 ) FROM tab2
----
1

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT - - MIN( + + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - - MIN ( + + col1 ) FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9147
SELECT col0 / + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT + - SUM( + col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9148
SELECT + - SUM ( + col2 ) AS col2 FROM tab0 cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT ALL - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT ALL - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT + CAST( - 86 AS SIGNED ) + - ( 63 ) FROM tab0
----
-149
-149
-149

skipif mysql # not compatible
query I rowsort label-9153
SELECT + CAST ( - 86 AS INTEGER ) + - ( 63 ) FROM tab0
----
-149
-149
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 28 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 28 FROM tab1
----
NULL

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND - 4 * + col2 + 13 + + ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + 21 ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 77 * + 68 FROM tab0
----
-5236
-5236
-5236

query I rowsort
SELECT DISTINCT ( - 19 ) + 35 FROM tab1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT ALL 16 DIV + 5 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL 16 / + 5 AS col0 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT + - COUNT( + + 97 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT DISTINCT + - COUNT ( + + 97 ) col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * col1 * + 60 + - 57 col1 FROM tab0 AS cor0
----
105783
408183
4983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - ( 48 ) col0 FROM tab2 AS cor0
----
23
-48
40
-48
58
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - - MIN( - 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9163
SELECT - - MIN ( - 16 ) FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL - - col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 99 col1, col2 * - col1 AS col2 FROM tab2 AS cor0
----
-99
-1173
-99
-3080
-99
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT 18 DIV + 99 * MIN( DISTINCT col0 ) * + - 97 + 87 * SUM( DISTINCT 59 ) FROM tab2 cor0
----
5133

skipif mysql # not compatible
query I rowsort label-9168
SELECT 18 / + 99 * MIN ( DISTINCT col0 ) * + - 97 + 87 * SUM ( DISTINCT 59 ) FROM tab2 cor0
----
5133

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9170
SELECT ALL COUNT( * ) AS col0, 7 FROM tab1 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-9170
SELECT ALL COUNT ( * ) AS col0, 7 FROM tab1 AS cor0
----
3
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9171
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * - col2 + - col0 - + col0 + + col1 * + 38 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9171
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 + - col0 - + col0 + + col1 * + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9172
SELECT col0 * col1 / - - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9172
SELECT col0 * col1 / - - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT ALL 48 + + + CAST( NULL AS SIGNED ) / + - 10 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL 48 + + + CAST ( NULL AS INTEGER ) / + - 10 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col0 + + 1 FROM tab1
----
2602
7226
8282

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( ( NOT + + col1 NOT BETWEEN 76 AND - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 73 * - ( col1 ) col1 FROM tab1
----
-280
-3340
-971

query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 60 FROM tab2 AS cor0 WHERE NOT - 55 + - col1 IS NULL
----
60
60
60

query I rowsort
SELECT - col0 * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + - 62 AS col1 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT + 16 * - + col1 + + + ( - 81 ) AS col2 FROM tab2 AS cor0
----
-1153
-1313
-897

query II rowsort
SELECT + - col0 AS col0, 33 AS col1 FROM tab0 AS cor0
----
-15
33
-87
33
-97
33

query I rowsort
SELECT - 21 * + 9 AS col2 FROM tab1 AS cor0
----
-189
-189
-189

query I rowsort
SELECT - ( - + 23 ) FROM tab1 cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col2 AS col1 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT - + CAST( - 87 AS SIGNED ) DIV 45 + + SUM( ALL - col0 ) + 48 DIV 33 * - 90 FROM tab1 AS cor0
----
-316

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - + CAST ( - 87 AS INTEGER ) / 45 + + SUM ( ALL - col0 ) + 48 / 33 * - 90 FROM tab1 AS cor0
----
-316

query II rowsort
SELECT - 47 * - 60, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 NOT IN ( col2 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT + - ( - - 89 ) DIV - ( ( + + col0 ) ) FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9191
SELECT + - ( - - 89 ) / - ( ( + + col0 ) ) FROM tab2 cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - 98, col1 AS col0 FROM tab2 cor0
----
-98
51
-98
67
-98
77

query I rowsort
SELECT DISTINCT + ( + - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT COUNT( * ) * - 74 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT COUNT ( * ) * - 74 FROM tab0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - MAX( DISTINCT col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9195
SELECT - MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT COUNT( * ) * - ( - + SUM( DISTINCT - 79 ) ) + + SUM( + col0 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT COUNT ( * ) * - ( - + SUM ( DISTINCT - 79 ) ) + + SUM ( + col0 ) FROM tab2
----
-52

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9198
SELECT ALL + CAST( NULL AS DECIMAL ) + - + SUM( + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + CAST ( NULL AS REAL ) + - + SUM ( + col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9199
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT - + CAST( - 79 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT - + CAST ( - 79 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 + - - col2 / + + 73 * + + 11 IS NULL
----

query I rowsort
SELECT - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT SUM( DISTINCT - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9203
SELECT SUM ( DISTINCT - + col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9204
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-9204
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - col0 - - + col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + MIN( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9206
SELECT + MIN ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * + + 38 * + ( - 83 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT - col0 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col1 * - ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9208
SELECT - col0 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col1 * - ( col0 ) IS NULL
----

query II rowsort
SELECT ALL 79, - col2 * - col1 * + col1 + - col2 AS col1 FROM tab2 cor0
----
79
237120
79
260304
79
59800

query I rowsort
SELECT ALL + ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT - MIN( DISTINCT + + 77 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - MIN ( DISTINCT + + 77 ) FROM tab1
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 54 col1 FROM tab2
----
112
77
94

query I rowsort
SELECT ALL + ( - + 64 ) FROM tab0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 + col0 col2, col2 + + col0 AS col2 FROM tab1
----
131
147
165
144
171
159

query II rowsort
SELECT ALL - 39 AS col1, + 62 AS col1 FROM tab2
----
-39
62
-39
62
-39
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT - 82 AS col0, + 97 * + + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
-82
873

skipif mysql # not compatible
query II rowsort label-9217
SELECT - 82 AS col0, + 97 * + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-82
873

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT - 78 DIV 80 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT - 78 / 80 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT MAX( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT MAX ( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 50 * + - col2 FROM tab2
----
-1150
-2000
-2900

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 57 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT ALL + - ( - COUNT( * ) ) AS col2, 47 FROM tab0 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-9222
SELECT ALL + - ( - COUNT ( * ) ) AS col2, 47 FROM tab0 AS cor0
----
3
47

query I rowsort
SELECT + 50 AS col2 FROM tab2 cor0
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9224
SELECT DISTINCT - COUNT( ALL 24 ) + CAST( - + 11 AS SIGNED ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - COUNT ( ALL 24 ) + CAST ( - + 11 AS INTEGER ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT col2 + - + 7 AS col1 FROM tab1 cor0
----
52
61
89

query I rowsort
SELECT ALL 23 * + + 33 AS col1 FROM tab2
----
759
759
759

query I rowsort
SELECT + 86 AS col1 FROM tab1 WHERE col0 * - - col2 + + + col1 + + col0 + col1 + col0 NOT IN ( + col1, - 41, - col2 * - col1 * col2 + - 77, - + 23, - col0 )
----
86
86
86

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0 WHERE NOT NULL = + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - COUNT( + 73 ) + MIN( ALL - col1 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - COUNT ( + 73 ) + MIN ( ALL - col1 ) FROM tab0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9230
SELECT - COUNT( * ) + + + 23 * - COUNT( * ) DIV + 27 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - ( - 25 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT - COUNT ( * ) + + + 23 * - COUNT ( * ) / + 27 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - ( - 25 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - ( + 43 ) AS col0 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 98 * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 98 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT ALL CAST( NULL AS SIGNED ) + - 62 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL CAST ( NULL AS INTEGER ) + - 62 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - MIN( + - col2 ) * + + 51 + - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
5052

skipif mysql # not compatible
query I rowsort label-9236
SELECT - MIN ( + - col2 ) * + + 51 + - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
5052

query I rowsort
SELECT ALL col2 * + 8 FROM tab0
----
376
792
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / + col0 + col0 col1 FROM tab1 WHERE col2 + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + 6
----

query I rowsort
SELECT + 0 * 7 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * - col2 ) BETWEEN + 7 AND NULL
----

query I rowsort
SELECT ALL 28 * + col2 AS col0 FROM tab1
----
1652
1904
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT DISTINCT CAST( col0 AS SIGNED ) * ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT CAST ( col0 AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL + CAST( + 4 AS SIGNED ) * + col1 AS col1 FROM tab0
----
324
4
84

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + CAST ( + 4 AS INTEGER ) * + col1 AS col1 FROM tab0
----
324
4
84

query III rowsort
SELECT * FROM tab2 WHERE col1 = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT - 67 FROM tab0 WHERE NOT NULL <= 77 + - col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9246
SELECT - 67 FROM tab0 WHERE NOT NULL <= 77 + - col2 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 97 * - 77 FROM tab0
----
-7469
-7469
-7469

query I rowsort
SELECT col0 * 10 AS col0 FROM tab2
----
460
640
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT + CAST( + 44 AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-9249
SELECT + CAST ( + 44 AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 45 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9252
SELECT ALL + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) / - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col2 IS NOT NULL
----

query I rowsort
SELECT + 65 - + 3 * + col1 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( 21 * 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + SUM( ( + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9255
SELECT + SUM ( ( + col2 ) ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT DISTINCT + col0 DIV + 98 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + col0 / + 98 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 50 = ( 14 * col0 - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT CAST( NULL AS SIGNED ) + 66 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT CAST ( NULL AS INTEGER ) + 66 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 - + col1 FROM tab2 WHERE col1 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - MAX( ALL + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9261
SELECT - MAX ( ALL + col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - SUM( DISTINCT + 64 ) col2 FROM tab1
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9262
SELECT - SUM ( DISTINCT + 64 ) col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL - col0 + CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - col0 + CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + 98 AS col1 FROM tab0
----
17
77
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 88 AND ( + 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 29 ) col2 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT col2 DIV 36 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9267
SELECT col2 / 36 col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT ALL + COUNT( + col2 ) * - COUNT( ALL col1 + + 26 * + CAST( + 65 * - col2 AS SIGNED ) ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + COUNT ( + col2 ) * - COUNT ( ALL col1 + + 26 * + CAST ( + 65 * - col2 AS INTEGER ) ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT 35 / + 42 NOT BETWEEN col0 + 13 AND col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT - CAST( MIN( 93 ) AS SIGNED ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT - CAST ( MIN ( 93 ) AS INTEGER ) FROM tab2
----
-93

query I rowsort
SELECT 71 * 29 FROM tab1 AS cor0
----
2059
2059
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + MIN( + 47 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 53 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT + MIN ( + 47 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 53 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( col1 AS SIGNED ) + - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( col1 AS INTEGER ) + - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + 25 FROM tab1 AS cor0
----
30
39
72

query I rowsort
SELECT DISTINCT - - col2 * col2 AS col1 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT ALL - col2 + + ( ( col1 ) ) * + 91 FROM tab0
----
-8
1901
7324

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT COUNT( * ) + - 52 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT COUNT ( * ) + - 52 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + COUNT( + 86 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9281
SELECT + COUNT ( + 86 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - MAX( 24 ) * ( - 83 ) + 84 AS col2 FROM tab1
----
2076

skipif mysql # not compatible
query I rowsort label-9282
SELECT - MAX ( 24 ) * ( - 83 ) + 84 AS col2 FROM tab1
----
2076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT - col2 AS col2 FROM tab2 WHERE ( + col1 / 84 + + CAST( NULL AS SIGNED ) ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9283
SELECT - col2 AS col2 FROM tab2 WHERE ( + col1 / 84 + + CAST ( NULL AS INTEGER ) ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE ( NULL ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT 94 + + COUNT( * ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9285
SELECT 94 + + COUNT ( * ) FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + 8 * + COUNT( * ) + 48 AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9286
SELECT + 8 * + COUNT ( * ) + 48 AS col0 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL - col0 * - col2 AS col1 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 7 ) AND + col0
----

query I rowsort
SELECT ALL 21 + + + col0 FROM tab1
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + SUM( + ( - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9291
SELECT + SUM ( + ( - col1 ) ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT COUNT( * ) + + ( + 73 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT COUNT ( * ) + + ( + 73 ) FROM tab0
----
76

query I rowsort
SELECT - col2 - + - col1 AS col0 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT + - col0 * - col1 - col0 * + 79 AS col0 FROM tab1 AS cor0
----
-2912
-3315
-6290

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9297
SELECT ALL * FROM tab1 AS cor0 WHERE ( 33 * col0 ) NOT BETWEEN - 97 - col1 * col0 AND - 22 * - ( - col0 * - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT ALL * FROM tab1 AS cor0 WHERE ( 33 * col0 ) NOT BETWEEN - 97 - col1 * col0 AND - 22 * - ( - col0 * - ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT CAST( 53 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9298
SELECT CAST ( 53 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9299
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT BETWEEN + col1 * - col0 AND CAST( col0 AS SIGNED ) * col2 OR NOT - col2 / col2 + col2 >= + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9299
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT BETWEEN + col1 * - col0 AND CAST ( col0 AS INTEGER ) * col2 OR NOT - col2 / col2 + col2 >= + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT 13 * + CAST( - col0 AS SIGNED ) FROM tab2
----
-598
-832
-975

skipif mysql # not compatible
query I rowsort label-9300
SELECT 13 * + CAST ( - col0 AS INTEGER ) FROM tab2
----
-598
-832
-975

query I rowsort
SELECT + 45 * col2 * + ( + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT - col0 * + col0, col1 AS col1 FROM tab1
----
-2601
14
-7225
5
-8281
47

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= col1
----

query I rowsort
SELECT ALL - 89 * + - col0 AS col2 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NULL > ( - col2 ) * + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9307
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - - col1
----

skipif mysql # not compatible
query III rowsort label-9307
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS REAL ) AND - - col1
----

query I rowsort
SELECT DISTINCT - 16 + 32 FROM tab0 AS cor0 WHERE NULL < ( - col2 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT + col2 / - col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + col2 / - col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9310
SELECT ALL CAST( + 30 AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL CAST ( + 30 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + + 32 AS col0 FROM tab1 cor0
----
-27
-36
-64

query I rowsort
SELECT ALL - + ( - + 40 ) FROM tab1 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT 61 + - - COUNT( ALL + col2 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9313
SELECT 61 + - - COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT ALL - col1 * + - 86 FROM tab0 AS cor0
----
1806
6966
86

query II rowsort
SELECT ALL 60, 66 AS col0 FROM tab2
----
60
66
60
66
60
66

query III rowsort
SELECT * FROM tab0 WHERE 68 IS NULL
----

query I rowsort
SELECT - col0 + - + col2 + 60 AS col2 FROM tab2
----
-44
-73
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN + 40 * + col0 AND 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col1, col1 * + col1 FROM tab1
----
59
25
68
2209
96
196

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query II rowsort label-9321
SELECT col0 AS col2, col0 DIV col1 + + col2 + 58 + + col0 * + col0 FROM tab2
----
46
2197
64
4194
75
5742

skipif mysql # not compatible
query II rowsort label-9321
SELECT col0 AS col2, col0 / col1 + + col2 + 58 + + col0 * + col0 FROM tab2
----
46
2197
64
4194
75
5742

query I rowsort
SELECT ALL - col0 + + col0 + - + col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL 0 * - col2 + - col0 + 1 + + 22 AS col0 FROM tab0 AS cor0
----
-64
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - + COUNT( * ) * + 11 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9324
SELECT - + COUNT ( * ) * + 11 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT + - col1 - col0 * col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT COUNT( * ) - - 31 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( * ) - - 31 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 45 * - col0 IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - COUNT( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9329
SELECT - COUNT ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT + col2 IN ( - 22 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT 74 FROM tab0 AS cor0 WHERE NOT + col1 * 14 + + 96 BETWEEN col1 AND ( + - col0 ) - CAST( col0 AS SIGNED )
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9331
SELECT 74 FROM tab0 AS cor0 WHERE NOT + col1 * 14 + + 96 BETWEEN col1 AND ( + - col0 ) - CAST ( col0 AS INTEGER )
----
74
74
74

query I rowsort
SELECT ( - - 33 ) FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT ALL col2 * - col2 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-19404
-2914
-970

query I rowsort
SELECT DISTINCT - 4 FROM tab2 AS cor0 WHERE ( 74 IS NOT NULL )
----
-4

query II rowsort
SELECT ALL col0 AS col0, + col2 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT DISTINCT + 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND col0
----

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col0
----

query I rowsort
SELECT + 15 * + 12 - - - col1 * 98 AS col0 FROM tab0 AS cor0
----
-1878
-7758
82

query I rowsort
SELECT 41 * 46 FROM tab0
----
1886
1886
1886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * col1 * - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT - COUNT( * ) * 11 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - COUNT ( * ) * 11 FROM tab1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT - - CAST( + col1 AS SIGNED ) * col1 + - 69 / col0 - 4 * col1 + col2 * + col2 AS col1 FROM tab1 WHERE NOT NULL <> 2
----

skipif mysql # not compatible
query I rowsort label-9341
SELECT - - CAST ( + col1 AS INTEGER ) * col1 + - 69 / col0 - 4 * col1 + col2 * + col2 AS col1 FROM tab1 WHERE NOT NULL <> 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT ALL + 90 DIV - 12 AS col0 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + 90 / - 12 AS col0 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 36 * - col2 * col1 AS col2 FROM tab1
----
-10620
-115056
-48384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9344
SELECT + + 14 DIV COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9344
SELECT + + 14 / COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 71 FROM tab2, tab2 cor0
----
-71

query I rowsort
SELECT DISTINCT - - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT DISTINCT + 17 + 5 + - - COUNT( * ) * - 54 * + COUNT( * ) + + MAX( col0 ) DIV - + 36 AS col0 FROM tab2
----
-466

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT + 17 + 5 + - - COUNT ( * ) * - 54 * + COUNT ( * ) + + MAX ( col0 ) / - + 36 AS col0 FROM tab2
----
-466

query I rowsort
SELECT + 17 * - - ( + 30 ) AS col0 FROM tab1 AS cor0
----
510
510
510

query II rowsort
SELECT + ( - col1 ) AS col2, + 66 + - + col2 FROM tab2 AS cor0
----
-51
43
-67
8
-77
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, - col0 )
----

query I rowsort
SELECT DISTINCT + - 98 FROM tab1 AS cor0
----
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <> - 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT DISTINCT * FROM tab2 WHERE 82 * + + 54 * - col0 + + CAST( NULL AS SIGNED ) IS NULL AND NOT NULL > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT DISTINCT * FROM tab2 WHERE 82 * + + 54 * - col0 + + CAST ( NULL AS INTEGER ) IS NULL AND NOT NULL > ( NULL )
----

query I rowsort
SELECT + col0 + - col2 - 26 * 91 AS col0 FROM tab0
----
-2289
-2368
-2398

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT ALL - 95 + - + CAST( + col2 AS SIGNED ) + - col2 FROM tab1
----
-213
-231
-287

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 95 + - + CAST ( + col2 AS INTEGER ) + - col2 FROM tab1
----
-213
-231
-287

query II rowsort
SELECT DISTINCT - ( + 4 ) - col1 AS col0, + 57 FROM tab2
----
-55
57
-71
57
-81
57

query I rowsort
SELECT ALL 27 + + - col1 AS col0 FROM tab0
----
-54
26
6

query I rowsort
SELECT + 6 + + 23 AS col2 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL - ( 62 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - ( 62 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + 33 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 3 * col2 ) <= col1
----

query II rowsort
SELECT col1 AS col1, 8 FROM tab1
----
14
8
47
8
5
8

query I rowsort
SELECT ALL col0 * + + col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT - COUNT( * ) * 57 + - + 39 FROM tab1 WHERE NOT col1 * + 71 - CAST( NULL AS SIGNED ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9364
SELECT - COUNT ( * ) * 57 + - + 39 FROM tab1 WHERE NOT col1 * + 71 - CAST ( NULL AS INTEGER ) IS NULL
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - SUM( ALL - ( ( 83 ) ) ) * - - CAST( NULL AS SIGNED ) + + 95 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - SUM ( ALL - ( ( 83 ) ) ) * - - CAST ( NULL AS INTEGER ) + + 95 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 89 * + + col1 FROM tab2 cor0
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT COUNT( * ) * + - 92 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9367
SELECT COUNT ( * ) * + - 92 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT - + COUNT( * ) AS col2, + 82 FROM tab0 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-9368
SELECT - + COUNT ( * ) AS col2, + 82 FROM tab0 AS cor0
----
-3
82

query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab0 AS cor0
----
-30

query II rowsort
SELECT ALL + col2 * + + 64, col2 FROM tab2 cor0
----
1472
23
2560
40
3712
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + - 96 + + + CAST( - col0 AS SIGNED ) * + 7 * + + col2 * 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + - 96 + + + CAST ( - col0 AS INTEGER ) * + 7 * + + col2 * 55 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - - 43 + + col2 * + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL MIN( DISTINCT col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ( ( 95 ) ) AS col2 FROM tab0
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL COUNT( * ) * - COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL COUNT ( * ) * - COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9377
SELECT - ( - col2 ) FROM tab2 WHERE NOT NULL = - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9377
SELECT - ( - col2 ) FROM tab2 WHERE NOT NULL = - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT COUNT( * ) * COUNT( DISTINCT - 66 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9378
SELECT COUNT ( * ) * COUNT ( DISTINCT - 66 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 * + 1 AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT 80 * - + CAST( NULL AS SIGNED ) / - 7 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9380
SELECT 80 * - + CAST ( NULL AS INTEGER ) / - 7 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT CAST( - + 5 AS SIGNED ) FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9382
SELECT CAST ( - + 5 AS INTEGER ) FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - 14 * - 41 AS col2 FROM tab0 AS cor0
----
574
574
574

query I rowsort
SELECT DISTINCT + 68 * + col2 + + col2 AS col2 FROM tab1
----
4071
4692
6624

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT + + col0 * + ( - 99 ) + - CAST( + 35 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-5084
-8450
-9044

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + + col0 * + ( - 99 ) + - CAST ( + 35 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-5084
-8450
-9044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT CAST( NULL AS SIGNED ) / col0 + col0 + + col2 + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT CAST ( NULL AS INTEGER ) / col0 + col0 + + col2 + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col1, 6 FROM tab0 AS cor0
----
15
6
87
6
97
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - + 24 + - - 65 AS col2 FROM tab2 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 53 IS NOT NULL
----

query I rowsort
SELECT - - col2 * col2 * - - col1 + - 54 FROM tab1 AS cor0
----
128970
17351
217274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT - col1 + + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT - col1 + + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 72 AS col1, col2 + - - col1 FROM tab2 AS cor0
----
72
117
72
125
72
74

query I rowsort
SELECT col2 + 72 + + + col2 AS col0 FROM tab2 AS cor0
----
118
152
188

query I rowsort
SELECT 69 + + col1 AS col2 FROM tab0 AS cor0
----
150
70
90

query II rowsort
SELECT col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9399
SELECT - 49 DIV CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 49 / CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
16

query I rowsort
SELECT ALL col1 * + 88 + 47 FROM tab0
----
135
1895
7175

query I rowsort
SELECT DISTINCT - col2 + - 0 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9403
SELECT ALL * FROM tab2 WHERE + 94 * col1 + + + CAST( + 90 AS SIGNED ) < col1 + - col1 * - 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9403
SELECT ALL * FROM tab2 WHERE + 94 * col1 + + + CAST ( + 90 AS INTEGER ) < col1 + - col1 * - 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 27 + col1 * + 55 FROM tab2
----
4047
5710
5963

query I rowsort
SELECT col1 + - 50 AS col1 FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - 79 AS col1 FROM tab1
----
-11
-20
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL COUNT( * ) - + + COUNT( + + CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9407
SELECT ALL COUNT ( * ) - + + COUNT ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + MIN( ALL - - 22 ) - COUNT( * ) / MIN( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + MIN ( ALL - - 22 ) - COUNT ( * ) / MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - ( + 63 ) AS col1 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 9 IS NOT NULL )
----

query I rowsort
SELECT ALL - - 37 FROM tab2 WHERE 99 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT - 76 DIV - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 76 / - col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL - + MIN( ALL + 71 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL - + MIN ( ALL + 71 ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + 50 * - ( 72 ) * - ( + + col0 ) * - - col2 AS col1 FROM tab2 AS cor0
----
15660000
3808800
9216000

query I rowsort
SELECT ALL + + 65 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - MAX( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + COUNT( 14 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + COUNT ( 14 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + + 76 AS col0 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT - 20 AS col1 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - MAX( col2 ) * MIN( DISTINCT + - col1 ) FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-9421
SELECT - MAX ( col2 ) * MIN ( DISTINCT + - col1 ) FROM tab0
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - COUNT( * ) * + 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - COUNT ( * ) * + 48 FROM tab0
----
-144

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 NOT IN ( - 37, - col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + 95 * + ( - COUNT( * ) ) AS col2 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-9424
SELECT + 95 * + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-285

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col2 <> - col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9427
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9427
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - ( + + 20 ) FROM tab2
----
-20
-20
-20

query I rowsort
SELECT col1 * - ( col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - 27 * - - MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 27 * - - MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT + col2 + - + CAST( NULL AS SIGNED ) / + 39 - + - 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT + col2 + - + CAST ( NULL AS INTEGER ) / + 39 - + - 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( + - 98 ) AS col2 FROM tab2 AS cor0
----
-40
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + MIN( ALL col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + MIN ( ALL col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9436
SELECT - COUNT( DISTINCT - - 7 ) DIV + 49 * + - 82 + + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 15 = + - col1 + 29 - CAST( 36 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT - COUNT ( DISTINCT - - 7 ) / + 49 * + - 82 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 15 = + - col1 + 29 - CAST ( 36 AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 + 38 + - - col1 * + 45 + - col2 col1 FROM tab1 AS cor0
----
2092
211
579

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col0 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 / col0 IS NULL
----

query II rowsort
SELECT DISTINCT 29 + col0, + col2 AS col0 FROM tab2
----
104
58
75
23
93
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - COUNT( * ) * - 53 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9441
SELECT - COUNT ( * ) * - 53 FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL col1 * 19 + - col2 + - col1 * - - col1 * col0 + + - 28 + - - col0 + + ( + col1 ) * 92 DIV ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-108
-37897
-96440

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL col1 * 19 + - col2 + - col1 * - - col1 * col0 + + - 28 + - - col0 + + ( + col1 ) * 92 / ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-108
-37897
-96440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9443
SELECT * FROM tab2 AS cor0 WHERE + 79 <= CAST( 2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9443
SELECT * FROM tab2 AS cor0 WHERE + 79 <= CAST ( 2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 BETWEEN + + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col0 col1 FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT + 2 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT + 2 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9447
SELECT * FROM tab2 WHERE + - col1 + + 45 * + CAST( - 6 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9447
SELECT * FROM tab2 WHERE + - col1 + + 45 * + CAST ( - 6 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9448
SELECT 81 + CAST( + - 99 AS SIGNED ) AS col1, col1 col1 FROM tab2
----
-18
51
-18
67
-18
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9448
SELECT 81 + CAST ( + - 99 AS INTEGER ) AS col1, col1 col1 FROM tab2
----
-18
51
-18
67
-18
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 > ( NULL )
----

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT COUNT( * ) + + - 56 * 14 AS col1 FROM tab1
----
-781

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT COUNT ( * ) + + - 56 * 14 AS col1 FROM tab1
----
-781

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9452
SELECT - CAST( NULL AS DECIMAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT - CAST ( NULL AS REAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 * - col0 * - ( 40 ) + + + col0 FROM tab1
----
169371
282285
302211

query I rowsort
SELECT col1 * - - col0 + + col1 FROM tab0
----
1296
1848
98

query I rowsort
SELECT - col1 * - 36 + col2 FROM tab1
----
1760
239
600

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT + 46 DIV + - 72 + - + col2 col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9456
SELECT + 46 / + - 72 + - + col2 col0 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * ( - 42 ) + - col0 col2, ( col0 ) AS col1 FROM tab2
----
-2188
46
-2889
75
-3298
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT ALL - 43 DIV COUNT( * ) + + 61 + SUM( DISTINCT col2 ) FROM tab0 AS cor0 WHERE - 85 IS NOT NULL
----
203

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - 43 / COUNT ( * ) + + 61 + SUM ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE - 85 IS NOT NULL
----
203

query II rowsort
SELECT - col0, 30 AS col0 FROM tab0 AS cor0
----
-15
30
-87
30
-97
30

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0 cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col0 ) + + col0 col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + - 74, + col0 )
----
-210
-7482
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query II rowsort label-9465
SELECT DISTINCT MIN( ALL + 70 ), - 92 AS col2 FROM tab0
----
70
-92

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT MIN ( ALL + 70 ), - 92 AS col2 FROM tab0
----
70
-92

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + - COUNT( * ) * + 85 AS col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9468
SELECT + - COUNT ( * ) * + 85 AS col2 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT 28 - - - col2 FROM tab0 AS cor0 WHERE NOT col2 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT - - COUNT( - + 33 ) * - - MIN( - col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - - COUNT ( - + 33 ) * - - MIN ( - col1 ) FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - MIN( ALL + 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - MIN ( ALL + 26 ) FROM tab2
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col2 col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT col1 + + - col2 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT - col0 + col2 * - + 82 * + col2 FROM tab1
----
-285527
-379259
-755763

query I rowsort
SELECT - 52 + - 8 FROM tab2
----
-60
-60
-60

query I rowsort
SELECT ALL - 25 + - col2 AS col1 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT + 19 * + - col1 * 21 * + col1 AS col0 FROM tab0
----
-175959
-2617839
-399

query I rowsort
SELECT ALL col1 * + - col0 + - - col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT ALL + + ( - + ( - + col0 ) ) * - - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col0 + + 91
----

query I rowsort
SELECT 26 * - - col2 FROM tab0 AS cor0
----
1222
2574
260

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < + 65 * + col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT 50 DIV + - col1 FROM tab0 AS cor0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 50 / + - col1 FROM tab0 AS cor0
----
-2
-50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 31 + + - COUNT( * ) AS col1 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9485
SELECT 31 + + - COUNT ( * ) AS col1 FROM tab1 cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * ( + - 30 ) * + col0 + - 84 + - 81
----

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * ( + - 30 ) * + col0 + - 84 + - 81
----

query I rowsort
SELECT DISTINCT col2 - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query II rowsort
SELECT 82 * + - col0, + col1 - + col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-1230
-47
-7134
-10
-7954
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - MIN( 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - MIN ( 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 18 + + ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-117
-1505
-388

query I rowsort
SELECT ALL 78 + - col0 FROM tab1 WHERE NOT + 73 + + 82 + + - col0 <= - 13 AND NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 49 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT COUNT( * ) * + ( + COUNT( * ) ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT COUNT ( * ) * + ( + COUNT ( * ) ) col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT ALL ( + - 31 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL ( + - 31 ) / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT ALL - 49 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + - 46 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT ALL - - col2 * - 69 AS col0 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT + COUNT( * ) * - 72 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT + COUNT ( * ) * - 72 FROM tab0 AS cor0
----
-216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9503
SELECT col1 / + CAST( NULL AS DECIMAL ) * + col1 + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT col1 / + CAST ( NULL AS REAL ) * + col1 + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + - MIN( + 24 ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9505
SELECT + - MIN ( + 24 ) AS col1 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT DISTINCT + CAST( 58 AS SIGNED ) * + 78 * - + col0 FROM tab0
----
-393588
-438828
-67860

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + CAST ( 58 AS INTEGER ) * + 78 * - + col0 FROM tab0
----
-393588
-438828
-67860

query I rowsort
SELECT DISTINCT + 22 FROM tab2, tab1 AS cor0
----
22

query I rowsort
SELECT ALL + col0 + - + 6 FROM tab2 WHERE NULL BETWEEN ( - col1 + col0 * - 66 ) AND + col0
----

query I rowsort
SELECT DISTINCT col2 * - - col1 + - ( - col0 ) FROM tab1
----
1395
3287
380

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab1 WHERE - 13 + + + ( - - col0 ) IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT ALL ( COUNT( * ) ) + + COUNT( * ) * + 84 AS col2, - 30 FROM tab0
----
255
-30

skipif mysql # not compatible
query II rowsort label-9511
SELECT ALL ( COUNT ( * ) ) + + COUNT ( * ) * + 84 AS col2, - 30 FROM tab0
----
255
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT DISTINCT 51 + 43 DIV + 28 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT 51 + 43 / + 28 FROM tab0
----
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ( - ( + + 44 ) ) + SUM( - - 94 ) AS col2 FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-9514
SELECT ( - ( + + 44 ) ) + SUM ( - - 94 ) AS col2 FROM tab2
----
238

query I rowsort
SELECT DISTINCT + + 92 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL col2 * - 80 + + CAST( NULL AS SIGNED ) * + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9516
SELECT ALL col2 * - 80 + + CAST ( NULL AS INTEGER ) * + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT + ( - + 44 ) * - - MIN( DISTINCT + - col0 ) col2 FROM tab0 cor0
----
4268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9517
SELECT DISTINCT + ( - + 44 ) * - - MIN ( DISTINCT + - col0 ) col2 FROM tab0 cor0
----
4268

query I rowsort
SELECT ALL - - ( + + 11 ) AS col1 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9519
SELECT ALL 62 DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL 62 / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT + 2 * MIN( ALL + - CAST( - col0 AS SIGNED ) ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-9520
SELECT + 2 * MIN ( ALL + - CAST ( - col0 AS INTEGER ) ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT MIN( DISTINCT + ( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9521
SELECT MIN ( DISTINCT + ( col2 ) ) FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + col0 col2 FROM tab2
----
143
205
217

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 BETWEEN - col1 AND 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT col1 - + - col2 + ( col2 ) / + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT col1 - + - col2 + ( col2 ) / + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col1 * + 35
----

query II rowsort
SELECT + - col1, col2 * col2 * 5 * - ( col1 ) AS col1 FROM tab1 AS cor0 WHERE col2 * - col0 IN ( - 57 + - col1, 58, - - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 69 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + - 59 * - col1 AS col0 FROM tab1 cor0
----
2820
300
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + 9 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 9 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - - 63 FROM tab0 AS cor0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT + - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 4 * + 98 AS col2 FROM tab1
----
392
392
392

query II rowsort
SELECT ALL - 55, col0 AS col0 FROM tab0
----
-55
15
-55
87
-55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + COUNT( col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9535
SELECT + COUNT ( col0 ) FROM tab2
----
3

query III rowsort
SELECT col2, 97 AS col1, + ( - 49 ) FROM tab1
----
9 values hashing to d34c99517e70078a8b73e9029acd7045

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 72 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 75 * + 39 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 99 col0 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT 14 DIV + 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9541
SELECT 14 / + 66 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( * ) * ( + 81 ) * + COUNT( * ) AS col0 FROM tab2
----
729

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) * ( + 81 ) * + COUNT ( * ) AS col0 FROM tab2
----
729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT ALL 69 DIV COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL 69 / COUNT ( * ) AS col0 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT 94 DIV + 34 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9544
SELECT 94 / + 34 FROM tab2
----
2
2
2

query I rowsort
SELECT DISTINCT - col2 * 13 FROM tab1 AS cor0
----
-1248
-767
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT DISTINCT - col1 DIV - - 39 AS col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT - col1 / - - 39 AS col1 FROM tab0 AS cor0
----
-2
0

query II rowsort
SELECT - col1, - col2 * - 72 AS col0 FROM tab0 AS cor0
----
-1
7128
-21
720
-81
3384

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 95 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col0, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT ALL - col0 * + + col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - 86 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( ALL - + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( ALL - + col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT - + 40 AS col1, 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 4b63fe3efb5aa5e08ecd4100a32e1746

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT ALL - 43 DIV + 44 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 43 / + 44 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL SUM( DISTINCT ( 76 ) ) AS col2 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL SUM ( DISTINCT ( 76 ) ) AS col2 FROM tab0 cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT + col0 + + col1 DIV col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-9556
SELECT + col0 + + col1 / col2 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT + col0 + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + col0 + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT + col0 + + 60 * - col2 * - - col2 * col0 + - - col0 + + + col0 DIV col2 * + col1 FROM tab2 AS cor0
----
-1459846
-15137783
-6143795

skipif mysql # not compatible
query I rowsort label-9558
SELECT + col0 + + 60 * - col2 * - - col2 * col0 + - - col0 + + + col0 / col2 * + col1 FROM tab2 AS cor0
----
-1459846
-15137783
-6143795

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + ( + COUNT( * ) ) + MAX( - col0 ) * - COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-9559
SELECT + ( + COUNT ( * ) ) + MAX ( - col0 ) * - COUNT ( * ) AS col0 FROM tab0
----
48

query I rowsort
SELECT col1 + + + ( + col2 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9561
SELECT DISTINCT * FROM tab2 WHERE - ( + col1 ) + - CAST( - - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9561
SELECT DISTINCT * FROM tab2 WHERE - ( + col1 ) + - CAST ( - - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL 99 + + - 73 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL 99 + + - 73 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----

query II rowsort
SELECT col0, - 90 FROM tab0 AS cor0
----
15
-90
87
-90
97
-90

query I rowsort
SELECT ALL 71 * - + col2 * col1 + - + 21 AS col0 FROM tab2 AS cor0
----
-218701
-275927
-83304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT - - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + 23 - - 66 * COUNT( * ) + 47 FROM tab0 cor0 WHERE - col2 IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 23 - - 66 * COUNT ( * ) + 47 FROM tab0 cor0 WHERE - col2 IS NULL
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT - ( - 23 ) AS col1, + COUNT( * ) FROM tab2 cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-9569
SELECT - ( - 23 ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
23
3

query I rowsort
SELECT + - 45 * col0 AS col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

query II rowsort
SELECT + - ( + col0 ), col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - - ( + + col0 ) AS col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - + ( - SUM( + + col0 ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9573
SELECT - + ( - SUM ( + + col0 ) ) FROM tab2 cor0
----
185

onlyif mysql # DIV for integer division: 
query II rowsort label-9574
SELECT DISTINCT + col1 AS col2, 81 DIV col2 * - 44 * 12 FROM tab0
----
1
0
21
-4224
81
-528

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT + col1 AS col2, 81 / col2 * - 44 * 12 FROM tab0
----
1
0
21
-4224
81
-528

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN col2 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 97 * - col1 FROM tab1
----
1358
4559
485

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + 77 > + ( + - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 5 * - col0 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 17 NOT IN ( + - col2 + col1 + + - col0 / + col0, col0, + - col1, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * + 1 + col2 col1 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL 70 + - col0 FROM tab1
----
-15
-21
19

query I rowsort
SELECT + col0 * - + col1 + + + 98 FROM tab1 AS cor0
----
-327
-4179
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL MAX( ALL + - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL MAX ( ALL + - col0 ) FROM tab2 cor0
----
-46

query II rowsort
SELECT DISTINCT + - col2 AS col1, 16 FROM tab2 AS cor0
----
-23
16
-40
16
-58
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 91 ) * + + col2 * col2 + - 76 col0 FROM tab2 AS cor0
----
-145676
-306200
-48215

query II rowsort
SELECT - - col2 AS col0, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 68 + + col2 * + ( - col0 ) * - - 72 FROM tab2 cor0
----
-179084
-308644
-72708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43 * - col2, ( + col0 ) col1 FROM tab2
----
-1720
64
-2494
75
-989
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT COUNT( * ) + COUNT( DISTINCT 5 ) + + COUNT( + CAST( - - 2 AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9590
SELECT COUNT ( * ) + COUNT ( DISTINCT 5 ) + + COUNT ( + CAST ( - - 2 AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT - 57 + - col0 AS col0 FROM tab0
----
-144
-154
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9592
SELECT CAST( NULL AS DECIMAL ) + - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT CAST ( NULL AS REAL ) + - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT col1 * + CAST( NULL AS SIGNED ) + + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9593
SELECT col1 * + CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - ( + col0 ) * - col1 AS col2 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT ALL - 61 * - COUNT( * ) AS col2, AVG ( ALL + col2 ) FROM tab1 AS cor0 WHERE + col1 / col2 * - + col1 = + + col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL - 61 * - COUNT ( * ) AS col2, AVG ( ALL + col2 ) FROM tab1 AS cor0 WHERE + col1 / col2 * - + col1 = + + col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT 91 + - - COUNT( * ) * - COUNT( * ) * - MIN( DISTINCT - - 73 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT 91 + - - COUNT ( * ) * - COUNT ( * ) * - MIN ( DISTINCT - - 73 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT 57 * - 24 + COUNT( * ) * COUNT( * ) + + + COUNT( - 23 ) + + 98 FROM tab2 AS cor0
----
-1258

skipif mysql # not compatible
query I rowsort label-9597
SELECT 57 * - 24 + COUNT ( * ) * COUNT ( * ) + + + COUNT ( - 23 ) + + 98 FROM tab2 AS cor0
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL - - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - + COUNT( - + col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - + COUNT ( - + col1 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL + CAST( - col1 AS SIGNED ) + 52 AS col1 FROM tab0 AS cor0
----
-29
31
51

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + CAST ( - col1 AS INTEGER ) + 52 AS col1 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ALL - col1 DIV + + col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - col1 / + + col0 AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - - 28 FROM tab2 WHERE - - 1 IS NOT NULL
----
28
28
28

query I rowsort
SELECT 68 - - col1 AS col1 FROM tab0
----
149
69
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL + MIN( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + MIN ( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 + - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + MIN( + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + MIN ( + + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9611
SELECT COUNT ( - col2 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col1 col0, col2 col2 FROM tab1
----
196
96
2209
68
25
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT COUNT( DISTINCT - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9613
SELECT COUNT ( DISTINCT - col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT MAX( + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9614
SELECT MAX ( + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT - 60 * ( + COUNT( * ) ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-9615
SELECT - 60 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
-180

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9616
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 / - CAST( - ( col1 ) AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9616
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 / - CAST ( - ( col1 ) AS REAL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + 44 col0 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + + col2 * + 6 FROM tab0 AS cor0
----
282
594
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 >= col2
----

query I rowsort
SELECT ALL - col2 * - - 59 AS col1 FROM tab2 AS cor0
----
-1357
-2360
-3422

query I rowsort
SELECT DISTINCT 59 * - 9 FROM tab0 cor0
----
-531

onlyif mysql # DIV for integer division: 
query II rowsort label-9623
SELECT DISTINCT + col1 DIV + 38 + + col1 * - - col2 * - col0, col1 FROM tab2 AS cor0
----
-197118
77
-291449
67
-53957
51

skipif mysql # not compatible
query II rowsort label-9623
SELECT DISTINCT + col1 / + 38 + + col1 * - - col2 * - col0, col1 FROM tab2 AS cor0
----
-197118
77
-291449
67
-53957
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col1
----

query I rowsort
SELECT ALL - 65 * 75 FROM tab1 cor0
----
-4875
-4875
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 + + 38 col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + col0 * + col1 * + ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
25160
290927
68595

query II rowsort
SELECT 55 + - col2 * col2, col0 FROM tab2 AS cor0
----
-1545
64
-3309
75
-474
46

query I rowsort
SELECT ALL - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 86 col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT 28 * - ( - col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
2187
27
567

query III rowsort
SELECT * FROM tab1 WHERE + - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + col0 + + - col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL - - CAST( NULL AS SIGNED ) - 19 + - COUNT( * ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT ALL - - CAST ( NULL AS INTEGER ) - 19 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT 4 * - COUNT( * ) + - ( + MIN( col1 ) ) - + 16 AS col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9636
SELECT 4 * - COUNT ( * ) + - ( + MIN ( col1 ) ) - + 16 AS col1 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL - col0 - col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL - 18 * + 8 - + col1 - 59 + - - col1 * 45 FROM tab0 AS cor0
----
-159
3361
721

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9639
SELECT + CAST( NULL AS DECIMAL ) - + + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT + CAST ( NULL AS REAL ) - + + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT + 50 * + 10 * col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL 91 - + col0 FROM tab0 AS cor0
----
-6
4
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9642
SELECT CAST( NULL AS DECIMAL ) * + 89 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9642
SELECT CAST ( NULL AS REAL ) * + 89 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL - 40 - - 7 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-103

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - 40 - - 7 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT + - 11 DIV + 77 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT + - 11 / + 77 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + MAX( ALL col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9645
SELECT + MAX ( ALL col1 ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9646
SELECT + + col2 * col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 IN ( CAST( + 28 AS DECIMAL ) + col0, 3, col1 )
----

skipif mysql # not compatible
query I rowsort label-9646
SELECT + + col2 * col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 IN ( CAST ( + 28 AS REAL ) + col0, 3, col1 )
----

query I rowsort
SELECT 12 AS col1 FROM tab2 cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 73 col0, + col0 FROM tab0 AS cor0 WHERE + col1 * col0 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 58 * - col1 FROM tab1
----
-2726
-290
-812

query II rowsort
SELECT - col1 AS col2, - col1 + - ( - + 75 ) FROM tab1
----
-14
61
-47
28
-5
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + SUM( DISTINCT - + col2 ) FROM tab1 WHERE NOT + col2 + - - ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + SUM ( DISTINCT - + col2 ) FROM tab1 WHERE NOT + col2 + - - ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9652
SELECT + SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT col2 + - 42 FROM tab2
----
-19
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9654
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + + col1, + col1 + + col0 AS col1 FROM tab2 WHERE NOT NULL >= + - col1
----

skipif mysql # not compatible
query II rowsort label-9654
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + + col1, + col1 + + col0 AS col1 FROM tab2 WHERE NOT NULL >= + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT - col0 DIV col0 * 13 FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-9655
SELECT - col0 / col0 * 13 FROM tab2 AS cor0
----
-13
-13
-13

query II rowsort
SELECT - 77 * + + col1 * - 12 AS col1, ( - col2 ) FROM tab2 AS cor0
----
47124
-23
61908
-58
71148
-40

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - col0 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 90 * - col2 * + col2 FROM tab1 AS cor0
----
-313290
-416160
-829440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + 96 + + 70 col1 FROM tab2
----
217
233
243

query I rowsort
SELECT - ( 32 ) * - col0 + - - col2 + - - ( - 4 ) + + 56 * - - col0 AS col0 FROM tab2
----
4067
5668
6654

query I rowsort
SELECT ALL - 22 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * 47 col1 FROM tab0 AS cor0
----
-4559
-4559
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - - col0 col2 FROM tab2 AS cor0
----
1794
2496
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT 31 DIV + - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT 31 / + - col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT + COUNT( ALL + col2 ) + 60 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + COUNT ( ALL + col2 ) + 60 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT COUNT( * ) + + 65 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-9666
SELECT COUNT ( * ) + + 65 FROM tab1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT ALL + ( - 90 ) + col2 DIV - 45 AS col1 FROM tab2
----
-90
-90
-91

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL + ( - 90 ) + col2 / - 45 AS col1 FROM tab2
----
-90
-90
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT col0 DIV + + 65 + + col2 FROM tab2
----
23
40
59

skipif mysql # not compatible
query I rowsort label-9668
SELECT col0 / + + 65 + + col2 FROM tab2
----
23
40
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT ALL col1 DIV + col1 + + col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL col1 / + col1 + + col0 FROM tab1
----
52
86
92

query I rowsort
SELECT ALL - col1 * 36 - - - 37 FROM tab0
----
-2953
-73
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT + COUNT( * ) * + 36 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT + COUNT ( * ) * + 36 FROM tab0 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT + 16 * - CAST( + col2 AS SIGNED ) FROM tab1
----
-1088
-1536
-944

skipif mysql # not compatible
query I rowsort label-9673
SELECT + 16 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
-1088
-1536
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT 2 DIV + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT 2 / + col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT col2 * - CAST( NULL AS SIGNED ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT col2 * - CAST ( NULL AS INTEGER ) * - 37 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - + 14 AS col2 FROM tab0
----
1218
1358
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT DISTINCT - COUNT( ALL + col1 ) DIV + 54 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - COUNT ( ALL + col1 ) / + 54 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT + - 97 DIV - + MAX( + 50 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + - 97 / - + MAX ( + 50 ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 89 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 66 * - - col1 - col2 IS NULL
----

query I rowsort
SELECT ( + + 68 ) AS col1 FROM tab2
----
68
68
68

query I rowsort
SELECT ( 30 ) AS col1 FROM tab2
----
30
30
30

query II rowsort
SELECT DISTINCT - 80 * - col2, + 23 - 43 AS col0 FROM tab1
----
4720
-20
5440
-20
7680
-20

query I rowsort
SELECT 96 * + - col1 * + - 58 FROM tab1
----
261696
27840
77952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT DISTINCT MIN( DISTINCT + 43 ) AS col1 FROM tab0 WHERE NOT + col0 / + CAST( NULL AS SIGNED ) NOT IN ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT MIN ( DISTINCT + 43 ) AS col1 FROM tab0 WHERE NOT + col0 / + CAST ( NULL AS INTEGER ) NOT IN ( 78 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 + 73 + + - col2 AND NULL
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT MIN( ALL + - 64 ) * + MIN( DISTINCT - 9 ) AS col1 FROM tab2 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-9689
SELECT MIN ( ALL + - 64 ) * + MIN ( DISTINCT - 9 ) AS col1 FROM tab2 AS cor0
----
576

query I rowsort
SELECT + 82 / col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + COUNT( * ) + + 44 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-9692
SELECT + COUNT ( * ) + + 44 FROM tab0
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 BETWEEN - + 28 - + + 76 - + col2 AND NULL
----

query I rowsort
SELECT - - col0 + - - ( col0 ) FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9695
SELECT + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT 95 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT 95 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL SUM( ALL + 54 ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL SUM ( ALL + 54 ) FROM tab0 AS cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + - col0 + - col1 * - col2 - - - col0 + - col2 - + col0 * col0 + col1 + ( + + col0 ) col0 FROM tab0 AS cor0
----
-6994
-9504
10162

onlyif mysql # DIV for integer division: 
query II rowsort label-9699
SELECT - col2 AS col0, col0 DIV + 54 FROM tab0 cor0
----
-10
1
-47
0
-99
1

skipif mysql # not compatible
query II rowsort label-9699
SELECT - col2 AS col0, col0 / + 54 FROM tab0 cor0
----
-10
1
-47
0
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9700
SELECT 77, + 97 * CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
77
4947
77
8245
77
8827

skipif mysql # not compatible
query II rowsort label-9700
SELECT 77, + 97 * CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
77
4947
77
8245
77
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT - + 21 * + + col2 + + col0 DIV + col0 FROM tab2 AS cor0
----
-1217
-482
-839

skipif mysql # not compatible
query I rowsort label-9701
SELECT - + 21 * + + col2 + + col0 / + col0 FROM tab2 AS cor0
----
-1217
-482
-839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 47, - 53 col0 FROM tab0 AS cor0
----
47
-53
47
-53
47
-53

query I rowsort
SELECT - col2 * + col1 + + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-310
-6016
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 * + 79 col0, ( col1 ) FROM tab1
----
2212
14
2212
47
2212
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - COUNT( - col1 ) + + 92 AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - COUNT ( - col1 ) + + 92 AS col0 FROM tab0
----
89

query I rowsort
SELECT DISTINCT + + 43 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 39 FROM tab1 WHERE + col1 BETWEEN - - col1 AND - - col0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9709
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 90 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 90 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 55 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT - 98 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT - 98 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 35 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT DISTINCT - col1 DIV - col2 + + 34 AS col2 FROM tab2 AS cor0
----
35
36

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - col1 / - col2 + + 34 AS col2 FROM tab2 AS cor0
----
35
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT + col2 DIV col0 * + 58 * - 0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + col2 / col0 * + 58 * - 0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT + CAST( + - ( - col2 ) AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9715
SELECT + CAST ( + - ( - col2 ) AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL col0 + - - ( - 22 ) FROM tab2
----
24
42
53

query II rowsort
SELECT col2, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT 84 AS col1, MAX( col2 ) FROM tab2
----
84
58

skipif mysql # not compatible
query II rowsort label-9718
SELECT 84 AS col1, MAX ( col2 ) FROM tab2
----
84
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9719
SELECT col1 * col2 AS col2 FROM tab1 WHERE + + col1 NOT BETWEEN - - 54 * - - col1 * - + 28 AND CAST( - + col0 AS DECIMAL )
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9719
SELECT col1 * col2 AS col2 FROM tab1 WHERE + + col1 NOT BETWEEN - - 54 * - - col1 * - + 28 AND CAST ( - + col0 AS REAL )
----
1344
295
3196

query II rowsort
SELECT DISTINCT + - 23 + - col1, + col0 AS col1 FROM tab0 AS cor0
----
-104
15
-24
97
-44
87

query II rowsort
SELECT + ( + + 84 ) * col1 + col2, - col0 AS col2 FROM tab1 AS cor0
----
1272
-51
4016
-91
479
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT - MIN( DISTINCT + 1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT - MIN ( DISTINCT + 1 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 66 AS col0, 9 + - col1 col1 FROM tab0 AS cor0
----
66
-12
66
-72
66
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - - ( + col2 ) >= 87 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT 69 * + COUNT( * ) * + - COUNT( * ) * - + SUM( ALL col1 ) - MAX( + 96 ) AS col0 FROM tab1
----
40890

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT 69 * + COUNT ( * ) * + - COUNT ( * ) * - + SUM ( ALL col1 ) - MAX ( + 96 ) AS col0 FROM tab1
----
40890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9727
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + + + 80 FROM tab1 AS cor0
----
127
85
94

query II rowsort
SELECT DISTINCT ( + col1 ) + + 11 AS col1, col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND ( NULL IS NULL )
----
12
99
32
10
92
47

query I rowsort
SELECT ALL - - 78 AS col1 FROM tab1 cor0
----
78
78
78

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND 70
----

query I rowsort
SELECT DISTINCT + 3 + + col2 AS col2 FROM tab1
----
62
71
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT + 3 DIV col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 3 / col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9734
SELECT * FROM tab1 WHERE NOT NULL <= + col1 * col2 / + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9734
SELECT * FROM tab1 WHERE NOT NULL <= + col1 * col2 / + col0 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 * + - 73 AS col1 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT + CAST( + - 62 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-9737
SELECT + CAST ( + - 62 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - - 9 AS col2 FROM tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT 69 AS col1, - col1 AS col0 FROM tab2 cor0
----
69
-51
69
-67
69
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9740
SELECT - 12 AS col1, col2 + CAST( 26 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-12
122
-12
85
-12
94

skipif mysql # not compatible
query II rowsort label-9740
SELECT - 12 AS col1, col2 + CAST ( 26 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-12
122
-12
85
-12
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT + COUNT( * ) AS col0, + 2 FROM tab1 AS cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-9741
SELECT + COUNT ( * ) AS col0, + 2 FROM tab1 AS cor0
----
3
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 15 )
----

query I rowsort
SELECT ALL - col2 * 80 + - col2 AS col1 FROM tab0
----
-3807
-8019
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9745
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9745
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9746
SELECT ALL - MAX( ALL + col0 ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) >= + col1 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - MAX ( ALL + col0 ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) >= + col1 + + 19
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <= col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( + col2 + - 69 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 29 ) IS NULL
----

query I rowsort
SELECT - ( col1 ) + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab1
----
76

query I rowsort
SELECT col0 * 87 - - ( 65 ) AS col0 FROM tab2 WHERE col2 < + ( - 47 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 - col0 BETWEEN + 19 AND - col1 / + col0
----

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 87 + COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9755
SELECT 87 + COUNT ( * ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT MAX( DISTINCT ( col0 ) ) + 64 col1 FROM tab1
----
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9756
SELECT MAX ( DISTINCT ( col0 ) ) + 64 col1 FROM tab1
----
155

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 42 ) NOT BETWEEN + col0 AND - 41 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - COUNT( * ) + COUNT( * ) FROM tab0 WHERE col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 / col1 AS col2 FROM tab0 WHERE ( + 2 * 7 + + 56 * col2 ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL 43 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL 43 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 18 col2 FROM tab2
----
69
85
95

query I rowsort
SELECT - 50 + col2 * + col2 FROM tab0
----
2159
50
9751

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 44 + + col2 / 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - 33 + + MIN( 71 + + 50 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 33 + + MIN ( 71 + + 50 ) FROM tab0
----
88

query I rowsort
SELECT col2 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 * + col1 FROM tab2 AS cor0
----
4131
5427
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT - 16 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 16 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 / col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT 33 + + col2 AS col0 FROM tab1
----
101
129
92

query I rowsort
SELECT DISTINCT - - 1 - col1 AS col0 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT + COUNT( * ) * 18 AS col0 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-9775
SELECT + COUNT ( * ) * 18 AS col0 FROM tab1 cor0
----
54

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE ( NULL ) = - col0
----

query I rowsort
SELECT 26 * col0 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 57 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9780
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) * col1 ) > col0 * - 71
----

skipif mysql # not compatible
query III rowsort label-9780
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) * col1 ) > col0 * - 71
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 65 = - 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 + col0 ) AND 31 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT MIN ( col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + 4 = ( - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 1 ) + + 14 * col0 NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - 29 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( - ( - col0 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + MAX( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT ( - col1 ) IN ( - col2 )
----
97

skipif mysql # not compatible
query I rowsort label-9789
SELECT + MAX ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT ( - col1 ) IN ( - col2 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE NOT col2 = col2 * col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE NOT col2 = col2 * col1 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - col2 NOT BETWEEN ( - 7 + col0 * 96 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL - SUM( DISTINCT + CAST( col1 AS SIGNED ) ) * COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-198

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - SUM ( DISTINCT + CAST ( col1 AS INTEGER ) ) * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + 6 - col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-53
-62
-90

skipif mysql # not compatible
query I rowsort label-9793
SELECT + 6 - col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-53
-62
-90

query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab0 WHERE col1 NOT IN ( col2 * ( ( col0 ) * 68 ) - col0 )
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT 65 + SUM( DISTINCT col1 + col1 ) * + 27 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
5627

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT 65 + SUM ( DISTINCT col1 + col1 ) * + 27 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
5627

query I rowsort
SELECT + + 78 AS col2 FROM tab2 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + SUM( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + SUM ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT - - 76 DIV col1 col2 FROM tab0 AS cor0
----
0
3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9798
SELECT - - 76 / col1 col2 FROM tab0 AS cor0
----
0
3
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 34 * - 17 FROM tab1 WHERE NOT + col2 * - 51 BETWEEN 87 / col0 AND ( 80 * col1 )
----
-578

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT ALL + col2, - col2 DIV + 72 FROM tab1 AS cor0
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-9801
SELECT ALL + col2, - col2 / + 72 FROM tab1 AS cor0
----
59
0
68
0
96
-1

query I rowsort
SELECT 80 * + 2 + + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
145
63
73

query I rowsort
SELECT col0 * + 77 + + - col0 FROM tab0 AS cor0
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9804
SELECT - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 37 ) IS NOT NULL
----

query II rowsort
SELECT ALL 6, - ( + - 16 ) * - col0 AS col2 FROM tab0 AS cor0
----
6
-1392
6
-1552
6
-240

query I rowsort
SELECT DISTINCT col0 + + 97 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 87 ) IN ( col2 / + 82 + col1 )
----
112
184
194

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + ( col2 ) < NULL
----

query II rowsort
SELECT + col0 AS col2, 71 + - col2 AS col1 FROM tab2 AS cor0
----
46
48
64
31
75
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 * + col2 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT COUNT( * ) * 91 AS col0 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT COUNT ( * ) * 91 AS col0 FROM tab2 AS cor0
----
273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 / + col1 * 19 <> NULL
----

query I rowsort
SELECT 85 * - 84 AS col1 FROM tab2 AS cor0 WHERE - 33 IN ( ( 44 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT + ( - AVG ( DISTINCT + col1 ) ) / + 37 + + CAST( NULL AS SIGNED ) * - 21 FROM tab1 cor0 WHERE - 99 * - ( - col0 ) * + col0 + - CAST( col0 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT + ( - AVG ( DISTINCT + col1 ) ) / + 37 + + CAST ( NULL AS INTEGER ) * - 21 FROM tab1 cor0 WHERE - 99 * - ( - col0 ) * + col0 + - CAST ( col0 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT DISTINCT - COUNT( + 68 ) FROM tab2 WHERE ( col1 ) NOT IN ( CAST( col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - COUNT ( + 68 ) FROM tab2 WHERE ( col1 ) NOT IN ( CAST ( col1 AS INTEGER ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col1 col2, - 64 AS col0 FROM tab0
----
-210
-64
-3807
-64
-99
-64

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT col1 + 94 AS col2 FROM tab2
----
145
161
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT 65 + - COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9819
SELECT 65 + - COUNT ( * ) AS col2 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - MAX( + - col0 ) + - - SUM( ALL - - col1 ) * 2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - MAX ( + - col0 ) + - - SUM ( ALL - - col1 ) * 2 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL col2 / - col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL col2 / - col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT 24 + MIN( DISTINCT col1 ) col2 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9822
SELECT DISTINCT 24 + MIN ( DISTINCT col1 ) col2 FROM tab0
----
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < col0 + - + col0 + - col1 / + ( - col1 * + 42 )
----

query I rowsort
SELECT ALL + col2 * + 84 * - - col0 AS col2 FROM tab1 AS cor0
----
411264
421260
519792

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT ALL - + 33 DIV - col2 + - 52 * 85 FROM tab0 AS cor0
----
-4417
-4420
-4420

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - + 33 / - col2 + - 52 * 85 FROM tab0 AS cor0
----
-4417
-4420
-4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT DISTINCT + 9 * - COUNT( DISTINCT - + CAST( + + col1 AS SIGNED ) ) + + 15 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + 9 * - COUNT ( DISTINCT - + CAST ( + + col1 AS INTEGER ) ) + + 15 FROM tab0 cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( 47 ) - + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 5 * - - col1 AS col0 FROM tab2 AS cor0
----
255
335
385

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= ( - + 53 )
----

query I rowsort
SELECT + col2 * + 35 - + col2 FROM tab2
----
1360
1972
782

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = ( + col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + 44 - MIN( ALL + col0 ) * - + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9832
SELECT + 44 - MIN ( ALL + col0 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT + 77 * - 99 - + 64 AS col1 FROM tab1 AS cor0
----
-7687
-7687
-7687

query II rowsort
SELECT - col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > - col1 / - col0 + ( 43 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT 53 AS col2 FROM tab2 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT ( + SUM( - + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT ( + SUM ( - + col2 ) ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL col2, + 0 FROM tab2
----
23
0
40
0
58
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - col0 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 38 * - ( + col0 ) AS col2 FROM tab2
----
-1748
-2432
-2850

query I rowsort
SELECT 56 * - + col1 FROM tab0
----
-1176
-4536
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT - CAST( - col0 AS SIGNED ) col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9844
SELECT - CAST ( - col0 AS INTEGER ) col0 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT 36 AS col2, 71 FROM tab1
----
36
71

query II rowsort
SELECT ALL + col1 AS col0, col1 * col0 AS col1 FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT ( - - 63 ) FROM tab0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col1 + - col0 + - ( - + col1 ) col0 FROM tab0 AS cor0
----
10
-45
47
147
99
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + + MAX( + 23 ) col1 FROM tab0 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9849
SELECT + + MAX ( + 23 ) col1 FROM tab0 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * ( - ( - col1 ) ) / + col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT MIN( - col0 ) + COUNT( * ) * - COUNT( * ) * - + ( + - 42 ) FROM tab2 AS cor0
----
-453

skipif mysql # not compatible
query I rowsort label-9852
SELECT MIN ( - col0 ) + COUNT ( * ) * - COUNT ( * ) * - + ( + - 42 ) FROM tab2 AS cor0
----
-453

query I rowsort
SELECT DISTINCT - 41 * col0 AS col2 FROM tab1 cor0
----
-2091
-3485
-3731

query I rowsort
SELECT col2 + - 53 FROM tab2 AS cor0
----
-13
-30
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

query I rowsort
SELECT col2 * 7 * + - col2 + col2 + + - col1 FROM tab2 AS cor0
----
-11237
-23557
-3731

query II rowsort
SELECT + ( 99 ) + ( + 25 ), col1 - col1 + + col0 AS col2 FROM tab1
----
124
51
124
85
124
91

query I rowsort
SELECT ALL + col0 + + + col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT + CAST( col2 AS SIGNED ) + - col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-23
-26
45

query I rowsort
SELECT DISTINCT + ( + ( + + 88 ) ) + col0 AS col0 FROM tab1
----
139
173
179

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT COUNT( col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT COUNT ( col1 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 8 + + col0 FROM tab0
----
7
79
89

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE ( + col0 ) <= NULL
----

query II rowsort
SELECT ALL + 45, - 89 AS col1 FROM tab1
----
45
-89
45
-89
45
-89

query I rowsort
SELECT DISTINCT col1 + 31 * - col2 FROM tab0
----
-1376
-289
-3068

query III rowsort
SELECT * FROM tab0 WHERE - + 44 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 AS col0, col0 col2 FROM tab2
----
78
46
78
64
78
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT + COUNT( * ), 57 AS col1 FROM tab0
----
3
57

skipif mysql # not compatible
query II rowsort label-9869
SELECT + COUNT ( * ), 57 AS col1 FROM tab0
----
3
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT + 81 + - - col1 DIV + 88 * + - col1 * + - 94 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 81 + - - col1 / + 88 * + - col1 * + - 94 AS col0 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT ALL col1 + + CAST( - col1 AS SIGNED ) - - col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL col1 + + CAST ( - col1 AS INTEGER ) - - col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL COUNT( * ) - + + ( COUNT( 1 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL COUNT ( * ) - + + ( COUNT ( 1 ) ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT ALL + + COUNT( * ) DIV - MIN( ALL - 96 ) * - COUNT( * ) * - 15 + - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + + COUNT ( * ) / - MIN ( ALL - 96 ) * - COUNT ( * ) * - 15 + - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + col1 - col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + col0 - + col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL - col0 DIV - - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - col0 / - - col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT DISTINCT + MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL 57 * 83 DIV + 48 FROM tab1 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 57 * 83 / + 48 FROM tab1 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - 89 ) ) col0 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( + col2 ) + - col0 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT ALL + col0 DIV + col2 + col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + col0 / + col2 + col2 FROM tab1
----
60
69
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) NOT BETWEEN NULL AND 7
----

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 * + - 34 + - col1 <> ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9887
SELECT DISTINCT + - 6 DIV CAST( - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
0
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9887
SELECT DISTINCT + - 6 / CAST ( - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
0
6

query I rowsort
SELECT DISTINCT + 67 * + col0 AS col2 FROM tab1 AS cor0
----
3417
5695
6097

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 5 IS NULL OR ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + ( - 14 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT SUM( - col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9892
SELECT SUM ( - col0 ) col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COUNT ( - col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9894
SELECT ALL * FROM tab0 WHERE col0 / + + CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9894
SELECT ALL * FROM tab0 WHERE col0 / + + CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT ALL ( col0 ) DIV col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL ( col0 ) / col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ( + - 25 ) AS col0 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT ALL + 37 AS col0 FROM tab0 cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT - col1 DIV 57 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT - col1 / 57 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col0 + + ( + 24 ) NOT BETWEEN ( NULL ) AND + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 * - col0 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT COUNT( * ) * + 29 AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9901
SELECT COUNT ( * ) * + 29 AS col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT COUNT( DISTINCT col2 ) * + 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( DISTINCT col2 ) * + 42 FROM tab2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT SUM( 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-9903
SELECT SUM ( 94 ) FROM tab1 AS cor0
----
282

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT - MIN( DISTINCT + - 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - MIN ( DISTINCT + - 43 ) FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL COUNT( * ) * - SUM( ALL 72 ) AS col1 FROM tab1 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL COUNT ( * ) * - SUM ( ALL 72 ) AS col1 FROM tab1 AS cor0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT - + COUNT( - col0 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT - + COUNT ( - col0 ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 35 IS NULL
----

query II rowsort
SELECT col2 + + 57, + 7 * + col2 AS col1 FROM tab1
----
116
413
125
476
153
672

query I rowsort
SELECT DISTINCT - ( - col2 ) * - + col0 + - col0 AS col2 FROM tab0
----
-720
-957
-9700

query II rowsort
SELECT col2 + + col0 AS col2, - col1 AS col2 FROM tab2
----
104
-77
133
-67
69
-51

query II rowsort
SELECT + ( col2 ) + col0 AS col1, col0 * - + col0 FROM tab0
----
196
-9409
62
-225
97
-7569

query I rowsort
SELECT DISTINCT col1 + col0 * - + col2 AS col1 FROM tab2
----
-1007
-2483
-4283

query II rowsort
SELECT - col0 + - - 61 AS col1, + col2 + + col1 * col0 FROM tab1
----
-24
484
-30
4345
10
810

query I rowsort
SELECT ALL 64 - + - ( + col1 ) FROM tab2
----
115
131
141

query I rowsort
SELECT DISTINCT - + 68 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-114
-148
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT DISTINCT - COUNT( * ) + + CAST( - COUNT( DISTINCT + - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - COUNT ( * ) + + CAST ( - COUNT ( DISTINCT + - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - MAX( 76 ) col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9919
SELECT - MAX ( 76 ) col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT DISTINCT ( col0 ) - 29 FROM tab0 AS cor0
----
-14
58
68

query I rowsort
SELECT ALL - col0 + + - col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL + MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9923
SELECT ALL + - col1 / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + - col1 / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT + SUM( - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + SUM ( - - col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - - ( + 8 ) FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT 54 * + 22 AS col1 FROM tab0 AS cor0
----
1188
1188
1188

query I rowsort
SELECT - ( + 8 ) FROM tab2
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + COUNT( * ) * - + 85 AS col1 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + COUNT ( * ) * - + 85 AS col1 FROM tab1
----
-255

query I rowsort
SELECT - 22 * - col0 FROM tab0
----
1914
2134
330

query I rowsort
SELECT + col2 * + 20 AS col1 FROM tab1
----
1180
1360
1920

onlyif mysql # DIV for integer division: 
query II rowsort label-9931
SELECT ALL - col1 DIV + - col1, col2 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-9931
SELECT ALL - col1 / + - col1, col2 FROM tab2
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + COUNT( * ) * + ( - COUNT( * ) ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9932
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( 11 ) ) IS NOT NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9935
SELECT col2, col1 DIV + col0 FROM tab0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-9935
SELECT col2, col1 / + col0 FROM tab0
----
10
0
47
5
99
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9937
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - CAST( 64 AS SIGNED ) + 82 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-9937
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - CAST ( 64 AS INTEGER ) + 82 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col2 + + ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-11
-34
98

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE col1 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - col1 * - 75 * - col0 + col0 FROM tab2 AS cor0
----
175996
369664
376950

query II rowsort
SELECT col1 AS col0, - 45 * col1 + + + ( + 28 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
-602
47
-2087
5
-197

query II rowsort
SELECT - ( - col2 ) + - col2, col0 AS col1 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT + - col1 DIV + col1 + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-9944
SELECT + - col1 / + col1 + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9945
SELECT - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) * + + SUM( - + ( col2 ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9945
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * + + SUM ( - + ( col2 ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT SUM ( + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL - 63 + 61 * + 57 AS col1, 12 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3414
NULL
3414
NULL
3414
NULL

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL - 63 + 61 * + 57 AS col1, 12 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3414
NULL
3414
NULL
3414
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - + col0 = + col0 + + 99 / + col0
----

query I rowsort
SELECT col1 * + - 80 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9951
SELECT - COUNT( * ) AS col0, - COUNT( * ) DIV - 77 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-9951
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) / - 77 FROM tab1
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COUNT( * ) * MAX( + col1 ) * - 13 FROM tab0
----
-3159

skipif mysql # not compatible
query I rowsort label-9952
SELECT COUNT ( * ) * MAX ( + col1 ) * - 13 FROM tab0
----
-3159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT CAST( + - ( col1 ) AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9953
SELECT CAST ( + - ( col1 ) AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col2 NOT IN ( + col1 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * + + 36 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * + + 36 FROM tab0
----
NULL

query I rowsort
SELECT + 48 * + col1 + col0 - - col0 FROM tab0 AS cor0
----
1182
242
3918

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT - - col0 DIV - 52 + col1 AS col0 FROM tab2 AS cor0
----
51
66
76

skipif mysql # not compatible
query I rowsort label-9957
SELECT - - col0 / - 52 + col1 AS col0 FROM tab2 AS cor0
----
51
66
76

query I rowsort
SELECT 55 * + col2 AS col2 FROM tab0 AS cor0
----
2585
5445
550

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9960
SELECT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9960
SELECT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9961
SELECT * FROM tab0 WHERE NOT - col1 + + col1 IN ( col1 / + - CAST( NULL AS DECIMAL ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-9961
SELECT * FROM tab0 WHERE NOT - col1 + + col1 IN ( col1 / + - CAST ( NULL AS REAL ) * - col0 )
----

query I rowsort
SELECT + - col0 * - - 66 + col1 * + col2 FROM tab2 cor0
----
-1064
-1144
-1863

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 * + + 94 AS col1 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + MIN( DISTINCT 19 ) AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9965
SELECT + MIN ( DISTINCT 19 ) AS col1 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + - 61 + - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 23 AS col1 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IS NULL AND NOT col1 * - + col1 IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9970
SELECT ALL 47 * - ( - - 56 ) * col0, - 15 DIV - + col0 AS col0 FROM tab2
----
-121072
0
-168448
0
-197400
0

skipif mysql # not compatible
query II rowsort label-9970
SELECT ALL 47 * - ( - - 56 ) * col0, - 15 / - + col0 AS col0 FROM tab2
----
-121072
0
-168448
0
-197400
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9972
SELECT CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT CAST ( NULL AS REAL ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 48, col2 FROM tab0
----
-48
10
-48
47
-48
99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 24 AND + 27 + - 97
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 10 / 95 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 32 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 41 AS col2, col2 AS col0 FROM tab1
----
41
59
41
68
41
96

query I rowsort
SELECT - + col1 + - - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + 69 * 74 FROM tab2 AS cor0
----
5106

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT ALL * FROM tab0 WHERE NULL IN ( + ( - CAST( - + 84 AS SIGNED ) ), 67 )
----

skipif mysql # not compatible
query III rowsort label-9980
SELECT ALL * FROM tab0 WHERE NULL IN ( + ( - CAST ( - + 84 AS INTEGER ) ), 67 )
----

query I rowsort
SELECT ALL - col0 * 65 + col0 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT DISTINCT - 52 * 10 + + - col0 AS col2 FROM tab1
----
-571
-605
-611

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + col0 ) - - 69 + + 54 * + - col2 AS col0 FROM tab0 AS cor0
----
-2454
-384
-5180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - + col0 <= NULL
----

query II rowsort
SELECT 38 - col0 + + col1 * + - 26 * - 29 * col1 * col2 AS col1, 59 AS col1 FROM tab1 AS cor0
----
1112103
59
113259795
59
14187251
59

query I rowsort
SELECT DISTINCT + 75 * - col1 + + col1 AS col2 FROM tab1 cor0
----
-1036
-3478
-370

query I rowsort
SELECT DISTINCT + col1 * - + 76 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT DISTINCT 26 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - CAST( - + 1 AS SIGNED ) - + col2 IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT 26 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - CAST ( - + 1 AS INTEGER ) - + col2 IS NULL
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT 21 + + CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9990
SELECT 21 + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL CAST( + + col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9991
SELECT ALL CAST ( + + col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - 77 + - COUNT( ALL + col0 ) * - + MIN( DISTINCT + col1 ) * ( + COUNT( * ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 77 + - COUNT ( ALL + col0 ) * - + MIN ( DISTINCT + col1 ) * ( + COUNT ( * ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 71 + + + 74 FROM tab1
----
3
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9994
SELECT * FROM tab1 WHERE col0 IN ( - col0, - 18, CAST( NULL AS DECIMAL ), + - col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-9994
SELECT * FROM tab1 WHERE col0 IN ( - col0, - 18, CAST ( NULL AS REAL ), + - col0 + - col0 )
----

query I rowsort
SELECT 70 + col2 + + col1 + - col2 + - - col2 + - + col0 AS col1 FROM tab0
----
14
183
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT DISTINCT + col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * + col0 * + + col1 + + col1 AS col2 FROM tab2
----
-119595
-336608
-379379

onlyif mysql # DIV for integer division: 
query II rowsort label-9998
SELECT col0, col0 DIV + 64 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-9998
SELECT col0, col0 / + 64 FROM tab1 AS cor0
----
51
0
85
1
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

