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 + + 53 * - + col0 AS col2 FROM tab1 AS cor0
----
-2703
-4505
-4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 col2 FROM tab0 AS cor0
----
-13
-2194
-9704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * + col1 * + col2 col1 FROM tab1 cor0
----
-17405
-188564
-79296

query II rowsort
SELECT ALL - col0 - - col1 - - col1, col0 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-23
618
-75
366
3
4209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) FROM tab2
----
1

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

query I rowsort
SELECT + 49 * - col2 FROM tab2
----
-1127
-1960
-2842

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

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

query I rowsort
SELECT col1 + - 44 FROM tab0 AS cor0
----
-23
-43
37

query I rowsort
SELECT ALL - col2 - - - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col1 * - 80 AS col1 FROM tab0 AS cor0
----
-1680
-6480
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + COUNT( * ) + 39 AS col0 FROM tab0 WHERE NOT 59 / 12 IS NOT NULL
----
39

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + COUNT ( * ) + 39 AS col0 FROM tab0 WHERE NOT 59 / 12 IS NOT NULL
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-15
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 + 90 FROM tab1
----
149
158
186

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

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

query I rowsort
SELECT col0 * col1 + + ( - col0 ) FROM tab0
----
0
1200
1740

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

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL - ( - SUM( 52 ) ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - ( - SUM ( 52 ) ) FROM tab2
----
156

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

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

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

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

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - ( - col2 ) / - col2 - - 22 * col1 <= - 12
----

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 FROM tab0
----
272
7579
9508

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN + 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-27
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT 10 + - 91 FROM tab2
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col0 )
----
0

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + 38 IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 81 ) * - 28 - 74 * - col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT 82 FROM tab0 WHERE NULL IN ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-34
SELECT 82 FROM tab0 WHERE NULL IN ( CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT - SUM( + ( + 63 ) ) AS col0 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-35
SELECT - SUM ( + ( + 63 ) ) AS col0 FROM tab2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT - MIN( + 28 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - MIN ( + 28 ) FROM tab1
----
-28

query I rowsort
SELECT ALL 12 * 42 AS col0 FROM tab2
----
504
504
504

query I rowsort
SELECT ALL 14 * col1 - - 60 AS col1 FROM tab1
----
130
256
718

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT col2 DIV - col1 + col0 AS col1 FROM tab1 cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-40
SELECT col2 / - col1 + col0 AS col1 FROM tab1 cor0
----
45
74
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * col2 + col2 col0 FROM tab2 AS cor0
----
2231
3880
5626

query I rowsort
SELECT - 60 + ( - 38 ) AS col2 FROM tab1 AS cor0
----
-98
-98
-98

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

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

query I rowsort
SELECT DISTINCT ( col2 ) + col0 * col1 AS col0 FROM tab1
----
4345
484
810

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( 25 )
----

query I rowsort
SELECT ALL col2 + + 91 * + col1 FROM tab2 AS cor0
----
4664
6155
7047

query I rowsort
SELECT + + ( + 67 ) - col1 FROM tab1 AS cor0
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( * ) * 35 AS col0 FROM tab1 cor0 WHERE - col1 NOT BETWEEN + col2 AND NULL
----
105

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) * 35 AS col0 FROM tab1 cor0 WHERE - col1 NOT BETWEEN + col2 AND NULL
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT - SUM( ( col0 ) ) * - MAX( col2 DIV 2 ) + + SUM( DISTINCT + 54 ) * 37 FROM tab0 AS cor0
----
11749

skipif mysql # not compatible
query I rowsort label-49
SELECT - SUM ( ( col0 ) ) * - MAX ( col2 / 2 ) + + SUM ( DISTINCT + 54 ) * 37 FROM tab0 AS cor0
----
11749

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

query I rowsort
SELECT - 90 FROM tab0 AS cor0 WHERE NULL BETWEEN 22 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT + SUM( DISTINCT 66 ) + 41 AS col2 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + SUM ( DISTINCT 66 ) + 41 AS col2 FROM tab0 AS cor0
----
107

query I rowsort
SELECT DISTINCT - ( 39 ) * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 94
----

query I rowsort
SELECT col2 + 54 FROM tab2 AS cor0
----
112
77
94

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT 0 / col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 1 FROM tab1 WHERE NOT + 49 IS NULL
----
1

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL MAX( ALL 37 ) FROM tab2 WHERE NOT NULL IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL MAX ( ALL 37 ) FROM tab2 WHERE NOT NULL IN ( - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT + col1 DIV - 73 * col0 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + col1 / - 73 * col0 + col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT - CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 + - 27 * col1 FROM tab1
----
-1201
-282
-76

query I rowsort
SELECT ALL - col1 * col1 + + col2 AS col2 FROM tab0
----
-431
-6514
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT - ( CAST( + 56 AS SIGNED ) ) * + 13 FROM tab0 AS cor0
----
-728
-728
-728

skipif mysql # not compatible
query I rowsort label-65
SELECT - ( CAST ( + 56 AS INTEGER ) ) * + 13 FROM tab0 AS cor0
----
-728
-728
-728

query I rowsort
SELECT 44 + 1 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
45
45
45

query II rowsort
SELECT - col0 AS col1, - 90 AS col1 FROM tab1
----
-51
-90
-85
-90
-91
-90

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL = ( 52 )
----

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

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

query I rowsort
SELECT - col2 * - 20 AS col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT 46 * ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-73
SELECT 46 * ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
138

query I rowsort
SELECT - col2 * col1 - - + col0 + + col2 AS col0 FROM tab2 cor0
----
-1104
-2976
-3753

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 NOT BETWEEN + + col1 + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * ( + col0 ) col0 FROM tab0 AS cor0 WHERE ( 1 ) IS NOT NULL
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - SUM( + col2 ) / COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT - SUM ( + col2 ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( + 40 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT ALL 83 DIV - col1 FROM tab0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 83 / - col1 FROM tab0
----
-1
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - ( + + MAX( ALL + 35 ) ) AS col0 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - ( + + MAX ( ALL + 35 ) ) AS col0 FROM tab2
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + MIN( DISTINCT + 78 ) FROM tab0 AS cor0 WHERE + col2 * - col1 * 49 + - col0 BETWEEN ( - ( col1 ) ) AND ( 12 + + col1 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT + MIN ( DISTINCT + 78 ) FROM tab0 AS cor0 WHERE + col2 * - col1 * 49 + - col0 BETWEEN ( - ( col1 ) ) AND ( 12 + + col1 * col1 )
----
NULL

query I rowsort
SELECT 91 + - + col1 AS col1 FROM tab0
----
10
70
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL - - 88 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - - 88 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-88
SELECT * FROM tab1 AS cor0 WHERE 61 * - - CAST( col2 AS SIGNED ) + - + col0 * + col0 NOT BETWEEN ( col1 ) + - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-88
SELECT * FROM tab1 AS cor0 WHERE 61 * - - CAST ( col2 AS INTEGER ) + - + col0 * + col0 NOT BETWEEN ( col1 ) + - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-89
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-89
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IN ( - col2 )
----

query I rowsort
SELECT ALL + - ( ( - 80 ) ) + - col2 FROM tab0 AS cor0
----
-19
33
70

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

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

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

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

query I rowsort
SELECT ALL + col2 - - - col2 FROM tab1 cor0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-96
SELECT - - MIN ( - - ( 98 ) ) FROM tab1 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT - col2 DIV + 39 - + col0 AS col2 FROM tab0
----
-16
-87
-99

skipif mysql # not compatible
query I rowsort label-97
SELECT - col2 / + 39 - + col0 AS col2 FROM tab0
----
-16
-87
-99

query I rowsort
SELECT col2 * + col1 * + col2 - 99 AS col2 FROM tab2
----
123101
225289
26880

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

query I rowsort
SELECT ALL - col1 - - col0 + col0 AS col2 FROM tab2
----
41
51
83

query II rowsort
SELECT DISTINCT 81 AS col2, 78 * col1 FROM tab1
----
81
1092
81
3666
81
390

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-103
SELECT ALL * FROM tab1 WHERE NOT - CAST( 14 AS SIGNED ) IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-103
SELECT ALL * FROM tab1 WHERE NOT - CAST ( 14 AS INTEGER ) IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + 52 * - - 71 * col1 FROM tab1
----
173524
18460
51688

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - col2 ) col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

query I rowsort
SELECT ALL + 74 * - col1 AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query II rowsort
SELECT ALL + + 64 AS col1, 10 AS col2 FROM tab1 cor0
----
64
10
64
10
64
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT ALL - CAST( + - 86 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - CAST ( + - 86 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # DIV for integer division: 
query II rowsort label-113
SELECT col2, col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-113
SELECT col2, col2 / + col2 AS col2 FROM tab2 AS cor0
----
23
1
40
1
58
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT DISTINCT - 73 * + + COUNT( * ) FROM tab2 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - 73 * + + COUNT ( * ) FROM tab2 cor0
----
-219

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

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

query I rowsort
SELECT ALL + 97 FROM tab1 AS cor0 WHERE NOT ( 8 ) >= NULL
----

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

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

query I rowsort
SELECT DISTINCT 3 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) >= col1 + + + col2 )
----

query I rowsort
SELECT ALL 46 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 83 * - col2 + col1 IS NULL )
----
-35
25
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT + ( + col1 ) * 77 DIV 37 AS col0 FROM tab2 AS cor0
----
106
139
160

skipif mysql # not compatible
query I rowsort label-122
SELECT + ( + col1 ) * 77 / 37 AS col0 FROM tab2 AS cor0
----
106
139
160

onlyif mysql # DIV for integer division: 
query II rowsort label-123
SELECT ALL col0 DIV - 10, col2 AS col1 FROM tab2 AS cor0
----
-4
23
-6
40
-7
58

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL col0 / - 10, col2 AS col1 FROM tab2 AS cor0
----
-4
23
-6
40
-7
58

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-126
SELECT ALL - col0 + - + col2 DIV - CAST( - 56 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL - col0 + - + col2 / - CAST ( - 56 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-76

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab2 WHERE - + col2 * 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL MIN( DISTINCT + - col2 ) + + - MAX( DISTINCT 31 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL MIN ( DISTINCT + - col2 ) + + - MAX ( DISTINCT 31 ) FROM tab2
----
-89

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

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

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

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

query I rowsort
SELECT col1 * + 56 FROM tab2 cor0
----
2856
3752
4312

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT DISTINCT + col0 + col2 + + + col2 * 20 AS col1 FROM tab1 WHERE NOT + col2 * - CAST( NULL AS SIGNED ) - - - col2 IS NOT NULL
----
1324
1519
2067

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT + col0 + col2 + + + col2 * 20 AS col1 FROM tab1 WHERE NOT + col2 * - CAST ( NULL AS INTEGER ) - - - col2 IS NOT NULL
----
1324
1519
2067

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN 50 + - - col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + 13 FROM tab0 AS cor0
----
-68
-8
12

query I rowsort
SELECT ALL - col1 * - + col2 + - + 11 + - col0 AS col1 FROM tab1 AS cor0
----
1282
199
3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT ALL - CAST( + - 12 AS SIGNED ) - + + col1 FROM tab0 AS cor0
----
-69
-9
11

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - CAST ( + - 12 AS INTEGER ) - + + col1 FROM tab0 AS cor0
----
-69
-9
11

query I rowsort
SELECT DISTINCT col0 + + 55 AS col1 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + SUM( - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT + SUM ( - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + + MAX( - + col1 ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-142
SELECT + + MAX ( - + col1 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2

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

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

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

skipif mysql # not compatible
query II rowsort label-145
SELECT + + 87 + 68, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
155
3

query I rowsort
SELECT DISTINCT 87 - - 52 AS col2 FROM tab2 AS cor0
----
139

query II rowsort
SELECT DISTINCT - col2 - - 24 - + 33, + col1 FROM tab0
----
-108
1
-19
21
-56
81

query I rowsort
SELECT ALL 37 * + 86 FROM tab0 WHERE ( 23 + - - col1 + + col1 + col0 * + - 90 + col0 * + 48 * - + col1 + col2 / - col1 ) NOT BETWEEN + 90 AND NULL
----
3182
3182
3182

query I rowsort
SELECT DISTINCT + + 85 + + - col1 + - col2 - - 4 * col0 * - col1 * 92 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - ( - col2 ) ) AND - 84
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT DISTINCT MIN( - 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT MIN ( - 38 ) FROM tab2
----
-38

query I rowsort
SELECT 39 * col0 AS col1 FROM tab0
----
3393
3783
585

query I rowsort
SELECT col2 * + 30 - - col1 * - 81 FROM tab0 AS cor0
----
-1401
-5151
2889

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-154
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-154
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT ALL 37, 90 * col0 * + - 43 * - col2 AS col1 FROM tab0
----
37
2728350
37
3366900
37
37163610

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + 76 * + ( + + 19 ) + 49 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1496

skipif mysql # not compatible
query I rowsort label-156
SELECT + 76 * + ( + + 19 ) + 49 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1496

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT ALL 94 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL 94 / + - col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT + - ( - + col2 ) + + col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 57 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) + - + 13 + col2 AS col2 FROM tab2 cor0
----
2356
4955
5070

query I rowsort
SELECT ALL - 89 AS col2 FROM tab1 cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT - CAST( 86 AS SIGNED ) FROM tab1 cor0 WHERE NOT - 98 + - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-162
SELECT - CAST ( 86 AS INTEGER ) FROM tab1 cor0 WHERE NOT - 98 + - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 48 <= - col2 + + col0
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT 61, + SUM( DISTINCT + 11 ) AS col0 FROM tab2 AS cor0
----
61
11

skipif mysql # not compatible
query II rowsort label-165
SELECT 61, + SUM ( DISTINCT + 11 ) AS col0 FROM tab2 AS cor0
----
61
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL - + 52 * SUM( ALL + - CAST( col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
9620

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - + 52 * SUM ( ALL + - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
9620

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + 0 IN ( - 45 + - - col1 + - col1 )
----

query II rowsort
SELECT + 97 * + 45 AS col2, col1 AS col1 FROM tab1
----
4365
14
4365
47
4365
5

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL - 74 * - COUNT( * ) * - + COUNT( DISTINCT + + col1 ) FROM tab2
----
-666

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - 74 * - COUNT ( * ) * - + COUNT ( DISTINCT + + col1 ) FROM tab2
----
-666

query I rowsort
SELECT ALL col1 + + - col0 + - 26 AS col2 FROM tab1
----
-106
-63
-70

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

query I rowsort
SELECT ALL + 92 + - ( - col1 ) AS col2 FROM tab0
----
113
173
93

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT col1 DIV - col1 + 86 FROM tab0 cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-176
SELECT col1 / - col1 + 86 FROM tab0 cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col2 col0 FROM tab2
----
58
75
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-178
SELECT ALL + 78 + CAST( + COUNT( * ) AS SIGNED ) + + SUM( - + col1 ) FROM tab2 AS cor0 WHERE - 16 * - col0 NOT BETWEEN col0 AND NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL + SUM( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + SUM ( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT CAST( 2 AS SIGNED ) FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-180
SELECT CAST ( 2 AS INTEGER ) FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + - ( - - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + col2 col2, + col2 col1 FROM tab1
----
-3481
59
-4624
68
-9216
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT - CAST( NULL AS SIGNED ) + - SUM( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 36 + - + col0 + + 55 * ( + col2 ) FROM tab0
----
2606
499
5384

query II rowsort
SELECT DISTINCT + - col2, + 97 * - col0 AS col0 FROM tab0 AS cor0
----
-10
-8439
-47
-1455
-99
-9409

query I rowsort
SELECT ALL - col1 + + - col0 * + col1 * + ( + + col0 ) FROM tab0 AS cor0
----
-158970
-18306
-9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + + col0 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-191
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + + col0 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT ALL col1 - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT - + col2 * + - col0 FROM tab1 AS cor0
----
4896
5015
6188

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

query I rowsort
SELECT DISTINCT - + col2 * 55 FROM tab1 AS cor0
----
-3245
-3740
-5280

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 WHERE NOT - - col0 + + col2 / + 28 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-200
SELECT ALL CAST( NULL AS DECIMAL ) * 69 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-200
SELECT ALL CAST ( NULL AS REAL ) * 69 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab2 WHERE NULL IN ( 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-202
SELECT ALL + CAST( + + 8 AS SIGNED ), col2 FROM tab1 WHERE - + col0 * + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-202
SELECT ALL + CAST ( + + 8 AS INTEGER ), col2 FROM tab1 WHERE - + col0 * + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT - 55 * SUM( - 78 ) + - - 70 - + 52 col1 FROM tab1
----
12888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-203
SELECT - 55 * SUM ( - 78 ) + - - 70 - + 52 col1 FROM tab1
----
12888

query II rowsort
SELECT ALL - col1 + - col1 AS col1, - col1 * + col0 AS col0 FROM tab0
----
-162
-1215
-2
-97
-42
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - 75 + - MAX( DISTINCT - col1 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-205
SELECT - 75 + - MAX ( DISTINCT - col1 ) FROM tab2
----
-24

query II rowsort
SELECT DISTINCT + col0 + - col1 + + col0 * + col1, col1 FROM tab1
----
4321
47
505
5
751
14

query I rowsort
SELECT DISTINCT + 24 + col0 * + col2 AS col1 FROM tab0
----
729
894
9627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT ALL + + CAST( + AVG ( DISTINCT + col1 ) AS SIGNED ) FROM tab2 WHERE - ( + + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + + CAST ( + AVG ( DISTINCT + col1 ) AS INTEGER ) FROM tab2 WHERE - ( + + col2 ) IS NULL
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 66 ) NOT BETWEEN + col1 AND ( - 72 * + 16 )
----

query I rowsort
SELECT DISTINCT - col2 * 18 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT 22 * COUNT( DISTINCT 1 ) + COUNT( * ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-215
SELECT 22 * COUNT ( DISTINCT 1 ) + COUNT ( * ) AS col0 FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT col2 DIV - + 77 + col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT col2 / - + 77 + col0 FROM tab1
----
50
85
91

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

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

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

query I rowsort
SELECT - + ( - col0 ) FROM tab1 cor0
----
51
85
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT + ( - - 73 ) DIV - - ( + COUNT( * ) ) FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-221
SELECT + ( - - 73 ) / - - ( + COUNT ( * ) ) FROM tab2 cor0
----
24

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * + - 25 + 90 col1 FROM tab1 WHERE NOT NULL >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT COUNT( DISTINCT - 41 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT COUNT ( DISTINCT - 41 ) AS col1 FROM tab1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT ALL 86 AS col2, - COUNT( * ) AS col1 FROM tab2
----
86
-3

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL 86 AS col2, - COUNT ( * ) AS col1 FROM tab2
----
86
-3

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( + 6 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - col1 * - + col1 FROM tab0
----
1
441
6561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 BETWEEN NULL AND col0 / - col2 * - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 58 / col1 <= col2 * + + col2 + - - col0 - col0 * + col2 + - col0
----
85
5
59
91
47
68

query I rowsort
SELECT 81 * col1 + - col0 FROM tab1
----
1083
320
3716

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE + col2 >= + 42 / + 66 + - - col0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 + + - col1 col0 FROM tab0 AS cor0
----
-28
-8
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT - CAST( + 55 AS SIGNED ) + + col1 + + col1 * col1 + + - col1 + + col1 * - ( + col0 ) + 15 FROM tab0 AS cor0
----
-136
-1426
5306

skipif mysql # not compatible
query I rowsort label-242
SELECT - CAST ( + 55 AS INTEGER ) + + col1 + + col1 * col1 + + - col1 + + col1 * - ( + col0 ) + 15 FROM tab0 AS cor0
----
-136
-1426
5306

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL 30 + + col2 DIV 82 FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL 30 + + col2 / 82 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT 68 - + - col1 + 52 AS col1 FROM tab0 cor0 WHERE - col1 + + + col2 = col1
----

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

query I rowsort
SELECT - 20 * col2 - - 16 AS col1 FROM tab0 AS cor0
----
-184
-1964
-924

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

query I rowsort
SELECT col2 * + + col2 * col1 FROM tab0
----
178929
2100
9801

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - col1 col2 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT MAX( ALL - 44 ) * - 97 AS col0 FROM tab1
----
4268

skipif mysql # not compatible
query I rowsort label-251
SELECT MAX ( ALL - 44 ) * - 97 AS col0 FROM tab1
----
4268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT - col2 - + CAST( + 54 AS SIGNED ) AS col0 FROM tab1
----
-113
-122
-150

skipif mysql # not compatible
query I rowsort label-252
SELECT - col2 - + CAST ( + 54 AS INTEGER ) AS col0 FROM tab1
----
-113
-122
-150

query I rowsort
SELECT ALL + 63 + + col2 + + col1 * - + col2 FROM tab2
----
-1087
-2977
-3765

query I rowsort
SELECT + col0 * + col0 * - 10 - + + col0 AS col1 FROM tab1
----
-26061
-72335
-82901

query I rowsort
SELECT ALL 65 - + 97 FROM tab1 AS cor0
----
-32
-32
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT 24 + col2 + - + col2 >= col1
----
1

skipif mysql # not compatible
query I rowsort label-257
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT 24 + col2 + - + col2 >= col1
----
1

query II rowsort
SELECT DISTINCT col1, + 80 FROM tab2
----
51
80
67
80
77
80

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + 70 - + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 < ( NULL )
----
70

skipif mysql # not compatible
query I rowsort label-259
SELECT + 70 - + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 < ( NULL )
----
70

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-263
SELECT + 20 DIV ( + + 62 ) * col1, col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-263
SELECT + 20 / ( + + 62 ) * col1, col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT ALL + + col1 DIV + col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + + col1 / + col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT ALL - - 93 * + col0 * - col2 FROM tab0 cor0
----
-65565
-80910
-893079

query I rowsort
SELECT + - col2 * - + 86 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
17662594
27041152
76087296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-267
SELECT - CAST( - 35 AS SIGNED ), COUNT( * ) AS col2 FROM tab1 cor0
----
35
3

skipif mysql # not compatible
query II rowsort label-267
SELECT - CAST ( - 35 AS INTEGER ), COUNT ( * ) AS col2 FROM tab1 cor0
----
35
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT 57 DIV - + COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-269
SELECT 57 / - + COUNT ( * ) FROM tab2
----
-19

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

query I rowsort
SELECT - 86 AS col0 FROM tab0 cor0 WHERE col2 / + col0 + - - 85 BETWEEN NULL AND 55
----

query I rowsort
SELECT DISTINCT - + col2 + - 68 AS col0 FROM tab1 cor0
----
-127
-136
-164

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT ALL + + col1 * CAST( - col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-2277
-292
-84

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + + col1 * CAST ( - col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT DISTINCT + - col2 * - col1 * - + col1 + - ( - col2 ) FROM tab0 AS cor0
----
-308320
-4400
0

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

query I rowsort
SELECT + col1 + + col1 + + col1 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + + MAX( DISTINCT - col2 ) + - 86 AS col0 FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-278
SELECT + + MAX ( DISTINCT - col2 ) + - 86 AS col0 FROM tab2 AS cor0
----
-109

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

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

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT DISTINCT + col1 * col1 DIV + + col0 + - - ( col0 ) AS col1 FROM tab0
----
452
92
97

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT + col1 * col1 / + + col0 + - - ( col0 ) AS col1 FROM tab0
----
452
92
97

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT COUNT( * ) + + ( + 33 ) * + - SUM( ALL + + col0 ) col0 FROM tab1 AS cor0
----
-7488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-283
SELECT DISTINCT COUNT ( * ) + + ( + 33 ) * + - SUM ( ALL + + col0 ) col0 FROM tab1 AS cor0
----
-7488

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL - 16 * + - 2 AS col1 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL 23 DIV 13 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 23 / 13 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, - col1 * - 47 * 67 col1 FROM tab1 cor0
----
51
44086
85
15745
91
148003

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT - col1 DIV + col1 + + 98 AS col0 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-291
SELECT - col1 / + col1 + + 98 AS col0 FROM tab0 AS cor0
----
97
97
97

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

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

query I rowsort
SELECT DISTINCT + - col0 * 65 AS col2 FROM tab0 AS cor0
----
-5655
-6305
-975

query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 * col1 AS col1 FROM tab2 AS cor0
----
46
2601
64
5929
75
4489

query I rowsort
SELECT ALL 7 AS col1 FROM tab0 cor0
----
7
7
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT SUM( DISTINCT + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-297
SELECT SUM ( DISTINCT + - col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - COUNT( * ) * 56 * - COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
504

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - COUNT ( * ) * 56 * - COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
504

query I rowsort
SELECT ALL 40 * - - 37 AS col0 FROM tab0
----
1480
1480
1480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT 30 * - col2 * + 43 FROM tab1 WHERE NOT - + ( - - col2 ) * 87 - + - col1 <= NULL
----

query II rowsort
SELECT col0 AS col2, + 45 FROM tab0
----
15
45
87
45
97
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col1 * + + ( - col2 ) col1 FROM tab0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-304
SELECT CAST( NULL AS SIGNED ) col1, - COUNT( * ) AS col0 FROM tab2
----
NULL
-3

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

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

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

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + col2 * - 40 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT ALL 26 DIV - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL 26 / - COUNT ( * ) FROM tab0
----
-8

query I rowsort
SELECT + 72 * - - col0 FROM tab2 AS cor0
----
3312
4608
5400

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-311
SELECT DISTINCT 58 + COUNT( * ) * + - SUM( - CAST( NULL AS DECIMAL ) ) * 32 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT 58 + COUNT ( * ) * + - SUM ( - CAST ( NULL AS REAL ) ) * 32 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-312
SELECT * FROM tab2 AS cor0 WHERE col0 / CAST( + ( - + 56 ) AS SIGNED ) + + - col2 - 10 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-312
SELECT * FROM tab2 AS cor0 WHERE col0 / CAST ( + ( - + 56 ) AS INTEGER ) + + - col2 - 10 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL SUM( DISTINCT + ( col0 ) ) + - 98 AS col2 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL SUM ( DISTINCT + ( col0 ) ) + - 98 AS col2 FROM tab1 AS cor0
----
129

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

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

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

query I rowsort
SELECT - ( 10 ) AS col0 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 + 55 FROM tab2
----
113
78
95

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT ( 65 ) DIV col0 - 23 FROM tab2
----
-22
-22
-23

skipif mysql # not compatible
query I rowsort label-318
SELECT ( 65 ) / col0 - 23 FROM tab2
----
-22
-22
-23

query I rowsort
SELECT ALL - col0 + - + 0 * - - col1 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT - + 90 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-323
SELECT - + 90 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-90

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - 86 AS col2 FROM tab1
----
-18
-27
10

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - + 49 + + - 67 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT - ( + - 17 ) DIV - - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-329
SELECT - ( + - 17 ) / - - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + ( + col0 ) * + + col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 + + col0 + + col0 col2 FROM tab1 AS cor0
----
167
260
320

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

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

query I rowsort
SELECT 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - - col1 + - col1 + - col0 + - + 96 AS col1 FROM tab1 AS cor0
----
-147
-181
-187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - col1 - - + 65 FROM tab1 AS cor0
----
18
51
60

query I rowsort
SELECT DISTINCT - col0 * - 36 + - col1 AS col2 FROM tab2 AS cor0
----
1605
2227
2633

query I rowsort
SELECT DISTINCT - + col0 - 64 AS col1 FROM tab1 AS cor0
----
-115
-149
-155

query I rowsort
SELECT - 76 + + col1 AS col1 FROM tab1 AS cor0
----
-29
-62
-71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( - 45 ) NOT IN ( col2 * + col0 * col0 + - col0, col0, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab2 WHERE 81 / col2 BETWEEN ( - - 8 * col2 + + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - col2 col2 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT + - col2 AS col1, - 16 + col2 FROM tab0 WHERE NOT + col2 * + col2 * col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + - col2 NOT BETWEEN NULL AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + - col2 NOT BETWEEN NULL AND - - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + col1 ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT DISTINCT MAX( DISTINCT + - ( - - 86 ) ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT MAX ( DISTINCT + - ( - - 86 ) ) FROM tab0
----
-86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT DISTINCT - - SUM( ALL + 41 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
123
3

skipif mysql # not compatible
query II rowsort label-348
SELECT DISTINCT - - SUM ( ALL + 41 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
123
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 67 NOT BETWEEN NULL AND - + 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-350
SELECT COUNT( * ) AS col0, SUM( ALL col1 ) DIV SUM( ALL - col2 ) FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-350
SELECT COUNT ( * ) AS col0, SUM ( ALL col1 ) / SUM ( ALL - col2 ) FROM tab2
----
3
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT COUNT( * ) DIV COUNT( + ( 91 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-351
SELECT COUNT ( * ) / COUNT ( + ( 91 ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ( - col1 ) * - - 57 * + col0 AS col0 FROM tab2
----
-133722
-280896
-286425

query I rowsort
SELECT ALL 62 * - col2 * + 52 * + - 50 + + 72 * - col2 FROM tab2
----
3705944
6445120
9345424

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

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

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

query I rowsort
SELECT ALL + ( + 12 ) + - ( col0 ) AS col2 FROM tab0
----
-3
-75
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT - 45 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 5 BETWEEN + col1 AND col2 + + 87
----
-43

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - 45 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 5 BETWEEN + col1 AND col2 + + 87
----
-43

query I rowsort
SELECT DISTINCT 84 + + 16 AS col1 FROM tab2 AS cor0
----
100

query I rowsort
SELECT ALL - col1 + - 70 AS col1 FROM tab1 AS cor0
----
-117
-75
-84

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

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

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

query I rowsort
SELECT + col2 + - col0 * + 68 + col2 - + col1 * col0 FROM tab2
----
-10009
-5428
-9200

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT ALL - 84 - + CAST( + - 65 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 84 - + CAST ( + - 65 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 99 col1 FROM tab0 AS cor0
----
18
78
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 >= - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-367
SELECT ALL + 28 * - col1 + - CAST( 80 AS SIGNED ) + + 85 + - - col2 * - + col0 - - 75 + + col2 DIV + col1 AS col1 FROM tab0 cor0
----
-1378
-2893
-9452

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL + 28 * - col1 + - CAST ( 80 AS INTEGER ) + + 85 + - - col2 * - + col0 - - 75 + + col2 / + col1 AS col1 FROM tab0 cor0
----
-1378
-2893
-9452

query I rowsort
SELECT DISTINCT - col2 * + - 95 - - 40 FROM tab2 AS cor0
----
2225
3840
5550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - - MIN( col2 ) - + MIN( ALL 63 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-370
SELECT - - MIN ( col2 ) - + MIN ( ALL 63 ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - col2 - 19 FROM tab0 AS cor0
----
-118
-29
-66

query II rowsort
SELECT + col2 - - + ( + col1 ) AS col2, + col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT ALL + 18 DIV + + 85 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + 18 / + + 85 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT - COUNT( * ) * 33 AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - COUNT ( * ) * 33 AS col1 FROM tab0
----
-99

query II rowsort
SELECT col0 AS col2, 84 * - + 46 + - 10 * + - 37 FROM tab0
----
15
-3494
87
-3494
97
-3494

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 94, 86 col0 FROM tab0
----
94
86

onlyif mysql # DIV for integer division: 
query II rowsort label-379
SELECT - col0 DIV col0 * col2 + + + 13 AS col0, - col0 + col1 AS col1 FROM tab0 AS cor0
----
-34
66
-86
-96
3
-66

skipif mysql # not compatible
query II rowsort label-379
SELECT - col0 / col0 * col2 + + + 13 AS col0, - col0 + col1 AS col1 FROM tab0 AS cor0
----
-34
66
-86
-96
3
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-380
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN 93 * + 6 * col2 * 79 * + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-380
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN 93 * + 6 * col2 * 79 * + + col0 AND NULL
----

query II rowsort
SELECT - 66 * + col0 + + 49 + - col1, col0 FROM tab2 AS cor0
----
-3038
46
-4252
64
-4968
75

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT - + MIN( + col2 ) AS col2, SUM( - col1 ) col0 FROM tab2 AS cor0
----
-23
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-382
SELECT - + MIN ( + col2 ) AS col2, SUM ( - col1 ) col0 FROM tab2 AS cor0
----
-23
-195

query I rowsort
SELECT - col1 * 53 AS col0 FROM tab0
----
-1113
-4293
-53

query I rowsort
SELECT ALL 29 AS col2 FROM tab0 WHERE NOT + + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + COUNT( * ) * - MIN( DISTINCT - col0 ) - 91 col1 FROM tab1 AS cor0
----
182

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

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

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

query I rowsort
SELECT - 11 * - - col2 AS col0 FROM tab2 AS cor0
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT DISTINCT - + MIN( ALL col2 ) AS col1, + 93 FROM tab0 AS cor0
----
-10
93

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT - + MIN ( ALL col2 ) AS col1, + 93 FROM tab0 AS cor0
----
-10
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT col2 + 85 * - CAST( NULL AS SIGNED ) / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT col2 + 85 * - CAST ( NULL AS INTEGER ) / - col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT DISTINCT col2 * - col2 + + - CAST( - 22 AS SIGNED ) * - + col1 AS col1 FROM tab0
----
-3991
-562
-9823

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT col2 * - col2 + + - CAST ( - 22 AS INTEGER ) * - + col1 AS col1 FROM tab0
----
-3991
-562
-9823

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + ( + - COUNT( * ) ) + - COUNT( * ) + + - MAX( ALL - + 56 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + ( + - COUNT ( * ) ) + - COUNT ( * ) + + - MAX ( ALL - + 56 ) FROM tab2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT - 75 + ( + - 99 ) + - - col2 * 40 * col0 DIV + 77 AS col0 FROM tab1
----
2369
2431
3040

skipif mysql # not compatible
query I rowsort label-393
SELECT - 75 + ( + - 99 ) + - - col2 * 40 * col0 / + 77 AS col0 FROM tab1
----
2369
2431
3040

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL COUNT( ALL 53 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL COUNT ( ALL 53 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 - + - 93 * col2 FROM tab1 AS cor0
----
5546
6392
9024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 90 col0 FROM tab1 cor0
----
4590
7650
8190

query I rowsort
SELECT ALL ( + + 26 ) AS col2 FROM tab1
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - + MIN( DISTINCT + col1 ) FROM tab0 WHERE ( - 82 ) = + col0 * - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT - + MIN ( DISTINCT + col1 ) FROM tab0 WHERE ( - 82 ) = + col0 * - - col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-403
SELECT 38 + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 8 + + col0 FROM tab0 AS cor0
----
105
23
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL MAX( - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL MAX ( - col2 ) AS col0 FROM tab0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT SUM( DISTINCT - 71 ) AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT SUM ( DISTINCT - 71 ) AS col1 FROM tab2
----
-71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-409
SELECT - 61 * + + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * - ( - ( 86 ) ) * col2 * - col0 col1 FROM tab1
----
-24000192
-24583530
-30333576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT ( - ( + CAST( - col0 AS SIGNED ) ) ) * col1 AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-411
SELECT ( - ( + CAST ( - col0 AS INTEGER ) ) ) * col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 49 * col1 FROM tab0
----
1029
3969
49

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

query I rowsort
SELECT ALL col0 * + col0 + 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 97 + - 0, col0 * - col1 / - 85 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT + COUNT( * ) AS col1, SUM( - col0 ) AS col2 FROM tab0
----
3
-199

skipif mysql # not compatible
query II rowsort label-415
SELECT + COUNT ( * ) AS col1, SUM ( - col0 ) AS col2 FROM tab0
----
3
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - ( - MAX( + - col0 ) ) + + 69 col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-416
SELECT - ( - MAX ( + - col0 ) ) + + 69 col1 FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + col1 <= + 27
----
87
21
10
97
1
99

query III rowsort
SELECT ALL 10 AS col0, - col2 * - - col1 * + - 85 AS col0, - col0 + - 51 FROM tab0 AS cor0
----
9 values hashing to 5c1ffc5367ed271b30dd2eb282ff5445

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT DISTINCT - col2 DIV + col0 * - 22 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - col2 / + col0 * - 22 AS col2 FROM tab2 AS cor0
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL COUNT( * ) * - + AVG ( ALL + 64 ) FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL COUNT ( * ) * - + AVG ( ALL + 64 ) FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND - - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT - MIN( ALL - + 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-424
SELECT - MIN ( ALL - + 84 ) FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT col1 DIV + - 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-425
SELECT col1 / + - 96 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-428
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT col2 / + ( + ( col0 ) ) + - CAST( + col2 AS SIGNED ) NOT BETWEEN NULL AND - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-428
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT col2 / + ( + ( col0 ) ) + - CAST ( + col2 AS INTEGER ) NOT BETWEEN NULL AND - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col0 + CAST( + - 10 AS SIGNED ) * - - col1 BETWEEN NULL AND - col0 + - 59 - + 4 + - + col1 / - col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col0 + CAST ( + - 10 AS INTEGER ) * - - col1 BETWEEN NULL AND - col0 + - 59 - + 4 + - + col1 / - col2 * - col1
----
0

query I rowsort
SELECT ALL 40 + - - col1 FROM tab2
----
107
117
91

query I rowsort
SELECT DISTINCT + 89 - + + col2 AS col2 FROM tab1 AS cor0
----
-7
21
30

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

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

query I rowsort
SELECT ALL 29 - + 34 * 81 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 92c79bdbcb33c3d2f15b2b741e5d6170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT - MAX( - col0 ) * + MAX( + ( col0 ) ) FROM tab2 AS cor0
----
3450

skipif mysql # not compatible
query I rowsort label-437
SELECT - MAX ( - col0 ) * + MAX ( + ( col0 ) ) FROM tab2 AS cor0
----
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT + 77 * - col1 * - CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
32725
329329
54978

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-438
SELECT + 77 * - col1 * - CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
32725
329329
54978

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT + COUNT( * ) * - MIN( ALL - + col2 ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + COUNT ( * ) * - MIN ( ALL - + col2 ) AS col2 FROM tab1
----
288

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) > col1 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 72 * ( - + col2 ) FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE + - 97 + - - col1 * col0 / col2 * col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE + - 97 + - - col1 * col0 / col2 * col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-444
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( + 65 ) NOT BETWEEN + col1 AND + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-444
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( + 65 ) NOT BETWEEN + col1 AND + + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-445
SELECT * FROM tab1 WHERE NOT col0 * + CAST( - - col0 AS SIGNED ) * - col2 BETWEEN col0 / - + 71 * - 14 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-445
SELECT * FROM tab1 WHERE NOT col0 * + CAST ( - - col0 AS INTEGER ) * - col2 BETWEEN col0 / - + 71 * - 14 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col1 col0 FROM tab2
----
2601
4489
5929

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col2, + col0 + - col2 FROM tab0 AS cor0
----
-15
-32
-87
77
-97
-2

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

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

query I rowsort
SELECT - col0 * + + 7 * - - 12 + + + col1 + col1 - - col1 AS col2 FROM tab0 AS cor0
----
-1017
-7245
-8145

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

query I rowsort
SELECT - 11 + + 8 FROM tab2
----
-3
-3
-3

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

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - COUNT ( * ) * - 41 FROM tab0
----
123

query I rowsort
SELECT DISTINCT 38 * + + 73 + + - col2 + 68 FROM tab1
----
2746
2774
2783

query II rowsort
SELECT ALL + ( + col1 ) AS col0, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-463
SELECT ALL - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( + 4 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT ALL - - col2 DIV + col2 - + col0 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - - col2 / + col2 - + col0 FROM tab1 AS cor0
----
-50
-84
-90

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

query I rowsort
SELECT - 27 * col0 + + + col0 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT ALL col1 - - - 94 DIV - col1 AS col1 FROM tab0
----
25
82
95

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL col1 - - - 94 / - col1 AS col1 FROM tab0
----
25
82
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 22 * - col0 <= NULL
----

query I rowsort
SELECT + + 61 AS col2 FROM tab0 AS cor0
----
61
61
61

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

skipif mysql # not compatible
query I rowsort label-471
SELECT - col2 / - + col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT + 43 * + - col1, + col2 AS col0, 47 AS col1 FROM tab1 AS cor0
----
9 values hashing to 2c052bf3b66979469e22a92d955ff413

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND - 79 - + col2 + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 col0, col2 - - - col2 AS col2 FROM tab0
----
58
0
58
0
58
0

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

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

query II rowsort
SELECT ALL col2 + + col1 AS col1, col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col1 * + - col0 * 40
----

query I rowsort
SELECT - col1 * - - col1 * + + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-237237
-260429
-59874

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

query I rowsort
SELECT DISTINCT 23 * col2 FROM tab1
----
1357
1564
2208

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

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

query I rowsort
SELECT - ( - col2 ) * 5 AS col1 FROM tab0
----
235
495
50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT ALL - col1 DIV + 37 + col1 * - col2 FROM tab0
----
-210
-3809
-99

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - col1 / + 37 + col1 * - col2 FROM tab0
----
-210
-3809
-99

query I rowsort
SELECT - 29 * + col0 AS col2 FROM tab2 WHERE ( - col2 ) / + col0 < NULL
----

query I rowsort
SELECT ALL ( + 64 ) AS col2 FROM tab0
----
64
64
64

query I rowsort
SELECT col0 + 41 FROM tab1
----
126
132
92

query I rowsort
SELECT - 92 * 23 AS col0 FROM tab1
----
-2116
-2116
-2116

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + col2 col1 FROM tab0
----
115
26
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT SUM( col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-494
SELECT SUM ( col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT ALL - col2 * - 94 AS col1 FROM tab2
----
2162
3760
5452

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 96 <> ( 90 * - col0 )
----

query I rowsort
SELECT DISTINCT - 18 + - 99 / col2 AS col2 FROM tab0 WHERE NOT + 50 * col0 < ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT COUNT( * ) + 23 AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-502
SELECT COUNT ( * ) + 23 AS col1 FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL - col0 DIV col0 + 2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - col0 / col0 + 2 AS col1 FROM tab1
----
1
1
1

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

query I rowsort
SELECT DISTINCT col0 * 87 FROM tab0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - 65 * COUNT( * ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-506
SELECT - 65 * COUNT ( * ) col2 FROM tab2
----
-195

query I rowsort
SELECT - col2 * - 86 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 55 * + COUNT( * ) AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-508
SELECT + 55 * + COUNT ( * ) AS col0 FROM tab1
----
165

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-515
SELECT - COUNT ( * ) * - 32 FROM tab2 AS cor0
----
96

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

query I rowsort
SELECT ALL + + 37 FROM tab2 AS cor0
----
37
37
37

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

query I rowsort
SELECT + ( 55 ) * + 98 AS col1 FROM tab1 cor0
----
5390
5390
5390

query I rowsort
SELECT 39 FROM tab1 AS cor0 WHERE NOT + 25 < ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-521
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( CAST( NULL AS SIGNED ) * 82 ) AND - 55 / col1 + col2
----

skipif mysql # not compatible
query III rowsort label-521
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( CAST ( NULL AS INTEGER ) * 82 ) AND - 55 / col1 + col2
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( - 12 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + - 93 * 50 AS col1 FROM tab2 AS cor0
----
-4650

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 48 ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-528
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + - 32 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-528
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + - 32 < ( NULL )
----

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

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

query I rowsort
SELECT col2 + - col1 AS col2 FROM tab0 cor0 WHERE ( col1 ) NOT BETWEEN col1 AND 57
----
-34

query I rowsort
SELECT - col0 * + 45 FROM tab2 cor0
----
-2070
-2880
-3375

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

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

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

query I rowsort
SELECT AVG ( + 68 ) FROM tab2 WHERE + 65 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT DISTINCT CAST( + 85 AS SIGNED ) + - col2 - - 8 FROM tab2
----
35
53
70

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT CAST ( + 85 AS INTEGER ) + - col2 - - 8 FROM tab2
----
35
53
70

query I rowsort
SELECT - col1 - col2 - - 70 + + col2 * ( + col0 ) FROM tab0
----
647
909
9573

query I rowsort
SELECT ALL 14 + - col0 AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) NOT IN ( + col1 + - col1 )
----
-32
-50
-61

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = + 97
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 - - + 0 + - + col2 col2 FROM tab1 AS cor0
----
-35
-7
2

query I rowsort
SELECT DISTINCT col2 + + 77 * + col1 FROM tab1 AS cor0
----
1174
3687
444

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 12 IS NULL
----

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

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

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

query I rowsort
SELECT - - ( 83 ) AS col1 FROM tab0 AS cor0 WHERE NULL > - col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * + col0 col1 FROM tab2 AS cor0
----
-138
-192
-225

query I rowsort
SELECT DISTINCT col1 + - 27 AS col0 FROM tab2 cor0
----
24
40
50

query I rowsort
SELECT ALL - - 7 - col0 FROM tab2 AS cor0
----
-39
-57
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL MIN( - 63 ) * COUNT( col2 ) AS col2 FROM tab1 cor0 WHERE NOT ( col1 ) / 85 < col1 * - 68 + col1
----
-189

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL MIN ( - 63 ) * COUNT ( col2 ) AS col2 FROM tab1 cor0 WHERE NOT ( col1 ) / 85 < col1 * - 68 + col1
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT - CAST( ( col0 ) AS SIGNED ) * - 34 AS col1 FROM tab2 WHERE - 66 IS NOT NULL
----
1564
2176
2550

skipif mysql # not compatible
query I rowsort label-551
SELECT - CAST ( ( col0 ) AS INTEGER ) * - 34 AS col1 FROM tab2 WHERE - 66 IS NOT NULL
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT 42 * COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-552
SELECT 42 * COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
129

query I rowsort
SELECT 16 * 33 FROM tab0
----
528
528
528

query I rowsort
SELECT 31 + - - col2 + col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
105
148
156

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT DISTINCT ( + CAST( - 57 AS SIGNED ) ) + - ( + 85 ) FROM tab0
----
-142

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT ( + CAST ( - 57 AS INTEGER ) ) + - ( + 85 ) FROM tab0
----
-142

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 - - - col2 col0 FROM tab2 AS cor0
----
-1640
-3422
-552

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 II rowsort label-561
SELECT DISTINCT 7 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT 7 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
7
NULL

query II rowsort
SELECT DISTINCT - 54, - 18 AS col1 FROM tab0 AS cor0
----
-54
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - COUNT( DISTINCT + - col2 ) * + + 78 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-563
SELECT - COUNT ( DISTINCT + - col2 ) * + + 78 FROM tab2 AS cor0
----
-234

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-565
SELECT DISTINCT 49 * - col2 AS col0, CAST( + + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1127
23
-1960
40
-2842
58

skipif mysql # not compatible
query II rowsort label-565
SELECT DISTINCT 49 * - col2 AS col0, CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1127
23
-1960
40
-2842
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col1 col0 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL col0 * 89 AS col1 FROM tab2 AS cor0
----
4094
5696
6675

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

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

query I rowsort
SELECT ALL 47 + + 44 FROM tab1
----
91
91
91

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

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT COUNT ( + col2 ) FROM tab1 WHERE ( + 34 - col1 - - col0 ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-571
SELECT CAST( NULL AS SIGNED ) AS col2, + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-571
SELECT CAST ( NULL AS INTEGER ) AS col2, + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT + col1 AS col0, + col2 + col1 FROM tab2
----
51
74
67
125
77
117

query I rowsort
SELECT ALL + col0 + 7 FROM tab2
----
53
71
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 26, 19 )
----

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

query II rowsort
SELECT DISTINCT + 61 AS col0, - col1 + col2 FROM tab0 cor0
----
61
-11
61
-34
61
98

query I rowsort
SELECT + 36 + + col1 AS col0 FROM tab2 AS cor0
----
103
113
87

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

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

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

query I rowsort
SELECT + - col0 FROM tab2 WHERE + 99 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT DISTINCT - SUM( DISTINCT 33 ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT - SUM ( DISTINCT 33 ) AS col2 FROM tab1
----
-33

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > - 71 * + col0 + + ( - col1 ) * - col2 * col1
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 + + 1 AS col0 FROM tab2 cor0
----
142
143
98

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

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

query I rowsort
SELECT + col1 + - 48 FROM tab1 AS cor0 WHERE col0 = ( - ( - ( - col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL MIN( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

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

query I rowsort
SELECT ALL - 49 * + col2 - + 89 AS col0 FROM tab2 AS cor0
----
-1216
-2049
-2931

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT MIN( + ( 45 ) ) - - + COUNT( * ) - 71 col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-590
SELECT DISTINCT MIN ( + ( 45 ) ) - - + COUNT ( * ) - 71 col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT MAX( - 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT MAX ( - 66 ) FROM tab1
----
-66

query I rowsort
SELECT 36 + + + col0 FROM tab2
----
100
111
82

query I rowsort
SELECT col1 + - 18 + + - col0 * + - col2 * + - col0 FROM tab0
----
-10512
-75687
-931508

query I rowsort
SELECT ALL - 10 * col1 * ( + 98 ) FROM tab2
----
-49980
-65660
-75460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-595
SELECT + col0 * - CAST( - col2 AS SIGNED ), col2 AS col0 FROM tab1
----
4896
96
5015
59
6188
68

skipif mysql # not compatible
query II rowsort label-595
SELECT + col0 * - CAST ( - col2 AS INTEGER ), col2 AS col0 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT 35 - 86 FROM tab2 WHERE NOT + col2 * 36 < col1 + + - col2
----
-51
-51
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 24 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NOT NULL IS NULL ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT - MAX( ALL + 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - MAX ( ALL + 7 ) FROM tab1
----
-7

query I rowsort
SELECT - col1 * + - ( + col0 ) + col0 + + col2 * + + 51 * - 72 AS col1 FROM tab0 AS cor0
----
-171354
-34806
-363334

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT SUM( + 97 ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-602
SELECT SUM ( + 97 ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + col2 * + col2 col2 FROM tab0 cor0
----
13254
58806
600

query I rowsort
SELECT - - ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= + col2 + - 95 + 77
----

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

skipif mysql # not compatible
query I rowsort label-606
SELECT + ( + - CAST ( NULL AS REAL ) ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - COUNT( - 53 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-608
SELECT - COUNT ( - 53 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 + - - col2 + - col0 * - - col1 * - col1 col0 FROM tab1 WHERE 91 * - + col1 NOT IN ( - col1 )
----
10202
201202
2248

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

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT MAX ( ALL col0 ) + + - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * ( + - ( + - col2 ) ) + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + SUM( DISTINCT - 11 ) + + - 8 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-612
SELECT + SUM ( DISTINCT - 11 ) + + - 8 FROM tab1
----
-19

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

query I rowsort
SELECT + 42 + + 58 FROM tab2 AS cor0
----
100
100
100

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

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

query I rowsort
SELECT - 56 * - col1 + - col0 * - col2 FROM tab0 cor0
----
2046
5241
9659

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + COUNT( ALL + 80 ) + - + 39 + + COUNT( * ) * + SUM( - col1 ) FROM tab2 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + COUNT ( ALL + 80 ) + - + 39 + + COUNT ( * ) * + SUM ( - col1 ) FROM tab2 AS cor0
----
-621

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - COUNT( * ) - ( + - 26 ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-619
SELECT - COUNT ( * ) - ( + - 26 ) AS col2 FROM tab1
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT - - 38 + + - col2 * CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
743
908
9641

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - - 38 + + - col2 * CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
743
908
9641

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 38 ) IN ( - 22 / - - col1 * col0, col2, 54 + + col0 )
----

query I rowsort
SELECT DISTINCT col1 + + 28 AS col1 FROM tab0 AS cor0
----
109
29
49

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT MAX( - 89 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT MAX ( - 89 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 29 + - 31 * - + col2 FROM tab2 AS cor0
----
1269
1827
742

query I rowsort
SELECT ALL - col0 + - - 66 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-19
-25
15

query I rowsort
SELECT + col2 + - - col0 * - + col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT ALL - + col1 - + col2 + col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 19 IN ( + 65, 25, col0 * 32 + + col2 + + col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 46 + + col0 - - 58
----

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

skipif mysql # not compatible
query I rowsort label-632
SELECT COUNT ( * ) / - ( + 30 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 >= + 15 )
----
51
14
96
85
5
59

query II rowsort
SELECT ALL col1 * + 25, + col1 FROM tab2
----
1275
51
1675
67
1925
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 46 * + col1 col0 FROM tab2
----
-107916
-226688
-231150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 13 * col0 * - 25 * + col2 + 80 <> NULL
----

query I rowsort
SELECT DISTINCT + 27 * - - 92 AS col2 FROM tab1
----
2484

query I rowsort
SELECT - 96 + + col0 FROM tab2
----
-21
-32
-50

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 * col0 FROM tab0 AS cor0
----
-1984
-392
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL + - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT + + 1 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + + 1 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT - col1 + col2 + - + 71 - + col1 - - 29 / col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 / - col2 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT ALL - 36 * 90 * + - ( col1 ) FROM tab2 cor0
----
165240
217080
249480

query II rowsort
SELECT ALL - 70 AS col1, - 39 * + col0 AS col2 FROM tab2 AS cor0
----
-70
-1794
-70
-2496
-70
-2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT - 1 DIV + - MIN( - + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-650
SELECT - 1 / + - MIN ( - + col2 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE 32 = col1
----

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

skipif mysql # not compatible
query I rowsort label-652
SELECT MIN ( - ( col2 ) ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL + 48 + - + col0 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col0 ) <> ( 99 ) OR NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col0 ) <> ( 99 ) OR NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

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

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

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

query I rowsort
SELECT 33 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-660
SELECT DISTINCT + ( - COUNT( * ) ) + + 20, ( - 58 ) AS col1 FROM tab2 cor0
----
17
-58

skipif mysql # not compatible
query II rowsort label-660
SELECT DISTINCT + ( - COUNT ( * ) ) + + 20, ( - 58 ) AS col1 FROM tab2 cor0
----
17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL + 61 + + COUNT( * ) + - 5 * 8 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL + 61 + + COUNT ( * ) + - 5 * 8 FROM tab1 AS cor0
----
24

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----

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

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

query I rowsort
SELECT ALL 39 FROM tab2 cor0 WHERE NULL > 80 * + col2
----

query II rowsort
SELECT - col1, + col0 * - - 9 + - col2 AS col2 FROM tab1 cor0
----
-14
363
-47
751
-5
706

query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab1 WHERE - + col1 <> ( NULL )
----

query II rowsort
SELECT ALL col2, - 41 + + 15 * - col1 * + col0 FROM tab0
----
10
-27446
47
-18266
99
-1496

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-674
SELECT DISTINCT 29 AS col0, MAX( ( col2 ) ) * + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT 29 AS col0, MAX ( ( col2 ) ) * + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
29
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2 col0, + col0 AS col0 FROM tab1 AS cor0
----
3481
85
4624
91
9216
51

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL - + COUNT( * ) + - + ( 6 ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - + COUNT ( * ) + - + ( 6 ) AS col0 FROM tab0 AS cor0
----
-9

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

query II rowsort
SELECT ALL 42 * - col0 + col2 AS col2, - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-2046
4896
-3511
5015
-3754
6188

query I rowsort
SELECT 72 * col2 + + col1 FROM tab0 AS cor0
----
3465
7129
741

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-683
SELECT ALL - + CAST( NULL AS SIGNED ) * col2, CAST( - col1 AS SIGNED ) * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
-1248
NULL
-236
NULL
-3128

skipif mysql # not compatible
query II rowsort label-683
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2, CAST ( - col1 AS INTEGER ) * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
-1248
NULL
-236
NULL
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + + col0 DIV + col0 + + + col0 col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-684
SELECT + + col0 / + col0 + + + col0 col2 FROM tab0 AS cor0
----
16
88
98

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

query I rowsort
SELECT + 85 + - 21 FROM tab2
----
64
64
64

query I rowsort
SELECT ALL - col2 + + col0 * 48 FROM tab2
----
2185
3032
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT - ( COUNT( * ) ) col0 FROM tab2
----
-3

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

query I rowsort
SELECT ALL - col1 + 18 + - col2 AS col1 FROM tab1 AS cor0
----
-46
-92
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT MAX( DISTINCT - 21 ) + COUNT( ALL - ( + - col2 ) ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT MAX ( DISTINCT - 21 ) + COUNT ( ALL - ( + - col2 ) ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 91 + + col1 + + col1 AS col2 FROM tab2 WHERE col1 + + col0 IS NULL AND NULL <> col0
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-699
SELECT MAX( ALL - - col0 ) AS col0, CAST( + ( - 97 ) AS SIGNED ) FROM tab2 AS cor0
----
75
-97

skipif mysql # not compatible
query II rowsort label-699
SELECT MAX ( ALL - - col0 ) AS col0, CAST ( + ( - 97 ) AS INTEGER ) FROM tab2 AS cor0
----
75
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT ALL - + ( + col2 ) DIV - - 67 + + col2 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL - + ( + col2 ) / - - 67 + + col2 FROM tab0 AS cor0
----
10
47
98

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT + COUNT( * ) DIV ( - 43 ) * MIN( DISTINCT - col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT + COUNT ( * ) / ( - 43 ) * MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - 61 * - - col0 * col1 FROM tab2
----
-143106
-300608
-306525

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT - SUM( - + col1 ) * - 77 AS col1 FROM tab1 AS cor0
----
-5082

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - SUM ( - + col1 ) * - 77 AS col1 FROM tab1 AS cor0
----
-5082

query I rowsort
SELECT ALL + 53 + + ( - col0 ) AS col1 FROM tab1
----
-32
-38
2

query I rowsort
SELECT ALL + 97 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - - col0 + - col2 FROM tab0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + COUNT( * ) * 77 AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-713
SELECT + COUNT ( * ) * 77 AS col2 FROM tab2
----
231

query I rowsort
SELECT ALL col1 + 59 + - 38 + - ( col1 ) + - col0 * + - 61 FROM tab0
----
5328
5938
936

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT + MIN( ALL 40 ) * + 64 + + - COUNT( * ) AS col0 FROM tab2
----
2557

skipif mysql # not compatible
query I rowsort label-715
SELECT + MIN ( ALL 40 ) * + 64 + + - COUNT ( * ) AS col0 FROM tab2
----
2557

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT col1 + - 99 DIV 81 * - 45 AS col2 FROM tab2
----
112
122
96

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT col1 + - 99 / 81 * - 45 AS col2 FROM tab2
----
112
122
96

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

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

query I rowsort
SELECT DISTINCT + 53 + + + col0 - + col2 FROM tab1
----
76
79
8

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT COUNT( * ) * + + ( + 35 ) - 23 + - - 5 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT COUNT ( * ) * + + ( + 35 ) - 23 + - - 5 FROM tab0
----
87

query I rowsort
SELECT ALL + col1 * + - col0 - + + col2 FROM tab2 cor0
----
-2369
-4968
-5083

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

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

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

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

query II rowsort
SELECT 18 + + - 35, col2 AS col2 FROM tab0 AS cor0
----
-17
10
-17
47
-17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + 29 * + MIN( - col1 ) AS col2 FROM tab2
----
-2233

skipif mysql # not compatible
query I rowsort label-725
SELECT + 29 * + MIN ( - col1 ) AS col2 FROM tab2
----
-2233

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - + 42 FROM tab2 AS cor0
----
-1932
-2688
-3150

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

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

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 15 / 62 - + col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT COUNT( * ) AS col0, 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-731
SELECT COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
3
9

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT DISTINCT - + 78 DIV - - 85 col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT ALL + 33 DIV + - col1 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 33 / + - col1 FROM tab1 AS cor0
----
-2
-6
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 39 / + 84 * - - col2 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-736
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( + - 45 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( + - 45 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT ( - - SUM( - col2 ) ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-737
SELECT DISTINCT ( - - SUM ( - col2 ) ) col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + + COUNT( * ) * + 44 * 90 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT + + COUNT ( * ) * + 44 * 90 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - - 81 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL SUM( ALL + 9 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL SUM ( ALL + 9 ) AS col1 FROM tab1 AS cor0
----
27

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT DISTINCT 88 + + - AVG ( ALL + - col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT 88 + + - AVG ( ALL + - col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col0 + 57 AS col0 FROM tab2
----
-2059
-4039
-5568

query I rowsort
SELECT ALL col0 * + + col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + + 72 + + - 71 + col2 * + col0 FROM tab0 AS cor0
----
706
871
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT - + MAX( - 57 ) + - ( - 22 ) AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-747
SELECT - + MAX ( - 57 ) + - ( - 22 ) AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT + ( + col1 ) + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT + - col0 + - 69 AS col0 FROM tab2 AS cor0
----
-115
-133
-144

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + MIN( + col2 ) + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-752
SELECT + MIN ( + col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
26

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

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

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

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

query II rowsort
SELECT DISTINCT + col1, 70 + + + 62 FROM tab2
----
51
132
67
132
77
132

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

query I rowsort
SELECT DISTINCT - 20 + + col0 AS col2 FROM tab0
----
-5
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT 75 DIV - - 79 * col2 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-758
SELECT 75 / - - 79 * col2 col1 FROM tab0
----
0
0
0

query II rowsort
SELECT col2 AS col0, 22 AS col0 FROM tab2
----
23
22
40
22
58
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL + - COUNT( * ) + 15 AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + - COUNT ( * ) + 15 AS col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - 69 - + 82 FROM tab0 AS cor0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT COUNT( * ) - 62 AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-763
SELECT COUNT ( * ) - 62 AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab1 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT col0 AS col2, col1 + - - 64 * - col0 AS col2 FROM tab0 AS cor0
----
15
-879
87
-5547
97
-6207

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

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab0 WHERE NOT ( NOT NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-768
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + - CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-768
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + - CAST ( NULL AS INTEGER ) ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - 40 * col1 col1 FROM tab2 AS cor0
----
191760
251920
289520

query I rowsort
SELECT DISTINCT - ( - + col2 ) * - + col2 + + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

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

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

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

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

query II rowsort
SELECT col2, - col2 - - - col1 FROM tab2
----
23
-74
40
-117
58
-125

query II rowsort
SELECT 10 AS col0, 20 FROM tab2
----
10
20
10
20
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ( 70 ) * + MIN( + col2 ) FROM tab0
----
700

skipif mysql # not compatible
query I rowsort label-775
SELECT ( 70 ) * + MIN ( + col2 ) FROM tab0
----
700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT ALL - col1 DIV - 52 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - col1 / - 52 FROM tab0 AS cor0
----
0
0
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL MAX( - ( - col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL MAX ( - ( - col1 ) ) AS col1 FROM tab0
----
81

query I rowsort
SELECT col1 + - 22 - - 46 FROM tab1
----
29
38
71

query I rowsort
SELECT col1 + + 86 + - col0 FROM tab2
----
78
91
99

query I rowsort
SELECT + - 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

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

query I rowsort
SELECT col1 * 83 + col1 + - col1 AS col1 FROM tab1 AS cor0 WHERE + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL COUNT( * ) + + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL COUNT ( * ) + + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + - col1 - - 78 FROM tab2 AS cor0
----
1
11
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-789
SELECT + - 39 FROM tab1 AS cor0 WHERE col0 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * 81 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-789
SELECT + - 39 FROM tab1 AS cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
18

query I rowsort
SELECT 40 - + - col0 AS col2 FROM tab2
----
104
115
86

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ( - MIN( ALL + + 60 ) ) - 55 FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-792
SELECT ( - MIN ( ALL + + 60 ) ) - 55 FROM tab1
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col1 FROM tab2
----
128
150
92

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 71 NOT BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 12 * - col1 + + 42 - + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 / - col0 AND col1 + - col1 * 89 + + col2 OR NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 42 + + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT + + 16 * + - COUNT( * ) * 28 FROM tab2 AS cor0
----
-1344

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT + + 16 * + - COUNT ( * ) * 28 FROM tab2 AS cor0
----
-1344

query I rowsort
SELECT - + 44 AS col1 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + COUNT( * ) * - SUM( + 43 ) AS col0 FROM tab0 AS cor0
----
-387

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( * ) * - SUM ( + 43 ) AS col0 FROM tab0 AS cor0
----
-387

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ( + 11 ) DIV - col0 + + - col1 * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-803
SELECT ( + 11 ) / - col0 + + - col1 * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - + col2 * + ( - + 22 ) FROM tab1 AS cor0
----
1298
1496
2112

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

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

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

skipif mysql # not compatible
query I rowsort label-807
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 48 - + 55 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + 54 * SUM( 81 ) FROM tab1
----
13122

skipif mysql # not compatible
query I rowsort label-809
SELECT + 54 * SUM ( 81 ) FROM tab1
----
13122

query I rowsort
SELECT DISTINCT + col2 + - col1 * + - col0 AS col2 FROM tab0
----
1262
1837
196

query I rowsort
SELECT ALL col0 FROM tab0 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT + COUNT( * ) * - - 86 col1 FROM tab0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-812
SELECT DISTINCT + COUNT ( * ) * - - 86 col1 FROM tab0
----
258

query I rowsort
SELECT ALL - col0 * + col2 FROM tab2 WHERE NOT ( col2 ) BETWEEN - - col1 AND col0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT + col2 + + 73 AS col2, + 48 - + col1 AS col2 FROM tab2
----
113
-29
131
-19
96
-3

query III rowsort
SELECT * FROM tab2 WHERE + 65 * + col0 BETWEEN col0 * - - 94 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 30 AS col0 FROM tab1 AS cor0
----
-115
-121
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-817
SELECT + col2 DIV + 97 + col2 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-817
SELECT + col2 / + 97 + col2 FROM tab0 AS cor0
----
10
100
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-818
SELECT CAST( + col1 AS SIGNED ) DIV 11 FROM tab0 cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-818
SELECT CAST ( + col1 AS INTEGER ) / 11 FROM tab0 cor0
----
0
1
7

query I rowsort
SELECT 4 - - + 63 AS col1 FROM tab0
----
67
67
67

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 - col0 + + col2 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT DISTINCT - COUNT( * ) * + - ( + MIN( - 49 ) ), + 9 AS col2 FROM tab1
----
-147
9

skipif mysql # not compatible
query II rowsort label-826
SELECT DISTINCT - COUNT ( * ) * + - ( + MIN ( - 49 ) ), + 9 AS col2 FROM tab1
----
-147
9

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 68 / col1 * + ( + col0 ) IN ( - ( + 52 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + col0 * - 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT MIN( DISTINCT + col1 ), + 11 AS col2 FROM tab1
----
5
11

skipif mysql # not compatible
query II rowsort label-832
SELECT MIN ( DISTINCT + col1 ), + 11 AS col2 FROM tab1
----
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT COUNT( + 8 ) * - 6 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT COUNT ( + 8 ) * - 6 FROM tab1
----
-18

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

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

query I rowsort
SELECT + col0 * + + col1 * + 72 AS col2 FROM tab2 AS cor0
----
168912
354816
361800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT - - col2 DIV - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-837
SELECT - - col2 / - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1 cor0
----
22

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

query I rowsort
SELECT ALL 96 * - col1 * - + 9 AS col0 FROM tab1
----
12096
40608
4320

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 31 + 4 FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col2 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col0 - col1 > - ( - - col2 ) * col0 * - 37 + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query I rowsort
SELECT - + 26 * col2 + - col0 FROM tab0 AS cor0
----
-1237
-2671
-347

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 74 * 21 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MAX( DISTINCT col0 ) + - 97 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-854
SELECT MAX ( DISTINCT col0 ) + - 97 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT - 31 * - - 29 + + - 30 - - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-923

query I rowsort
SELECT DISTINCT 3 + col2 AS col2 FROM tab1
----
62
71
99

query I rowsort
SELECT DISTINCT 70 + + col0 AS col1 FROM tab1
----
121
155
161

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-858
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * - - 55 < + - 97 * 91 * + + col0 / + 48 * + col2
----

skipif mysql # not compatible
query III rowsort label-858
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * - - 55 < + - 97 * 91 * + + col0 / + 48 * + col2
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE - col0 <> col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT 32 - + SUM( + col0 ) FROM tab0 AS cor0
----
-167

skipif mysql # not compatible
query I rowsort label-860
SELECT 32 - + SUM ( + col0 ) FROM tab0 AS cor0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - + MIN( - 93 ) AS col0 FROM tab1 AS cor0 WHERE NULL > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT - + MIN ( - 93 ) AS col0 FROM tab1 AS cor0 WHERE NULL > - col2
----
NULL

query I rowsort
SELECT + 12 - - 59 * col1 + - + col1 FROM tab1 AS cor0
----
2738
302
824

query I rowsort
SELECT DISTINCT + 13 - + col2 FROM tab1 AS cor0
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-864
SELECT - - col1 - + col2 + + + col0 + + col1 / + CAST( NULL AS SIGNED ) * - col2 / - col0 AS col2, col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-864
SELECT - - col1 - + col2 + + + col0 + + col1 / + CAST ( NULL AS INTEGER ) * - col2 / - col0 AS col2, col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

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

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

query II rowsort
SELECT - col1 AS col2, 92 AS col1 FROM tab1
----
-14
92
-47
92
-5
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-867
SELECT + col0, col0 AS col0 FROM tab1 WHERE NOT + col1 * 51 - + col0 / - col2 * - CAST( + 19 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-867
SELECT + col0, col0 AS col0 FROM tab1 WHERE NOT + col1 * 51 - + col0 / - col2 * - CAST ( + 19 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, col2 + col2 FROM tab0
----
15
94
87
20
97
198

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 col0, 48 FROM tab1 AS cor0
----
-83
48
-83
48
-83
48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( 35 ) + + 22 col1 FROM tab1 AS cor0
----
-153
-1623
-468

query I rowsort
SELECT ALL - - 31 FROM tab2 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - 71 >= + 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ), col2 + + col0 col1 FROM tab1 AS cor0
----
51
147
85
144
91
159

query I rowsort
SELECT - col2 * 74 + 81 FROM tab0 AS cor0
----
-3397
-659
-7245

query I rowsort
SELECT + 11 * + col1 FROM tab1 AS cor0
----
154
517
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-880
SELECT + MAX ( + - ( + - col2 ) ) col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT 2 + col0 FROM tab1
----
53
87
93

query I rowsort
SELECT ALL col1 * - 44 AS col0 FROM tab1
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL COUNT( ALL + col2 ) + - 45 AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL COUNT ( ALL + col2 ) + - 45 AS col2 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT + col1 * + 75 + - col2 FROM tab2
----
3802
4967
5735

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT col2 + + col1 DIV - 55 * - col1 * + col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT col2 + + col1 / - 55 * - col1 * + col0 FROM tab1
----
59
68
96

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

query I rowsort
SELECT - + 44 AS col0 FROM tab0 AS cor0
----
-44
-44
-44

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-889
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-889
SELECT + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT 31 DIV + col0 * + col2 * col0 DIV col0 + - col1 * col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-891
SELECT 31 / + col0 * + col2 * col0 / col0 + - col1 * col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT 67 + + 97 - col2 FROM tab2 AS cor0
----
106
124
141

query I rowsort
SELECT - 23 + 25 * + col1 * - 51 FROM tab1 AS cor0
----
-17873
-59948
-6398

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL + - SUM( ALL + + 29 ) + - 80 + + 96 * - - 59 FROM tab1 AS cor0
----
5497

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + - SUM ( ALL + + 29 ) + - 80 + + 96 * - - 59 FROM tab1 AS cor0
----
5497

query I rowsort
SELECT ALL - col1 * - - ( - + col0 ) * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-896
SELECT ALL - 52, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL - 52, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

query I rowsort
SELECT - ( - 75 ) FROM tab0 AS cor0
----
75
75
75

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

query I rowsort
SELECT + 19 * - col1 * + - col2 * - col1 FROM tab1
----
-28025
-2854028
-357504

query I rowsort
SELECT DISTINCT - col0 * - - 44 * - 58 * - col2 FROM tab0
----
-1799160
-2220240
-24506856

query I rowsort
SELECT - 39 * + + 81 AS col0 FROM tab1 AS cor0
----
-3159
-3159
-3159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-902
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-902
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - 62 * + COUNT( * ) * COUNT( - col2 ) FROM tab0 cor0
----
-558

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - 62 * + COUNT ( * ) * COUNT ( - col2 ) FROM tab0 cor0
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + MAX( + + col2 ) AS col0 FROM tab2
----
58

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

query I rowsort
SELECT 3 + + col2 + 61 - + + col0 FROM tab2
----
40
41
47

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

query I rowsort
SELECT + col1 + - + col2 FROM tab2
----
28
37
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + - 46 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 * + + 3 col0 FROM tab0 AS cor0
----
291
3645
5481

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

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

query I rowsort
SELECT col0 * + 59 * + col1 FROM tab2
----
138414
290752
296475

query II rowsort
SELECT ALL + 89, + col0 / - col1 + - - col1 FROM tab2 WHERE NOT NULL <> + - col2
----

query I rowsort
SELECT 71 * + col0 * - col2 FROM tab2
----
-181760
-308850
-75118

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

query I rowsort
SELECT col2 - 47 * - - 87 FROM tab0
----
-3990
-4042
-4079

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

skipif mysql # not compatible
query I rowsort label-916
SELECT COUNT ( * ) - 38 AS col1 FROM tab2
----
-35

query I rowsort
SELECT ALL - 44 * + col2 + + + 61 AS col0 FROM tab0
----
-2007
-379
-4295

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0
----
-6

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 71 ) * - col0 col0 FROM tab1 AS cor0
----
-3621
-6035
-6461

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

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

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

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

query II rowsort
SELECT + 53 AS col2, - 78 FROM tab0
----
53
-78
53
-78
53
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT ( + COUNT( * ) ) * 82 AS col2 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT ( + COUNT ( * ) ) * 82 AS col2 FROM tab2
----
246

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

skipif mysql # not compatible
query I rowsort label-927
SELECT - COUNT ( * ) * 46 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT + 27 * + col2 FROM tab2 AS cor0
----
1080
1566
621

query II rowsort
SELECT ALL 90 AS col2, col0 AS col0 FROM tab0 AS cor0
----
90
15
90
87
90
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-930
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 80 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 80 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 - + 25 + + 32 - 81 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 * + - col1 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT ALL + MAX( DISTINCT + col0 ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-933
SELECT ALL + MAX ( DISTINCT + col0 ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
91
3

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

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

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

query I rowsort
SELECT col0 * - + col2 + 41 AS col2 FROM tab1 AS cor0
----
-4855
-4974
-6147

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

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

query I rowsort
SELECT ALL + 0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT - 30 DIV - + col1 - + col0 + - 38 FROM tab0 AS cor0
----
-105
-124
-53

skipif mysql # not compatible
query I rowsort label-939
SELECT - 30 / - + col1 - + col0 + - 38 FROM tab0 AS cor0
----
-105
-124
-53

query I rowsort
SELECT 65 * col2 + 24 FROM tab0
----
3079
6459
674

query I rowsort
SELECT ALL + col0 + - - col1 + + 73 FROM tab2
----
170
214
215

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT COUNT( + 61 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-942
SELECT COUNT ( + 61 ) AS col2 FROM tab1
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col2 col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + + 78 NOT IN ( - 56, - 79, - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 - - col0 * - col0 + + 9 AS col1 FROM tab2 AS cor0
----
-2153
-4151
-5691

query II rowsort
SELECT DISTINCT - col0 - - col1 + col2, 3 AS col2 FROM tab2 cor0
----
28
3
50
3
53
3

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT - 10 DIV 2 AS col1 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-948
SELECT - 10 / 2 AS col1 FROM tab0
----
-5
-5
-5

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < col0 / 25
----

query I rowsort
SELECT DISTINCT 34 + col1 * col0 AS col2 FROM tab2
----
2380
4962
5059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 45 + + col0 col2 FROM tab2
----
1081
1864
2685

query I rowsort
SELECT col1 * - ( col2 ) + - col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT COUNT( ALL - 93 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-954
SELECT COUNT ( ALL - 93 ) FROM tab1
----
3

query I rowsort
SELECT ALL 90 * - 74 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 56 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT SUM( 21 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-957
SELECT SUM ( 21 ) FROM tab0
----
63

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

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - MAX ( - 72 ) AS col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + ( 89 ) + COUNT( * ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + ( 89 ) + COUNT ( * ) AS col0 FROM tab1
----
92

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

query III rowsort
SELECT * FROM tab1 WHERE col1 <> ( 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 21 + - col0 ) AND ( col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT - COUNT( * ) * - 23 + 89 AS col2 FROM tab0
----
158

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - COUNT ( * ) * - 23 + 89 AS col2 FROM tab0
----
158

query I rowsort
SELECT col2 FROM tab2 WHERE + col0 + + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT MAX( DISTINCT + col2 ) + + SUM( DISTINCT + col2 + + col0 * ( col2 + + col1 ) ) * COUNT( * ) FROM tab1
----
65310

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT MAX ( DISTINCT + col2 ) + + SUM ( DISTINCT + col2 + + col0 * ( col2 + + col1 ) ) * COUNT ( * ) FROM tab1
----
65310

query I rowsort
SELECT - col0 * - 42 + col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( 63 )
----

query III rowsort
SELECT * FROM tab0 WHERE 16 * - 42 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 42 + col1 FROM tab2
----
109
119
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + 85 + - MAX( DISTINCT col0 ) col2 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-971
SELECT + 85 + - MAX ( DISTINCT col0 ) col2 FROM tab1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT ALL COUNT( 84 ) + 57 DIV 48 AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL COUNT ( 84 ) + 57 / 48 AS col1 FROM tab2
----
4

query I rowsort
SELECT - 51 + - col1 AS col0 FROM tab1
----
-56
-65
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT DISTINCT 66 + + COUNT( * ) DIV + 97 FROM tab1
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT 54 + - COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-975
SELECT 54 + - COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
54

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( 35 - + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL 88 * COUNT( * ) + 93 FROM tab2 cor0
----
357

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL 88 * COUNT ( * ) + 93 FROM tab2 cor0
----
357

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN - 21 - - col0 AND + col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - 31 * + 86 FROM tab1 AS cor0
----
-2666
-2666
-2666

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT COUNT( + + 9 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT - 83 * col2 FROM tab1 WHERE - 36 NOT IN ( 8 )
----
-4897
-5644
-7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col0 col1 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - col0 + - - 59 - - 71 * + 15 AS col0 FROM tab2
----
1049
1060
1078

query III rowsort
SELECT * FROM tab2 WHERE ( 76 ) NOT IN ( 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab0 WHERE NOT ( + col2 ) IN ( 22 )
----
66

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 52 NOT BETWEEN + col2 * 79 + 28 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - col0 + 0 FROM tab2 AS cor0 WHERE + 23 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - ( - 32 ) - + 26 AS col1 FROM tab1 AS cor0
----
6

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT - col0 * 53 AS col2 FROM tab2 WHERE NOT ( NOT ( + CAST( + 34 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1005
SELECT - col0 * 53 AS col2 FROM tab2 WHERE NOT ( NOT ( + CAST ( + 34 AS INTEGER ) ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1006
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

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

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

query I rowsort
SELECT col0 * - col0 * - 72 AS col0 FROM tab0 AS cor0
----
16200
544968
677448

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col1 + col1 + - col0 * + col0 FROM tab1 AS cor0
----
59
-7225
68
-8281
96
-2601

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT MIN ( DISTINCT ( - ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1018
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 37 AND + CAST( - col2 AS SIGNED ) * + 34
----

skipif mysql # not compatible
query III rowsort label-1018
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 37 AND + CAST ( - col2 AS INTEGER ) * + 34
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1022
SELECT ALL - 17 * col2, + col1 DIV + 25 AS col1 FROM tab0
----
-1683
0
-170
0
-799
3

skipif mysql # not compatible
query II rowsort label-1022
SELECT ALL - 17 * col2, + col1 / + 25 AS col1 FROM tab0
----
-1683
0
-170
0
-799
3

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

query II rowsort
SELECT DISTINCT 41 * + col2, col1 FROM tab2
----
1640
77
2378
67
943
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT ALL MIN( + 72 ) + + CAST( 44 AS SIGNED ) FROM tab1
----
116

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL MIN ( + 72 ) + + CAST ( 44 AS INTEGER ) FROM tab1
----
116

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 53
----

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

query I rowsort
SELECT - - 21 AS col0 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 22 * - - COUNT( * ) FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1029
SELECT 22 * - - COUNT ( * ) FROM tab0 cor0
----
66

query I rowsort
SELECT DISTINCT + + col0 * + col1 - - col0 + - + 44 FROM tab2 AS cor0
----
2348
4948
5056

query I rowsort
SELECT - col0 * - ( 28 ) FROM tab0 AS cor0
----
2436
2716
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT col2 + col0 FROM tab2 WHERE - + ( + - col1 ) + - col2 + CAST( NULL AS SIGNED ) * col0 IS NULL
----
104
133
69

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT col2 + col0 FROM tab2 WHERE - + ( + - col1 ) + - col2 + CAST ( NULL AS INTEGER ) * col0 IS NULL
----
104
133
69

query I rowsort
SELECT - 74 * + col2 / - + 29 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 - col0 + + - col1 col2, col0 + ( + col1 ) col2 FROM tab0 AS cor0
----
-111
96
-195
108
-195
98

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT - COUNT ( * ) * + COUNT ( * ) + MAX ( DISTINCT + - col0 ) + - 13 * + COUNT ( * ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT 99 * + col0 + - col0 - + col1 + + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
19108
2094
9375

query I rowsort
SELECT DISTINCT col1 + - + ( col0 ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

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

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

query I rowsort
SELECT + - col0 + 78 FROM tab2 AS cor0
----
14
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1040
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( - - col1 AS SIGNED ) + - col2 + col0 * col0 / + ( - col1 * + ( - col0 ) ) IS NULL AND NOT + 59 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1040
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( - - col1 AS INTEGER ) + - col2 + col0 * col0 / + ( - col1 * + ( - col0 ) ) IS NULL AND NOT + 59 < ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1042
SELECT DISTINCT + CAST( + 13 AS SIGNED ) * + 87, - col2 * col2 AS col2 FROM tab1 AS cor0
----
1131
-3481
1131
-4624
1131
-9216

skipif mysql # not compatible
query II rowsort label-1042
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) * + 87, - col2 * col2 AS col2 FROM tab1 AS cor0
----
1131
-3481
1131
-4624
1131
-9216

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

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

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

query I rowsort
SELECT + col1 + - 99 AS col0 FROM tab1 AS cor0
----
-52
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL MIN( - col2 ) - MIN( + col2 ) FROM tab0
----
-109

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL MIN ( - col2 ) - MIN ( + col2 ) FROM tab0
----
-109

query I rowsort
SELECT ALL - 45 FROM tab0 WHERE NOT + 64 <> - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col0 col2 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ( 33 ) * 46 - - col2 AS col0 FROM tab1
----
1577
1586
1614

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1051
SELECT DISTINCT - col0 col1, col1 DIV + 8 AS col0 FROM tab0 AS cor0
----
-15
10
-87
2
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1051
SELECT DISTINCT - col0 col1, col1 / + 8 AS col0 FROM tab0 AS cor0
----
-15
10
-87
2
-97
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1053
SELECT * FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) + - col1 + + col1 NOT BETWEEN + + 40 * - col2 AND - 96
----

skipif mysql # not compatible
query III rowsort label-1053
SELECT * FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) + - col1 + + col1 NOT BETWEEN + + 40 * - col2 AND - 96
----

query I rowsort
SELECT + col2 + + 46 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT - col1 DIV - - col0 + - col1 col2 FROM tab2 AS cor0
----
-52
-67
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT + 95 * - MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
9405

skipif mysql # not compatible
query I rowsort label-1057
SELECT + 95 * - MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
9405

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

query I rowsort
SELECT - + col0 * + - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 4 - - + col2 <> 42 * - - col1 + - 43
----

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

query I rowsort
SELECT + - col1 * + col1 * + 91 AS col1 FROM tab2 AS cor0
----
-236691
-408499
-539539

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL - + ( - SUM( DISTINCT + ( 42 ) ) ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - + ( - SUM ( DISTINCT + ( 42 ) ) ) FROM tab0 cor0
----
42

query I rowsort
SELECT DISTINCT col1 + + 59 AS col0 FROM tab1
----
106
64
73

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( col1 ) * + ( - ( + col0 ) ) BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT ALL + 84 * - + COUNT( * ) * + 25 AS col0, 20 AS col1 FROM tab2
----
-6300
20

skipif mysql # not compatible
query II rowsort label-1067
SELECT ALL + 84 * - + COUNT ( * ) * + 25 AS col0, 20 AS col1 FROM tab2
----
-6300
20

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

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

query I rowsort
SELECT DISTINCT 23 * + col0 + - 89 + + col1 FROM tab2 AS cor0
----
1020
1460
1703

query II rowsort
SELECT 4, + col2 * 61 AS col1 FROM tab2 cor0
----
4
1403
4
2440
4
3538

query I rowsort
SELECT ALL - col1 * col1 * - + 10 - + 67 + col0 FROM tab1 cor0
----
1944
22114
268

query I rowsort
SELECT DISTINCT 51 + col0 FROM tab0 AS cor0
----
138
148
66

query II rowsort
SELECT DISTINCT - + col1 + - col1 + - 60 AS col1, col0 + - col2 FROM tab2 AS cor0
----
-162
23
-194
17
-214
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT MAX( + + 5 ) AS col1 FROM tab1, tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1074
SELECT MAX ( + + 5 ) AS col1 FROM tab1, tab2 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL - COUNT( * ) * - + ( + 4 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL - COUNT ( * ) * - + ( + 4 ) FROM tab2 AS cor0
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1078
SELECT + SUM( ALL + col2 ) * ( + CAST( - COUNT( * ) AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT + SUM ( ALL + col2 ) * ( + CAST ( - COUNT ( * ) AS REAL ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - + col0 - col2 AS col2 FROM tab1
----
366
4209
618

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

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

query I rowsort
SELECT 21 * - col2 + + col0 AS col2 FROM tab0
----
-123
-1982
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT + col2 DIV - 60 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1082
SELECT + col2 / - 60 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT - COUNT( * ) DIV + - 26 AS col2 FROM tab2 WHERE NOT + col0 + col2 IS NOT NULL
----
0

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

query II rowsort
SELECT DISTINCT - 55, col0 FROM tab1 WHERE NOT + + ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) < col0 * - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 67 * - col1 * + col0 * + + 50 AS col0 FROM tab0
----
324950
4070250
6120450

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

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

query I rowsort
SELECT ALL - 55 * + + col0 FROM tab0 AS cor0
----
-4785
-5335
-825

onlyif mysql # aggregate syntax: 
query III rowsort label-1089
SELECT DISTINCT 42 AS col0, 14 * - ( COUNT( * ) ), + 29 AS col0 FROM tab1
----
42
-42
29

skipif mysql # not compatible
query III rowsort label-1089
SELECT DISTINCT 42 AS col0, 14 * - ( COUNT ( * ) ), + 29 AS col0 FROM tab1
----
42
-42
29

query I rowsort
SELECT + 16 * - col0 AS col0 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - MAX( DISTINCT - + 87 ) / - COUNT( * ) FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT - MAX ( DISTINCT - + 87 ) / - COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 4 + - ( - col1 ) FROM tab1 AS cor0
----
18
51
9

query I rowsort
SELECT + + 64 * + ( - - col1 ) * - col1 FROM tab1 cor0
----
-12544
-141376
-1600

query I rowsort
SELECT + + 49 * - 54 FROM tab0 cor0
----
-2646
-2646
-2646

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

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

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

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

query II rowsort
SELECT + + col1 AS col0, + col0 + - - 15 AS col1 FROM tab0 AS cor0
----
1
112
21
102
81
30

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

query II rowsort
SELECT 75 + + col2, col0 FROM tab2
----
115
64
133
75
98
46

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) + - - col2 * + + col2 FROM tab1
----
3476
4577
9202

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 22 >= NULL
----

query I rowsort
SELECT ALL - 50 + col1 + + col0 + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
2616
7265
8369

query I rowsort
SELECT + ( + col0 ) * 1 + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1106
SELECT + SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT 46 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + + 4 )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - 24 + + + col0 * - + col0 * + 83 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col0 + - 7 * + 42 FROM tab0 AS cor0
----
-100
-120
-264

query I rowsort
SELECT + col1 + - 90 + + ( + 57 ) + + col2 * - 93 AS col1 FROM tab1 AS cor0
----
-5515
-6310
-8947

query I rowsort
SELECT DISTINCT col0 * col2 - + ( ( 34 ) ) FROM tab2 AS cor0
----
1024
2526
4316

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + - 82 BETWEEN + col2 - + - col2 * + 54 AND - col1
----

query I rowsort
SELECT DISTINCT 50 + col0 FROM tab1 cor0
----
101
135
141

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

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

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

query I rowsort
SELECT col1 * + 62 AS col0 FROM tab1
----
2914
310
868

query I rowsort
SELECT ALL - 6 * - 75 FROM tab2
----
450
450
450

query I rowsort
SELECT 15 * + - 7 * + col2 AS col2 FROM tab2
----
-2415
-4200
-6090

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT ALL 88 DIV col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL 88 / col1 FROM tab1
----
1
17
6

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

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

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

skipif mysql # not compatible
query I rowsort label-1123
SELECT - 14 / col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + MIN( DISTINCT col0 ) * + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT + MIN ( DISTINCT col0 ) * + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1127
SELECT ALL col1 * CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1127
SELECT ALL col1 * CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1128
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 * col2 * + + ( + - 22 ) + + CAST( + col0 AS SIGNED ) AND ( - + ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1128
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 * col2 * + + ( + - 22 ) + + CAST ( + col0 AS INTEGER ) AND ( - + ( - col0 ) )
----

query II rowsort
SELECT ALL col0 AS col1, 39 * - + ( col2 ) FROM tab1
----
51
-3744
85
-2301
91
-2652

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT DISTINCT + col2 DIV + 79 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + col2 / + 79 FROM tab1 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT - col0 DIV - 17 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - col0 / - 17 FROM tab1 AS cor0
----
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * + 16 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 65 AS col2, col0 + + - col0 AS col1 FROM tab2
----
-65
0
-65
0
-65
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT MIN( ALL + CAST( + + col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1134
SELECT MIN ( ALL + CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + COUNT( ALL + 63 ) + - COUNT( * ) + - 68 * + MAX( col1 ) FROM tab2
----
-5236

skipif mysql # not compatible
query I rowsort label-1137
SELECT + COUNT ( ALL + 63 ) + - COUNT ( * ) + - 68 * + MAX ( col1 ) FROM tab2
----
-5236

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT DISTINCT 12 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT 12 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT + 99 * + col2 AS col2 FROM tab0
----
4653
9801
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - col2 col1 FROM tab0
----
3102
6534
660

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 24 + - 22 FROM tab1 cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, 78, + + col0 * + col2 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT ( + col2 ) DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1145
SELECT ( + col2 ) / + col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1146
SELECT - 54 DIV + col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 54 / + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
-1
-2
0

query I rowsort
SELECT ALL - - 23 AS col0 FROM tab2 AS cor0
----
23
23
23

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

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT ( NULL NOT BETWEEN + 89 AND - + col1 * + col0 + + + col0 + 87 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT ALL + 46 DIV + 68 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + 46 / + 68 AS col2 FROM tab0
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - - ( + 56 ) * MAX( ALL col2 ) FROM tab2 AS cor0
----
3248

skipif mysql # not compatible
query I rowsort label-1155
SELECT - - ( + 56 ) * MAX ( ALL col2 ) FROM tab2 AS cor0
----
3248

query I rowsort
SELECT + + 70 * + 12 AS col0 FROM tab2 AS cor0
----
840
840
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 col0 FROM tab0
----
108
96
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT DISTINCT + + 90 + + + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + + 90 + + + col1 / + col1 AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 0 * - ( - - SUM( DISTINCT - - col1 ) ) - - 51 AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1160
SELECT 0 * - ( - - SUM ( DISTINCT - - col1 ) ) - - 51 AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col2 * - col2 + + 18 * + col1 AS col0 FROM tab1 AS cor0
----
-3391
-3778
-8964

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT + + col2 * 11 DIV + + 34 + 38 FROM tab0 AS cor0 WHERE + col1 - + - 92 IS NOT NULL
----
41
53
70

skipif mysql # not compatible
query I rowsort label-1162
SELECT + + col2 * 11 / + + 34 + 38 FROM tab0 AS cor0 WHERE + col1 - + - 92 IS NOT NULL
----
41
53
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - ( - COUNT( * ) ) + + 53 AS col2 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1163
SELECT - ( - COUNT ( * ) ) + + 53 AS col2 FROM tab0 AS cor0
----
56

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

query I rowsort
SELECT DISTINCT - - col0 * - - 97 + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
4531
6312
7408

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1166
SELECT - col0 * col2 + + col2 - - CAST( - - col0 AS SIGNED ) + - 47 DIV + col2 * + + 99 col0 FROM tab1 AS cor0
----
-4749
-4871
-6029

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1166
SELECT - col0 * col2 + + col2 - - CAST ( - - col0 AS INTEGER ) + - 47 / + col2 * + + 99 col0 FROM tab1 AS cor0
----
-4749
-4871
-6029

query I rowsort
SELECT - 14 + + col0 - - col1 FROM tab0 AS cor0
----
82
84
94

query I rowsort
SELECT + - col2 + + 7 FROM tab1 cor0
----
-52
-61
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 80 col2 FROM tab0 AS cor0
----
101
161
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT col2 + + ( col2 ) DIV + col2 AS col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1170
SELECT col2 + + ( col2 ) / + col2 AS col0 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT 56 DIV + COUNT( * ) col2 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT DISTINCT 56 / + COUNT ( * ) col2 FROM tab1
----
18

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col1 / - col2
----

query I rowsort
SELECT ALL - col1 + - col1 * - + col2 * ( col1 ) - col1 FROM tab2
----
237006
260228
59721

query I rowsort
SELECT ALL col1 * + col0 + - + col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + - 37 AS col0 FROM tab2 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + - col2 col1 FROM tab0 AS cor0
----
-1
-53
36

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

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

query I rowsort
SELECT 11 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 87 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 72 + col2 + - 90 * + + 61 * col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1181
SELECT + + 12, + col2 DIV - 97 AS col2 FROM tab1 AS cor0
----
12
0
12
0
12
0

skipif mysql # not compatible
query II rowsort label-1181
SELECT + + 12, + col2 / - 97 AS col2 FROM tab1 AS cor0
----
12
0
12
0
12
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IN ( - + 7 )
----

query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0 WHERE NOT 77 >= - + 53 * + col0 + - col1 - + 62 + + + col1
----

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

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

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab1 WHERE col0 > - col0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1187
SELECT * FROM tab2 WHERE NOT + + col1 NOT BETWEEN - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) * 90 + - + col2 AND + col1
----

skipif mysql # not compatible
query III rowsort label-1187
SELECT * FROM tab2 WHERE NOT + + col1 NOT BETWEEN - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) * 90 + - + col2 AND + col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * + + col0 * + col1 col2 FROM tab0
----
115425
173565
9215

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 26 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1191
SELECT + COUNT( * ) * - 21 AS col1, + 77 FROM tab0 WHERE NOT col0 IS NULL
----
-63
77

skipif mysql # not compatible
query II rowsort label-1191
SELECT + COUNT ( * ) * - 21 AS col1, + 77 FROM tab0 WHERE NOT col0 IS NULL
----
-63
77

query I rowsort
SELECT - 62 * - 97 FROM tab0
----
6014
6014
6014

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT + MAX( col0 ) * - - MAX( DISTINCT 61 ) AS col2 FROM tab2
----
4575

skipif mysql # not compatible
query I rowsort label-1194
SELECT + MAX ( col0 ) * - - MAX ( DISTINCT 61 ) AS col2 FROM tab2
----
4575

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT - - COUNT( * ) * - 74 AS col2, COUNT( * ) + 68 - + - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-222
77

skipif mysql # not compatible
query II rowsort label-1196
SELECT - - COUNT ( * ) * - 74 AS col2, COUNT ( * ) + 68 - + - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-222
77

query I rowsort
SELECT ALL - col2 * 56 * + + col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-170695
-72663
-9295

query I rowsort
SELECT DISTINCT 35 * - - col2 AS col0 FROM tab1 AS cor0
----
2065
2380
3360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 >= - col0 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 1 + col2 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL + COUNT( * ) FROM tab1 WHERE + 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + 28 IS NOT NULL
----
3

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

query I rowsort
SELECT DISTINCT - - col0 + + 93 FROM tab2 AS cor0
----
139
157
168

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT - + SUM( DISTINCT + col2 ) + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - + SUM ( DISTINCT + col2 ) + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL col1 * + col0 + + + col1 * col1 AS col0 FROM tab2 AS cor0
----
10857
4947
9514

query I rowsort
SELECT ALL col0 * + 37 FROM tab1 AS cor0
----
1887
3145
3367

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + - 81 AND NULL
----

query I rowsort
SELECT col1 * col2 - - col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT - MIN( DISTINCT + + col1 ) col1, 20 AS col2 FROM tab0
----
-1
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1213
SELECT - MIN ( DISTINCT + + col1 ) col1, 20 AS col2 FROM tab0
----
-1
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT - 79 DIV + COUNT( * ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - 79 / + COUNT ( * ) AS col0 FROM tab0
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 36 + + + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1216
SELECT 36 + + + COUNT ( * ) FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL - 11 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - 11 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - 78 + - 78 + - + COUNT ( * ) FROM tab1
----
-159

query II rowsort
SELECT DISTINCT 72 + - - col0, col0 FROM tab2
----
118
46
136
64
147
75

query I rowsort
SELECT DISTINCT - 16 * 38 * + ( - col2 ) - - - col2 FROM tab2 cor0
----
13961
24280
35206

query I rowsort
SELECT DISTINCT - 24 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT - col2 DIV col1 DIV - col1 AS col1 FROM tab2 WHERE NOT + col2 IN ( 34 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1223
SELECT - col2 / col1 / - col1 AS col1 FROM tab2 WHERE NOT + col2 IN ( 34 )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT 84 DIV + + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT 84 / + + col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL + MAX( + 55 ) FROM tab0 AS cor0 WHERE NOT - col1 * - col2 + col0 < + 39 + - col1
----
55

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + MAX ( + 55 ) FROM tab0 AS cor0 WHERE NOT - col1 * - col2 + col0 < + 39 + - col1
----
55

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

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( - - 49 IS NULL )
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT COUNT ( * ) / + COUNT ( ALL + 8 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + col1 * + 41 + + + col0 + - 58 AS col0 FROM tab2 cor0
----
2079
2764
3163

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - + 79 * + col2 * + + 90 AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 47 AS col0, - col1 + + col0 + + - 5 * 52 + col0 * col2 AS col1 FROM tab2 AS cor0
----
47
2287
47
4098
47
793

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

query II rowsort
SELECT 43 AS col1, - 55 AS col2 FROM tab0
----
43
-55
43
-55
43
-55

query I rowsort
SELECT + col0 - + + col2 FROM tab0 WHERE NOT NULL = + - col0
----

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1238
SELECT + COUNT ( * ) AS col0, + 11 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT 37 + + MAX( DISTINCT + col0 ) + 17 FROM tab0
----
151

skipif mysql # not compatible
query I rowsort label-1240
SELECT 37 + + MAX ( DISTINCT + col0 ) + 17 FROM tab0
----
151

query I rowsort
SELECT ALL - col1 * - 57 + + col2 AS col1 FROM tab2 cor0
----
2930
3877
4429

query I rowsort
SELECT DISTINCT + col2 * + col0 + + 56 FROM tab1 AS cor0
----
4952
5071
6244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT ALL - - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1244
SELECT ALL - COUNT ( 8 ) col1, + 3 AS col2 FROM tab1 AS cor0
----
-3
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT - 76 + col0 + CAST( + 87 AS SIGNED ) AS col2 FROM tab1
----
102
62
96

skipif mysql # not compatible
query I rowsort label-1246
SELECT - 76 + col0 + CAST ( + 87 AS INTEGER ) AS col2 FROM tab1
----
102
62
96

query II rowsort
SELECT DISTINCT 22 AS col2, col1 + + 10 FROM tab1
----
22
15
22
24
22
57

query I rowsort
SELECT DISTINCT - col1 + + + 23 FROM tab0
----
-58
2
22

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

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

query I rowsort
SELECT ( col2 ) * - - 93 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT DISTINCT - col0 * - - 53 AS col1 FROM tab2 AS cor0
----
-2438
-3392
-3975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT - CAST( - + COUNT( + + col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + 88 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT - CAST ( - + COUNT ( + + col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + 88 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT - col0 DIV + + 20 AS col0 FROM tab0 cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT - col0 / + + 20 AS col0 FROM tab0 cor0
----
-4
-4
0

query I rowsort
SELECT + - 34 AS col2 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL - - 63 DIV 92 + 46 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - - 63 / 92 + 46 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT AVG ( col0 ) * + + 15 AS col2 FROM tab2 AS cor0 WHERE - col1 - - col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL MIN( + + 29 ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL MIN ( + + 29 ) FROM tab2 cor0
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 27 AS col0 FROM tab0 cor0 WHERE NULL IS NULL AND ( NULL ) BETWEEN - 99 * col2 * col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT + 89 * COUNT( * ) + COUNT( ALL - - col1 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + 89 * COUNT ( * ) + COUNT ( ALL - - col1 ) FROM tab2
----
270

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

query I rowsort
SELECT ALL - col2 + - col2 + + - 31 * - - 90 + - 16 FROM tab0 AS cor0
----
-2826
-2900
-3004

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL SUM( - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL SUM ( - col2 ) AS col1 FROM tab2
----
-121

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

skipif mysql # not compatible
query II rowsort label-1266
SELECT COUNT ( * ), - SUM ( DISTINCT + + col0 ) + COUNT ( * ) AS col0 FROM tab2
----
3
-182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1267
SELECT + 68, col1 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
68
NULL
68
NULL
68
NULL

skipif mysql # not compatible
query II rowsort label-1267
SELECT + 68, col1 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
68
NULL
68
NULL
68
NULL

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - MAX ( - col0 ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
43

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT + - CAST ( - + 59 AS INTEGER ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT 95 + - col0 AS col1 FROM tab0
----
-2
8
80

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

query I rowsort
SELECT DISTINCT - + col2 * col0 FROM tab0 WHERE col2 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT 36 + + - col0 FROM tab0
----
-51
-61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT + - AVG ( ALL CAST( - 31 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT + - AVG ( ALL CAST ( - 31 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT ALL + SUM( + col1 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
195
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT ( + MIN( - 70 ) ), + COUNT( * ) AS col1 FROM tab2
----
-70
3

skipif mysql # not compatible
query II rowsort label-1279
SELECT ( + MIN ( - 70 ) ), + COUNT ( * ) AS col1 FROM tab2
----
-70
3

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

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

query I rowsort
SELECT + 42 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1283
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
21
81

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

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

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

query I rowsort
SELECT ALL + 37 * + + col0 FROM tab2 AS cor0
----
1702
2368
2775

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

query I rowsort
SELECT col2 * + col1 + - 15 FROM tab1
----
1329
280
3181

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT COUNT( * ) + - 75 AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1290
SELECT COUNT ( * ) + - 75 AS col0 FROM tab0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 56 IS NULL
----

query I rowsort
SELECT 80 * + - 70 FROM tab2 AS cor0
----
-5600
-5600
-5600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - COUNT( * ) * - 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
180

skipif mysql # not compatible
query I rowsort label-1294
SELECT - COUNT ( * ) * - 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
180

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT - 16 + - COUNT( ALL 24 ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - 16 + - COUNT ( ALL 24 ) AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT - + 65 * - - col1 + 54 FROM tab0 AS cor0
----
-11
-1311
-5211

query I rowsort
SELECT + - 97 + - col2 + + + col0 FROM tab0 cor0
----
-129
-20
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL + COUNT( * ) * 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + COUNT ( * ) * 38 FROM tab2 AS cor0
----
114

query II rowsort
SELECT ALL col2 * col2 * ( - ( - col0 ) ) AS col1, col0 AS col1 FROM tab2 AS cor0
----
102400
64
24334
46
252300
75

query I rowsort
SELECT - col1 + + - col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT BETWEEN NULL AND - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1304
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + - ( + + 49 ) + + CAST( NULL AS DECIMAL ) * - col2 + col2 IN ( 14, ( + - col0 ) + col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1304
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + - ( + + 49 ) + + CAST ( NULL AS REAL ) * - col2 + col2 IN ( 14, ( + - col0 ) + col0 + + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - col1, col2 * - 96 AS col2 FROM tab0
----
-1
-9504
-21
-960
-81
-4512

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 + - 10 AS col0 FROM tab2
----
-1
18
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT 64 DIV ( - col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT 64 / ( - col2 ) FROM tab1
----
-1
0
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT + COUNT( * ) * + COUNT( * ) * - CAST( + - 42 AS SIGNED ) AS col2 FROM tab0
----
378

skipif mysql # not compatible
query I rowsort label-1312
SELECT + COUNT ( * ) * + COUNT ( * ) * - CAST ( + - 42 AS INTEGER ) AS col2 FROM tab0
----
378

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - ( col1 ) DIV - - 12 col0 FROM tab2 AS cor0
----
-4
-5
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT - ( col1 ) / - - 12 col0 FROM tab2 AS cor0
----
-4
-5
-6

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT + + MAX ( + 35 ) FROM tab0 AS cor0
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1317
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) * - + col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1317
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) * - + col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT - col0, + 93 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 50 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT DISTINCT + MAX( DISTINCT 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + MAX ( DISTINCT 97 ) AS col2 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col2, + COUNT( * ) + + - 19 * COUNT( * ) FROM tab1 AS cor0
----
-5
-54

skipif mysql # not compatible
query II rowsort label-1324
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col2, + COUNT ( * ) + + - 19 * COUNT ( * ) FROM tab1 AS cor0
----
-5
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT DISTINCT - CAST( - 30 AS SIGNED ) * col2 FROM tab0 cor0
----
1410
2970
300

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - CAST ( - 30 AS INTEGER ) * col2 FROM tab0 cor0
----
1410
2970
300

query I rowsort
SELECT DISTINCT - col2 + + col1 + - + col0 FROM tab1
----
-112
-133
-139

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

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

query I rowsort
SELECT ALL ( col2 ) + + 72 FROM tab0
----
119
171
82

query II rowsort
SELECT ALL + col2 + - + 66 * col2 AS col2, ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3055
-81
-6435
-1
-650
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT ALL + COUNT( * ) * + - MAX( - - col1 ) DIV + - COUNT( ALL - col2 ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + COUNT ( * ) * + - MAX ( - - col1 ) / + - COUNT ( ALL - col2 ) AS col0 FROM tab0 cor0
----
81

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) - - MIN( + + col0 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) - - MIN ( + + col0 ) FROM tab2 AS cor0
----
49

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE 32 / + col1 - + + col0 BETWEEN NULL AND ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 65 ) * + 99 col0 FROM tab0 AS cor0
----
6435
6435
6435

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

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

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

query I rowsort
SELECT col1 * + ( 8 ) FROM tab0
----
168
648
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 < + + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1344
SELECT - 64 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-1344
SELECT - 64 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-64
NULL
-64
NULL
-64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT ALL - 39 DIV col2 * ( + 24 ) col2 FROM tab0
----
-72
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1345
SELECT ALL - 39 / col2 * ( + 24 ) col2 FROM tab0
----
-72
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - 4 col2 FROM tab1 AS cor0
----
-184
-184
-184

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

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col0 + - - col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-10
197
-47
2271
-99
9997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1350
SELECT ALL + col1 AS col1, CAST( col0 AS SIGNED ) FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-1350
SELECT ALL + col1 AS col1, CAST ( col0 AS INTEGER ) FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT - 51 * + col2 * + 95 AS col0 FROM tab1
----
-285855
-329460
-465120

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT DISTINCT + ( + - MIN( 65 ) ) AS col0 FROM tab1 WHERE + col0 + + - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + ( + - MIN ( 65 ) ) AS col0 FROM tab1 WHERE + col0 + + - col0 = NULL
----
NULL

query II rowsort
SELECT ALL col1 * col0 + + 44 + + - 55 AS col1, - col2 AS col2 FROM tab2
----
2335
-23
4917
-40
5014
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1354
SELECT + 16 AS col1, CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
16
46
16
64
16
75

skipif mysql # not compatible
query II rowsort label-1354
SELECT + 16 AS col1, CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
16
46
16
64
16
75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT ALL + 67, MAX( + col1 ) col2 FROM tab1 AS cor0
----
67
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1356
SELECT ALL + 67, MAX ( + col1 ) col2 FROM tab1 AS cor0
----
67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - + MAX( col1 ) * - 86 FROM tab1 AS cor0
----
4042

skipif mysql # not compatible
query I rowsort label-1357
SELECT - + MAX ( col1 ) * - 86 FROM tab1 AS cor0
----
4042

query I rowsort
SELECT - 79 + - 45 - + col1 FROM tab1 cor0
----
-129
-138
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + + 62 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1359
SELECT + + 62 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, 68 - - col2 AS col0 FROM tab0 AS cor0
----
10
78
47
115
99
167

query I rowsort
SELECT + + 32 + + col1 * col1 + - 45 FROM tab2 AS cor0
----
2588
4476
5916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 47 col1 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT - + 99 * + COUNT( * ) - + 72 FROM tab1 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT - + 99 * + COUNT ( * ) - + 72 FROM tab1 AS cor0
----
-369

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 0 ) BETWEEN col0 * - col2 AND - - ( - 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + + col0 col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT ALL col0 + - + col2 * + - col2 DIV + col2 AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL col0 + - + col2 * + - col2 / + col2 AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT 86 + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1367
SELECT 86 + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
92

query I rowsort
SELECT DISTINCT col2 * - 99 AS col2 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT + col1 + - col0 + - col2 FROM tab0
----
-195
-76
19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1370
SELECT ALL - CAST( NULL AS DECIMAL ) * - col1, + 63 AS col2 FROM tab0
----
NULL
63
NULL
63
NULL
63

skipif mysql # not compatible
query II rowsort label-1370
SELECT ALL - CAST ( NULL AS REAL ) * - col1, + 63 AS col2 FROM tab0
----
NULL
63
NULL
63
NULL
63

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

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

query I rowsort
SELECT DISTINCT - 6 + - col2 AS col2 FROM tab2
----
-29
-46
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE - 37 - - 5 = + + 69 + + + 98
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1374
SELECT ALL CAST( + col0 AS SIGNED ) + 90 DIV col2 FROM tab0 AS cor0
----
16
96
97

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL CAST ( + col0 AS INTEGER ) + 90 / col2 FROM tab0 AS cor0
----
16
96
97

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

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

query I rowsort
SELECT - 1 * + - ( col2 ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - 5 - - 88 * + col1 + + 1 AS col2 FROM tab0 AS cor0
----
1844
7124
84

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1379
SELECT DISTINCT * FROM tab1 WHERE col2 * ( - + col0 ) = + 0 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1379
SELECT DISTINCT * FROM tab1 WHERE col2 * ( - + col0 ) = + 0 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 45 * - col1 * + ( + col2 ) + - 53 FROM tab2 cor0
----
138547
174817
52732

query II rowsort
SELECT + + 82 AS col2, - 65 - col0 FROM tab2 AS cor0
----
82
-111
82
-129
82
-140

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1382
SELECT + COUNT ( ALL 32 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1383
SELECT DISTINCT + MIN( - ( + col0 ) ) DIV - 62 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + MIN ( - ( + col0 ) ) / - 62 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * 18 BETWEEN - - col2 AND col0 * col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1385
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) * + + col2 / - col0 - - - 49 > NULL
----

skipif mysql # not compatible
query III rowsort label-1385
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) * + + col2 / - col0 - - - 49 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT DISTINCT col1 DIV + 82 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT col1 / + 82 FROM tab0
----
0

query I rowsort
SELECT ALL ( + 71 ) * - - 42 - - - 67 AS col1 FROM tab1
----
2915
2915
2915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - - 8 ) col0 FROM tab0
----
168
648
8

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

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

query I rowsort
SELECT + ( - col1 ) * - col0 AS col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - + 9 * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-12096
-2655
-28764

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1394
SELECT DISTINCT + col1 DIV - 80, col0 FROM tab0 cor0
----
-1
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + col1 / - 80, col0 FROM tab0 cor0
----
-1
15
0
87
0
97

query I rowsort
SELECT ALL + 85 * + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 37 + + + 54 * + + 17 + col2, + col0, + + 28 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL - MAX( - col1 ) col1 FROM tab0 AS cor0
----
1

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 65 BETWEEN + + col0 AND - col0 / col2
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab2 cor0
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT - 22 + + + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT - 22 + + + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25

query II rowsort
SELECT + col0 * - col0, + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT IN ( - - col0 )
----
-2601
810
-7225
484
-8281
4345

query I rowsort
SELECT ALL + 25 * 22 + col2 AS col2 FROM tab1 AS cor0
----
609
618
646

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT 35 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - 29
----

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

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

query I rowsort
SELECT ALL - col2 + col2 + + 41 AS col0 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + 56 * - - col0 - + 94 + - 18 * + col2 IN ( + col1, col1 + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 56 * - - col0 - + 94 + - 18 * + col2 IN ( + col1, col1 + 92 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1413
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 AS col0, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1413
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 AS col0, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT + col0 * - col2 + + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL - 20 * - + 72 * - SUM( ALL + col2 ) FROM tab1 AS cor0
----
-321120

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - 20 * - + 72 * - SUM ( ALL + col2 ) FROM tab1 AS cor0
----
-321120

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL + COUNT( 54 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + COUNT ( 54 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1419
SELECT + col1, - col1 + col2 DIV + + col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-1419
SELECT + col1, - col1 + col2 / + + col1 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT + 85 AS col2, 39 + - - 87 AS col1 FROM tab0
----
85
126
85
126
85
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL MIN( DISTINCT + - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL MIN ( DISTINCT + - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL >= - col1 + + 25 + - + ( - ( + - col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1424
SELECT ALL + col2, col2 DIV + col2 FROM tab0 AS cor0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL + col2, col2 / + col2 FROM tab0 AS cor0
----
10
1
47
1
99
1

query I rowsort
SELECT col1 * + ( + - ( + 31 ) ) FROM tab1 AS cor0
----
-1457
-155
-434

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT col1 DIV + + 46 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1426
SELECT col1 / + + 46 FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT ( + 90 ) AS col0 FROM tab2
----
90
90
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT MIN( ALL 2 ) col0 FROM tab0 WHERE NOT col2 <> ( 37 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT MIN ( ALL 2 ) col0 FROM tab0 WHERE NOT col2 <> ( 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + COUNT( * ) FROM tab0 WHERE + col0 BETWEEN + col0 AND ( - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-1431
SELECT + COUNT ( * ) FROM tab0 WHERE + col0 BETWEEN + col0 AND ( - 93 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * col0 + col2 ) >= NULL
----

query I rowsort
SELECT ALL col0 * + 40 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT 67 * - SUM( + col0 ) FROM tab2
----
-12395

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT 67 * - SUM ( + col0 ) FROM tab2
----
-12395

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE ( 1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE ( 1 ) IS NOT NULL
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT + SUM( DISTINCT + col1 ) AS col2 FROM tab0 WHERE ( CAST( - CAST( 61 AS SIGNED ) AS SIGNED ) ) IS NULL
----
NULL

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

query I rowsort
SELECT 90 * - 21 AS col1 FROM tab1 WHERE + col2 NOT IN ( + col2 * col1 )
----
-1890
-1890
-1890

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 78 col2 FROM tab0
----
3666
7722
780

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

query I rowsort
SELECT ALL - 50 * + col2 FROM tab1
----
-2950
-3400
-4800

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

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT + 14 * COUNT ( * ) FROM tab1
----
42

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + 87 >= NULL
----

query I rowsort
SELECT col1 - + 2 AS col2 FROM tab1 AS cor0
----
12
3
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( ALL col2 ) + 10 AS col2 FROM tab0 cor0 WHERE ( + 2 ) IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( ALL col2 ) + 10 AS col2 FROM tab0 cor0 WHERE ( + 2 ) IS NULL
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT COUNT( DISTINCT + col0 ) * COUNT( * ) - 95 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1451
SELECT COUNT ( DISTINCT + col0 ) * COUNT ( * ) - 95 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT - ( col2 ) * + ( col0 ) - col2 AS col2 FROM tab2 cor0
----
-1081
-2600
-4408

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

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

query I rowsort
SELECT ALL + 41 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-1017
-2519
-4309

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 73 ) NOT IN ( - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL col2 * + 46 AS col1 FROM tab0 cor0
----
2162
4554
460

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE - col0 NOT IN ( - 57 )
----
1
21
81

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

query I rowsort
SELECT - 24 * + + col0 FROM tab1
----
-1224
-2040
-2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT 69 * - - COUNT( * ) AS col0 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT 69 * - - COUNT ( * ) AS col0 FROM tab1
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT col1 DIV - + ( - 47 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT col1 / - + ( - 47 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE ( + 6 ) NOT BETWEEN ( - 59 ) + 74 AND ( - col1 )
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL COUNT( DISTINCT - 34 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL COUNT ( DISTINCT - 34 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1

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

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

query I rowsort
SELECT + 22 + - ( + col0 ) AS col1 FROM tab2
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT - 88 + - COUNT( * ) + + 20 AS col1 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-1478
SELECT - 88 + - COUNT ( * ) + + 20 AS col1 FROM tab0
----
-71

query I rowsort
SELECT DISTINCT + 13 + - - ( - - 5 ) * + col0 FROM tab1
----
268
438
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ALL - CAST( + col0 AS SIGNED ) + - col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - CAST ( + col0 AS INTEGER ) + - col2 FROM tab1
----
-144
-147
-159

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

query I rowsort
SELECT DISTINCT ( - 58 ) * + + 98 - - col1 * 87 FROM tab2 AS cor0
----
-1247
1015
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + - 38 AS col1 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + - 38 AS col1 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - col0 + + ( - col0 ) + - 78 * - col1 FROM tab2 AS cor0
----
3886
5076
5878

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT DISTINCT COUNT( * ) - 47 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT COUNT ( * ) - 47 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - 36 + ( + 63 ) AS col2 FROM tab1 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT ALL - + col0 - - 27 DIV - + col0 FROM tab0 AS cor0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - + col0 - - 27 / - + col0 FROM tab0 AS cor0
----
-16
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ALL - 1 * - SUM( ALL + col0 ) FROM tab0 AS cor0 WHERE + ( + + col2 ) - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL - 1 * - SUM ( ALL + col0 ) FROM tab0 AS cor0 WHERE + ( + + col2 ) - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT 19 - 86 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
277

skipif mysql # not compatible
query I rowsort label-1489
SELECT 19 - 86 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
277

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT - MIN( ALL + col0 ) col2, MIN( 19 ) FROM tab1
----
-51
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1491
SELECT DISTINCT - MIN ( ALL + col0 ) col2, MIN ( 19 ) FROM tab1
----
-51
19

query I rowsort
SELECT 25 + - col2 * - 59 FROM tab2 WHERE NULL = ( 30 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT DISTINCT - CAST( COUNT( col1 ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - CAST ( COUNT ( col1 ) AS INTEGER ) AS col0 FROM tab1
----
-3

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

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

query I rowsort
SELECT col1 + + col0 * - + ( + 30 ) * - 90 AS col1 FROM tab1
----
137714
229505
245747

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT + 95 + - - 23 DIV + col0 * col0 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 95 + - - 23 / + col0 * col0 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE + - col1 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE + - col1 = ( NULL )
----
0

query I rowsort
SELECT + 51 * - - col0 + + + col0 FROM tab0
----
4524
5044
780

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL = NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL <> col0 + + 20 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - 52 - - COUNT( 65 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 52 - - COUNT ( 65 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1507
SELECT ALL + CAST( + SUM( + 80 ) AS SIGNED ), - ( - + COUNT( + col1 ) ) AS col2 FROM tab0
----
240
3

skipif mysql # not compatible
query II rowsort label-1507
SELECT ALL + CAST ( + SUM ( + 80 ) AS INTEGER ), - ( - + COUNT ( + col1 ) ) AS col2 FROM tab0
----
240
3

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT 45 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-1518
SELECT 45 / + col1 AS col2 FROM tab1 AS cor0
----
0
3
9

query II rowsort
SELECT + 90, col0 * - col0 AS col0 FROM tab1 cor0
----
90
-2601
90
-7225
90
-8281

query I rowsort
SELECT ALL col0 * col1 * + col1 - col1 AS col1 FROM tab0 AS cor0
----
38346
96
98334

query III rowsort
SELECT col1, col0 AS col1, - - col0 + - - col1 + - 37 - + col1 AS col1 FROM tab0
----
9 values hashing to c45cfc52eac4c2fa6be51b3e9c919a69

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT 62 AS col2, COUNT( * ) * COUNT( * ) FROM tab1
----
62
9

skipif mysql # not compatible
query II rowsort label-1522
SELECT 62 AS col2, COUNT ( * ) * COUNT ( * ) FROM tab1
----
62
9

query I rowsort
SELECT 0 + + 43 FROM tab1
----
43
43
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col2, 68, + 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT MAX( ALL + col2 ) + + 36 + + CAST( 80 AS SIGNED ) AS col2 FROM tab1
----
212

skipif mysql # not compatible
query I rowsort label-1525
SELECT MAX ( ALL + col2 ) + + 36 + + CAST ( 80 AS INTEGER ) AS col2 FROM tab1
----
212

query II rowsort
SELECT ALL + col2, - col0 + + 45 + ( col2 ) FROM tab0
----
10
-32
47
77
99
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - 64 col1 FROM tab0 AS cor0
----
5568
6208
960

query I rowsort
SELECT DISTINCT col2 + - + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT + - 52 * + - col2 AS col2 FROM tab1 AS cor0
----
3068
3536
4992

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

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

skipif mysql # not compatible
query I rowsort label-1533
SELECT MAX ( - 18 ) / - COUNT ( * ) FROM tab0 AS cor0
----
6

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 50 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
50
50
50

query I rowsort
SELECT DISTINCT + 47 + + + col1 AS col0 FROM tab0 AS cor0
----
128
48
68

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + + 24 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 col2 FROM tab2 AS cor0
----
128
150
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT ALL - CAST( ( - + 60 ) AS SIGNED ) - - - col1 FROM tab2 AS cor0
----
-17
-7
9

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - CAST ( ( - + 60 ) AS INTEGER ) - - - col1 FROM tab2 AS cor0
----
-17
-7
9

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

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

query I rowsort
SELECT + 51 FROM tab0 WHERE ( + - col2 * + + col1 ) IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT + MIN( - - 63 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1548
SELECT + MIN ( - - 63 ) AS col0 FROM tab1
----
63

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

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

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL COUNT ( * ) * + 17 AS col0 FROM tab0 AS cor0
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT SUM( ALL - col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1552
SELECT DISTINCT SUM ( ALL - col2 ) col0 FROM tab1
----
-223

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT SUM( ALL + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT SUM ( ALL + col0 ) AS col2 FROM tab1
----
227

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1563
SELECT DISTINCT - 36 * + col1 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT - 36 * + col1 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT + 83 + + + 71 AS col0 FROM tab2
----
154
154
154

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

query I rowsort
SELECT - + col2 * + - col0 * + col2 AS col0 FROM tab2 AS cor0 WHERE 49 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT COUNT( * ) FROM tab2 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NULL < NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT 12 * + - CAST( NULL AS SIGNED ) / - COUNT( * ) + + - 45 * + + COUNT( * ) - - COUNT( * ) - + + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT 12 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + - 45 * + + COUNT ( * ) - - COUNT ( * ) - + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - - 71 / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1573
SELECT + + col2 / + col1 - - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1573
SELECT + + col2 / + col1 - - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT - col2 * 27 AS col1 FROM tab0
----
-1269
-2673
-270

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

query I rowsort
SELECT DISTINCT + 25 * 91 AS col2 FROM tab0
----
2275

query I rowsort
SELECT - 49 * + col0 FROM tab0
----
-4263
-4753
-735

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 32 col1, 64 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + 56 + - col0 + - 78 + - 98 / col2 AND NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT COUNT( ALL 21 ) DIV + + 8 + 7 AS col0 FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-1582
SELECT COUNT ( ALL 21 ) / + + 8 + 7 AS col0 FROM tab1 cor0
----
7

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

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

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT ( - MAX ( DISTINCT - col1 ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ( + COUNT( DISTINCT - 5 ) ) * + SUM( col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT ( + COUNT ( DISTINCT - 5 ) ) * + SUM ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1587
SELECT COUNT ( + 30 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 66 * + col2 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 36 + + 48 col1 FROM tab1 AS cor0
----
2172
2496
3504

query II rowsort
SELECT ALL - - 55 AS col0, 31 FROM tab1 AS cor0
----
55
31
55
31
55
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT ALL - 53 DIV - ( + - ( + - COUNT( * ) ) ) + 73 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - 53 / - ( + - ( + - COUNT ( * ) ) ) + 73 FROM tab1 AS cor0
----
90

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT ( NOT - 6 NOT BETWEEN + + col2 + + + 1 AND NULL )
----
-59
-68
-96

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

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

query II rowsort
SELECT - col0 + - col0 + col0 * - - col1 AS col2, col2 + + col0 * - col0 * 18 + - + 72 + + 56 AS col1 FROM tab1
----
255
-130007
4095
-149006
612
-46738

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + 20 + COUNT( * ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-1595
SELECT + 20 + COUNT ( * ) AS col2 FROM tab1
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 86 + + col1 + col2 FROM tab1
----
150
196
201

query I rowsort
SELECT DISTINCT col1 * - 88 + - 75 FROM tab1
----
-1307
-4211
-515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + + 84 ) + - col2 col2 FROM tab0
----
-1307
-7318
-8247

query I rowsort
SELECT ALL + col2 + 4 * + 76 * - col0 * - col2 * col1 + + 91 * + col0 AS col1 FROM tab2
----
16407441
59930344
88607683

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1601
SELECT DISTINCT * FROM tab1 WHERE NOT 25 + - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1601
SELECT DISTINCT * FROM tab1 WHERE NOT 25 + - CAST ( NULL AS INTEGER ) <= NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 73 + 32 + - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-1256
-138
-1868

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1606
SELECT ALL col2, col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 71 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1606
SELECT ALL col2, col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 71 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 8 * - 94 FROM tab2 AS cor0
----
752
752
752

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

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

query I rowsort
SELECT 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT - col2 FROM tab2 AS cor0 WHERE - CAST ( + 64 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 * ( + + col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
4947
5100
6279

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

query II rowsort
SELECT ALL col1, - 87 * + 35 - - col2 FROM tab0 AS cor0
----
1
-2946
21
-3035
81
-2998

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT DISTINCT + ( + CAST( - + col2 AS SIGNED ) ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + ( + CAST ( - + col2 AS INTEGER ) ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - 65 * + + COUNT( * ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 65 * + + COUNT ( * ) FROM tab1
----
-195

query I rowsort
SELECT - 32 * - col1 * 55 AS col1 FROM tab1
----
24640
82720
8800

query I rowsort
SELECT ALL col2 * - + 76 AS col0 FROM tab1
----
-4484
-5168
-7296

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1622
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 * - col2 BETWEEN ( - col1 ) AND + - CAST( + + col0 AS SIGNED ) - + col0 + + 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1622
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 * - col2 BETWEEN ( - col1 ) AND + - CAST ( + + col0 AS INTEGER ) - + col0 + + 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1625
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) col2 FROM tab1 cor0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT ALL - + 21 AS col2, COUNT( * ) + COUNT( * ) - + ( - - 23 ) * + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-21
-1569

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL - + 21 AS col2, COUNT ( * ) + COUNT ( * ) - + ( - - 23 ) * + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-21
-1569

query I rowsort
SELECT + col1 + - - ( - 51 ) FROM tab2
----
0
16
26

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + 45 * COUNT( * ) AS col0 FROM tab0 cor0
----
135

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 45 * COUNT ( * ) AS col0 FROM tab0 cor0
----
135

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT ALL col0 DIV col2 * col1 AS col2 FROM tab0 cor0
----
0
0
168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + ( + + COUNT( * ) ) * + MIN( ALL + col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1636
SELECT + ( + + COUNT ( * ) ) * + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT SUM( - 93 ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1638
SELECT SUM ( - 93 ) FROM tab0
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( - col1 ) col1 FROM tab2
----
-13
-5
8

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - 63 + - + COUNT ( * ) FROM tab1
----
-66

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

query I rowsort
SELECT ( + + 6 ) + + col0 FROM tab1
----
57
91
97

query I rowsort
SELECT ALL + + 90 + col0 + - 4 + - col0 AS col1 FROM tab1 cor0
----
86
86
86

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT ALL - col2 * + col1 * - + CAST( NULL AS SIGNED ) + + col2 * + 90 * + 48 * - col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - col2 * + col1 * - + CAST ( NULL AS INTEGER ) + + col2 * + 90 * + 48 * - col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) <> + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col0 FROM tab2 cor0
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE + + col1 * + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 * + col1 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1653
SELECT CAST( NULL AS SIGNED ) col1, ( + + col0 ) * - col0 FROM tab2
----
NULL
-2116
NULL
-4096
NULL
-5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1653
SELECT CAST ( NULL AS INTEGER ) col1, ( + + col0 ) * - col0 FROM tab2
----
NULL
-2116
NULL
-4096
NULL
-5625

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( + - 32 ) > col2
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 / col0 - + 29 + + col0 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT + - col2 * + col2 AS col2, col2 AS col2 FROM tab0 WHERE NOT + 51 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + - 11 AS col1 FROM tab0 WHERE - + 40 IS NOT NULL
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + 63 - - 25 col1 FROM tab0 AS cor0
----
-2936
-605
-6212

query II rowsort
SELECT 54 AS col2, - 68 AS col0 FROM tab2 cor0
----
54
-68
54
-68
54
-68

query II rowsort
SELECT col0 AS col1, + col2 * - col1 FROM tab2
----
46
-1173
64
-3080
75
-3886

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

query I rowsort
SELECT DISTINCT + 68 + - 14 + - - 52 FROM tab2 AS cor0
----
106

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + - 58 * 57 + - + COUNT( * ) FROM tab1 AS cor0
----
-3309

skipif mysql # not compatible
query I rowsort label-1667
SELECT + - 58 * 57 + - + COUNT ( * ) FROM tab1 AS cor0
----
-3309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1668
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) < col1
----

skipif mysql # not compatible
query III rowsort label-1668
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) < col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = + ( - + col0 ) / - + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 * col1 col1, col1 AS col2 FROM tab2
----
204
51
268
67
308
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1673
SELECT ALL * FROM tab2 WHERE NOT + 80 NOT IN ( - CAST( - - col1 AS SIGNED ) + CAST( - col2 AS SIGNED ) + col1, 72, 73, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-1673
SELECT ALL * FROM tab2 WHERE NOT + 80 NOT IN ( - CAST ( - - col1 AS INTEGER ) + CAST ( - col2 AS INTEGER ) + col1, 72, 73, + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - ( - 89 ) ) * col2 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab1 WHERE + 28 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - + col1 col2, col1 * + - col1 FROM tab2
----
-28
-2601
-37
-5929
-9
-4489

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT 41 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT 41 / col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT col0 DIV - - 82 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT col0 / - - 82 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT + ( + + 74 ) - ( + - MIN( + + col1 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT + ( + + 74 ) - ( + - MIN ( + + col1 ) ) FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 * 3 + + 6 col1 FROM tab0 cor0
----
194
402
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col1 + 95 * + 57
----

query I rowsort
SELECT DISTINCT col2 - + 9 FROM tab2 AS cor0
----
14
31
49

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

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

query I rowsort
SELECT - + 75 AS col0 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL 19 + - 77 FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
-58
-58
-58

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

query I rowsort
SELECT DISTINCT + 26 - + col2 FROM tab1 WHERE NOT ( + 17 ) IS NULL
----
-33
-42
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT 14 DIV - col2 + 13 - + 33 AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT 14 / - col2 + 13 - + 33 AS col1 FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT + CAST( NULL AS SIGNED ), ( - + col0 ) - 78 * col1 AS col0 FROM tab2 cor0
----
NULL
-4024
NULL
-5301
NULL
-6070

skipif mysql # not compatible
query II rowsort label-1692
SELECT + CAST ( NULL AS INTEGER ), ( - + col0 ) - 78 * col1 AS col0 FROM tab2 cor0
----
NULL
-4024
NULL
-5301
NULL
-6070

query I rowsort
SELECT DISTINCT - - 47 * + col2 FROM tab2 cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT col0 * + + 14 FROM tab2 AS cor0
----
1050
644
896

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + ( - col1 ) col1 FROM tab1 cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab1 WHERE + 7 IN ( col0, 91 * + 95 * col0 * 13 - - 88 )
----

query I rowsort
SELECT ALL 43 + - col2 FROM tab2
----
-15
20
3

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

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

query I rowsort
SELECT 20 + + - 50 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT ALL 76 * col1 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT - 78 * - - col1 + col1 AS col0 FROM tab0
----
-1617
-6237
-77

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

query I rowsort
SELECT 61 + 36 AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT col2 + - - col0 AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - col0 * - + col1 + - col2 FROM tab0
----
-2
1168
1817

query I rowsort
SELECT ALL - col0 + 55 + - col0 - + col1 + col1 AS col1 FROM tab2 cor0
----
-37
-73
-95

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab2 cor0
----
-59

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 > NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + COUNT( * ) * 22 + + 16 AS col1 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + COUNT ( * ) * 22 + + 16 AS col1 FROM tab2 cor0
----
82

query I rowsort
SELECT + col1 + - 64 + - - col0 FROM tab2 AS cor0
----
33
77
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - MIN( + col1 ) * + - 52 + - COUNT( * ) + - + 21 * + 16 AS col1 FROM tab0 AS cor0
----
-287

skipif mysql # not compatible
query I rowsort label-1725
SELECT - MIN ( + col1 ) * + - 52 + - COUNT ( * ) + - + 21 * + 16 AS col1 FROM tab0 AS cor0
----
-287

query I rowsort
SELECT DISTINCT col1 * + - ( + 65 ) AS col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL - COUNT( * ) + + 91 AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - COUNT ( * ) + + 91 AS col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL + 74 * + - 27 FROM tab0 AS cor0
----
-1998
-1998
-1998

query I rowsort
SELECT DISTINCT + 78 * - col1 - + col2 FROM tab0 AS cor0
----
-1648
-177
-6365

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

query I rowsort
SELECT 22 * - 23 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 69 FROM tab1 cor0
----
69
69
69

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT - col2 DIV - + col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1735
SELECT - col2 / - + col1 FROM tab1
----
1
11
6

query I rowsort
SELECT 30 - + 81 AS col1 FROM tab0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT + + 22 * - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT + + 22 * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
198

query I rowsort
SELECT DISTINCT + col0 * + 74 * - col0 * - + 57 FROM tab2 AS cor0
----
17276928
23726250
8925288

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT - MAX ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1740
SELECT CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - col0 IS NULL
----
3

query I rowsort
SELECT ALL + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( ALL - 29 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1743
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( ALL - 29 ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT ALL - 86 AS col1, COUNT( * ) FROM tab0
----
-86
3

skipif mysql # not compatible
query II rowsort label-1744
SELECT ALL - 86 AS col1, COUNT ( * ) FROM tab0
----
-86
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 71 ) BETWEEN col0 AND + col2 + - + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT 63 DIV - COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1746
SELECT 63 / - COUNT ( * ) FROM tab0 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT + col1 DIV - 66 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT + col1 / - 66 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + 36, col2 + + 58 + + 40 AS col1 FROM tab1 cor0
----
36
157
36
166
36
194

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 IN ( + + 52, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT COUNT( ALL + col0 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT COUNT ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT + SUM( col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + SUM ( col0 ) AS col0 FROM tab0 cor0
----
199

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 39 ) = col0 OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + + 60 AND col1 + 13 + 18
----

query I rowsort
SELECT ALL + 96 * col2 + + 51 AS col1 FROM tab0
----
1011
4563
9555

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + MIN( + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1757
SELECT + MIN ( + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / - - 13 * - + 42 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / - - 13 * - + 42 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col2 col1, 62 FROM tab0 AS cor0
----
-11
62
-34
62
98
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 11 col1 FROM tab1 AS cor0
----
102
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab0 WHERE ( NOT ( - 91 NOT BETWEEN + - col0 + - + 20 * - col0 AND NULL ) )
----

query II rowsort
SELECT ALL col2 AS col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL - 36 - + COUNT( DISTINCT + - 27 ) + 66 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL - 36 - + COUNT ( DISTINCT + - 27 ) + 66 FROM tab0 AS cor0
----
29

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 * col0 - - ( + col2 ) IS NULL
----

query I rowsort
SELECT + col1 + + 39 * - - 33 AS col0 FROM tab1
----
1292
1301
1334

query II rowsort
SELECT col1 + - col2 AS col1, + 96 FROM tab2
----
28
96
37
96
9
96

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT ( + + MAX( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT ( + + MAX ( + col1 ) ) FROM tab1
----
47

query I rowsort
SELECT ALL - ( col1 ) - - ( + col1 ) - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT + col0 + + - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT + col0 + + - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 75 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT + 30 DIV + ( - COUNT( * ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 30 / + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - - 69
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1777
SELECT + col1 DIV + + 14 AS col0, col2 FROM tab2
----
3
23
4
58
5
40

skipif mysql # not compatible
query II rowsort label-1777
SELECT + col1 / + + 14 AS col0, col2 FROM tab2
----
3
23
4
58
5
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT COUNT( col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT COUNT ( col1 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - - 26 AS SIGNED ) * + ( + col2 ) >= + - 74
----

skipif mysql # not compatible
query III rowsort label-1779
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - - 26 AS INTEGER ) * + ( + col2 ) >= + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - MIN( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - MIN ( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 26 / + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab1
----
-48
-48
-48

query II rowsort
SELECT DISTINCT - col0 AS col2, 12 AS col0 FROM tab0
----
-15
12
-87
12
-97
12

query I rowsort
SELECT DISTINCT - 52 * col2 AS col2 FROM tab0 AS cor0
----
-2444
-5148
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - - COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - - COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT - CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT - CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + 22 AS col0, - 63 FROM tab2 AS cor0
----
22
-63
22
-63
22
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1788
SELECT + 18 + + SUM( + col1 ) DIV + CAST( - 16 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1788
SELECT + 18 + + SUM ( + col1 ) / + CAST ( - 16 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + MIN( DISTINCT - - col2 ) + + 94 AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1789
SELECT + MIN ( DISTINCT - - col2 ) + + 94 AS col2 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT SUM( + - col1 ) + + 91 AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1790
SELECT SUM ( + - col1 ) + + 91 AS col2 FROM tab1 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 + col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 * + 87 - - col2 AS col2 FROM tab1 AS cor0
----
-5124
-5152
-5161

query I rowsort
SELECT col2 * col2 + col2 + + + 82 + + ( - - col2 ) * + 22 * + col1 * col0 AS col1 FROM tab2
----
1187710
4338362
6415404

query I rowsort
SELECT + col1 * - + col1 + + 54 AS col2 FROM tab1
----
-142
-2155
29

query I rowsort
SELECT + 54 + 87 FROM tab2
----
141
141
141

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) < - 53
----

query I rowsort
SELECT ALL + 58 + ( + 65 ) AS col1 FROM tab1
----
123
123
123

query I rowsort
SELECT ALL col0 * + 65 * col0 + + col1 AS col1 FROM tab1
----
169079
469630
538312

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT COUNT( ALL - + col0 ) * - 8 AS col1 FROM tab1 WHERE NULL IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT COUNT ( ALL - + col0 ) * - 8 AS col1 FROM tab1 WHERE NULL IS NULL
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT ALL COUNT( * ) DIV 64 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL COUNT ( * ) / 64 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1801
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 14 + - col0 + - col1 + - col1 col1 FROM tab2 AS cor0
----
-162
-223
-232

query I rowsort
SELECT DISTINCT + ( ( 24 ) ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1804
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1804
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1805
SELECT + CAST( NULL AS SIGNED ), + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

skipif mysql # not compatible
query II rowsort label-1805
SELECT + CAST ( NULL AS INTEGER ), + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

query I rowsort
SELECT DISTINCT - col1 + + col0 - 62 FROM tab2
----
-54
-67
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT - ( COUNT( DISTINCT + - 82 ) ) + + + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1807
SELECT DISTINCT - ( COUNT ( DISTINCT + - 82 ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 11 * - col0 - 50 FROM tab1 AS cor0
----
-1051
-611
-985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT - col0 * - col0 + CAST( + - 20 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2581
7205
8261

skipif mysql # not compatible
query I rowsort label-1809
SELECT - col0 * - col0 + CAST ( + - 20 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2581
7205
8261

query I rowsort
SELECT - col1 * - 17 + col1 + col2 * 45 FROM tab0 AS cor0
----
3573
4473
828

query I rowsort
SELECT DISTINCT - 24 + - + col0 * + 32 FROM tab1 AS cor0
----
-1656
-2744
-2936

query I rowsort
SELECT ALL 24 - + + 83 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT 95 AS col2 FROM tab1 WHERE NULL <= + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 79 * - col1 <= - col0 + - - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 23 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + 49 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( 40 ) * + col0 + 39 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2001
-3361
-3601

query I rowsort
SELECT ALL - 19 AS col1 FROM tab2 cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 79 + col1 + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + ( - - col1 )
----

query I rowsort
SELECT ALL 53 * + 65 AS col2 FROM tab2
----
3445
3445
3445

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 WHERE col0 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + - col2
----

query I rowsort
SELECT ALL + col1 * 60 AS col2 FROM tab1
----
2820
300
840

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT + col1 * col1 + 77 * + + col2 + 69 DIV + - 90 * col0 AS col2 FROM tab2
----
4372
8955
9009

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT + col1 * col1 + 77 * + + col2 + 69 / + - 90 * col0 AS col2 FROM tab2
----
4372
8955
9009

query I rowsort
SELECT ALL + col2 + + + col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1830
SELECT col0 + + CAST( NULL AS DECIMAL ) * 7 * - 30 - + col1 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT col0 + + CAST ( NULL AS REAL ) * 7 * - 30 - + col1 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) AS col0 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT - CAST( NULL AS SIGNED ) * - col0 * + 63 + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT - CAST ( NULL AS INTEGER ) * - col0 * + 63 + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col2 = + 0
----

query I rowsort
SELECT DISTINCT - col2 * - + 84 FROM tab0
----
3948
8316
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT 49 DIV - - COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-1835
SELECT 49 / - - COUNT ( * ) FROM tab1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT DISTINCT - col0 DIV + ( + col1 ) AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - col0 / + ( + col1 ) AS col1 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT + col0 + - col0 DIV + 92 + + col2 AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + col0 + - col0 / + 92 + + col2 AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + + MAX( ALL - - 71 ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1838
SELECT + + MAX ( ALL - - 71 ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - + col0 < NULL AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + + MAX( - - 83 ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-1840
SELECT + + MAX ( - - 83 ) FROM tab0 cor0
----
83

query I rowsort
SELECT DISTINCT - - 93 FROM tab0 cor0
----
93

query II rowsort
SELECT ALL - ( - col1 ) AS col2, 64 FROM tab2 AS cor0
----
51
64
67
64
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1843
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT COUNT( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1844
SELECT COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col1 + col0 / - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT + ( + - SUM( col0 ) ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + ( + - SUM ( col0 ) ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT - col1 / - - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 15, + col2 + - - col2 AS col2 FROM tab0
----
15
198
15
20
15
94

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab1 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + SUM( ALL - ( - 5 ) ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT ALL + SUM ( ALL - ( - 5 ) ) col2 FROM tab0 AS cor0
----
15

query II rowsort
SELECT ( - - col1 ) + - - col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
102
23
134
58
154
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT ALL - 45, COUNT( ALL - 29 ) col1 FROM tab0 AS cor0
----
-45
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1852
SELECT ALL - 45, COUNT ( ALL - 29 ) col1 FROM tab0 AS cor0
----
-45
3

query I rowsort
SELECT - col0 * - + col1 + + - col2 + + col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - + col0 col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1855
SELECT ALL * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) / - col2 * col0 + + 65 * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1855
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) / - col2 * col0 + + 65 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT 63 * - COUNT( * ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT 63 * - COUNT ( * ) FROM tab0
----
-189

query II rowsort
SELECT ALL col1 + + + 87, col0 * - col0 * 86 * + + col1 * + col1 AS col0 FROM tab0
----
108
-287061894
168
-126955350
88
-809174

query I rowsort
SELECT DISTINCT + col2 + + + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - - col0 / ( - + 40 ) * - - ( - col2 ) + + - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * col1 * - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * col1 * - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + - col0 * col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0 + - 11 + col1 AS col2, col2 * + - ( + col0 ) col0, - 40 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 9bff8eb8efa1bad9df4d78f093ecc1b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( - 96 ) col2 FROM tab0 AS cor0
----
-2016
-7776
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 * col1 >= + - col1 * - ( + 25 ) * - + ( + + 37 ) / - col1 + 57 + - col0 + - col1 * + + col2 - col0 + + 65
----

query I rowsort
SELECT - col1 + + - col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT + + 19 DIV COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1867
SELECT + + 19 / COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT DISTINCT + COUNT( * ) - - MIN( ALL CAST( NULL AS SIGNED ) ) - + + MAX( - - col0 ) col2 FROM tab0 cor0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1869
SELECT DISTINCT + COUNT ( * ) - - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + + MAX ( - - col0 ) col2 FROM tab0 cor0 WHERE + col2 > NULL
----
NULL

query I rowsort
SELECT ALL 67 * - col2 + + - col1 FROM tab0 AS cor0
----
-3230
-6634
-691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1871
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + SUM( - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + SUM ( - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT + 53 + + 30 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IN ( - 21 + - col0, + ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - + col0
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT ALL 54 DIV COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 54 / COUNT ( * ) FROM tab2
----
18

query II rowsort
SELECT ALL - 97, + col0 AS col2 FROM tab1
----
-97
51
-97
85
-97
91

query II rowsort
SELECT ALL col2 AS col1, + ( col2 ) - - 37 - - col1 + - 10 AS col0 FROM tab1
----
59
91
68
142
96
137

query II rowsort
SELECT + col0 AS col0, + col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE 47 NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1883
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE 47 NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + 48 AS col0, + 12 AS col1 FROM tab0
----
48
12
48
12
48
12

query I rowsort
SELECT - col1 * - - 24 AS col0 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT - 67 * 5 FROM tab2
----
-335
-335
-335

query I rowsort
SELECT + + col2 * + - col1 + - 64 AS col2 FROM tab1 AS cor0
----
-1408
-3260
-359

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT DISTINCT + COUNT( * ), + 28 AS col0 FROM tab0 cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-1889
SELECT DISTINCT + COUNT ( * ), + 28 AS col0 FROM tab0 cor0
----
3
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 72, col1 * + 69 col0 FROM tab2
----
112
5313
130
4623
95
3519

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1891
SELECT ALL 62 + + CAST( NULL AS DECIMAL ) / + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 62 + + CAST ( NULL AS REAL ) / + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + MAX( + col0 ) + + COUNT( * ) - COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-1894
SELECT + MAX ( + col0 ) + + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL ( SUM( DISTINCT col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL ( SUM ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab2 WHERE NOT ( NOT - 20 IS NULL )
----

query II rowsort
SELECT ALL - col2, col1 + - + col1 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT MIN( ALL + - 30 ) DIV - 6 AS col1 FROM tab2, tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1900
SELECT MIN ( ALL + - 30 ) / - 6 AS col1 FROM tab2, tab0 AS cor0
----
5

query I rowsort
SELECT 3 + + col0 FROM tab0
----
100
18
90

query I rowsort
SELECT ALL + col0 * - + 97 FROM tab1
----
-4947
-8245
-8827

query I rowsort
SELECT 44 + + 7 AS col2 FROM tab0
----
51
51
51

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( - - 24 ) < + 33 + + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 58 + + + col0 + - - col0, col2 FROM tab1
----
112
59
124
68
44
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT - + 31 * + 61 * + MAX( + 95 ) AS col1 FROM tab2 AS cor0
----
-179645

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - + 31 * + 61 * + MAX ( + 95 ) AS col1 FROM tab2 AS cor0
----
-179645

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - MIN( + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1909
SELECT - MIN ( + col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1910
SELECT * FROM tab1 WHERE ( + CAST( - 50 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1910
SELECT * FROM tab1 WHERE ( + CAST ( - 50 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT - SUM( ALL + 79 ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - SUM ( ALL + 79 ) FROM tab2
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 FROM tab1 WHERE ( - 30 ) >= ( - ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 FROM tab1 WHERE ( - 30 ) >= ( - ( + col2 ) )
----
NULL

query I rowsort
SELECT DISTINCT 91 * col1 + 46 AS col2 FROM tab2
----
4687
6143
7053

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 9 - + 47 IN ( + col2 / - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 13 = ( ( 78 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 51 - + 78 AS col0 FROM tab2 WHERE NOT NULL > - col1 + - 97
----

query I rowsort
SELECT ALL ( 48 ) AS col1 FROM tab0
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT SUM( ALL - CAST( + col2 AS SIGNED ) ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1919
SELECT SUM ( ALL - CAST ( + col2 AS INTEGER ) ) col2 FROM tab0
----
-156

query I rowsort
SELECT ALL 82 * 49 + col0 AS col1 FROM tab0
----
4033
4105
4115

query I rowsort
SELECT ALL col0 + col1 FROM tab1 WHERE NOT 39 IS NULL
----
138
65
90

query I rowsort
SELECT col2 + - ( col0 ) FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 74 )
----

query I rowsort
SELECT DISTINCT 17 FROM tab1 WHERE NOT + ( + col2 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + 11 AS col1 FROM tab2
----
11
11
11

query I rowsort
SELECT ( - col0 ) + - col0 AS col1 FROM tab0
----
-174
-194
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE - 72 * 39 <> + 93 * - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE 22 <> ( 72 )
----
14
47
5

query I rowsort
SELECT + 81 + col1 FROM tab0
----
102
162
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 - - 98 col1 FROM tab2
----
124
124
124

query I rowsort
SELECT + 37 FROM tab0 WHERE NOT - 97 * col1 IS NULL
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 / + col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( + 42 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT ALL + col0 DIV + 69 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + col0 / + 69 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT - 70 DIV col2 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT - 70 / col2 col1 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT - 50 * + COUNT( * ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1937
SELECT - 50 * + COUNT ( * ) FROM tab1 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL COUNT( + 19 ) + 39 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL COUNT ( + 19 ) + 39 FROM tab1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT 57 * - 51 + - 94 FROM tab1 WHERE ( + col1 + col2 ) <> ( - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-1939
SELECT 57 * - 51 + - 94 FROM tab1 WHERE ( + col1 + col2 ) <> ( - CAST ( NULL AS INTEGER ) * + col1 )
----

query I rowsort
SELECT ALL + col2 + 88 AS col0 FROM tab2
----
111
128
146

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 64 ) IS NULL
----

query I rowsort
SELECT 23 + + col0 FROM tab0 cor0
----
110
120
38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 24 IN ( 7 * - 27 )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 31 * col2 )
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( - col2 * 56 + + 13 ) IN ( 4 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT - + col1 * - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - + col1 * - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + - 72 AS col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT + + ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + + ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT - CAST( NULL AS SIGNED ) / + 26 + ( + MIN( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 + + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT - CAST ( NULL AS INTEGER ) / + 26 + ( + MIN ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 + + col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col2 * ( 24 * - col1 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + COUNT( DISTINCT 95 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + COUNT ( DISTINCT 95 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col2 + 98 + + col1 FROM tab2
----
172
215
223

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT 16 DIV col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1955
SELECT 16 / col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 38 * col0 ) AND ( NULL )
----

query I rowsort
SELECT - 68 * - + 23 * col1 AS col0 FROM tab1
----
21896
73508
7820

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL MAX( + col1 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL MAX ( + col1 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
77

query I rowsort
SELECT ALL 65 FROM tab0 WHERE 49 + + 11 < col0
----
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1961
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN ( + 8 + - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1961
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( + 8 + - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 - - col0 AND - ( + 10 ) + 83
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 >= ( NULL )
----

query I rowsort
SELECT ALL + 64 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT + - col2 - - + 14 FROM tab1 AS cor0
----
-45
-54
-82

query I rowsort
SELECT DISTINCT - + 59 + + + 2 * + 59 AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col1 - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3

query II rowsort
SELECT + col2 AS col0, 20 AS col2 FROM tab2
----
23
20
40
20
58
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 60 * 16 ) IS NULL OR NOT + 32 / col1 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 16 FROM tab0 AS cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT + col2 * col1 DIV + col0 FROM tab1 cor0
----
26
3
35

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + col2 * col1 / + col0 FROM tab1 cor0
----
26
3
35

query I rowsort
SELECT - + 35 AS col0 FROM tab0 cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL - + MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - + MAX ( + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 96 FROM tab1 AS cor0 WHERE NOT ( 32 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 94 * + ( + 24 ) FROM tab1
----
2256
2256
2256

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col1 FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT SUM( + ( + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1985
SELECT SUM ( + ( + col1 ) ) FROM tab1
----
66

query I rowsort
SELECT 5 AS col0 FROM tab0 WHERE NOT NULL <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 27 FROM tab1 AS cor0
----
4304
452
741

query I rowsort
SELECT + 57 + col0 FROM tab1 cor0
----
108
142
148

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - 95
----

query I rowsort
SELECT ALL + - 91 * + 15 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to aacc2b0eb3ec960c9413ee7b0deeb354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT COUNT( * ) DIV 34 * - + SUM( ( + col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT COUNT ( * ) / 34 * - + SUM ( ( + col0 ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT MIN( CAST( - ( 35 ) AS SIGNED ) ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-1993
SELECT MIN ( CAST ( - ( 35 ) AS INTEGER ) ) FROM tab1
----
-35

query I rowsort
SELECT DISTINCT - 96 FROM tab0 WHERE NULL IS NULL
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 * col2 * - + col1 + - col0 + col2 FROM tab1 cor0
----
-128979
-17431
-217351

query I rowsort
SELECT DISTINCT + col0 * + 71 * + + 32 - + + col0 FROM tab1 AS cor0
----
115821
193035
206661

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 ) - + col1 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 + + 17 FROM tab1 AS cor0
----
113
76
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - - 19 < NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + + col2 col1 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT MAX( DISTINCT - - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT MAX ( DISTINCT - - col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT 65 * + MAX( col2 ) AS col1 FROM tab0
----
6435

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 65 * + MAX ( col2 ) AS col1 FROM tab0
----
6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT - col1 + CAST( - 10 AS SIGNED ) AS col1 FROM tab1
----
-15
-24
-57

skipif mysql # not compatible
query I rowsort label-2006
SELECT - col1 + CAST ( - 10 AS INTEGER ) AS col1 FROM tab1
----
-15
-24
-57

query III rowsort
SELECT * FROM tab2 WHERE - col0 > ( - col0 + + col1 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col2 + + + col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - SUM( + 56 ) + + 38 * - + 9 AS col0 FROM tab2
----
-510

skipif mysql # not compatible
query I rowsort label-2010
SELECT - SUM ( + 56 ) + + 38 * - + 9 AS col0 FROM tab2
----
-510

query III rowsort
SELECT * FROM tab2 WHERE - col0 * 39 * 83 * col0 / + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL + 66 + - MAX( DISTINCT col0 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + 66 + - MAX ( DISTINCT col0 ) FROM tab0
----
-31

query I rowsort
SELECT ALL ( + 18 ) AS col1 FROM tab2 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 81 * - col0 + 80 / col1 ) IS NOT NULL
----

query I rowsort
SELECT + + col2 * col2 * 42 * - + col2 AS col1 FROM tab2 AS cor0
----
-2688000
-511014
-8194704

query I rowsort
SELECT + 42 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 80 AS col2 FROM tab2 cor0
----
80

query II rowsort
SELECT - - col0 * 34 AS col2, 28 AS col1 FROM tab0 AS cor0
----
2958
28
3298
28
510
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 * + 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 * + 28 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL - 0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - 0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + + + 52 col1 FROM tab0
----
49
49
49

query II rowsort
SELECT - ( + - col2 ) + col0, + col1 FROM tab1
----
144
5
147
14
159
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + 24 ) <> + + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2026
SELECT + 20 AS col2, + ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT + 20 AS col2, + ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab0
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + + - MIN( ALL + col0 ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + - MIN ( ALL + col0 ) AS col1 FROM tab0
----
-12

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NULL OR NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 5 + - + col1 FROM tab0
----
-26
-6
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 89 * - col2 NOT BETWEEN NULL AND - - ( + 51 )
----

query I rowsort
SELECT - 34 * - + col1 * + + 45 FROM tab1 AS cor0
----
21420
71910
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT - COUNT( * ) * 69 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT - COUNT ( * ) * 69 FROM tab2 AS cor0
----
-207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 63 * 46 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + ( + + COUNT( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2036
SELECT + ( + + COUNT ( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - - CAST( NULL AS SIGNED ) * - 79 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 79 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 75 + - 29 AS col0 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + + col0 * + col2 * + 39 AS col0 FROM tab1 AS cor0
----
190944
195585
241332

query I rowsort
SELECT ALL 73 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - COUNT( * ) - + 65 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - COUNT ( * ) - + 65 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT + - 4 AS col0 FROM tab0 cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 67 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2044
SELECT + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL COUNT( DISTINCT - + 57 ) - + MIN( col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL COUNT ( DISTINCT - + 57 ) - + MIN ( col2 ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT + col2 * - + col2 * + + 20 FROM tab1
----
-184320
-69620
-92480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT + col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT + col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 * + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + COUNT( * ) * - 96 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-2049
SELECT + COUNT ( * ) * - 96 FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT + 16 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + 16 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - 3 AS col0 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL + MAX( DISTINCT - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + MAX ( DISTINCT - + col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col2 * - - ( - - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2053
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col2 * - - ( - - col1 ) IS NULL
----
3

query I rowsort
SELECT - ( - - col0 ) * - col1 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT DISTINCT 67 AS col1, col2 FROM tab0
----
67
10
67
47
67
99

query I rowsort
SELECT - 67 * col0 FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT + + 61 * col2 AS col0 FROM tab1 AS cor0
----
3599
4148
5856

query I rowsort
SELECT - + col0 * + - 55 AS col1 FROM tab2 cor0
----
2530
3520
4125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < ( NULL )
----

query I rowsort
SELECT + + 38 * - 98 AS col0 FROM tab2 AS cor0
----
-3724
-3724
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT - SUM( - col0 ) * - - COUNT( * ) AS col2 FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT - SUM ( - col0 ) * - - COUNT ( * ) AS col2 FROM tab2 cor0
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT + - MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + - MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-46

query I rowsort
SELECT ALL + col1 + + ( + 21 ) AS col2 FROM tab0
----
102
22
42

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) + - ( + + ( + + 15 ) ) + col2 FROM tab2
----
-1575
-3321
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT COUNT( * ) * ( - + COUNT( * ) ) FROM tab1 WHERE - + col0 * - col2 * col0 * col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab1 WHERE - + col0 * - col2 * col0 * col1 + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 83 + - col1 FROM tab1
----
-130
-88
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col2 ) + - 28 <= NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - col1 + + ( + 80 ) FROM tab0 AS cor0
----
-16
-18
-28

query I rowsort
SELECT DISTINCT - + 30 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
21
55
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2070
SELECT * FROM tab1 WHERE + CAST( + 24 AS SIGNED ) - + + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2070
SELECT * FROM tab1 WHERE + CAST ( + 24 AS INTEGER ) - + + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - COUNT( * ) + - MAX( - 44 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - COUNT ( * ) + - MAX ( - 44 ) FROM tab1 AS cor0
----
41

query II rowsort
SELECT DISTINCT + 63 - - col1 + - 43 AS col2, col0 AS col1 FROM tab0 AS cor0
----
101
15
21
97
41
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 74 + - - col1 NOT IN ( + - col2 * - ( + col2 ) + col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 + + 64 FROM tab1 cor0
----
115
149
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - 13 col2 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - COUNT( * ) - - 3 * + ( - 28 ) FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - COUNT ( * ) - - 3 * + ( - 28 ) FROM tab2 cor0
----
-87

query I rowsort
SELECT DISTINCT - 39 * - - col0 AS col2 FROM tab1 AS cor0
----
-1989
-3315
-3549

query II rowsort
SELECT DISTINCT + - col0, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT + + 0 + - col1 * 65 AS col0, - 21 AS col0 FROM tab2 AS cor0
----
-3315
-21
-4355
-21
-5005
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ( 75 ) * - COUNT( * ) AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-2081
SELECT ( 75 ) * - COUNT ( * ) AS col0 FROM tab1
----
-225

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 70 * - col0 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT + 93 DIV + MIN( + - col0 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 93 / + MIN ( + - col0 ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 57 * + col0 + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT MIN( + 87 ) AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT MIN ( + 87 ) AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( - + col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 72 + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + 72 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( + - ( + - col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + + col0 + col2 FROM tab0 WHERE - 95 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2090
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + SUM( DISTINCT + - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + SUM ( DISTINCT + - 45 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + 36 * - + 97 FROM tab2 AS cor0
----
-3492
-3492
-3492

query I rowsort
SELECT DISTINCT + col2 * 49 + col1 + + col0 FROM tab2 AS cor0
----
1224
2101
2984

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT col2 DIV - 64 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT col2 / - 64 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 46 + + col1 AS col2 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT - + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT MAX( + 74 ) + - COUNT( * ) * 64 FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-2098
SELECT MAX ( + 74 ) + - COUNT ( * ) * 64 FROM tab1
----
-118

query II rowsort
SELECT ALL - col2 + col0 * - 95 + ( + col2 ), - col1 AS col1 FROM tab1 WHERE col2 + ( + + 75 ) / - - col2 + col2 + col2 + + + 99 IS NOT NULL
----
-4845
-14
-8075
-5
-8645
-47

query II rowsort
SELECT ALL 87 AS col0, + col2 / - col1 FROM tab1 WHERE - col1 BETWEEN + + col0 + col0 + + col1 * 64 AND + col2
----

query I rowsort
SELECT DISTINCT - 55 + 73 * col0 FROM tab1
----
3668
6150
6588

query I rowsort
SELECT - col2 FROM tab0 WHERE - 93 > + - col0
----
-99

query I rowsort
SELECT ALL col1 + + - 18 + - + col1 + - 53 + + ( - - 26 ) - + col0 * - - 38 * - 78 * + - col1 AS col1 FROM tab2
----
-14606637
-14894145
-6953589

query I rowsort
SELECT - col0 + - col0 FROM tab0 WHERE + 34 = NULL
----

query II rowsort
SELECT + - col1 * + col0 AS col1, col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT + col0 * + - 52 + - col2 AS col1 FROM tab0 WHERE - + 55 / + - col2 > - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT CAST( NULL AS SIGNED ) + + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT - + COUNT( ALL col2 ) + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2108
SELECT - + COUNT ( ALL col2 ) + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT col1 DIV - 82 + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2109
SELECT col1 / - 82 + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + col1
----

query I rowsort
SELECT + ( - 70 ) FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT ( - ( + - COUNT( * ) ) ) * - - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT ( - ( + - COUNT ( * ) ) ) * - - COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT 39 * 25 FROM tab2
----
975
975
975

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - 55 * + - COUNT( * ) AS col2 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 55 * + - COUNT ( * ) AS col2 FROM tab0
----
165

query II rowsort
SELECT + 39, + col2 FROM tab1 AS cor0
----
39
59
39
68
39
96

query II rowsort
SELECT DISTINCT - col2 AS col1, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2118
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2118
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL - - SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - - SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - ( + + col2 ) * + 77 AS col0 FROM tab0 AS cor0
----
-3619
-7623
-770

query I rowsort
SELECT DISTINCT + ( 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT ALL + ( + + col0 ) DIV ( col0 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + ( + + col0 ) / ( col0 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2123
SELECT col2 * - col0 AS col1, - 52 DIV 41 FROM tab2 AS cor0
----
-1058
-1
-2560
-1
-4350
-1

skipif mysql # not compatible
query II rowsort label-2123
SELECT col2 * - col0 AS col1, - 52 / 41 FROM tab2 AS cor0
----
-1058
-1
-2560
-1
-4350
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2, + col0 / - 0 )
----

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab1 cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT - - 2 - + 19 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN - + col1 AND NULL
----
0

query I rowsort
SELECT ALL - 89 + - 31 FROM tab2
----
-120
-120
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT SUM( - - col0 ) * - 63 + MAX( 29 ) + - 20 FROM tab1
----
-14292

skipif mysql # not compatible
query I rowsort label-2130
SELECT SUM ( - - col0 ) * - 63 + MAX ( 29 ) + - 20 FROM tab1
----
-14292

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT col0 DIV + col2 + col0 * - 96 AS col2 FROM tab2
----
-4414
-6143
-7199

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT col0 / + col2 + col0 * - 96 AS col2 FROM tab2
----
-4414
-6143
-7199

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ( + MAX( 53 ) ) * SUM( DISTINCT - col0 ) + + - COUNT( * ) FROM tab1
----
-12034

skipif mysql # not compatible
query I rowsort label-2133
SELECT ( + MAX ( 53 ) ) * SUM ( DISTINCT - col0 ) + + - COUNT ( * ) FROM tab1
----
-12034

query III rowsort
SELECT * FROM tab1 WHERE - - 61 < ( - - col2 )
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT 73 * - - 91 * - + MIN( col2 ) AS col1 FROM tab1
----
-391937

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT 73 * - - 91 * - + MIN ( col2 ) AS col1 FROM tab1
----
-391937

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2136
SELECT + 26 + + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT + 26 + + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 48 AS col2 FROM tab0
----
135
145
63

query I rowsort
SELECT ALL col0 - 95 * - col0 AS col2 FROM tab2 AS cor0
----
4416
6144
7200

query I rowsort
SELECT + - ( - - col1 ) + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + COUNT( * ) * - MIN( DISTINCT col0 ) + + + 2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2140
SELECT + COUNT ( * ) * - MIN ( DISTINCT col0 ) + + + 2 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL + ( - - ( 81 ) ) FROM tab0
----
81
81
81

query I rowsort
SELECT 14 - + + 9 * + - col0 FROM tab0
----
149
797
887

query II rowsort
SELECT ALL + col2 AS col2, 94 - - 14 - + 72 + col0 - col0 FROM tab0
----
10
36
47
36
99
36

query II rowsort
SELECT ALL 25, - col2 AS col2 FROM tab0
----
25
-10
25
-47
25
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT 35 col2, + 43 * + COUNT( * ) FROM tab1
----
35
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2145
SELECT 35 col2, + 43 * + COUNT ( * ) FROM tab1
----
35
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT COUNT ( * ) col0 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - + 4 FROM tab2 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT + col0 DIV 90 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2149
SELECT + col0 / 90 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 83 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - + COUNT( 43 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2151
SELECT - + COUNT ( 43 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2152
SELECT - ( + col0 ) col0, - CAST( ( + 32 ) AS SIGNED ) * + 59 * + 36 AS col0 FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2152
SELECT - ( + col0 ) col0, - CAST ( ( + 32 ) AS INTEGER ) * + 59 * + 36 AS col0 FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, - 38 * + - col0 FROM tab0 AS cor0
----
15
570
87
3306
97
3686

query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 + - col2 * 22 < - 96
----

query I rowsort
SELECT DISTINCT 66 * col0 FROM tab2
----
3036
4224
4950

query II rowsort
SELECT + col0 * + col2 AS col1, col1 * + col0 - + col0 - 58 FROM tab1
----
4896
605
5015
282
6188
4128

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * col2 * 54 - + col0 NOT BETWEEN - + 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT - SUM( ALL + col2 ) * + 85 + - - COUNT( * ) FROM tab2
----
-10282

skipif mysql # not compatible
query I rowsort label-2159
SELECT - SUM ( ALL + col2 ) * + 85 + - - COUNT ( * ) FROM tab2
----
-10282

query I rowsort
SELECT col2 * + col1 * - 84 AS col2 FROM tab0
----
-17640
-319788
-8316

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2161
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - CAST( NULL AS SIGNED ) + + + col1 + - - 55 / 62 + + - col2 * + + col2 NOT IN ( - 99, - col0 )
----

skipif mysql # not compatible
query III rowsort label-2161
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - CAST ( NULL AS INTEGER ) + + + col1 + - - 55 / 62 + + - col2 * + + col2 NOT IN ( - 99, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + col0 col2 FROM tab1
----
-3111
-5185
-5551

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 50 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 39 * col2 AS col0 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + + MIN( ALL - 39 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-2166
SELECT + + MIN ( ALL - 39 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT - - CAST( + + 15 AS SIGNED ) + + 78 AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - - CAST ( + + 15 AS INTEGER ) + + 78 AS col0 FROM tab0 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT DISTINCT + 89 AS col2, col0 - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-2169
SELECT DISTINCT + 89 AS col2, col0 - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
89
NULL

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - col2 + - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT DISTINCT - 60 * + + col1 DIV + + col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - 60 * + + col1 / + + col1 FROM tab0
----
-60

query I rowsort
SELECT ALL ( col0 ) + ( - - col1 ) + - col2 AS col2 FROM tab2
----
101
74
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + - 27 AND + col1 * + 42 + + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL - col0 + + col0 DIV + col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - col0 + + col0 / + col0 FROM tab1
----
-50
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + - CAST( NULL AS SIGNED ) * - col0 - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - CAST ( NULL AS INTEGER ) * - col0 - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL - 27 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - 27 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + + - 21 col0 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT - col2 * ( + - col2 ) AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT - + col2 * + 87 + 3 DIV - col0 AS col0 FROM tab0 AS cor0
----
-4089
-8613
-870

skipif mysql # not compatible
query I rowsort label-2181
SELECT - + col2 * + 87 + 3 / - col0 AS col0 FROM tab0 AS cor0
----
-4089
-8613
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL COUNT( + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL COUNT ( + + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 cor0 WHERE NOT 65 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL + CAST( - + 39 AS SIGNED ) FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + CAST ( - + 39 AS INTEGER ) FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL ( + 62 ) AS col2 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT 54 DIV - 34 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2189
SELECT 54 / - 34 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - - COUNT( DISTINCT + 41 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2190
SELECT - - COUNT ( DISTINCT + 41 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) * 87 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * 87 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 69 / + 36 * - - col2 * - col2 * + ( + 87 ), col0 AS col1 FROM tab0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + col2 * + col2 + 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 64 ) col1 FROM tab0
----
-64

query I rowsort
SELECT - 63 * - + 92 AS col0 FROM tab2
----
5796
5796
5796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + col0 col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + ( + - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT + ( + - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL col2 AS col0, + col0 * col0 AS col1 FROM tab0
----
10
7569
47
225
99
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 74 * - col0 col1 FROM tab0
----
-1
7178
-21
6438
-81
1110

query I rowsort
SELECT + col2 * - - 82 - - col2 FROM tab0 AS cor0
----
3901
8217
830

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT SUM( + col2 ) FROM tab2 AS cor0 WHERE NOT - 18 IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-2202
SELECT SUM ( + col2 ) FROM tab2 AS cor0 WHERE NOT - 18 IS NULL
----
121

query I rowsort
SELECT ALL - 54 + - col1 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT DISTINCT + 21 + - col2 AS col1 FROM tab1
----
-38
-47
-75

query I rowsort
SELECT - 95 * + col0 AS col0 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT + 4 * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT + 4 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT 73 + + MIN( DISTINCT + 2 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 73 + + MIN ( DISTINCT + 2 ) AS col1 FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - ( + - MIN( - col0 ) ) * + 66 * + COUNT( * ) col2 FROM tab2 AS cor0
----
-14850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT ALL - ( + - MIN ( - col0 ) ) * + 66 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-14850

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL - 94 DIV - col2 AS col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - 94 / - col2 AS col0 FROM tab2
----
1
2
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT DISTINCT col2 * + 75 * - 98, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-169050
NULL
-294000
NULL
-426300
NULL

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT col2 * + 75 * - 98, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-169050
NULL
-294000
NULL
-426300
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT - col0 DIV - col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - col0 / - col2 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT 1 + + + col1 * + col0 FROM tab1
----
426
4278
715

query I rowsort
SELECT DISTINCT - col1 + col2 - + 12 FROM tab0
----
-23
-46
86

query I rowsort
SELECT col0 + - 41 FROM tab2
----
23
34
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT + col1 * - col1 * - col0 + + 69 + + - 12 DIV - 41 * 76 FROM tab2
----
119715
336744
379525

skipif mysql # not compatible
query I rowsort label-2218
SELECT + col1 * - col1 * - col0 + + 69 + + - 12 / - 41 * 76 FROM tab2
----
119715
336744
379525

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( ( NULL IS NOT NULL ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2220
SELECT - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT col0 * col0 * 91 AS col1 FROM tab0
----
20475
688779
856219

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 71, ( - - col2 ), + - 10 * col2, - + 29 * + 86 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 <> - + col0 * + col2
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT + MAX( DISTINCT - 59 ) DIV - 24 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + MAX ( DISTINCT - 59 ) / - 24 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

skipif mysql # not compatible
query I rowsort label-2226
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT 23 DIV - 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT 23 / - 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) col0 FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL ( + SUM( ALL - - ( - col1 ) ) ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2229
SELECT ALL ( + SUM ( ALL - - ( - col1 ) ) ) col1 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT + MIN( DISTINCT col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT ALL SUM( + 43 ) AS col0, SUM( DISTINCT - + 20 ) AS col0 FROM tab1, tab2 AS cor0
----
387
-20

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL SUM ( + 43 ) AS col0, SUM ( DISTINCT - + 20 ) AS col0 FROM tab1, tab2 AS cor0
----
387
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - ( + 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - ( + 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT + col1 DIV - col1 - + col2 + + col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2234
SELECT + col1 / - col1 - + col2 + + col2 FROM tab2 AS cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT + SUM( ALL + 19 ) FROM tab2 WHERE NOT + 28 * - - col1 IS NULL AND col2 <> col0 * 38 / - ( - col2 ) / col2
----
57

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + SUM ( ALL + 19 ) FROM tab2 WHERE NOT + 28 * - - col1 IS NULL AND col2 <> col0 * 38 / - ( - col2 ) / col2
----
57

query I rowsort
SELECT + 73 * - col2 + + - ( + 73 ) FROM tab0 WHERE NULL = - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT - ( + col1 ) DIV - + ( - col1 ) + + col1 + col1 DIV - col0 AS col1 FROM tab2
----
49
66
75

skipif mysql # not compatible
query I rowsort label-2238
SELECT - ( + col1 ) / - + ( - col1 ) + + col1 + col1 / - col0 AS col1 FROM tab2
----
49
66
75

query I rowsort
SELECT DISTINCT + 7 * - - 79 + - col2 AS col1 FROM tab1 AS cor0
----
457
485
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 98 col1 FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT ALL - 36 + - col1 FROM tab1 AS cor0
----
-41
-50
-83

query I rowsort
SELECT - col1 * col2 + - 71 AS col1 FROM tab0 AS cor0
----
-170
-281
-3878

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN col2 AND + - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 + - + 39 col0 FROM tab2 AS cor0
----
30
65
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2245
SELECT CAST( + - col2 AS SIGNED ) AS col2, col1 DIV col0 + + col1 FROM tab0
----
-10
21
-47
86
-99
1

skipif mysql # not compatible
query II rowsort label-2245
SELECT CAST ( + - col2 AS INTEGER ) AS col2, col1 / col0 + + col1 FROM tab0
----
-10
21
-47
86
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT + MAX( 92 ) FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + MAX ( 92 ) FROM tab2 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT 85 FROM tab1 WHERE 71 IS NOT NULL
----
85

query I rowsort
SELECT DISTINCT col2 / - + 36 + + - 96 FROM tab0 WHERE NOT NULL >= 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * + + MAX( - + col0 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * + + MAX ( - + col0 ) FROM tab2 AS cor0
----
-138

query I rowsort
SELECT DISTINCT + 62 * - - col2 AS col1 FROM tab1 AS cor0
----
3658
4216
5952

onlyif mysql # DIV for integer division: 
query II rowsort label-2251
SELECT col1 DIV - col2 - col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-23
10
-82
47

skipif mysql # not compatible
query II rowsort label-2251
SELECT col1 / - col2 - col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-23
10
-82
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL + - 1 DIV 45 * 78 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + - 1 / 45 * 78 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - MAX( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - MAX ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + + 82 AS col1 FROM tab2 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT ( - CAST( NULL AS SIGNED ) ) col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2255
SELECT ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL - - col0, - 5 AS col1 FROM tab0 AS cor0
----
15
-5
87
-5
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2258
SELECT - COUNT ( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT - SUM( ALL 79 ) DIV + 95 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2259
SELECT - SUM ( ALL 79 ) / + 95 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT DISTINCT - + 19, col2 FROM tab1 AS cor0
----
-19
59
-19
68
-19
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + ( 62 ) + + 77 NOT BETWEEN + col1 * + - ( col2 ) * + col1 - + - 35 AND - + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 69 * - col2 AS col1, 16 + + col0 FROM tab2 WHERE NULL IS NULL
----
-1587
62
-2760
80
-4002
91

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 80 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT CAST( + + col0 AS SIGNED ) * + col1 AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2264
SELECT CAST ( + + col0 AS INTEGER ) * + col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col0 * - 36 AS col1 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT - ( + CAST( NULL AS SIGNED ) ) + - col0 * 9 * + col1 / + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - col0 * 9 * + col1 / + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - - col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL MAX( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL MAX ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 + + col2 * 40 + - + col0 col0 FROM tab0 cor0
----
1964
3962
412

query I rowsort
SELECT DISTINCT - - 67 * - col0 FROM tab2 cor0
----
-3082
-4288
-5025

query I rowsort
SELECT DISTINCT - 89 * + col2 + col2 AS col1 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT ALL + - 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT + col1 + col1 + - col0 + col0 * - + col1 * + ( - col2 ) + - - col2 FROM tab2
----
197250
291567
54037

query I rowsort
SELECT ALL col2 + 47 FROM tab0
----
146
57
94

query I rowsort
SELECT ALL col2 - - 13 AS col2 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT + + 11 - col1 FROM tab1 cor0
----
-3
-36
6

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col1 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT 15 - - - 60 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT + + 26 * MAX( DISTINCT + - col0 ) + - 27 AS col2 FROM tab0 AS cor0
----
-417

skipif mysql # not compatible
query I rowsort label-2279
SELECT + + 26 * MAX ( DISTINCT + - col0 ) + - 27 AS col2 FROM tab0 AS cor0
----
-417

query I rowsort
SELECT + col0 * + col2 + - - col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT + col0 + - 47 FROM tab1
----
38
4
44

query II rowsort
SELECT DISTINCT col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 + + col0 - + col1 col0 FROM tab1 WHERE NOT - col2 IS NULL
----
28
35
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - - MAX( ALL - + 29 ) AS col1 FROM tab0 WHERE - ( + 36 ) + 34 + - 94 * col0 * - col0 * - 17 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-2284
SELECT - - MAX ( ALL - + 29 ) AS col1 FROM tab0 WHERE - ( + 36 ) + 34 + - 94 * col0 * - col0 * - 17 IS NOT NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT COUNT( * ) DIV + 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT COUNT ( * ) / + 98 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT 91 DIV - col1 FROM tab0
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-2288
SELECT 91 / - col1 FROM tab0
----
-1
-4
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT - COUNT( * ) * + - 46 AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - COUNT ( * ) * + - 46 AS col1 FROM tab1
----
138

query II rowsort
SELECT DISTINCT - + 61 AS col0, ( - col0 ) AS col0 FROM tab1 AS cor0
----
-61
-51
-61
-85
-61
-91

query I rowsort
SELECT + col1 * - 18 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT 44 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 8 * + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + MAX( ALL - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2294
SELECT + MAX ( ALL - - col1 ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2295
SELECT DISTINCT + col1 DIV col2, - col0 * + 26 AS col1 FROM tab0
----
0
-2522
1
-390
2
-2262

skipif mysql # not compatible
query II rowsort label-2295
SELECT DISTINCT + col1 / col2, - col0 * + 26 AS col1 FROM tab0
----
0
-2522
1
-390
2
-2262

query I rowsort
SELECT ALL - 10 * - col0 FROM tab1 AS cor0
----
510
850
910

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 52 + - 39 * + 96 + - col0 > + - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - - 39 FROM tab2 AS cor0
----
1989
2613
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col2 + 14 * + + col1 col2 FROM tab2 AS cor0
----
1427
2318
2736

query I rowsort
SELECT DISTINCT - - 86 AS col0 FROM tab2 cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT - - col0 + CAST( NULL AS SIGNED ) * + col2 + col0 + col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT - - col0 + CAST ( NULL AS INTEGER ) * + col2 + col0 + col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT 48 + - 64 * + 27 AS col2, SUM( 2 ) FROM tab0 AS cor0
----
-1680
6

skipif mysql # not compatible
query II rowsort label-2302
SELECT 48 + - 64 * + 27 AS col2, SUM ( 2 ) FROM tab0 AS cor0
----
-1680
6

query II rowsort
SELECT col0 + col1 * - 42 AS col1, col1 AS col0 FROM tab2
----
-2096
51
-2739
67
-3170
77

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - col0 * 80 + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 32 BETWEEN col1 + + col2 - + 4 AND 20
----

query II rowsort
SELECT ALL 71 AS col0, + 5 AS col0 FROM tab0
----
71
5
71
5
71
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, - 33 FROM tab2 AS cor0
----
-51
-33
-67
-33
-77
-33

query I rowsort
SELECT - 49 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-49
-49
-49

query I rowsort
SELECT ALL + - 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 * + 48 - + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT DISTINCT - col2 DIV + 26 - col2 col0 FROM tab1 AS cor0
----
-61
-70
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT DISTINCT - col2 / + 26 - col2 col0 FROM tab1 AS cor0
----
-61
-70
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT + CAST( + col0 AS SIGNED ) - - - 92 AS col2 FROM tab1 AS cor0
----
-1
-41
-7

skipif mysql # not compatible
query I rowsort label-2312
SELECT + CAST ( + col0 AS INTEGER ) - - - 92 AS col2 FROM tab1 AS cor0
----
-1
-41
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + - SUM( ALL col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2313
SELECT + - SUM ( ALL col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT DISTINCT + 67 - col0 FROM tab2 AS cor0
----
-8
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL + - CAST( NULL AS SIGNED ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) - 7 FROM tab1 AS cor0
----
-103
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT MAX( col0 ) * - 10 AS col0 FROM tab2 AS cor0
----
-750

skipif mysql # not compatible
query I rowsort label-2317
SELECT MAX ( col0 ) * - 10 AS col0 FROM tab2 AS cor0
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + 51 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + 51 - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT - 47 FROM tab2 WHERE NOT NULL >= + - 37
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 1 BETWEEN + + col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL SUM( DISTINCT + 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL SUM ( DISTINCT + 64 ) FROM tab1
----
64

query I rowsort
SELECT DISTINCT 72 * col1 FROM tab0
----
1512
5832
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + col0 * - col2 col2 FROM tab2
----
23
-1058
40
-2560
58
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( col1 ) * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 28 FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT + ( 91 ) AS col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT - 12 * + - 55 FROM tab2 cor0
----
660
660
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT + - MAX( col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + - MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 34 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 <= col1
----

query I rowsort
SELECT + - 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + MIN( DISTINCT + + 89 ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2334
SELECT + MIN ( DISTINCT + + 89 ) AS col0 FROM tab0 AS cor0
----
89

query II rowsort
SELECT col2, col2 + 91 AS col0 FROM tab0 AS cor0
----
10
101
47
138
99
190

query I rowsort
SELECT ALL + 13 + + + col2 AS col2 FROM tab0 AS cor0
----
112
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL col1 * col0 + - - 87 * + 54 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - 90 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL col1 * col0 + - - 87 * + 54 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - 90 + - col1 IS NOT NULL
----

query I rowsort
SELECT 43 AS col2 FROM tab2 AS cor0 WHERE NOT 55 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, + 99 - col1 FROM tab1 AS cor0
----
51
85
85
94
91
52

query I rowsort
SELECT DISTINCT 60 * col2 FROM tab0 cor0
----
2820
5940
600

query I rowsort
SELECT ALL + col2 * + 55 * col2 FROM tab1
----
191455
254320
506880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT + ( + 68 ) + CAST( - + 37 AS SIGNED ) + 52 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
83

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + ( + 68 ) + CAST ( - + 37 AS INTEGER ) + 52 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
83

query I rowsort
SELECT + 42 + + col1 FROM tab0
----
123
43
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 83 + - col0 + + col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 * - - col1 col1 FROM tab2 cor0
----
1020
1340
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT col2 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2349
SELECT COUNT( * ), 62 + - COUNT( * ) + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
54

skipif mysql # not compatible
query II rowsort label-2349
SELECT COUNT ( * ), 62 + - COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + - 54 col2 FROM tab2 AS cor0
----
-8
10
21

query I rowsort
SELECT ALL ( 47 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, - 12 FROM tab0 AS cor0
----
10
-12
47
-12
99
-12

query II rowsort
SELECT DISTINCT + - 55, - col0 AS col0 FROM tab0 AS cor0
----
-55
-15
-55
-87
-55
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT 59 * col2 DIV col2 FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 59 * col2 / col2 FROM tab2 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + COUNT( * ) * + 19 + + MAX( ALL - - 49 ) FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + COUNT ( * ) * + 19 + + MAX ( ALL - - 49 ) FROM tab2 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + + MAX( 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2356
SELECT + + MAX ( 98 ) FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT 1 * - + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2357
SELECT 1 * - + COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT + - 49 * - - col1 + 67 + - - col0 FROM tab2 WHERE NOT NULL IN ( 7, col2 )
----

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0
----
-52
-52
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * 8 > 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 42 * + 69 FROM tab0
----
2898
2898
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT MIN( ALL col1 ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2362
SELECT DISTINCT MIN ( ALL col1 ) col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - col1 * - col0 * - + col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - + COUNT( * ) * - ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2364
SELECT - + COUNT ( * ) * - ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 FROM tab1 cor0 WHERE + ( - - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2366
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - col1 BETWEEN - ( - - CAST( NULL AS SIGNED ) ) AND - 32 / - + 29 + col1 + - - 34
----

skipif mysql # not compatible
query III rowsort label-2366
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - col1 BETWEEN - ( - - CAST ( NULL AS INTEGER ) ) AND - 32 / - + 29 + col1 + - - 34
----

query I rowsort
SELECT - ( + 90 ) AS col1 FROM tab0 AS cor0
----
-90
-90
-90

query II rowsort
SELECT DISTINCT col0, - 31 FROM tab1
----
51
-31
85
-31
91
-31

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT col1 + + - CAST( + col0 AS SIGNED ) - - 28 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT col1 + + - CAST ( + col0 AS INTEGER ) - - 28 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 / + col2 * col1 - - - col2 * 13 + + - col0 * col1 + + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 71 AS col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT - + 87 + col2 FROM tab1 AS cor0
----
-19
-28
9

query I rowsort
SELECT - 51 + + + ( 73 ) + + 90 AS col1 FROM tab1 AS cor0
----
112
112
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 col2 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - 4 > col2 * - - 0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + SUM( - 80 ) + + + ( MAX( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-245

skipif mysql # not compatible
query I rowsort label-2378
SELECT + SUM ( - 80 ) + + + ( MAX ( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-245

query I rowsort
SELECT + 52 * + col2 AS col0 FROM tab0
----
2444
5148
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 47 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 47 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT ALL - 35 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - 35 / - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col1 * - 94, col2 FROM tab0 AS cor0
----
1974
10
7614
47
94
99

query I rowsort
SELECT ALL - - 85 * 33 + + + col1 + 20 FROM tab1 AS cor0
----
2830
2839
2872

query II rowsort
SELECT ALL col0 - ( + col2 ) + - - col2 * ( + + col0 ) AS col0, + col2 AS col0 FROM tab0 AS cor0
----
673
47
947
10
9601
99

query I rowsort
SELECT DISTINCT col2 * - - col2 + col0 AS col2 FROM tab2
----
1664
3439
575

query III rowsort
SELECT * FROM tab0 WHERE NOT + 86 * + + 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 31 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + 93 * COUNT( * ) * 17 FROM tab0
----
4743

skipif mysql # not compatible
query I rowsort label-2388
SELECT + 93 * COUNT ( * ) * 17 FROM tab0
----
4743

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT + SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2390
SELECT + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT ( + MIN( + col1 ) ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT ( + MIN ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + ( 0 ) * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 69 * + - col2 * + + col2 + col2 FROM tab0 AS cor0
----
152468
676368
6910

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT col1 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT col1 / + - col0 AS col1 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT - ( - ( - - col2 ) ) FROM tab1 WHERE NOT - + 79 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT 3 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT 3 / 83 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT - col1 DIV + 99 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT - col1 / + 99 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT COUNT( + col1 ) * + + 90 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-2399
SELECT COUNT ( + col1 ) * + + 90 FROM tab2
----
270

query II rowsort
SELECT ALL + col0 AS col1, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT col1 + + - 29 - 91 FROM tab0 AS cor0 WHERE NOT 50 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-2401
SELECT col1 + + - 29 - 91 FROM tab0 AS cor0 WHERE NOT 50 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + col0 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2402
SELECT ALL - ( col1 ) FROM tab0 WHERE - 66 * col1 + col0 * CAST( NULL AS DECIMAL ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - ( col1 ) FROM tab0 WHERE - 66 * col1 + col0 * CAST ( NULL AS REAL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT col1 * - 81 FROM tab0 WHERE - ( - 44 ) <= - col0
----

query I rowsort
SELECT - 15 * - col1 AS col1 FROM tab1
----
210
705
75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 92 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL - 0 - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - 0 - - COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2407
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + col1 + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2407
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + col1 + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT - col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-2408
SELECT - col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 28 / col1 + + col0 BETWEEN ( - 95 ) AND - col0 * + col2 + + col0
----

query I rowsort
SELECT ALL col1 + 92 * - col1 AS col2 FROM tab1
----
-1274
-4277
-455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col0 FROM tab1 WHERE NOT col2 + ( 45 ) IN ( - 21 + col1 )
----
46
46
46

query I rowsort
SELECT ALL + 82 * col2 + 42 AS col2 FROM tab2
----
1928
3322
4798

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + 49 * + MAX( ALL col2 * - col2 ) AS col0 FROM tab2
----
-25921

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + 49 * + MAX ( ALL col2 * - col2 ) AS col0 FROM tab2
----
-25921

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( col1 * - 24 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL 64 * + COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 64 * + COUNT ( * ) FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2417
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2417
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( + col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col1 * 45 + - col2 AS col2 FROM tab0
----
-54
3598
935

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT col2 DIV col0 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2419
SELECT col2 / col0 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 + 83 * - col0 AS col0 FROM tab0 WHERE NULL >= 74
----

query I rowsort
SELECT 85 * - col2 AS col0 FROM tab0
----
-3995
-8415
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL 33 * COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 33 * COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT ALL + col2 * 95 + col0 AS col1 FROM tab1 WHERE 27 IS NULL
----

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT + 78 * + col2 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + COUNT( * ) + 32 AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-2427
SELECT + COUNT ( * ) + 32 AS col0 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT + ( + MAX( DISTINCT - col1 ) ) * + 86 FROM tab2
----
-4386

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT + ( + MAX ( DISTINCT - col1 ) ) * + 86 FROM tab2
----
-4386

query I rowsort
SELECT + 68 + + col0 AS col2 FROM tab1
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + COUNT( * ) * + 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COUNT ( * ) * + 7 FROM tab0
----
21

query I rowsort
SELECT ALL - col0 * - 56 FROM tab0 WHERE ( - col2 ) NOT IN ( col1 )
----
4872
5432
840

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 63 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL 83 + COUNT( * ) * + 96 FROM tab0 AS cor0
----
371

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL 83 + COUNT ( * ) * + 96 FROM tab0 AS cor0
----
371

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 / col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> ( col1 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col1 * 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 26 * col2 - + col1 FROM tab0
----
-1303
-2575
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - SUM( 87 ) * + 9 AS col1 FROM tab1
----
-2349

skipif mysql # not compatible
query I rowsort label-2439
SELECT - SUM ( 87 ) * + 9 AS col1 FROM tab1
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL COUNT( 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL COUNT ( 7 ) FROM tab1
----
3

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT NULL <> col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT + COUNT( + 99 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + COUNT ( + 99 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 35 AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL 75 + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * 22 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT ALL + 1 * + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND + ( - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL 92 * SUM( DISTINCT - 61 * + 98 ) FROM tab2 AS cor0
----
-549976

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL 92 * SUM ( DISTINCT - 61 * + 98 ) FROM tab2 AS cor0
----
-549976

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT DISTINCT + ( - ( col1 ) ) DIV + 78 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + ( - ( col1 ) ) / + 78 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 36 FROM tab1 cor0 WHERE ( - col0 ) = + col0 * 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 70 ) col0 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + ( - MIN( 66 ) ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2453
SELECT + ( - MIN ( 66 ) ) col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> - col2
----

query I rowsort
SELECT DISTINCT - 47 FROM tab2 WHERE NOT - col0 IS NULL
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT ALL - + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 AND 72 * 98
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL col2 DIV - 44 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL col2 / - 44 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT col0 DIV 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT col0 / 99 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT + ( + col1 ) DIV - 54 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT DISTINCT + ( + col1 ) / - 54 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT + + CAST( - 4 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif mysql # not compatible
query I rowsort label-2463
SELECT + + CAST ( - 4 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN NULL AND ( 81 )
----

query I rowsort
SELECT ALL - 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-53
-53
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 71 ) >= NULL
----

query I rowsort
SELECT + - 47 + - col1 AS col2 FROM tab0 AS cor0
----
-128
-48
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT CAST( MAX( + 25 ) AS SIGNED ) col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( + 76 * col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2468
SELECT CAST ( MAX ( + 25 ) AS INTEGER ) col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( + 76 * col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 66 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 75 IS NULL
----
0

query I rowsort
SELECT - - col2 + - col1 + - - col0 - + 58 FROM tab1 AS cor0
----
54
75
81

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - 5
----

query I rowsort
SELECT + 92 * 53 + + col1 AS col2 FROM tab1 AS cor0
----
4881
4890
4923

query I rowsort
SELECT - ( - 30 ) * + 67 - + col1 FROM tab2 AS cor0
----
1933
1943
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT 34 * COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2476
SELECT 34 * COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 + - ( 59 ) ) >= NULL
----

query I rowsort
SELECT 25 * col0 AS col1 FROM tab2
----
1150
1600
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT ALL col2 + - 22 DIV + + col2 AS col1 FROM tab0
----
47
8
99

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL col2 + - 22 / + + col2 AS col1 FROM tab0
----
47
8
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2480
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 - + CAST( - col0 AS SIGNED ) * - 50 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2480
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 - + CAST ( - col0 AS INTEGER ) * - 50 ) >= NULL
----

query I rowsort
SELECT ALL col2 - + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 39 - + 60 + - col2 * col1 FROM tab1 AS cor0
----
-1365
-316
-3217

query I rowsort
SELECT + - 68 + - col0 AS col2 FROM tab2 AS cor0
----
-114
-132
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL + - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 48 FROM tab1 cor0
----
48

query I rowsort
SELECT ALL + ( + 57 ) FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT MAX( - + ( - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT MAX ( - + ( - col2 ) ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2 WHERE ( col2 * col2 ) <= - col2 OR NOT 84 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2 WHERE ( col2 * col2 ) <= - col2 OR NOT 84 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT ALL - 46 * + ( + - CAST( + + COUNT( * ) AS SIGNED ) ) col1 FROM tab1
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT ALL - 46 * + ( + - CAST ( + + COUNT ( * ) AS INTEGER ) ) col1 FROM tab1
----
138

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 73 NOT BETWEEN + col0 AND col1 / + col0
----

query I rowsort
SELECT - 94 * col2 + ( - - col0 ) FROM tab2 AS cor0
----
-2116
-3696
-5377

query I rowsort
SELECT DISTINCT - col0 * + 63 - 35 AS col1 FROM tab0 AS cor0 WHERE - col2 >= - 50 * + 18 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2494
SELECT * FROM tab2 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2494
SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, col0 + + + 90 FROM tab2 cor0
----
23
136
40
154
58
165

query I rowsort
SELECT ALL - 27 AS col2 FROM tab2 AS cor0 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL - + COUNT( * ) * + SUM( + col2 ) AS col2 FROM tab2 cor0
----
-363

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - + COUNT ( * ) * + SUM ( + col2 ) AS col2 FROM tab2 cor0
----
-363

query I rowsort
SELECT ALL - + 33 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT 51 - - + COUNT( * ) FROM tab1, tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2499
SELECT 51 - - + COUNT ( * ) FROM tab1, tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 + + 74 col2 FROM tab0
----
-22
-24
-34

query II rowsort
SELECT - col1, + col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + - 30 + col2
----

query I rowsort
SELECT DISTINCT - col0 * + + 96 * + 41 AS col0 FROM tab2
----
-181056
-251904
-295200

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + COUNT( * ) * 37 * COUNT( * ) + - 46 col2 FROM tab2
----
287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2504
SELECT ALL + COUNT ( * ) * 37 * COUNT ( * ) + - 46 col2 FROM tab2
----
287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT 4 - COUNT( * ) FROM tab0 WHERE NOT NULL >= ( + + CAST( NULL AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-2505
SELECT 4 - COUNT ( * ) FROM tab0 WHERE NOT NULL >= ( + + CAST ( NULL AS INTEGER ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - col0 DIV - - 36 * - col2 DIV + col2 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - col0 / - - 36 * - col2 / + col2 AS col0 FROM tab1
----
1
2
2

query I rowsort
SELECT - - col1 * - - col1 + + 37 AS col0 FROM tab2 AS cor0
----
2638
4526
5966

query I rowsort
SELECT ALL + ( - col2 ) + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + col2 + col1 * + + col1 AS col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT + + 10 + col2 FROM tab0 AS cor0
----
109
20
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT + ( + - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2511
SELECT + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT + 89 + + - ( col1 ) + + - 34 - + CAST( + - col0 AS SIGNED ) col0 FROM tab1
----
135
92
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2512
SELECT + 89 + + - ( col1 ) + + - 34 - + CAST ( + - col0 AS INTEGER ) col0 FROM tab1
----
135
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT + 79 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + 79 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + + 66 * + col1 col1 FROM tab1 AS cor0
----
3152
380
974

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT - + col1 DIV - col2 + - col2 + + 73 FROM tab2 AS cor0
----
16
34
52

skipif mysql # not compatible
query I rowsort label-2515
SELECT - + col1 / - col2 + - col2 + + 73 FROM tab2 AS cor0
----
16
34
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2516
SELECT ALL col0 FROM tab1 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + col1 + - - 61 NOT IN ( - col1, - 20 / + + col0 )
----

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL col0 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS REAL ) + col1 + - - 61 NOT IN ( - col1, - 20 / + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + - 74 AS col2 FROM tab0 WHERE NOT NULL < + 75 * + + col1
----

query I rowsort
SELECT ALL col1 * + 20 AS col0 FROM tab0
----
1620
20
420

query I rowsort
SELECT col0 + col0 + ( - col0 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT 87 + - + COUNT( * ) col0 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2521
SELECT 87 + - + COUNT ( * ) col0 FROM tab2
----
84

query I rowsort
SELECT col1 + - ( + ( + col2 ) ) * col1 * + + col2 FROM tab1
----
-129010
-17400
-217281

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - 63 + - COUNT( * ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 63 + - COUNT ( * ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT col0 * col0 + + 92 DIV + col2 FROM tab1
----
2601
7226
8282

skipif mysql # not compatible
query I rowsort label-2524
SELECT col0 * col0 + + 92 / + col2 FROM tab1
----
2601
7226
8282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2525
SELECT - col0 FROM tab2 WHERE NULL NOT IN ( col0 + CAST( NULL AS DECIMAL ), col0 + - col1 * + col1 / + 5 )
----

skipif mysql # not compatible
query I rowsort label-2525
SELECT - col0 FROM tab2 WHERE NULL NOT IN ( col0 + CAST ( NULL AS REAL ), col0 + - col1 * + col1 / + 5 )
----

query II rowsort
SELECT ALL + col0, - col0 * - col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL - - 47 * COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col1 > col0
----
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - - 47 * COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col1 > col0
----
0

query I rowsort
SELECT ALL + - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT - - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2529
SELECT - - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT + 6 AS col0, - 78 FROM tab1 AS cor0
----
6
-78
6
-78
6
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col1 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT MIN( ALL - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2532
SELECT MIN ( ALL - col0 ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT + 6 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT + 19 * - + SUM( ALL + 36 ) FROM tab1
----
-2052

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + 19 * - + SUM ( ALL + 36 ) FROM tab1
----
-2052

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + ( col2 ) NOT IN ( + col2 ) )
----

query I rowsort
SELECT + col1 - + 30 * + + col1 + + - 22 AS col1 FROM tab2 AS cor0 WHERE NOT col1 - - 29 * + - col0 * col2 IS NULL
----
-1501
-1965
-2255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - SUM( + 22 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2538
SELECT - SUM ( + 22 ) FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 7 IN ( - - col0 + - col2 + - + 28 + + col2 * col1 * + col2 + - 41 * + 59 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) * - col0 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT col0 AS col1, col0 FROM tab1 AS cor0 WHERE NOT col0 * - + 84 BETWEEN NULL AND - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT 16 * col2 + col1 * + 3 FROM tab1 WHERE NOT + ( col2 ) * - 67 / - 89 + + - CAST( NULL AS SIGNED ) + - - col1 + - col0 <= - - col0 + + 33 * col0
----

skipif mysql # not compatible
query I rowsort label-2542
SELECT 16 * col2 + col1 * + 3 FROM tab1 WHERE NOT + ( col2 ) * - 67 / - 89 + + - CAST ( NULL AS INTEGER ) + - - col1 + - col0 <= - - col0 + + 33 * col0
----

query II rowsort
SELECT DISTINCT - 75, col1 FROM tab2
----
-75
51
-75
67
-75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL COUNT( * ) + - - 85 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL COUNT ( * ) + - - 85 FROM tab1
----
88

query I rowsort
SELECT DISTINCT + col1 + col1 + - col1 + - col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - + SUM( DISTINCT - ( - 88 ) ) FROM tab1 WHERE - 38 IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-2546
SELECT - + SUM ( DISTINCT - ( - 88 ) ) FROM tab1 WHERE - 38 IS NOT NULL
----
-88

query I rowsort
SELECT ALL - col2 + - + 57 + + + col1 * - + col2 FROM tab2 AS cor0
----
-1253
-3177
-4001

query I rowsort
SELECT DISTINCT + + col1 + col0 + - col2 + col0 AS col1 FROM tab1 AS cor0
----
116
161
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 * - col2 col2 FROM tab2 cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT 8 * + + MIN( ALL + + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + - col2 + col0 AND NULL
----
408

skipif mysql # not compatible
query I rowsort label-2551
SELECT 8 * + + MIN ( ALL + + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + - col2 + col0 AND NULL
----
408

query I rowsort
SELECT - 5 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 62 + + 51 - - + COUNT( - 12 ) * + + 89 FROM tab1
----
380

skipif mysql # not compatible
query I rowsort label-2553
SELECT 62 + + 51 - - + COUNT ( - 12 ) * + + 89 FROM tab1
----
380

query I rowsort
SELECT DISTINCT + col2 * 69 * + - col1 FROM tab2
----
-212520
-268134
-80937

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT ALL + 84 + - col0 DIV col2 * col1 + - col1 * + col1 AS col0 FROM tab1
----
-112
-2172
54

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + 84 + - col0 / col2 * col1 + - col1 * + col1 AS col0 FROM tab1
----
-112
-2172
54

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + ( - col0 ) + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col1 * + 93 FROM tab0 AS cor0
----
190
2040
7548

query I rowsort
SELECT DISTINCT + + col2 - + + col1 + + col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT ALL - - MAX( col1 ) + - COUNT( * ) - 46, + 78 AS col0 FROM tab2 AS cor0
----
28
78

skipif mysql # not compatible
query II rowsort label-2559
SELECT ALL - - MAX ( col1 ) + - COUNT ( * ) - 46, + 78 AS col0 FROM tab2 AS cor0
----
28
78

query II rowsort
SELECT + - ( + + col0 ) AS col0, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT col0 AS col0, col1 DIV - + col1 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-2561
SELECT col0 AS col0, col1 / - + col1 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

query II rowsort
SELECT + - col0, col0 * + col0 + + ( + 18 ) AS col1 FROM tab0 cor0
----
-15
243
-87
7587
-97
9427

query I rowsort
SELECT - + col0 * - 29 FROM tab2 AS cor0
----
1334
1856
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - - col2 col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT + col2 DIV 56 col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2565
SELECT DISTINCT + col2 / 56 col1 FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT DISTINCT - col1 DIV - 3 AS col2 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - col1 / - 3 AS col2 FROM tab1
----
1
15
4

query III rowsort
SELECT * FROM tab2 WHERE col1 * + ( + 40 ) / - col2 * col1 NOT BETWEEN + col2 AND + 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * + col1 IS NOT NULL )
----

query I rowsort
SELECT ALL + 36 FROM tab1 WHERE NOT NULL <= - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - COUNT( + - 82 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2570
SELECT - COUNT ( + - 82 ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT + ( 0 ) DIV + col2 * - col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT + ( 0 ) / + col2 * - col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col1 * + col2 + + col0 + - + 77 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2573
SELECT DISTINCT - col0 AS col2, col1 + - col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col2 + - CAST( - + 0 AS SIGNED ) + - + col0 < NULL
----

skipif mysql # not compatible
query II rowsort label-2573
SELECT DISTINCT - col0 AS col2, col1 + - col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 + - CAST ( - + 0 AS INTEGER ) + - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - MAX( - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2574
SELECT - MAX ( - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT + col1, 17 + - col2 + - - col2 FROM tab1 AS cor0
----
14
17
47
17
5
17

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - + col2 * - 51 FROM tab0 AS cor0
----
-112659
-499851
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL MAX ( - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( - + 98 ) IS NULL
----

query II rowsort
SELECT ALL - 6 AS col2, ( col1 ) AS col0 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 44 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - - 37 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - - 37 <> col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT + SUM( ALL - - 62 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + SUM ( ALL - - 62 ) FROM tab1 AS cor0
----
186

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT 45 * - COUNT( * ) AS col1 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT 45 * - COUNT ( * ) AS col1 FROM tab1
----
-135

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + 10 * + col0 FROM tab1
----
414
791
842

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - 78 + + COUNT( * ) * + - COUNT( * ) * + 34 AS col1 FROM tab0
----
-384

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 78 + + COUNT ( * ) * + - COUNT ( * ) * + 34 AS col1 FROM tab0
----
-384

query I rowsort
SELECT col2 * - - 57 + - 60 FROM tab1
----
3303
3816
5412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT ( + 13 ) + - 32 + CAST( + col2 AS SIGNED ) - CAST( NULL AS SIGNED ) * col2 - - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT ( + 13 ) + - 32 + CAST ( + col2 AS INTEGER ) - CAST ( NULL AS INTEGER ) * col2 - - + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + 94 * col1 AS col0 FROM tab0
----
191
2061
7629

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL 79 + - SUM( + col1 ) + - ( + COUNT( - 78 ) ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL 79 + - SUM ( + col1 ) + - ( + COUNT ( - 78 ) ) AS col1 FROM tab1
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 * 77 * - col1 - + ( + ( - 8 ) ) * - col0 ) AND NULL
----

query II rowsort
SELECT + ( - col0 ) * + col0 AS col1, 74 * + col0 FROM tab2
----
-2116
3404
-4096
4736
-5625
5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 7 ) * - + col2 * + 37 col1 FROM tab0
----
12173
25641
2590

query I rowsort
SELECT 79 - - - col2 + col2 AS col2 FROM tab2
----
79
79
79

query II rowsort
SELECT ALL + col1, - 88 AS col0 FROM tab1 AS cor0 WHERE NOT - 64 * - col1 - 8 IS NULL
----
14
-88
47
-88
5
-88

query I rowsort
SELECT ALL - col0 - + col2 AS col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2602
SELECT - + 67 * col2 * + 95 + - - CAST( NULL AS DECIMAL ) + - 5, - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-2602
SELECT - + 67 * col2 * + 95 + - - CAST ( NULL AS REAL ) + - 5, - col0 / col0 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( + - 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT ALL - 62 * - 62 * col1 - - + 9 DIV + col1 + col0 FROM tab1 AS cor0
----
180759
19306
53867

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - 62 * - 62 * col1 - - + 9 / + col1 + col0 FROM tab1 AS cor0
----
180759
19306
53867

query I rowsort
SELECT DISTINCT - - col1 * - 39 AS col0 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT ALL - 93 * - - 52 + col2 AS col0 FROM tab0 AS cor0
----
-4737
-4789
-4826

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT 53 DIV - ( + 5 ) col1 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2607
SELECT 53 / - ( + 5 ) col1 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT DISTINCT - COUNT( * ) AS col1, + ( + 36 ) AS col0 FROM tab2
----
-3
36

skipif mysql # not compatible
query II rowsort label-2608
SELECT DISTINCT - COUNT ( * ) AS col1, + ( + 36 ) AS col0 FROM tab2
----
-3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT COUNT( ALL + - ( + col1 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT COUNT ( ALL + - ( + col1 ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT DISTINCT 54 FROM tab1 WHERE NOT col2 NOT IN ( ( col0 ), 23 * col1, + col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT 54 FROM tab1 WHERE NOT col2 NOT IN ( ( col0 ), 23 * col1, + col2 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT - ( + SUM( - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - ( + SUM ( - col1 ) ) FROM tab0
----
103

query I rowsort
SELECT - 82 * + col2 AS col2 FROM tab0
----
-3854
-8118
-820

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
93

query I rowsort
SELECT ALL 97 * - ( + 3 ) AS col0 FROM tab2
----
-291
-291
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + MIN( + - 67 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + MIN ( + - 67 ) FROM tab0 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-2616
SELECT col1, + col2 DIV - + col1 + + + 87 + - + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
14
277
47
2295
5
101

skipif mysql # not compatible
query II rowsort label-2616
SELECT col1, + col2 / - + col1 + + + 87 + - + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
14
277
47
2295
5
101

query I rowsort
SELECT DISTINCT 46 * - col1 AS col2 FROM tab2 cor0
----
-2346
-3082
-3542

query I rowsort
SELECT ALL - ( + ( - 4 ) ) FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + MIN( + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2619
SELECT + MIN ( + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL - MIN( ALL + 71 ) * - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
639

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - MIN ( ALL + 71 ) * - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
639

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2622
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 > + col2
----
12

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 > + col2
----
12

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - + 72 NOT IN ( - 37, ( + col1 ) + - col0, + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT - + MAX( - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - + MAX ( - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + - 39 + + ( - - col0 ) AS col1 FROM tab2 cor0
----
25
36
7

query I rowsort
SELECT - 73 * - col1 + 81 AS col2 FROM tab1 AS cor0
----
1103
3512
446

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2629
SELECT DISTINCT - - col0 * + col2, col2 * - CAST( - col2 AS SIGNED ) DIV + col2 col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2629
SELECT DISTINCT - - col0 * + col2, col2 * - CAST ( - col2 AS INTEGER ) / + col2 col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query III rowsort
SELECT * FROM tab1 WHERE + + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT AVG ( col2 ) FROM tab1 WHERE 54 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + - 25 * - col1 * + - col2 = - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2633
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( - col1, col0 * + col1, - - 99 + - - CAST( NULL AS SIGNED ), - ( + + 68 ) )
----

skipif mysql # not compatible
query III rowsort label-2633
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( - col1, col0 * + col1, - - 99 + - - CAST ( NULL AS INTEGER ), - ( + + 68 ) )
----

query I rowsort
SELECT DISTINCT + 18 + + 68 FROM tab2
----
86

query I rowsort
SELECT + 87 * col1 AS col2 FROM tab0 AS cor0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + COUNT( * ) - - - 52 AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2636
SELECT + COUNT ( * ) - - - 52 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT 2 FROM tab0 AS cor0 WHERE ( NOT + col2 IS NULL )
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT - ( 66 ) AS col2, COUNT( * ) * - 30 - - MIN( col1 ) + 82 FROM tab2 AS cor0
----
-66
43

skipif mysql # not compatible
query II rowsort label-2638
SELECT - ( 66 ) AS col2, COUNT ( * ) * - 30 - - MIN ( col1 ) + 82 FROM tab2 AS cor0
----
-66
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT + COUNT( * ) * + - CAST( - SUM( DISTINCT + + col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2639
SELECT DISTINCT + COUNT ( * ) * + - CAST ( - SUM ( DISTINCT + + col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT 85 * 91 + 47 * + COUNT( * ) FROM tab0 AS cor0
----
7876

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT 85 * 91 + 47 * + COUNT ( * ) FROM tab0 AS cor0
----
7876

onlyif mysql # DIV for integer division: 
query II rowsort label-2641
SELECT DISTINCT col2 DIV col1 * - col1 DIV + - col1 * col0 DIV - col1 - - + ( + - 25 ) - + 70, col0 AS col2 FROM tab2 AS cor0
----
-95
46
-95
64
-95
75

skipif mysql # not compatible
query II rowsort label-2641
SELECT DISTINCT col2 / col1 * - col1 / + - col1 * col0 / - col1 - - + ( + - 25 ) - + 70, col0 AS col2 FROM tab2 AS cor0
----
-95
46
-95
64
-95
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT 8 * - MIN( 0 ) AS col2 FROM tab0 cor0 WHERE NOT ( ( + CAST( NULL AS SIGNED ) - - 69 ) >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT 8 * - MIN ( 0 ) AS col2 FROM tab0 cor0 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) - - 69 ) >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT COUNT( + - 55 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT COUNT ( + - 55 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 9 * - AVG ( col2 ) FROM tab2 WHERE NOT + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - COUNT( * ) * + 94 AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-2646
SELECT - COUNT ( * ) * + 94 AS col2 FROM tab1
----
-282

query I rowsort
SELECT ALL + 85 * - col2 AS col2 FROM tab1
----
-5015
-5780
-8160

query II rowsort
SELECT DISTINCT + col1 * - 87 + - col2 AS col2, ( + 4 ) * - ( - col2 ) + + col1 + - 0 + + col2 - - col0 * 32 * - - 74 AS col2 FROM tab0 AS cor0
----
-1837
206087
-186
230192
-7094
35836

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> - 45
----

query I rowsort
SELECT DISTINCT + ( - 91 ) AS col0 FROM tab0 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + 47 + + col2 + + 31 + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 47 + + col2 + + 31 + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT ALL COUNT( * ) DIV + 81 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL COUNT ( * ) / + 81 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 32
----

query I rowsort
SELECT ALL col1 + - 37 FROM tab1
----
-23
-32
10

query I rowsort
SELECT - col0 * - - col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 - + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT ALL - - col0 / 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-2658
SELECT ALL - - col0 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 28 + + ( ( + + col0 ) ) + + col0 FROM tab1 AS cor0
----
142
154
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT DISTINCT 3 DIV - COUNT( DISTINCT + + 27 ) + MIN( DISTINCT + 26 ) * - + 48 AS col0 FROM tab0 AS cor0
----
-1251

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT 3 / - COUNT ( DISTINCT + + 27 ) + MIN ( DISTINCT + 26 ) * - + 48 AS col0 FROM tab0 AS cor0
----
-1251

query I rowsort
SELECT DISTINCT - 40 + col1 FROM tab0 cor0
----
-19
-39
41

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 85 + - 72 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * + - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT + AVG ( - 81 ), ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE 96 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2664
SELECT + AVG ( - 81 ), ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE 96 IS NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2665
SELECT * FROM tab0 WHERE NULL = - - col1 * col0 * + + CAST( - 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2665
SELECT * FROM tab0 WHERE NULL = - - col1 * col0 * + + CAST ( - 9 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - 38 + - MAX( - 20 ) AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2666
SELECT - 38 + - MAX ( - 20 ) AS col0 FROM tab0
----
-18

query I rowsort
SELECT ALL - 79 + - + col1 AS col2 FROM tab1
----
-126
-84
-93

query I rowsort
SELECT + col0 * + + col1 * + + col0 * + col0 * col1 + 64 + + 59 * - col1 - - 50 AS col2 FROM tab0
----
22138710
290398698
912728

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT + col0 + - - col0 + - 24 + - col0 DIV col0 col2 FROM tab1
----
145
157
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT + col0 + - - col0 + - 24 + - col0 / col0 col2 FROM tab1
----
145
157
77

query I rowsort
SELECT ALL col0 * + + col1 + - col2 * - 69 FROM tab0
----
2517
4458
6928

query I rowsort
SELECT DISTINCT - col2 + + 49 * + ( 37 ) * - + col0 FROM tab0
----
-157741
-175960
-27242

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT ( - ( + col1 ) ) DIV - + col2 + + + col0 + + + col0 AS col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-2672
SELECT ( - ( + col1 ) ) / - + col2 + + + col0 + + + col0 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL + 52 + + 60 FROM tab0
----
112
112
112

query I rowsort
SELECT col0 + + ( ( + col1 ) ) AS col0 FROM tab0
----
108
96
98

query II rowsort
SELECT DISTINCT - 97 * + - col2 + + col0, col2 FROM tab2
----
2277
23
3944
40
5701
58

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND 75 + + - 10
----
51
14
96
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT ALL + 97 DIV col2 + - col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-114
-2
-3790

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + 97 / col2 + - col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-114
-2
-3790

query I rowsort
SELECT DISTINCT 93 * - - col2 + - + 40 - + 93 AS col0 FROM tab0 AS cor0
----
4238
797
9074

query II rowsort
SELECT ALL ( + ( 87 ) ) * - col1 - + 68, col2 FROM tab2 cor0
----
-4505
23
-5897
58
-6767
40

query I rowsort
SELECT - 13 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL col1 / + 9 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + 66 + + + COUNT( * ) + + 9 FROM tab2 WHERE NOT col0 + - col0 - 41 * - + col0 * + col0 - - - col2 <= - - 43
----
78

skipif mysql # not compatible
query I rowsort label-2682
SELECT + 66 + + + COUNT ( * ) + + 9 FROM tab2 WHERE NOT col0 + - col0 - 41 * - + col0 * + col0 - - - col2 <= - - 43
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT + + 91 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-4
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2683
SELECT + + 91 / - col1 col2 FROM tab0 AS cor0
----
-1
-4
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 69 AS col0 FROM tab0 AS cor0
----
15
-69
87
-69
97
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL - - SUM( + 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - - SUM ( + 17 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT + col1 AS col0, + col1 * + - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-441
81
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2689
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2689
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab2 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2690
SELECT COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT col0 * + ( CAST( - + col1 AS SIGNED ) ), - col2 * + 76 * - col0 AS col0 FROM tab0
----
-1215
53580
-1827
66120
-97
729828

skipif mysql # not compatible
query II rowsort label-2691
SELECT col0 * + ( CAST ( - + col1 AS INTEGER ) ), - col2 * + 76 * - col0 AS col0 FROM tab0
----
-1215
53580
-1827
66120
-97
729828

query II rowsort
SELECT col2 * + + col1 AS col0, - col1 FROM tab1
----
1344
-14
295
-5
3196
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL COUNT( * ) DIV + + COUNT( - 91 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL COUNT ( * ) / + + COUNT ( - 91 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * + + 26 + + col2 col1 FROM tab1 AS cor0
----
345
354
382

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + + 53 + - col0 * col2 FROM tab2 AS cor0
----
-1005
-2507
-4297

query I rowsort
SELECT - + 99 + 91 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - 58 + + + COUNT( * ) col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2699
SELECT - 58 + + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT - 89 AS col2, COUNT( * ) * SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-89
468

skipif mysql # not compatible
query II rowsort label-2700
SELECT - 89 AS col2, COUNT ( * ) * SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-89
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT - - MIN( 6 ) + COUNT( ALL - col2 ) * - COUNT( * ) + - 51 AS col0 FROM tab0 WHERE - 50 * - - col0 <= - col0
----
-54

skipif mysql # not compatible
query I rowsort label-2702
SELECT - - MIN ( 6 ) + COUNT ( ALL - col2 ) * - COUNT ( * ) + - 51 AS col0 FROM tab0 WHERE - 50 * - - col0 <= - col0
----
-54

query I rowsort
SELECT DISTINCT - 18 * 36 FROM tab1
----
-648

query I rowsort
SELECT - - AVG ( DISTINCT - + col1 ) FROM tab1 WHERE NULL <= - + col2 + - - col0 * - 42
----
NULL

query II rowsort
SELECT ALL 49 + - + col1, + col1 AS col2 FROM tab1
----
2
47
35
14
44
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + col2 - - col1 * 96 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - 32 + + + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2707
SELECT - 32 + + + COUNT ( * ) FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL + - 20 - + + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + - 20 - + + COUNT ( * ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT + col1 + - 81 + - col0 * - col2 FROM tab1 AS cor0
----
4829
4939
6154

query I rowsort
SELECT DISTINCT + + 29 - ( + 3 ) FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2711
SELECT + col2 DIV col0, - 67 * + - col0 + + - CAST( - + col1 AS SIGNED ) + + col1 col2 FROM tab1 cor0
----
0
5705
0
6191
1
3445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2711
SELECT + col2 / col0, - 67 * + - col0 + + - CAST ( - + col1 AS INTEGER ) + + col1 col2 FROM tab1 cor0
----
0
5705
0
6191
1
3445

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2712
SELECT ALL ( col0 ), CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2712
SELECT ALL ( col0 ), CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - col1 * - + 91 FROM tab2 cor0
----
4641
6097
7007

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT + + MIN( - - col0 ) AS col2, + 95 AS col0 FROM tab2 AS cor0
----
46
95

skipif mysql # not compatible
query II rowsort label-2714
SELECT + + MIN ( - - col0 ) AS col2, + 95 AS col0 FROM tab2 AS cor0
----
46
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT DISTINCT + COUNT( col1 ), + 3 AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2715
SELECT DISTINCT + COUNT ( col1 ), + 3 AS col2 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > - col0 * col0 + + 54 + + col0
----

query II rowsort
SELECT DISTINCT + col2, 56 FROM tab0
----
10
56
47
56
99
56

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( - - col1 ) + - ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - MAX( ALL + + 83 ) AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - MAX ( ALL + + 83 ) AS col2 FROM tab2
----
-83

query I rowsort
SELECT ALL ( + col0 ) * 2 + - col1 FROM tab1
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT 40 + - 69 + - 56 * MAX( ALL + + 72 ) FROM tab1
----
-4061

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT 40 + - 69 + - 56 * MAX ( ALL + + 72 ) FROM tab1
----
-4061

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + col1 ) / col2 * + col2 + col1 IS NOT NULL
----

query II rowsort
SELECT 74 AS col0, 11 FROM tab2
----
74
11
74
11
74
11

query I rowsort
SELECT 94 * - col2 FROM tab2
----
-2162
-3760
-5452

query I rowsort
SELECT ALL - 90 + + col0 FROM tab0
----
-3
-75
7

query I rowsort
SELECT ALL - 22 * 71 FROM tab2 cor0 WHERE NOT - ( - ( 56 ) ) < + col0 * - col2
----
-1562
-1562
-1562

query I rowsort
SELECT + 19 * - 76 AS col0 FROM tab2 AS cor0
----
-1444
-1444
-1444

query I rowsort
SELECT ALL 98 AS col2 FROM tab1 cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query II rowsort label-2729
SELECT ALL - ( + 67 ) * + 95 AS col2, ( + - 88 ) DIV - 7 col1 FROM tab1 AS cor0
----
-6365
12
-6365
12
-6365
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2729
SELECT ALL - ( + 67 ) * + 95 AS col2, ( + - 88 ) / - 7 col1 FROM tab1 AS cor0
----
-6365
12
-6365
12
-6365
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT DISTINCT - SUM( - col2 ) FROM tab0 WHERE - col0 NOT IN ( CAST( NULL AS SIGNED ) + + + 71, col0, 26, - 5 * - 73 + - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - SUM ( - col2 ) FROM tab0 WHERE - col0 NOT IN ( CAST ( NULL AS INTEGER ) + + + 71, col0, 26, - 5 * - 73 + - 36 )
----
NULL

query I rowsort
SELECT ( - 49 ) FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL col1 + + + 46 - - col2 FROM tab1
----
110
156
161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 27 ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - COUNT( * ) * 94 * - MIN( - 63 ) col0 FROM tab2 AS cor0
----
-17766

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2734
SELECT - COUNT ( * ) * 94 * - MIN ( - 63 ) col0 FROM tab2 AS cor0
----
-17766

query I rowsort
SELECT ALL - 2 - + 37 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2736
SELECT ALL - - 38 * - col1 AS col2, - col0 * - CAST( NULL AS SIGNED ) / + - 56 AS col0 FROM tab0 cor0
----
-3078
NULL
-38
NULL
-798
NULL

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL - - 38 * - col1 AS col2, - col0 * - CAST ( NULL AS INTEGER ) / + - 56 AS col0 FROM tab0 cor0
----
-3078
NULL
-38
NULL
-798
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - 43 * - SUM( + col1 ) AS col2 FROM tab0 cor0
----
4429

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - 43 * - SUM ( + col1 ) AS col2 FROM tab0 cor0
----
4429

query I rowsort
SELECT ALL - 93 - - 79 FROM tab0 cor0
----
-14
-14
-14

query II rowsort
SELECT ALL - + col1 * + 63, + col2 AS col2 FROM tab2 AS cor0
----
-3213
23
-4221
58
-4851
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 59 - + col0 * - col2 / - col1 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * + col0 col1 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT COUNT( * ) + - 88 + ( - COUNT( * ) ) + + - 19 FROM tab1
----
-107

skipif mysql # not compatible
query I rowsort label-2742
SELECT COUNT ( * ) + - 88 + ( - COUNT ( * ) ) + + - 19 FROM tab1
----
-107

query I rowsort
SELECT - col2 + - - 73 AS col0 FROM tab2
----
15
33
50

query I rowsort
SELECT + col2 * 30 * + - col1 + - col0 FROM tab1
----
-40371
-8935
-95971

query I rowsort
SELECT ALL + col2 + + col2 + col2 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT COUNT( * ) + + SUM( DISTINCT col1 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( * ) + + SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2748
SELECT ALL * FROM tab2 WHERE ( + ( - CAST( NULL AS SIGNED ) ) * col2 + + ( CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2748
SELECT ALL * FROM tab2 WHERE ( + ( - CAST ( NULL AS INTEGER ) ) * col2 + + ( CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 13 / + col2 / - 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 * + col1 + + - col0, + col2 - + col1 col0 FROM tab2
----
2300
-28
3007
-9
3478
-37

query I rowsort
SELECT ALL + col1 - - + 41 AS col0 FROM tab0 AS cor0
----
122
42
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col2 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 >= - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 >= - + col0
----
0

query I rowsort
SELECT ALL - 15 AS col1 FROM tab2 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + ( - + ( - COUNT( * ) ) ) * - COUNT( * ) + 39 AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2755
SELECT + ( - + ( - COUNT ( * ) ) ) * - COUNT ( * ) + 39 AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL 67 AS col1 FROM tab1 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + + ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2757
SELECT + + ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT DISTINCT + 87, COUNT( * ) AS col1 FROM tab1
----
87
3

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT + 87, COUNT ( * ) AS col1 FROM tab1
----
87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( DISTINCT + 70 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + COUNT ( DISTINCT + 70 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2762
SELECT col1 DIV + + ( + ( + - 80 ) ), + col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-2762
SELECT col1 / + + ( + ( + - 80 ) ), + col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 col0, col0 FROM tab0 AS cor0
----
77
15
77
87
77
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + 48 + + - col2 - col1
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab1
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab0
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT col1 * - - col0 + col1 DIV - + col1 col0 FROM tab1
----
424
4276
713

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2769
SELECT DISTINCT col1 * - - col0 + col1 / - + col1 col0 FROM tab1
----
424
4276
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT DISTINCT + col2 + col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + col2 + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 52 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT COUNT( + - col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT COUNT ( + - col2 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - - COUNT( * ) * + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - - COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + ( 57 ) FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2777
SELECT - 83 FROM tab2 cor0 WHERE ( NULL ) >= + col1 * - - CAST( - 27 AS DECIMAL ) / + - col2 + - - col1 / - 28 * 28
----

skipif mysql # not compatible
query I rowsort label-2777
SELECT - 83 FROM tab2 cor0 WHERE ( NULL ) >= + col1 * - - CAST ( - 27 AS REAL ) / + - col2 + - - col1 / - 28 * 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT - - 84 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT - - 84 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 - - + 27 AS col1 FROM tab0 AS cor0
----
-54
26
6

query I rowsort
SELECT ALL 14 * + - col1 AS col2 FROM tab2 AS cor0
----
-1078
-714
-938

query I rowsort
SELECT 77 * + 71 + - + 31 + ( + - ( + col1 ) ) * - col0 FROM tab1 AS cor0
----
5861
6150
9713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT ALL - + 67 - CAST( + 96 AS SIGNED ) FROM tab2 AS cor0
----
-163
-163
-163

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - + 67 - CAST ( + 96 AS INTEGER ) FROM tab2 AS cor0
----
-163
-163
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55, 87 * - - 50 * - + col1 col2 FROM tab0 AS cor0
----
55
-352350
55
-4350
55
-91350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2785
SELECT MIN( ALL - CAST( + col0 AS SIGNED ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2785
SELECT MIN ( ALL - CAST ( + col0 AS INTEGER ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT col2 + - col2 + + - col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 93 + + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT ALL + col1 * + col2 * col2 * - - col2 AS col2 FROM tab2
----
13072504
4928000
620517

query I rowsort
SELECT - ( + 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT 19 * 54 + - col1 FROM tab0 AS cor0
----
1005
1025
945

query I rowsort
SELECT ALL 39 * col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT + CAST( - 90 AS SIGNED ) AS col0 FROM tab2 cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-2793
SELECT + CAST ( - 90 AS INTEGER ) AS col0 FROM tab2 cor0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / - col2 BETWEEN - col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT DISTINCT + - 69 AS col2, - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-69
-9

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT + - 69 AS col2, - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-69
-9

query I rowsort
SELECT ( - + col2 ) * - + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + ( + SUM( DISTINCT + - col0 ) ) * 1 AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + ( + SUM ( DISTINCT + - col0 ) ) * 1 AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + - 30 * + col1 FROM tab2 cor0
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT - CAST( NULL AS SIGNED ) / + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT - CAST ( NULL AS INTEGER ) / + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + col2 * - 89 * - col1 AS col1 FROM tab0 AS cor0
----
-27444663
-392490
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT + col1 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT + col1 / - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2803
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col2 - - - col1 + + - col1 * + - ( + ( ( - CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-2803
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col2 - - - col1 + + - col1 * + - ( + ( ( - CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( col2 + - + col1, + 40 + - + 98 * + col1, - col0, - 50 * + col0 + - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2805
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT col0 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2805
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT col0 + + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - - col2 + - 8 FROM tab0 AS cor0 WHERE 62 IS NULL
----

query I rowsort
SELECT + ( 46 ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT DISTINCT 88 AS col0, + COUNT( * ) - - 68 FROM tab1
----
88
71

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT 88 AS col0, + COUNT ( * ) - - 68 FROM tab1
----
88
71

query II rowsort
SELECT col0 AS col1, col1 FROM tab2 WHERE NOT 82 IS NULL
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + COUNT( + 80 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COUNT ( + 80 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col2 + + col2 * 44 AS col1 FROM tab0
----
2115
4455
450

query II rowsort
SELECT DISTINCT + 71 AS col1, 91 FROM tab2
----
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT + 60 AS col2 FROM tab0 WHERE NULL <> ( + CAST( - col0 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query I rowsort label-2813
SELECT + 60 AS col2 FROM tab0 WHERE NULL <> ( + CAST ( - col0 AS INTEGER ) + - col2 )
----

query I rowsort
SELECT col2 + - col2 + 94 AS col1 FROM tab2
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT col0 + + col0 + + 38 * + col2 DIV - col2 FROM tab1
----
132
144
64

skipif mysql # not compatible
query I rowsort label-2815
SELECT col0 + + col0 + + 38 * + col2 / - col2 FROM tab1
----
132
144
64

query I rowsort
SELECT DISTINCT 60 + 98 * - col1 AS col0 FROM tab2
----
-4938
-6506
-7486

query I rowsort
SELECT - col2 + + 90 AS col1 FROM tab0 cor0
----
-9
43
80

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 40 > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT DISTINCT - 57 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-2819
SELECT DISTINCT - 57 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-57
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2821
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= - ( col0 ) * - + 94
----

skipif mysql # not compatible
query III rowsort label-2821
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= - ( col0 ) * - + 94
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 55 + col0 IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + - COUNT( * ) + + 58 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2823
SELECT + - COUNT ( * ) + + 58 FROM tab2 AS cor0
----
55

query I rowsort
SELECT + col2 * + col1 - col2 + + + 13 FROM tab2 AS cor0
----
1163
3053
3841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col1 + + 61 + - - col2 + + col0 + - col0 col0 FROM tab0 AS cor0
----
-370
-6453
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT CAST( ( - - col2 ) AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT CAST ( ( - - col2 ) AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT - 52 + - COUNT( * ) - + 93 + - COUNT( DISTINCT 3 ) + + + MAX( 17 ) - + MAX( - ( + - col2 ) ) - + 6 FROM tab2
----
-196

skipif mysql # not compatible
query I rowsort label-2828
SELECT - 52 + - COUNT ( * ) - + 93 + - COUNT ( DISTINCT 3 ) + + + MAX ( 17 ) - + MAX ( - ( + - col2 ) ) - + 6 FROM tab2
----
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-2829
SELECT + ( COUNT( col1 ) ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2829
SELECT + ( COUNT ( col1 ) ), + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT - SUM( DISTINCT + - 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - SUM ( DISTINCT + - 55 ) FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + MIN( ALL col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + MIN ( ALL col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2832
SELECT + 32 DIV - MAX( DISTINCT col1 ), COUNT( * ) AS col0 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-2832
SELECT + 32 / - MAX ( DISTINCT col1 ), COUNT ( * ) AS col0 FROM tab2
----
0
3

query I rowsort
SELECT ( - 95 ) AS col0 FROM tab1
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 57 ) NOT BETWEEN col2 / - + ( col2 ) AND - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT ALL ( ( + - COUNT( * ) ) ), 21 AS col1 FROM tab1
----
-3
21

skipif mysql # not compatible
query II rowsort label-2835
SELECT ALL ( ( + - COUNT ( * ) ) ), 21 AS col1 FROM tab1
----
-3
21

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NOT col2 IS NULL
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL + col0 DIV - 87 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + col0 / - 87 AS col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 51 * + col2 FROM tab0 cor0
----
2397
5049
510

query I rowsort
SELECT ALL - 83 * 95 - + col0 AS col2 FROM tab2 AS cor0
----
-7931
-7949
-7960

query I rowsort
SELECT - - 23 AS col0 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT col1 * + - 77 AS col2 FROM tab0
----
-1617
-6237
-77

query I rowsort
SELECT 43 * + col0 FROM tab0
----
3741
4171
645

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + col0 + - col0 + ( + col2 ) * 42
----

query I rowsort
SELECT ALL col0 * - col0 * - - col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 1 * col0 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT DISTINCT CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT ( 93 ) AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT + ( + 60 ) + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2848
SELECT + ( + 60 ) + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT DISTINCT + CAST( + 11 AS SIGNED ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + CAST ( + 11 AS INTEGER ) FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT 80 + + - MIN( col1 ) + - COUNT( * ) * + + COUNT( col0 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2850
SELECT 80 + + - MIN ( col1 ) + - COUNT ( * ) * + + COUNT ( col0 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT - MAX( + 12 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - MAX ( + 12 ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2852
SELECT DISTINCT * FROM tab2 WHERE - col2 + + 58 + - ( + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2852
SELECT DISTINCT * FROM tab2 WHERE - col2 + + 58 + - ( + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + + ( - 88 ) FROM tab2
----
-4488
-5896
-6776

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT 30 * col2 FROM tab2
----
1200
1740
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, col1 col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL - col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT col1 + - 92 * - col2 FROM tab2 AS cor0
----
2167
3757
5403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL 20 FROM tab0 WHERE NOT + CAST( - - col0 AS SIGNED ) > col0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL 20 FROM tab0 WHERE NOT + CAST ( - - col0 AS INTEGER ) > col0
----
20
20
20

query II rowsort
SELECT ALL - col0 + - - col2 AS col0, col1 FROM tab2
----
-17
67
-23
51
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + ( - SUM( ALL col1 ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2864
SELECT + ( - SUM ( ALL col1 ) ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT + 59 + + + COUNT( * ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + 59 + + + COUNT ( * ) FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL col1 + + col2 AS col1, 78 FROM tab1 cor0
----
110
78
115
78
64
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT + 30 + - + COUNT( * ) col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2867
SELECT DISTINCT + 30 + - + COUNT ( * ) col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ( - 83 ) AS col1 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - - COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2869
SELECT - - COUNT ( col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query II rowsort
SELECT ALL - col1 AS col1, 59 FROM tab1 AS cor0
----
-14
59
-47
59
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT - SUM( col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2872
SELECT - SUM ( col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT - 34 * - - col0 * - 68 AS col2 FROM tab1 AS cor0
----
117912
196520
210392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + CAST( NULL AS SIGNED ) * + 7 + + - 74 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + CAST ( NULL AS INTEGER ) * + 7 + + - 74 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 35 <> NULL )
----

query I rowsort
SELECT DISTINCT + col0 - + 11 FROM tab0 WHERE NOT - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + - 50 FROM tab0
----
-1050
-4050
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = - 35
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = - 35
----
0

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT col1 * + - col1 * - + col1 AS col2 FROM tab1
----
103823
125
2744

query I rowsort
SELECT DISTINCT col1 * - 93 FROM tab2
----
-4743
-6231
-7161

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-80

query II rowsort
SELECT DISTINCT 27 AS col0, + col0 AS col1 FROM tab2
----
27
46
27
64
27
75

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT COUNT( DISTINCT - + ( + col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2885
SELECT COUNT ( DISTINCT - + ( + col2 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - - ( - 23 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query II rowsort
SELECT col0 AS col2, 12 AS col2 FROM tab0
----
15
12
87
12
97
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 + 18 = NULL )
----

query II rowsort
SELECT DISTINCT + col2, - 88 * - + ( - + col1 ) FROM tab2 AS cor0
----
23
-4488
40
-6776
58
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT + + col1 DIV - + 21 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT + + col1 / - + 21 AS col2 FROM tab1 AS cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( col2 * + col0 / col0, 91 ) )
----

query I rowsort
SELECT DISTINCT + 27 * - + col1 + - col2 * + 65 AS col0 FROM tab0 AS cor0
----
-1217
-5242
-6462

query I rowsort
SELECT DISTINCT + - 59 AS col2 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT ALL col0 + + 83 FROM tab2 AS cor0
----
129
147
158

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * + 22
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + AVG ( + + 30 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + AVG ( + + 30 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + col0 + - 6 * col2 * - - col2 AS col2 FROM tab1
----
-20796
-27606
-55231

query I rowsort
SELECT ALL col1 + + 0 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + 34 FROM tab2 WHERE NOT + - 91 * + + col1 * - col0 NOT IN ( 21 + 94 * - ( - 48 ) )
----

query II rowsort
SELECT DISTINCT 92 * + 59 * + - col0 + 34 AS col1, col0 AS col1 FROM tab2
----
-249654
46
-347358
64
-407066
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT + COUNT( * ) + + - 46 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + COUNT ( * ) + + - 46 FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT - 40 + + + 17 * 82 * - 64 AS col0 FROM tab0 WHERE NOT + CAST( + - col1 AS SIGNED ) - + 88 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - 40 + + + 17 * 82 * - 64 AS col0 FROM tab0 WHERE NOT + CAST ( + - col1 AS INTEGER ) - + 88 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL COUNT( ALL + 58 ) + - 23 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL COUNT ( ALL + 58 ) + - 23 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT MIN( - col1 ) + 97 AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2905
SELECT MIN ( - col1 ) + 97 AS col2 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + ( - - 47 ) * COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + ( - - 47 ) * COUNT ( * ) FROM tab2 AS cor0
----
141

query I rowsort
SELECT DISTINCT 85 - + col0 FROM tab1 AS cor0
----
-6
0
34

query II rowsort
SELECT col1 AS col2, - 5 * + + 29 * - 27 FROM tab0
----
1
3915
21
3915
81
3915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT ALL col2 + + CAST( NULL AS SIGNED ) + ( + + col0 ) * + + ( - col1 ), + ( + col2 ) AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) + ( + + col0 ) * + + ( - col1 ), + ( + col2 ) AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 65 + - col2 * + col0 + - 96 FROM tab0
----
-9634
399
4464

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + - MAX( ALL ( + col1 ) ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2913
SELECT + - MAX ( ALL ( + col1 ) ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT ALL 67 AS col0, - COUNT( * ) FROM tab1 cor0
----
67
-3

skipif mysql # not compatible
query II rowsort label-2914
SELECT ALL 67 AS col0, - COUNT ( * ) FROM tab1 cor0
----
67
-3

query II rowsort
SELECT DISTINCT - 79, 9 AS col1 FROM tab1 AS cor0
----
-79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + - COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2916
SELECT + - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT SUM( DISTINCT 17 ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2917
SELECT SUM ( DISTINCT 17 ) AS col1 FROM tab0 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - MIN( ALL + + col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - MIN ( ALL + + col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab2
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT + 37 * 63 * - + CAST( - 26 AS SIGNED ) * + - col2 AS col0 FROM tab2
----
-1393938
-2424240
-3515148

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + 37 * 63 * - + CAST ( - 26 AS INTEGER ) * + - col2 AS col0 FROM tab2
----
-1393938
-2424240
-3515148

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + col1 ) BETWEEN + + col1 AND 69 * - - col2 + + 89
----

query I rowsort
SELECT + 20 * - 30 * - - 90 FROM tab0
----
-54000
-54000
-54000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64, + col1 col0 FROM tab0
----
64
1
64
21
64
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL ( + - MAX( ALL 57 ) ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL ( + - MAX ( ALL 57 ) ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2927
SELECT DISTINCT + COUNT( * ) + - + 70 AS col0, COUNT( * ) FROM tab1 cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-2927
SELECT DISTINCT + COUNT ( * ) + - + 70 AS col0, COUNT ( * ) FROM tab1 cor0
----
-67
3

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT CAST( NULL AS SIGNED ) + + col1 + col0 / + col0 + - 24 * - - col1 * + col1 / + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT CAST ( NULL AS INTEGER ) + + col1 + col0 / + col0 + - 24 * - - col1 * + col1 / + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 69 + - col0, col2 AS col1 FROM tab0 cor0
----
-18
10
-28
99
54
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL - CAST( - - 76 AS SIGNED ) * + col2 + + 23 FROM tab0 AS cor0
----
-3549
-737
-7501

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL - CAST ( - - 76 AS INTEGER ) * + col2 + + 23 FROM tab0 AS cor0
----
-3549
-737
-7501

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2932
SELECT col2 * + - CAST( + col0 AS SIGNED ) col2, 57 FROM tab0 cor0
----
-705
57
-870
57
-9603
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2932
SELECT col2 * + - CAST ( + col0 AS INTEGER ) col2, 57 FROM tab0 cor0
----
-705
57
-870
57
-9603
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - col1, - col1 * - col0 col0 FROM tab0 AS cor0
----
-1215
1215
-1827
1827
-97
97

query I rowsort
SELECT 81 * + + col0 AS col2 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT ALL - col1 + col0 * - col0 - col1 * - ( + - 7 ) AS col1 FROM tab2
----
-2524
-4712
-6161

query I rowsort
SELECT col2 * + - 15 FROM tab2
----
-345
-600
-870

query III rowsort
SELECT * FROM tab2 WHERE ( 58 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NOT - + col2 * + - CAST( ( ( col1 ) ) AS SIGNED ) * - + col2 <= 31 + + - col1
----

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NOT - + col2 * + - CAST ( ( ( col1 ) ) AS INTEGER ) * - + col2 <= 31 + + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - col1 ) IS NULL
----

query I rowsort
SELECT 6 + - 67 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT + + CAST( - + 76 AS SIGNED ) + - 56 AS col1 FROM tab1 AS cor0
----
-132
-132
-132

skipif mysql # not compatible
query I rowsort label-2941
SELECT + + CAST ( - + 76 AS INTEGER ) + - 56 AS col1 FROM tab1 AS cor0
----
-132
-132
-132

query I rowsort
SELECT ALL col1 + - 56 AS col2 FROM tab1
----
-42
-51
-9

query I rowsort
SELECT col2 FROM tab1 WHERE ( 66 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 - + col1 AS col0 FROM tab1 WHERE - ( + col0 ) * col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 71 + col0 FROM tab2
----
1679
2904
4193

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT 87 + - col1 DIV + col1 AS col0 FROM tab1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-2946
SELECT 87 + - col1 / + col1 AS col0 FROM tab1
----
86
86
86

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab1 WHERE NOT 37 - - col2 * col2 >= NULL
----

query I rowsort
SELECT ALL col2 + - col2 FROM tab0 WHERE NOT 12 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT + col2 + + CAST( 82 AS SIGNED ) AS col2 FROM tab2
----
105
122
140

skipif mysql # not compatible
query I rowsort label-2949
SELECT + col2 + + CAST ( 82 AS INTEGER ) AS col2 FROM tab2
----
105
122
140

query I rowsort
SELECT + col0 + 45 AS col0 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - 6 + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2951
SELECT - 6 + - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 62 - + col1 AS col2 FROM tab1
----
15
48
57

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 36 ) NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 29 * + col1 + - col2 <= ( NULL )
----

query I rowsort
SELECT 66 + - 32 FROM tab0
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN ( NULL ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - SUM( DISTINCT 0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT - SUM ( DISTINCT 0 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT col1 + CAST( - 17 + - 63 AS SIGNED ) FROM tab2
----
-13
-29
-3

skipif mysql # not compatible
query I rowsort label-2958
SELECT col1 + CAST ( - 17 + - 63 AS INTEGER ) FROM tab2
----
-13
-29
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT + 98 + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + 98 + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT col2 + 53 FROM tab1 WHERE NOT col0 * 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2962
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2962
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + + 3 col2 FROM tab0
----
24
4
84

query I rowsort
SELECT - col0 + - 91 AS col1 FROM tab0
----
-106
-178
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( + col0 ) * - 83 FROM tab2 WHERE NOT 93 + - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( + col0 ) * - 83 FROM tab2 WHERE NOT 93 + - col0 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col2 FROM tab1
----
-95
-95
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT 36 DIV - MIN( 56 * col0 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT 36 / - MIN ( 56 * col0 ) AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 25 + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2969
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 / - col2 ) NOT BETWEEN + col1 * CAST( 33 AS SIGNED ) AND - col1 / - col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2969
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 / - col2 ) NOT BETWEEN + col1 * CAST ( 33 AS INTEGER ) AND - col1 / - col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 89 ) AS col0 FROM tab1 AS cor0
----
-89

query III rowsort
SELECT * FROM tab2 cor0 WHERE 69 BETWEEN NULL AND ( col2 * + 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT COUNT( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col1 * - col0 AND col0 + 38 / + 83
----
3

skipif mysql # not compatible
query I rowsort label-2973
SELECT COUNT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col1 * - col0 AND col0 + 38 / + 83
----
3

query I rowsort
SELECT ALL - - ( 5 ) - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
104
215
3812

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + ( 44 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT - MIN( CAST( NULL AS SIGNED ) ) * - 85 AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * - 85 AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - 10 AS col2 FROM tab1
----
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT - ( 32 ) DIV 29 + col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-2978
SELECT - ( 32 ) / 29 + col1 FROM tab0
----
0
20
80

query I rowsort
SELECT 78 + - col0 * + col2 AS col0 FROM tab2
----
-2482
-4272
-980

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT MAX( 64 ) + - ( 41 - 65 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT MAX ( 64 ) + - ( 41 - 65 ) FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL col1 DIV col0 + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL col1 / col0 + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2983
SELECT + ( + CAST( col0 AS SIGNED ) ) DIV col2 + ( - col0 ) FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-2983
SELECT + ( + CAST ( col0 AS INTEGER ) ) / col2 + ( - col0 ) FROM tab2
----
-44
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + + col2 * col2 col0 FROM tab2
----
1619
3383
548

query I rowsort
SELECT - col1 * col1 + - col0 AS col1 FROM tab0
----
-528
-6576
-98

query I rowsort
SELECT 27 + + + 93 FROM tab0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + ( COUNT( * ) ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2987
SELECT + ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2
----
6

query II rowsort
SELECT DISTINCT 94 AS col2, - col1 * - col1 AS col2 FROM tab1
----
94
196
94
2209
94
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT COUNT( * ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT COUNT ( * ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT MAX( CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 46 ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT MAX ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 46 ) AND col1
----
NULL

query I rowsort
SELECT col1 * col0 FROM tab1 AS cor0 WHERE NOT - col2 * col2 NOT IN ( 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL - - col0 * + 34 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - - col0 * + 34 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 30 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + - 35 ) * col2 + 92 ) = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2996
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2996
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + COUNT( * ) * MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query II rowsort label-2998
SELECT DISTINCT - col2 AS col2, 75 DIV col1 FROM tab1 cor0
----
-59
15
-68
1
-96
5

skipif mysql # not compatible
query II rowsort label-2998
SELECT DISTINCT - col2 AS col2, 75 / col1 FROM tab1 cor0
----
-59
15
-68
1
-96
5

query II rowsort
SELECT ALL + + 63 AS col0, + 89 AS col0 FROM tab1 AS cor0
----
63
89
63
89
63
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 92 )
----

query I rowsort
SELECT ALL 66 * - col0 AS col0 FROM tab0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL ( + COUNT( * ) ) + - 39 AS col1 FROM tab0 WHERE NULL <= col2 * ( + col2 ) + + 49 / + 44
----
-39

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL ( + COUNT ( * ) ) + - 39 AS col1 FROM tab0 WHERE NULL <= col2 * ( + col2 ) + + 49 / + 44
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL MIN( - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL MIN ( - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT + ( - + col1 ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT IN ( 41 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT - COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3007
SELECT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT CAST( NULL AS SIGNED ) * 66 col2 FROM tab2 AS cor0 WHERE ( + + col1 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3008
SELECT CAST ( NULL AS INTEGER ) * 66 col2 FROM tab2 AS cor0 WHERE ( + + col1 IS NOT NULL )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / - 94 * - ( - 82 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - 31 + + COUNT( * ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - 31 + + COUNT ( * ) FROM tab0
----
-28

query I rowsort
SELECT DISTINCT - 38 + - ( - 30 ) AS col1 FROM tab2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT MIN( - - col0 ) + + AVG ( - CAST( NULL AS SIGNED ) ) + + 78 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT MIN ( - - col0 ) + + AVG ( - CAST ( NULL AS INTEGER ) ) + + 78 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 8 * + ( + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + + col2 col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - + MIN( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3015
SELECT - + MIN ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - 74 + - + 4 IS NULL
----

query II rowsort
SELECT ALL col0 * - - col2 * + - col2, col0 FROM tab1 AS cor0
----
-295885
85
-420784
91
-470016
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab1 cor0 WHERE NULL IN ( + 10 * + col1 )
----

query I rowsort
SELECT ALL - - col2 * + + col0 - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT ALL col0 + + col2 FROM tab1 WHERE NOT - 1 * + - col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 77 FROM tab1
----
4543
5236
7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT 93 * - col2 * + ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT 93 * - col2 * + ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 > - + 65
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT COUNT( * ) * + - 42 AS col2 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT COUNT ( * ) * + - 42 AS col2 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT DISTINCT - 87 * + ( - col2 ) * + col1 FROM tab2 AS cor0
----
102051
267960
338082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL COUNT( + CAST( + 70 AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL COUNT ( + CAST ( + 70 AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - 3 * - + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 3 * - + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col0 NOT IN ( + ( + + col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3029
SELECT - col2 * - + col2 * - 35, - col2 * - - CAST( + 69 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-343035
-6831
-3500
-690
-77315
-3243

skipif mysql # not compatible
query II rowsort label-3029
SELECT - col2 * - + col2 * - 35, - col2 * - - CAST ( + 69 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-343035
-6831
-3500
-690
-77315
-3243

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * + + col0 + + + col2 ) = - 30 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 28 + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT + SUM( + CAST( NULL AS SIGNED ) ) * 1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) * 1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - 65 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3034
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 / CAST( NULL AS SIGNED ) / + 73 + + col1 + col0 * - 52 + ( + CAST( NULL AS SIGNED ) ) >= - col0 * 58
----

skipif mysql # not compatible
query III rowsort label-3034
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 / CAST ( NULL AS INTEGER ) / + 73 + + col1 + col0 * - 52 + ( + CAST ( NULL AS INTEGER ) ) >= - col0 * 58
----

query II rowsort
SELECT + col0 AS col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL + 82 + + col1 AS col1 FROM tab1
----
129
87
96

query II rowsort
SELECT ALL - 69, + 17 AS col0 FROM tab0
----
-69
17
-69
17
-69
17

query I rowsort
SELECT ALL + - 7 * - 59 FROM tab2 AS cor0
----
413
413
413

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) + + + col2 BETWEEN - col1 AND ( + ( col2 ) )
----

query II rowsort
SELECT DISTINCT - - col0, + col1 * - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 5 * + 41 * + 70 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 * - - 56 FROM tab2
----
2576
3584
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT DISTINCT col0 + 48 + 25 AS col2 FROM tab0 WHERE NOT 31 + CAST( - 22 AS SIGNED ) + + + col0 * - + col0 IS NULL
----
160
170
88

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT col0 + 48 + 25 AS col2 FROM tab0 WHERE NOT 31 + CAST ( - 22 AS INTEGER ) + + + col0 * - + col0 IS NULL
----
160
170
88

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < 7 + + - 79
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + + col1 * - + 42 * - col0 BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col1 * + - col0 - + col0 + col1 + - col1 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL COUNT( * ) * SUM( ALL - - 62 ) + + CAST( - 91 AS SIGNED ) FROM tab1 AS cor0
----
467

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL COUNT ( * ) * SUM ( ALL - - 62 ) + + CAST ( - 91 AS INTEGER ) FROM tab1 AS cor0
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT 80 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT 80 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = + + col0 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3051
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + CAST( 70 AS SIGNED ) ) <> - 41 * - col0 + col2 * + 55
----

skipif mysql # not compatible
query III rowsort label-3051
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + CAST ( 70 AS INTEGER ) ) <> - 41 * - col0 + col2 * + 55
----

query I rowsort
SELECT - col2 + ( - + col1 ) AS col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT col1 + + 75 FROM tab0
----
156
76
96

query I rowsort
SELECT 42 + col2 AS col0 FROM tab0
----
141
52
89

query I rowsort
SELECT DISTINCT col2 + - 63 AS col0 FROM tab0
----
-16
-53
36

query I rowsort
SELECT - col1 * - 80 AS col1 FROM tab0
----
1680
6480
80

query I rowsort
SELECT ALL + col2 * 71 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT - 72 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 + 44, 8 * col2, + 58 * - col2 * + 2 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT + CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3059
SELECT + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38, 17 col1 FROM tab0
----
38
17
38
17
38
17

query I rowsort
SELECT + col0 * + 1 AS col0 FROM tab0
----
15
87
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT col2 AS col1, 39 FROM tab2
----
23
39
40
39
58
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col0 FROM tab0 cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT + COUNT( * ) * - 71 AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + COUNT ( * ) * - 71 AS col2 FROM tab0 AS cor0
----
-213

query II rowsort
SELECT DISTINCT 76 AS col2, + 62 FROM tab2 AS cor0
----
76
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 61, col1 AS col0 FROM tab1 AS cor0
----
-61
14
-61
47
-61
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT DISTINCT + COUNT( * ) AS col2, - 56 FROM tab0 AS cor0
----
3
-56

skipif mysql # not compatible
query II rowsort label-3069
SELECT DISTINCT + COUNT ( * ) AS col2, - 56 FROM tab0 AS cor0
----
3
-56

query I rowsort
SELECT + + col2 + + + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT DISTINCT + 11 AS col1, - col2 FROM tab0 AS cor0
----
11
-10
11
-47
11
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL + CAST( - ( - 3 ) AS SIGNED ) AS col2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL + CAST ( - ( - 3 ) AS INTEGER ) AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT col2 * - + col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT MAX( + + 83 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3074
SELECT MAX ( + + 83 ) AS col2 FROM tab1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3075
SELECT ( + COUNT( * ) ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3075
SELECT ( + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
3
NULL

query I rowsort
SELECT ALL + col0 * - ( + col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - 65 - + 88 + + + 20 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3078
SELECT ALL 58 + + col1 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
109
NULL
125
NULL
135
NULL

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL 58 + + col1 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
109
NULL
125
NULL
135
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + 46 * + COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + 46 * + COUNT ( * ) FROM tab2 AS cor0
----
138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3082
SELECT + CAST( NULL AS SIGNED ) + + - 86, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-3082
SELECT + CAST ( NULL AS INTEGER ) + + - 86, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3083
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 + 85 AS col0 FROM tab2 AS cor0
----
131
149
160

query I rowsort
SELECT ALL + + 34 - - col0 + col1 + + 68 AS col2 FROM tab1 AS cor0
----
167
192
240

query I rowsort
SELECT DISTINCT col1 * - - col1 + col2 * - col1 FROM tab2 AS cor0
----
1428
2849
603

query I rowsort
SELECT ( - ( 58 ) ) * + 69 FROM tab0 AS cor0
----
-4002
-4002
-4002

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT DISTINCT 25 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT 25 / - col2 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3090
SELECT ALL 31 DIV + - 78, - col2 AS col2 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-3090
SELECT ALL 31 / + - 78, - col2 AS col2 FROM tab2
----
0
-23
0
-40
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3091
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - ( + ( 65 ) ) FROM tab1
----
-65
-65
-65

query I rowsort
SELECT - ( + col1 ) / col0 * col0 * + col1 AS col1 FROM tab2 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - COUNT( + - 60 ) * - 31 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-3094
SELECT - COUNT ( + - 60 ) * - 31 FROM tab0 cor0
----
93

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE NOT - ( - 65 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + 51
----

query I rowsort
SELECT + + col1 * - ( - - col0 ) FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + 39 * COUNT( * ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3099
SELECT + 39 * COUNT ( * ) FROM tab1 AS cor0
----
117

query II rowsort
SELECT ALL + 52 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT ALL ( + - COUNT( + col2 ) ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3101
SELECT ALL ( + - COUNT ( + col2 ) ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT COUNT( ALL col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - + col2, col0 * + col1 AS col0 FROM tab1 AS cor0
----
-59
425
-68
4277
-96
714

query I rowsort
SELECT DISTINCT col1 * + 26 * + ( 89 ) FROM tab0
----
187434
2314
48594

query I rowsort
SELECT + 52 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + 80 col1 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT DISTINCT ( 16 ) * + + col0 + - - 54 AS col0 FROM tab0
----
1446
1606
294

query III rowsort
SELECT * FROM tab0 WHERE - 5 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 + + 64 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT + col2 * - - col0 + - + col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL - 82 * - + col1 * + + 10 AS col0 FROM tab0
----
17220
66420
820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT DISTINCT 55 DIV - COUNT( * ) AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT 55 / - COUNT ( * ) AS col0 FROM tab0
----
-18

query I rowsort
SELECT col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL - ( + col2 ) * - 87 + + 68 AS col0 FROM tab0
----
4157
8681
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT ( 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-3116
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - col0 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - col0 + col1 + - col0 * - - col1 - 11 FROM tab2 AS cor0
----
-190
-766
656

query I rowsort
SELECT ALL 12 * + col1 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-87
5282
78685

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND 92 * + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL + CAST( - 7 AS SIGNED ) * - 67 col1 FROM tab1 AS cor0
----
469
469
469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT ALL + CAST ( - 7 AS INTEGER ) * - 67 col1 FROM tab1 AS cor0
----
469
469
469

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE 69 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - 21 FROM tab1 AS cor0 WHERE NOT - col0 >= col1
----
-21
-21
-21

query I rowsort
SELECT col0 * - 27 * col2 FROM tab2
----
-117450
-28566
-69120

query I rowsort
SELECT - ( 21 ) AS col2 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT 1 * + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ( 3 ) * - col1 * - col2 FROM tab2
----
11658
3519
9240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 col1, col2 AS col0 FROM tab0
----
46
10
46
47
46
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 * + + col0 col1, - 0 * - col1 * 10 * + col2 FROM tab2
----
107916
0
315392
0
376875
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT - col2 > - - col2 + - 42
----
-14
-47
-5

query II rowsort
SELECT DISTINCT 35, col0 AS col1 FROM tab2
----
35
46
35
64
35
75

query I rowsort
SELECT ALL + col2 * - 68 AS col1 FROM tab2 cor0
----
-1564
-2720
-3944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col2 - - - col0 = col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 32 IS NULL
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3135
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IN ( + + CAST( - col0 AS DECIMAL ), col1, 53 + + col0, - col2 + - col2 * - col0 * + col0 * + + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3135
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IN ( + + CAST ( - col0 AS REAL ), col1, 53 + + col0, - col2 + - col2 * - col0 * + col0 * + + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 69
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 86 / + - ( - 51 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - 29 / + 93 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 + 63
----

query I rowsort
SELECT - col0 + - + 56 AS col0 FROM tab2 AS cor0
----
-102
-120
-131

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL MIN( 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL MIN ( 10 ) FROM tab1
----
10

query I rowsort
SELECT ALL col2 + - col2 + + col1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + 76 + 63 + col2 + + 81 * - - col2 FROM tab2
----
2025
3419
4895

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - + COUNT( * ) FROM tab0 WHERE - - 66 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - + COUNT ( * ) FROM tab0 WHERE - - 66 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL 46 + COUNT( DISTINCT + - col2 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL 46 + COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 72 / col0 + - + col0 NOT BETWEEN - - col2 AND ( col2 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - 91 FROM tab2 AS cor0
----
-14
-24
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT + + 54 * + 8 - 95 * - MIN( DISTINCT 17 ) - + MIN( + 0 ) FROM tab2 AS cor0
----
2047

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + + 54 * + 8 - 95 * - MIN ( DISTINCT 17 ) - + MIN ( + 0 ) FROM tab2 AS cor0
----
2047

query I rowsort
SELECT + col1 * + col2 * + col0 + 91 AS col0 FROM tab1 cor0
----
25166
290927
68635

query I rowsort
SELECT - col2 + col1 - + - col0 FROM tab0 AS cor0 WHERE + 22 * + 44 IS NULL
----

query I rowsort
SELECT - 43 + + 41 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1878
-2590
-3051

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT ALL COUNT( * ) AS col0, 6 AS col1 FROM tab0, tab0 AS cor0
----
9
6

skipif mysql # not compatible
query II rowsort label-3156
SELECT ALL COUNT ( * ) AS col0, 6 AS col1 FROM tab0, tab0 AS cor0
----
9
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL + - COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT ALL + - COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( - 12 + - col2 )
----

query II rowsort
SELECT DISTINCT 3 * col0 * - col0 * - 51 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
1158057
-10
1439577
-99
34425
-47

query I rowsort
SELECT DISTINCT col1 * - + col0 - + col0 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE 23 + - col0 NOT IN ( + + col0 + - + 41 )
----
15
87
97

query II rowsort
SELECT col2, - col2 + + + col0 FROM tab1 AS cor0
----
59
26
68
23
96
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 AS col1, - col0 col0 FROM tab2 AS cor0
----
45
-46
45
-64
45
-75

query I rowsort
SELECT + col2 * - 1 - + col2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

query II rowsort
SELECT DISTINCT col1 AS col1, 37 AS col0 FROM tab0 cor0
----
1
37
21
37
81
37

query I rowsort
SELECT ALL 22 FROM tab2 WHERE NOT - 24 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 75 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3168
SELECT 11 * 63 AS col2, - CAST( NULL AS SIGNED ) - + col0 * + + col0 AS col1 FROM tab2
----
693
NULL
693
NULL
693
NULL

skipif mysql # not compatible
query II rowsort label-3168
SELECT 11 * 63 AS col2, - CAST ( NULL AS INTEGER ) - + col0 * + + col0 AS col1 FROM tab2
----
693
NULL
693
NULL
693
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3169
SELECT - CAST( col2 AS SIGNED ) DIV + ( 34 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT - CAST ( col2 AS INTEGER ) / + ( 34 ) FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT 56 * + COUNT( * ) AS col2 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT 56 * + COUNT ( * ) AS col2 FROM tab0
----
168

query I rowsort
SELECT - col1 + + col1 FROM tab2 WHERE NOT - - col1 >= 56 * + ( + col0 )
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * + ( - + 49 ) FROM tab2 AS cor0
----
1127
1960
2842

query I rowsort
SELECT + - 93 * - - ( - - col2 ) * 4 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND col0 * 16 + - CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND col0 * 16 + - CAST ( - - col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3175
SELECT DISTINCT - COUNT( * ), + 80 * + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE + - col2 + - ( + + 72 ) IS NOT NULL
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3175
SELECT DISTINCT - COUNT ( * ), + 80 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE + - col2 + - ( + + 72 ) IS NOT NULL
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT ALL - - SUM( ALL - + ( 7 ) ) AS col1, MIN( DISTINCT 94 ) AS col0 FROM tab2 AS cor0
----
-21
94

skipif mysql # not compatible
query II rowsort label-3177
SELECT ALL - - SUM ( ALL - + ( 7 ) ) AS col1, MIN ( DISTINCT 94 ) AS col0 FROM tab2 AS cor0
----
-21
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col2 * col0 + + 52 AS col1, 63 + - 83 FROM tab2 AS cor0
----
-1006
-20
-2508
-20
-4298
-20

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query II rowsort
SELECT + - col1 AS col2, 38 AS col1 FROM tab2 AS cor0
----
-51
38
-67
38
-77
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( col1 )
----

query I rowsort
SELECT - 76 + + col2 + + col2 FROM tab1
----
116
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT 92 + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3184
SELECT 92 + COUNT ( * ) FROM tab0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3185
SELECT DISTINCT 29 + - - COUNT( * ), CAST( + 46 AS SIGNED ) AS col2 FROM tab2
----
32
46

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT 29 + - - COUNT ( * ), CAST ( + 46 AS INTEGER ) AS col2 FROM tab2
----
32
46

query II rowsort
SELECT + col0 + - col1, + col1 AS col1 FROM tab2
----
-13
77
-5
51
8
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT ALL ( - col1 ) DIV + 52 + + col2 - - - col0 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL ( - col1 ) / + 52 + + col2 - - - col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL - 52 * - col1 FROM tab1 AS cor0 WHERE 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3189
SELECT ALL - ( + - col1 ) AS col1, 58 / + + col2 * + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( - - col0 AS SIGNED ), + col1, + 98 * + 87 * - col0 )
----

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL - ( + - col1 ) AS col1, 58 / + + col2 * + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - - col0 AS INTEGER ), + col1, + 98 * + 87 * - col0 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL - col1 * + + 6 - + 90, col0 AS col0 FROM tab1
----
-120
85
-174
51
-372
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3192
SELECT DISTINCT COUNT( * ), + SUM( 16 ) AS col0 FROM tab1
----
3
48

skipif mysql # not compatible
query II rowsort label-3192
SELECT DISTINCT COUNT ( * ), + SUM ( 16 ) AS col0 FROM tab1
----
3
48

query I rowsort
SELECT ALL + 98 * + 0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 11 + + - col2
----

query II rowsort
SELECT ALL + 54 AS col2, 39 + + col2 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
54
15
54
16
54
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3196
SELECT SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 72 col0, 36 AS col1 FROM tab1 AS cor0
----
72
36
72
36
72
36

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL MAX( ALL col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL MAX ( ALL col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT + 14 * - col2 FROM tab1
----
-1344
-826
-952

query I rowsort
SELECT DISTINCT + ( + col2 ) * - + col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND - - ( + - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL - col1 FROM tab0 WHERE NOT CAST( - 75 AS SIGNED ) * + + col1 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - col1 FROM tab0 WHERE NOT CAST ( - 75 AS INTEGER ) * + + col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT + COUNT( * ), - ( - + MIN( col1 ) ) AS col0 FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-3204
SELECT + COUNT ( * ), - ( - + MIN ( col1 ) ) AS col0 FROM tab2
----
3
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT - col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3206
SELECT ALL + col0 DIV CAST( - col2 AS SIGNED ) * - ( + + 71 ) AS col1 FROM tab1
----
0
71
71

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + col0 / CAST ( - col2 AS INTEGER ) * - ( + + 71 ) AS col1 FROM tab1
----
0
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + 47 * + - SUM( col0 ) AS col1 FROM tab2
----
-8695

skipif mysql # not compatible
query I rowsort label-3207
SELECT + 47 * + - SUM ( col0 ) AS col1 FROM tab2
----
-8695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL + + CAST( NULL AS SIGNED ) * 13 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + + CAST ( NULL AS INTEGER ) * 13 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3209
SELECT DISTINCT - CAST( - MAX( ALL - col0 ) AS SIGNED ) DIV + - ( - MIN( ALL col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - CAST ( - MAX ( ALL - col0 ) AS INTEGER ) / + - ( - MIN ( ALL col1 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3210
SELECT - CAST( NULL AS DECIMAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT - CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT * FROM tab0 WHERE col2 * col1 < + - CAST( - 81 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3212
SELECT * FROM tab0 WHERE col2 * col1 < + - CAST ( - 81 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT MAX( - + col0 ) + + SUM( DISTINCT col2 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT MAX ( - + col0 ) + + SUM ( DISTINCT col2 ) FROM tab2
----
75

query I rowsort
SELECT - col2 + - + 55 + + col2 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ( 88 ) * - ( col1 ) * - col0 + - - col1 * - ( col2 ) FROM tab1 AS cor0
----
37105
373180
61488

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( * ) * + 82 AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( * ) * + 82 AS col2 FROM tab0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT + CAST( - + col2 AS SIGNED ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3217
SELECT + CAST ( - + col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3218
SELECT DISTINCT - col1 AS col2, - CAST( col2 AS SIGNED ) * ( col1 ) FROM tab2 WHERE NOT col2 * + 95 + ( 37 ) < + col0 + + col0
----
-51
-1173
-67
-3886
-77
-3080

skipif mysql # not compatible
query II rowsort label-3218
SELECT DISTINCT - col1 AS col2, - CAST ( col2 AS INTEGER ) * ( col1 ) FROM tab2 WHERE NOT col2 * + 95 + ( 37 ) < + col0 + + col0
----
-51
-1173
-67
-3886
-77
-3080

query II rowsort
SELECT col2 AS col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL < + - 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL + 81 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + 81 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT + + 79 + COUNT( * ) + - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + + 79 + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - 2 * 15 * - - col2 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + COUNT( * ) * - 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-3224
SELECT + COUNT ( * ) * - 71 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + MAX( DISTINCT + 53 ) AS col1 FROM tab1 WHERE NOT + col1 <= - + col0
----
53

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + MAX ( DISTINCT + 53 ) AS col1 FROM tab1 WHERE NOT + col1 <= - + col0
----
53

query I rowsort
SELECT - - 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT - ( COUNT( * ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - ( COUNT ( * ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - SUM( DISTINCT - ( - + 13 ) ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3228
SELECT - SUM ( DISTINCT - ( - + 13 ) ) AS col0 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3229
SELECT + + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - ( + 11 ) AS col1 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - ( 47 ) DIV - col0 ) BETWEEN NULL AND - col0 + + col0
----
1

skipif mysql # not compatible
query I rowsort label-3232
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - ( 47 ) / - col0 ) BETWEEN NULL AND - col0 + + col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL MIN( ALL col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL MIN ( ALL col2 ) AS col1 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col2 col1 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT ALL + col0, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ( + 58 ) + + COUNT( * ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3236
SELECT ( + 58 ) + + COUNT ( * ) FROM tab1 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - SUM( - 57 ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - SUM ( - 57 ) FROM tab0 AS cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 AS col1 FROM tab0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 63 * - COUNT( * ) AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 63 * - COUNT ( * ) AS col2 FROM tab0
----
189

query I rowsort
SELECT + 10 FROM tab0 WHERE 60 * - col0 / - col0 IN ( col1, col2, + col0, - col2, + ( - 90 ) * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 / + - col2 IS NULL
----

query I rowsort
SELECT ALL + + 45 + - col2 * 82 + - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3728
-754
-8072

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT ALL + COUNT( * ), + 81 AS col0 FROM tab2 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL + COUNT ( * ), + 81 AS col0 FROM tab2 AS cor0
----
3
81

query I rowsort
SELECT ALL - col0 + - col0 FROM tab2 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - 93 + - 81 * + + col2 - + ( + 58 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - col0 - + - 59 + + 84 + 11 FROM tab0 AS cor0
----
139
57
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT DISTINCT + 35 * COUNT( * ) + + - 74 * + 97 * CAST( + 46 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-330083

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + 35 * COUNT ( * ) + + - 74 * + 97 * CAST ( + 46 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-330083

query I rowsort
SELECT ALL + ( - + col1 ) * 47 - col0 * - - col1 * - ( - ( + ( - col1 ) ) ) FROM tab2 AS cor0
----
117249
333526
375837

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + 36 BETWEEN + 65 * - 74 + - col2 AND - 88 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - 36 + + COUNT( - 14 ) + + - 28 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 36 + + COUNT ( - 14 ) + + - 28 FROM tab2
----
-61

query I rowsort
SELECT - col2 + - + 43 * + - col2 AS col0 FROM tab0
----
1974
4158
420

query I rowsort
SELECT DISTINCT 78 * - 38 * + col2 + 75 FROM tab0
----
-139233
-293361
-29565

query I rowsort
SELECT - col1 * - 67 + - 57 AS col2 FROM tab1
----
278
3092
881

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT - - col1 ) FROM tab0
----
3

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab0 WHERE NOT - col0 <> - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL 64 + - COUNT( 19 ) col1 FROM tab2
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT ALL 64 + - COUNT ( 19 ) col1 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT MAX( + col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT MAX ( + col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL - + MIN( DISTINCT - col0 ) * + 96 AS col2 FROM tab1 cor0
----
8736

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - + MIN ( DISTINCT - col0 ) * + 96 AS col2 FROM tab1 cor0
----
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col1 col0, 98 FROM tab2 AS cor0
----
2346
98
4928
98
5025
98

query II rowsort
SELECT ALL - 71, + col2 * col2 * + 13 AS col1 FROM tab0
----
-71
127413
-71
1300
-71
28717

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT SUM( DISTINCT 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT SUM ( DISTINCT 3 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col0, ( + - col1 ) AS col0 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT COUNT( ALL - 64 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT COUNT ( ALL - 64 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 = - - 15 / - - col0 * col2 + + - col0 - + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT ALL 87 * - - col0 DIV + col0 FROM tab0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL 87 * - - col0 / + col0 FROM tab0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT IN ( col1, + col2 )
----

query I rowsort
SELECT ALL + col2 + + + 53 AS col1 FROM tab2
----
111
76
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3274
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + 64 + - + CAST( NULL AS SIGNED ) AND + col1 - + - col0
----

skipif mysql # not compatible
query III rowsort label-3274
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + 64 + - + CAST ( NULL AS INTEGER ) AND + col1 - + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - - col2 = - 34
----

query I rowsort
SELECT ALL ( 22 ) + + col0 AS col0 FROM tab1
----
107
113
73

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT - 98 * - 17 + + 22 * + col2 * - 32 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + col2 + - col1 + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT + 60 * + - 28 * + ( - + CAST( + + col2 AS SIGNED ) ) + + col2 FROM tab2 AS cor0
----
38663
67240
97498

skipif mysql # not compatible
query I rowsort label-3279
SELECT + 60 * + - 28 * + ( - + CAST ( + + col2 AS INTEGER ) ) + + col2 FROM tab2 AS cor0
----
38663
67240
97498

query I rowsort
SELECT DISTINCT col2 * + 38 + - col2 * - col0 - + 11 FROM tab1 AS cor0
----
7246
8533
8761

query I rowsort
SELECT DISTINCT col1 * - col2 + col0 AS col1 FROM tab0
----
-123
-2
-3792

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT - 17 * - - col0 + + col2 * - ( + 16 ) AS col1 FROM tab0
----
-1007
-1639
-3233

query I rowsort
SELECT - col0 + - - ( + - col0 ) AS col2 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT ALL 21 * + col2 * + col2 * + col0 - + col0 - + - col0 FROM tab0 AS cor0
----
182700
19964637
695835

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= col1 * 36
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3287
SELECT DISTINCT + col0 * + col0 - + col0 + - 59 + + 22 DIV 22 + col1 * - col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
1148
51
4936
91
6787
85

skipif mysql # not compatible
query II rowsort label-3287
SELECT DISTINCT + col0 * + col0 - + col0 + - 59 + + 22 / 22 + col1 * - col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
1148
51
4936
91
6787
85

query I rowsort
SELECT + 94 * 16 FROM tab2 AS cor0
----
1504
1504
1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL 92 + + CAST( + col1 AS SIGNED ) + - col0 * + 76 * 43 * col2 + - + 56 AS col1 FROM tab2
----
-14215697
-3457457
-8365967

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL 92 + + CAST ( + col1 AS INTEGER ) + - col0 * + 76 * 43 * col2 + - + 56 AS col1 FROM tab2
----
-14215697
-3457457
-8365967

query I rowsort
SELECT ( + 78 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT col1 - - - 81 FROM tab2
----
-14
-30
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL CAST( 82 AS SIGNED ) + 95 FROM tab0
----
177
177
177

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL CAST ( 82 AS INTEGER ) + 95 FROM tab0
----
177
177
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT 64 DIV ( - col2 ) * + + col2 * + col1 AS col0 FROM tab2
----
-2346
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3293
SELECT 64 / ( - col2 ) * + + col2 * + col1 AS col0 FROM tab2
----
-2346
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3294
SELECT ALL - CAST( NULL AS DECIMAL ) * SUM( ALL - 39 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - CAST ( NULL AS REAL ) * SUM ( ALL - 39 ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT col0 DIV - 79 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT col0 / - 79 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 92
----

query II rowsort
SELECT 1, - 47 AS col2 FROM tab1 AS cor0
----
1
-47
1
-47
1
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 45 + + 39 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3299
SELECT ALL - 84 DIV col1 + - col0 * col0 AS col2, col1 col2 FROM tab1 cor0
----
-2607
14
-7241
5
-8282
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3299
SELECT ALL - 84 / col1 + - col0 * col0 AS col2, col1 col2 FROM tab1 cor0
----
-2607
14
-7241
5
-8282
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + - col2 * - 70 + - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT col2 * - 29, + 87 AS col2 FROM tab1 AS cor0
----
-1711
87
-1972
87
-2784
87

query II rowsort
SELECT ALL - ( - col1 ), + 5 + + + col2 * 59 * - col1 AS col2 FROM tab1 AS cor0
----
14
-79291
47
-188559
5
-17400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT - SUM( + col2 ) DIV - 47 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3304
SELECT - SUM ( + col2 ) / - 47 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - 58 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 AS col2 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT + col0 AS col0, col2 * 21 FROM tab1
----
51
2016
85
1239
91
1428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT + MIN( ALL + col0 ) + - + 44 - + ( + + COUNT( * ) ) * - COUNT( * ) DIV COUNT( * ) + - 47 AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-3311
SELECT + MIN ( ALL + col0 ) + - + 44 - + ( + + COUNT ( * ) ) * - COUNT ( * ) / COUNT ( * ) + - 47 AS col2 FROM tab0 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3314
SELECT ALL + + 12 AS col2, ( + - col1 ) DIV - + col0 + + col2 AS col2 FROM tab1 cor0
----
12
59
12
68
12
96

skipif mysql # not compatible
query II rowsort label-3314
SELECT ALL + + 12 AS col2, ( + - col1 ) / - + col0 + + col2 AS col2 FROM tab1 cor0
----
12
59
12
68
12
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT + 6 * + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = 23
----
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + 6 * + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = 23
----
0

query II rowsort
SELECT ALL + 0 + + + col0, + col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - col2 * + + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col1 + + col1 * - 8 * col2 - + col0 AS col0 FROM tab0
----
-1788
-30552
-890

query I rowsort
SELECT DISTINCT col2 - - col1 - col2 AS col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT + 5 - - + ( + col1 ) DIV + + 25 FROM tab1 AS cor0
----
5
5
6

skipif mysql # not compatible
query I rowsort label-3320
SELECT + 5 - - + ( + col1 ) / + + 25 FROM tab1 AS cor0
----
5
5
6

query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT + COUNT( * ) * + COUNT( * ) + + ( + - ( 3 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3322
SELECT + COUNT ( * ) * + COUNT ( * ) + + ( + - ( 3 ) ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 76 - col0 AS col0 FROM tab2 AS cor0
----
1
12
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT CAST( - col2 AS SIGNED ) + - - CAST( + + col1 AS SIGNED ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-3324
SELECT CAST ( - col2 AS INTEGER ) + - - CAST ( + + col1 AS INTEGER ) FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT COUNT( * ) * - 81 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( * ) * - 81 FROM tab1
----
-243

query II rowsort
SELECT + col0, - 40 FROM tab2
----
46
-40
64
-40
75
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3327
SELECT CAST( NULL AS DECIMAL ) * - 13 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT CAST ( NULL AS REAL ) * - 13 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2
----
-43

query II rowsort
SELECT DISTINCT col1 * col0 * + + col1, col1 AS col1 FROM tab1
----
201019
47
2125
5
9996
14

query I rowsort
SELECT + - 86 * 58 + - ( col1 ) FROM tab1 AS cor0
----
-4993
-5002
-5035

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT + 51 + + COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 + + 14 * - col0 - - - col1 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + 51 + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 + + 14 * - col0 - - - col1 IS NULL
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT DISTINCT COUNT( * ) * - - 98 DIV - 49 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT COUNT ( * ) * - - 98 / - 49 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT - col1 * - - col0 * - col1 AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT + - 18 DIV + 10 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + - 18 / + 10 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3335
SELECT ALL - - ( - col2 ) * + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - - ( - col2 ) * + - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT COUNT( * ) * + 38 * - - MAX( DISTINCT 87 ) FROM tab2
----
9918

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT COUNT ( * ) * + 38 * - - MAX ( DISTINCT 87 ) FROM tab2
----
9918

query I rowsort
SELECT + 74 + - 32 AS col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ( - col0 ) + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 col2, 84 AS col1 FROM tab1 AS cor0
----
55
84
55
84
55
84

onlyif mysql # DIV for integer division: 
query II rowsort label-3340
SELECT DISTINCT col2 DIV + - 27, - 33 * + 15 AS col2 FROM tab2 AS cor0
----
-1
-495
-2
-495
0
-495

skipif mysql # not compatible
query II rowsort label-3340
SELECT DISTINCT col2 / + - 27, - 33 * + 15 AS col2 FROM tab2 AS cor0
----
-1
-495
-2
-495
0
-495

query II rowsort
SELECT - + col0 + + col2 AS col0, + 54 FROM tab0 cor0
----
-77
54
2
54
32
54

query I rowsort
SELECT 2 * - + 28 + - 23 AS col0 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + 27 * + 98 FROM tab1
----
2646
2646
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT + ( - MIN( + - 19 ) ) AS col0, 20 FROM tab1
----
19
20

skipif mysql # not compatible
query II rowsort label-3344
SELECT + ( - MIN ( + - 19 ) ) AS col0, 20 FROM tab1
----
19
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT MIN( col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3345
SELECT MIN ( col2 ) AS col2 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL + 45 + + col0 - - col2 DIV - 4 FROM tab1
----
116
119
72

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + 45 + + col0 - - col2 / - 4 FROM tab1
----
116
119
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT 99, - COUNT( * ) DIV ( - COUNT( * ) ) DIV + COUNT( * ) * COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
99
0

skipif mysql # not compatible
query II rowsort label-3347
SELECT 99, - COUNT ( * ) / ( - COUNT ( * ) ) / + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3348
SELECT ALL + col0 col1, + CAST( col1 AS SIGNED ) FROM tab0 WHERE - 92 - - 83 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3348
SELECT ALL + col0 col1, + CAST ( col1 AS INTEGER ) FROM tab0 WHERE - 92 - - 83 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col1 col2, + col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL + - col1 + + col2 + + col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + 95 - - ( COUNT( * ) ) col1 FROM tab2 cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3351
SELECT + 95 - - ( COUNT ( * ) ) col1 FROM tab2 cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( - - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 cor0 WHERE NOT + ( - col1 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE col2 >= col0 / - + 77 + + ( - 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT DISTINCT ( - CAST( col2 AS SIGNED ) ) + ( 0 ) + - - 3 AS col0 FROM tab0
----
-44
-7
-96

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT ( - CAST ( col2 AS INTEGER ) ) + ( 0 ) + - - 3 AS col0 FROM tab0
----
-44
-7
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - MAX( DISTINCT 33 ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - MAX ( DISTINCT 33 ) AS col0 FROM tab0
----
-33

query II rowsort
SELECT col0 AS col1, col1 + + 34 FROM tab2
----
46
85
64
111
75
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT 65 - + MAX( DISTINCT - 96 ) * - - COUNT( * ) FROM tab2 AS cor0
----
353

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT 65 - + MAX ( DISTINCT - 96 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
353

query I rowsort
SELECT - 40 FROM tab2 AS cor0 WHERE - 16 IS NOT NULL
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3360
SELECT - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3361
SELECT + col1, col2 DIV + col0 FROM tab1 AS cor0
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3361
SELECT + col1, col2 / + col0 FROM tab1 AS cor0
----
14
1
47
0
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT DISTINCT + MAX( - CAST( ( - 61 ) AS SIGNED ) ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT + MAX ( - CAST ( ( - 61 ) AS INTEGER ) ) FROM tab0 AS cor0
----
61

query II rowsort
SELECT + 64, + 0 + - col0 AS col2 FROM tab2 AS cor0
----
64
-46
64
-64
64
-75

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT + 11 * - - COUNT( * ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + 11 * - - COUNT ( * ) AS col1 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + 77 * - COUNT( * ) + - + ( + + 85 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-778

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 77 * - COUNT ( * ) + - + ( + + 85 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-778

query I rowsort
SELECT ALL 20 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - 16 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 40 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT col2 DIV - - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT col2 / - - col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT DISTINCT + + col2 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3372
SELECT DISTINCT + + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + + COUNT( ALL - + col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT + + COUNT ( ALL - + col1 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + - 42 + - col1 FROM tab2 AS cor0 WHERE NOT 56 <= + col1
----
-93

query III rowsort
SELECT * FROM tab2 WHERE - 35 / col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 75 + - col1 AS col1 FROM tab0
----
-6
54
74

query I rowsort
SELECT - 43 + col1 AS col2 FROM tab2
----
24
34
8

query I rowsort
SELECT - col2 + + + col0 + + col0 + 58 + col2 * - - 19 FROM tab0
----
2034
412
934

query I rowsort
SELECT DISTINCT 45 + col0 AS col0 FROM tab1
----
130
136
96

query I rowsort
SELECT DISTINCT - col2 * + col0 / col1 + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 - - col1 + - - col0 + + 45 AS col1 FROM tab2
----
112
122
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3382
SELECT + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 cor0 WHERE NOT - col2 + + - col1 * - ( - ( + - col2 ) ) IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 7 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + - col0 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 2 * + MAX( ALL + 23 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3387
SELECT 2 * + MAX ( ALL + 23 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 24 / - 81 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + 97 + + 30 * - COUNT( * ) FROM tab0 WHERE NOT col2 = + col1
----
7

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 97 + + 30 * - COUNT ( * ) FROM tab0 WHERE NOT col2 = + col1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 98 AS col2 FROM tab0
----
10
-98
47
-98
99
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT SUM( - 70 ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-3391
SELECT SUM ( - 70 ) FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT COUNT( * ) * MAX( + col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3392
SELECT COUNT ( * ) * MAX ( + col0 ) FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT SUM( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3393
SELECT SUM ( ALL - col2 ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT DISTINCT col0 * 70 * - col2 * + - CAST( col1 AS SIGNED ) FROM tab0
----
1278900
3997350
672210

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT col0 * 70 * - col2 * + - CAST ( col1 AS INTEGER ) FROM tab0
----
1278900
3997350
672210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT + COUNT( * ) DIV + 52 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT + COUNT ( * ) / + 52 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 37 col2 FROM tab1 cor0
----
-2183
-2516
-3552

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - ( 37 ) NOT IN ( + - col2 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab1 WHERE NOT ( 74 / + col1 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT 5 + MIN( + col2 + + col0 ) FROM tab1
----
149

skipif mysql # not compatible
query I rowsort label-3399
SELECT 5 + MIN ( + col2 + + col0 ) FROM tab1
----
149

query I rowsort
SELECT ALL col2 * + 41 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3401
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + 50 NOT BETWEEN + CAST( NULL AS SIGNED ) AND 18
----

skipif mysql # not compatible
query III rowsort label-3401
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + 50 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT 73 + - MIN( + col0 - col0 ) / - MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT 73 + - MIN ( + col0 - col0 ) / - MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT 11 * COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3403
SELECT 11 * COUNT ( * ) FROM tab2
----
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 95 BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT 17 * + col1 FROM tab1
----
238
799
85

query I rowsort
SELECT - col0 * 63 FROM tab0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL COUNT( * ) * + MIN( + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL COUNT ( * ) * + MIN ( + col1 ) FROM tab1
----
15

query I rowsort
SELECT - 94 FROM tab1 WHERE NOT ( col1 ) IN ( col1 )
----

query I rowsort
SELECT 71 FROM tab2 WHERE NULL IS NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT col2 + + 35 * ( col0 ) FROM tab0 WHERE CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN + col1 / col2 AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3411
SELECT col2 + + 35 * ( col0 ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN + col1 / col2 AND ( + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 3 * + 25 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT + 93 * 8 AS col0 FROM tab0
----
744
744
744

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + COUNT( * ) + 77 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-3415
SELECT + COUNT ( * ) + 77 FROM tab1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col1 FROM tab1
----
78

query I rowsort
SELECT - col2 * 33 AS col2 FROM tab1
----
-1947
-2244
-3168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( - CAST( - col2 AS SIGNED ) ) BETWEEN col1 AND ( - ( - col2 ) )
----
15
87

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( - CAST ( - col2 AS INTEGER ) ) BETWEEN col1 AND ( - ( - col2 ) )
----
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - SUM( ALL - ( - 83 ) ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3421
SELECT - SUM ( ALL - ( - 83 ) ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 52 + col1 FROM tab0
----
133
53
73

query I rowsort
SELECT DISTINCT - 80 * col1 FROM tab1 WHERE NOT col1 / 68 NOT IN ( - 77 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + col1 DIV col1 + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-3424
SELECT + col1 / col1 + col2 FROM tab2
----
24
41
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> + 66
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 92 * + col1 + 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 44 AS col2 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT col2 * + ( - ( 85 ) ) AS col2 FROM tab2 WHERE NOT col2 BETWEEN + col0 * col1 AND NULL
----
-1955
-3400
-4930

query I rowsort
SELECT + 2 * - col2 AS col1 FROM tab0 WHERE NOT - col1 < 22 + col1 / 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT - col1 NOT BETWEEN ( - 60 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT - col1 NOT BETWEEN ( - 60 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + - col2 ) >= ( col2 )
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3432
SELECT MAX ( col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL + 80 - col0 FROM tab2
----
16
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL + COUNT( * ) + 72 AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + COUNT ( * ) + 72 AS col0 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT - col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT - col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - 13 AS col2 FROM tab1 cor0
----
-18
-27
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 - col1 * 85 col0 FROM tab0 AS cor0
----
-1745
-45
-6845

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0 AS cor0 WHERE + 68 - + 69 BETWEEN ( 58 ) AND + 93
----

query I rowsort
SELECT + col0 + col0 * ( - 48 + + col2 ) FROM tab2 AS cor0
----
-1104
-448
825

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT col1 + col0 DIV - col1 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-3440
SELECT col1 + col0 / - col1 FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3441
SELECT - CAST( NULL AS DECIMAL ) + ( SUM( - col0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT - CAST ( NULL AS REAL ) + ( SUM ( - col0 ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 82 - + col0 * - col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
2683
7307
8363

query I rowsort
SELECT DISTINCT - ( ( ( ( col2 ) ) ) ) * + col1 FROM tab2 WHERE NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT 3 + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT 3 + - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT ALL 75 DIV + 30 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 75 / + 30 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + 28 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-252

skipif mysql # not compatible
query I rowsort label-3446
SELECT + 28 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-252

query I rowsort
SELECT - 10 * col1 AS col2 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3448
SELECT col2 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3448
SELECT col2 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - + SUM( ALL - ( + 6 ) ) col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3449
SELECT DISTINCT - + SUM ( ALL - ( + 6 ) ) col0 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT + 52 * + 23 FROM tab1 AS cor0 WHERE NOT + col0 * 61 > CAST( + col2 AS SIGNED ) / - col0
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT + 52 * + 23 FROM tab1 AS cor0 WHERE NOT + col0 * 61 > CAST ( + col2 AS INTEGER ) / - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - ( - col0 ) ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL 14 + + COUNT( * ) FROM tab0 WHERE NOT col0 + 70 < NULL
----
14

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL 14 + + COUNT ( * ) FROM tab0 WHERE NOT col0 + 70 < NULL
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN col1 * + 88 AND ( - col2 )
----

query I rowsort
SELECT ALL + ( + 10 ) AS col2 FROM tab2
----
10
10
10

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT 12 + ( col0 + col0 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT - SUM( + col1 ) AS col1 FROM tab0 WHERE NOT ( - col1 - + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT - SUM ( + col1 ) AS col1 FROM tab0 WHERE NOT ( - col1 - + col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( 2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT COUNT( * ) + - AVG ( - 22 + - col2 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT COUNT ( * ) + - AVG ( - 22 + - col2 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT SUM( col2 ) + 99 col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT SUM ( col2 ) + 99 col2 FROM tab0 AS cor0
----
255

query I rowsort
SELECT + col0 + - - col0 * + 68 AS col2 FROM tab0 AS cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL = ( - 29 * col2 + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL = ( - 29 * col2 + 76 )
----
0

query II rowsort
SELECT - col0 AS col1, 70 * - col0 + col1 AS col2 FROM tab0
----
-15
-969
-87
-6069
-97
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + MAX( DISTINCT 79 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-3463
SELECT + MAX ( DISTINCT 79 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT DISTINCT col2 + - - col1 + - - col1 FROM tab2
----
125
192
194

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3466
SELECT + 54 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL = - 63 * + CAST( NULL AS DECIMAL ) * col0 + col0
----

skipif mysql # not compatible
query I rowsort label-3466
SELECT + 54 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL = - 63 * + CAST ( NULL AS REAL ) * col0 + col0
----

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab2 AS cor0 WHERE NOT + col1 / + 45 IS NULL
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT + - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + COUNT( * ) * - 99 AS col0 FROM tab0 AS cor0 WHERE 45 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT + COUNT ( * ) * - 99 AS col0 FROM tab0 AS cor0 WHERE 45 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL MIN( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col2 * - col2 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL MIN ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col2 * - col2 IS NULL
----
23

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE col1 BETWEEN ( col0 ) * 60 AND 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT CAST( + 33 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + col1 + ( - col1 ) * + col1 IS NOT NULL
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3472
SELECT CAST ( + 33 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + col1 + ( - col1 ) * + col1 IS NOT NULL
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MAX( - col0 ) / - AVG ( 32 / 91 + 39 ) col0 FROM tab1 WHERE NOT col2 NOT BETWEEN 73 * 67 + - ( - 94 + + col2 ) * + 75 AND col2 AND NOT col1 * ( - 67 * 18 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3473
SELECT MAX ( - col0 ) / - AVG ( 32 / 91 + 39 ) col0 FROM tab1 WHERE NOT col2 NOT BETWEEN 73 * 67 + - ( - 94 + + col2 ) * + 75 AND col2 AND NOT col1 * ( - 67 * 18 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT ALL col2 + - - col0 + + col2 - - col0 * CAST( col2 AS SIGNED ) FROM tab2
----
1150
2704
4541

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL col2 + - - col0 + + col2 - - col0 * CAST ( col2 AS INTEGER ) FROM tab2
----
1150
2704
4541

query I rowsort
SELECT ( + - 46 ) + - + col1 AS col0 FROM tab2
----
-113
-123
-97

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - col0 + - + col1 AS col1 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT + 36 FROM tab2 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL 84 + + + 25 AS col2 FROM tab0
----
109
109
109

query I rowsort
SELECT DISTINCT - 6 + - col2 * - col2 FROM tab1
----
3475
4618
9210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL 51 + + col2 + + - col2 * + col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL 51 + + col2 + + - col2 * + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL - col2 * CAST( - 1 AS SIGNED ) - - 52 FROM tab2
----
110
75
92

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - col2 * CAST ( - 1 AS INTEGER ) - - 52 FROM tab2
----
110
75
92

query II rowsort
SELECT ALL - 40 - + col1 AS col2, - col1 FROM tab2 AS cor0
----
-107
-67
-117
-77
-91
-51

query I rowsort
SELECT - 79 FROM tab0 AS cor0 WHERE col1 + + + 45 / - + col0 <> - col2
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 1 AND ( col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + 45 + 58 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IN ( - + col2 )
----
45

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 45 + 58 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IN ( - + col2 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT - CAST( + - col2 AS SIGNED ) * - col1 AS col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3488
SELECT - CAST ( + - col2 AS INTEGER ) * - col1 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL MAX( + col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL MAX ( + col0 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND + 36
----
1

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND + 36
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 * 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - - col1 * - col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT DISTINCT col2 DIV + + 14 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT col2 / + + 14 FROM tab0
----
0
3
7

query II rowsort
SELECT DISTINCT col1 AS col2, col1 * + - col2 AS col1 FROM tab2
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT + col2 AS col2, + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( 89 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT - MAX( + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - MAX ( + col2 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3498
SELECT * FROM tab2 WHERE NOT - CAST( 50 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3498
SELECT * FROM tab2 WHERE NOT - CAST ( 50 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col0 * ( + + col0 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT CAST( NULL AS SIGNED ) + - 77 * + SUM( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE - col1 * col0 IN ( col0 + - + col0 - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT CAST ( NULL AS INTEGER ) + - 77 * + SUM ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE - col1 * col0 IN ( col0 + - + col0 - - col0 )
----
NULL

query II rowsort
SELECT ALL - col0, 23 * + - col0 * 48 * - col1 AS col0 FROM tab1 AS cor0
----
-51
788256
-85
469200
-91
4721808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 col2, + 0 * + + col0 FROM tab0 AS cor0
----
70
0
70
0
70
0

query I rowsort
SELECT col1 + - col0 * + + col1 AS col1 FROM tab1
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + MIN( ALL + ( + - col1 ) ) * MAX( - + 74 ) FROM tab1 cor0
----
3478

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + MIN ( ALL + ( + - col1 ) ) * MAX ( - + 74 ) FROM tab1 cor0
----
3478

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3505
SELECT - CAST( NULL AS SIGNED ) + 97, col1 AS col2, + - 44 * - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 41abda18145655ab02bd41600b6898cc

skipif mysql # not compatible
query III rowsort label-3505
SELECT - CAST ( NULL AS INTEGER ) + 97, col1 AS col2, + - 44 * - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 41abda18145655ab02bd41600b6898cc

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN col1 AND ( + col2 )
----

query I rowsort
SELECT - 85 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + MIN( + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3508
SELECT + MIN ( + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT 84 FROM tab1 AS cor0 WHERE col2 BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT - ( ( - 55 ) ) * - col1 * col2 FROM tab0 AS cor0
----
-11550
-209385
-5445

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT - col2 DIV - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-3511
SELECT - col2 / - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-46
-8
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT + CAST( NULL AS SIGNED ) / - 71 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT + CAST ( NULL AS INTEGER ) / - 71 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 72 * + 83 AS col0 FROM tab2
----
-5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL col1 + + ( + col2 ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL col1 + + ( + col2 ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + col1 * + + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) IN ( ( - 26 ), col0, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - - 34 + + col2 FROM tab1
----
1830
2949
3162

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 17 * - 50 > + + col1
----

query II rowsort
SELECT DISTINCT - + col0 AS col0, col2 + - col1 AS col1 FROM tab1 AS cor0
----
-51
82
-85
54
-91
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 + + 47 * - - 92 * + + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( * ) * + - ( 26 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-234

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( * ) * + - ( 26 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-234

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL - + SUM( ALL + 68 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT ALL - + SUM ( ALL + 68 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-612

query I rowsort
SELECT col1 * - col2 + + - 77 FROM tab0 cor0
----
-176
-287
-3884

query I rowsort
SELECT - + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( 73 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL + CAST( NULL AS SIGNED ) * 40 + + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + CAST ( NULL AS INTEGER ) * 40 + + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT ALL - COUNT( * ) DIV 37 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - COUNT ( * ) / 37 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col1 * + + 98 * col2 * - col2 FROM tab0 cor0
----
17535042
205800
960498

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT - 75 * - COUNT( * ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - 75 * - COUNT ( * ) FROM tab0 AS cor0
----
225

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - + 37 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3536
SELECT DISTINCT - CAST( - 17 AS SIGNED ) DIV 54 AS col0 FROM tab2 WHERE col2 * - col1 DIV - ( - CAST( col1 AS SIGNED ) ) * - 93 + col2 * + col0 + - col0 NOT IN ( + ( col1 ) * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) / 54 AS col0 FROM tab2 WHERE col2 * - col1 / - ( - CAST ( col1 AS INTEGER ) ) * - 93 + col2 * + col0 + - col0 NOT IN ( + ( col1 ) * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + MAX( col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT ALL + MAX ( col1 ) col2 FROM tab2
----
77

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT col1 * + - 84 FROM tab0
----
-1764
-6804
-84

query I rowsort
SELECT ALL 86 + - col1 AS col2 FROM tab0
----
5
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + COUNT( * ) * + COUNT( * ) + - + 94 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( * ) * + COUNT ( * ) + - + 94 FROM tab0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT ALL - - col2 DIV 84 * + - 52 DIV - col0 * + 75 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - - col2 / 84 * + - 52 / - col0 * + 75 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT ( col2 ) < + col2 * + + col2 + + col2
----

query I rowsort
SELECT ALL col1 + + 42 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 10
----

query I rowsort
SELECT - col0 + + + col1 * - + col2 FROM tab0 AS cor0
----
-196
-297
-3822

query II rowsort
SELECT ALL + + col0, + 23 AS col1 FROM tab2 AS cor0
----
46
23
64
23
75
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT SUM( DISTINCT - 17 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT SUM ( DISTINCT - 17 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-17

query III rowsort
SELECT col0 AS col2, - col0 AS col1, - col2 FROM tab0
----
9 values hashing to 17209a8828e86f90bc77d00cc91cbb41

query I rowsort
SELECT DISTINCT - + col2 - - 91 AS col0 FROM tab0 AS cor0
----
-8
44
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 44 + - 11 IS NOT NULL AND + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT col0 + + + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3553
SELECT col0 + + + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - col2 * + col2 + + col2 / - - 3 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - SUM( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - SUM ( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT 32 * - + 29 + + + col0 * 73 + col0 - 98 * + + col2 AS col1, col1 - col2 AS col2 FROM tab1 AS cor0
----
-420
-54
-6562
-82
-858
-21

query I rowsort
SELECT + 91 + - - col1 AS col1 FROM tab0
----
112
172
92

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( NOT + 3 * - 43 IS NULL )
----

query I rowsort
SELECT ALL + 0 * col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3560
SELECT * FROM tab1 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3560
SELECT * FROM tab1 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 86 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - 20 ) NOT BETWEEN - 82 + + + col0 AND - + col1
----

query I rowsort
SELECT DISTINCT + 7 * - 89 FROM tab1
----
-623

query I rowsort
SELECT + 26 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 * - 65 = NULL )
----

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - 1 * 57 + + 39 * - col0 FROM tab2 AS cor0
----
-1851
-2553
-2982

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT ALL + 40 AS col2, - MAX( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
40
5

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL + 40 AS col2, - MAX ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + - 48 + + COUNT( * ) col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT + - 48 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT + - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= ( + ( + - 76 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT - + col2 / - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - + col2 / - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT + COUNT( * ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3572
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT ALL - col2 * - 27, + col2 FROM tab1
----
1593
59
1836
68
2592
96

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + 16 AND ( + - ( col0 ) - + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ( + SUM( + col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3575
SELECT ( + SUM ( + col2 ) ) FROM tab0
----
156

query I rowsort
SELECT - + 52 * - 87 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 + + col2 AS col2, col0 FROM tab0 cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT - col0 + 29 + + col2 FROM tab0 AS cor0
----
-48
31
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col0 FROM tab1 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT col2 - + - 39 * col1 FROM tab1 AS cor0
----
1901
254
642

query I rowsort
SELECT ALL - col0 * - col2 + col1 AS col2 FROM tab1 cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL + + COUNT( DISTINCT 33 ) - + 63 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + + COUNT ( DISTINCT 33 ) - + 63 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL + - col2 - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT COUNT( DISTINCT col1 ) - + - 44 * + + 58 FROM tab2 AS cor0
----
2555

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT COUNT ( DISTINCT col1 ) - + - 44 * + + 58 FROM tab2 AS cor0
----
2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) / - 23 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) / - 23 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - 92 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3589
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3589
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT ALL 79, 90 AS col1 FROM tab1
----
79
90
79
90
79
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - 18 * - + COUNT( * ) + + + 43 FROM tab0 WHERE NOT - + col0 <> - + col1 * + 84
----
43

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - 18 * - + COUNT ( * ) + + + 43 FROM tab0 WHERE NOT - + col0 <> - + col1 * + 84
----
43

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 34 NOT IN ( - 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT ALL + col2 DIV - + col1 AS col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + col2 / - + col1 AS col2 FROM tab0
----
-99
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 49 + - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 WHERE NOT + + col2 IN ( col2, ( + - col0 ), 55, - - 39 * - col1 )
----

query I rowsort
SELECT + ( 67 ) * - 65 FROM tab2
----
-4355
-4355
-4355

query II rowsort
SELECT DISTINCT col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + col0 + - col1 FROM tab2 AS cor0 WHERE 67 IS NOT NULL
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

query II rowsort
SELECT - col1 AS col2, - col1 * - 57 AS col0 FROM tab2 AS cor0
----
-51
2907
-67
3819
-77
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT MAX( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3602
SELECT MAX ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL - + 50, col0 FROM tab0 AS cor0
----
-50
15
-50
87
-50
97

query I rowsort
SELECT + col2 * + col0 * + col1 FROM tab2 cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT - + SUM( - - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - + SUM ( - - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + col1 * - + col0 - - - col0 AS col2 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + MAX( + col1 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3607
SELECT + MAX ( + col1 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT - + col1 * 35 * - - col1 FROM tab0 AS cor0
----
-15435
-229635
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3610
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + + ( CAST( NULL AS SIGNED ) ) * + col1
----

skipif mysql # not compatible
query III rowsort label-3610
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + + ( CAST ( NULL AS INTEGER ) ) * + col1
----

query I rowsort
SELECT + 79 + + - col0 FROM tab1
----
-12
-6
28

query I rowsort
SELECT - col1 + + col2 + - col2 + - ( + col2 ) FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ALL - col2 + + col2 * - - col0 AS col1 FROM tab0
----
658
860
9504

query I rowsort
SELECT DISTINCT - 62 + - 62 AS col1 FROM tab2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL MIN ( col0 ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT ALL + col1 DIV - 82 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + col1 / - 82 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT - col2 * + 14 AS col2 FROM tab2 AS cor0 WHERE - col0 + + col2 * ( - CAST( NULL AS SIGNED ) ) * - + 62 IS NULL
----
-322
-560
-812

skipif mysql # not compatible
query I rowsort label-3617
SELECT - col2 * + 14 AS col2 FROM tab2 AS cor0 WHERE - col0 + + col2 * ( - CAST ( NULL AS INTEGER ) ) * - + 62 IS NULL
----
-322
-560
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT - col2 DIV - col0 col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT - col2 / - col0 col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col2 + - col1 * - ( - - 26 ) FROM tab1 AS cor0
----
1290
189
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT DISTINCT - SUM( ALL col1 ) DIV COUNT( * ) AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT - SUM ( ALL col1 ) / COUNT ( * ) AS col0 FROM tab0
----
-34

query I rowsort
SELECT 13 * col1 - + - col1 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - - COUNT( * ) * + - 53 - + 55 - + COUNT( * ) * - 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
161

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - - COUNT ( * ) * + - 53 - + 55 - + COUNT ( * ) * - 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + - ( 5 ) > + col1
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 * - col2 FROM tab2 cor0
----
-1196
-3120
-3944

query I rowsort
SELECT ALL - 76 - col0 AS col2 FROM tab1 AS cor0
----
-127
-161
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT + COUNT( - col0 ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3626
SELECT DISTINCT + COUNT ( - col0 ) col1 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NULL )
----

query II rowsort
SELECT ALL col2, 45 FROM tab1
----
59
45
68
45
96
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT DISTINCT - 61 DIV - 90 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - 61 / - 90 FROM tab1
----
0

query I rowsort
SELECT + 97 * - col2 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT 8 DIV - col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT 8 / - col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT col1 AS col1, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT 72 * - 24 AS col2 FROM tab1
----
-1728
-1728
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL - - MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL - - MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT MAX( + 91 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT MAX ( + 91 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT 45 AS col0, 47 FROM tab2
----
45
47
45
47
45
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT SUM( + + 25 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3637
SELECT SUM ( + + 25 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT 65 + - - 59 AS col1 FROM tab1
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3639
SELECT DISTINCT CAST( NULL AS SIGNED ), 36 AS col1 FROM tab0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT CAST ( NULL AS INTEGER ), 36 AS col1 FROM tab0
----
NULL
36

query I rowsort
SELECT ( 80 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3641
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) + + col1 - 55 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - col2 * CAST ( NULL AS REAL ) + + col1 - 55 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 94 FROM tab1 AS cor0
----
-2
26
35

query I rowsort
SELECT - - col2 + + col2 + col2 FROM tab2 cor0
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT - COUNT( * ) * - - SUM( DISTINCT + - col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - COUNT ( * ) * - - SUM ( DISTINCT + - col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
360

query II rowsort
SELECT DISTINCT - col1 AS col0, - 27 AS col1 FROM tab0 AS cor0
----
-1
-27
-21
-27
-81
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3646
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) * + 47 AND + - col2
----
1

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - CAST ( NULL AS REAL ) * + 47 AND + - col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3648
SELECT + COUNT( ALL + col2 ) col1, + CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3648
SELECT + COUNT ( ALL + col2 ) col1, + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT MIN( + - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3649
SELECT MIN ( + - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT COUNT( * ) * + MIN( ALL col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT ALL MAX( ALL + - CAST( NULL AS SIGNED ) ) + - - 10 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) + - - 10 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + ( + 73 ) * - 99 + + 17 * + - 53 * + + col1 FROM tab1 AS cor0
----
-11732
-19841
-49574

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0 + + - 43
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0 + + - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - COUNT( 87 ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT - COUNT ( 87 ) FROM tab1 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL - + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 58 <> NULL
----

query II rowsort
SELECT ALL col1 AS col2, + 73 * - 66 FROM tab1 AS cor0
----
14
-4818
47
-4818
5
-4818

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT 43 col0, 45 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
43
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3662
SELECT 43 col0, 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
43
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL 57 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 57 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
171

query I rowsort
SELECT DISTINCT 60 * col0 - + col1 FROM tab1 AS cor0
----
3046
5095
5413

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - COUNT( * ) * + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3666
SELECT SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT 91 DIV 27 FROM tab0 AS cor0 WHERE col0 + + 66 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT 91 / 27 FROM tab0 AS cor0 WHERE col0 + + 66 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + SUM( + 67 ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3668
SELECT + SUM ( + 67 ) FROM tab1 AS cor0
----
201

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 IN ( + col0 + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT COUNT( ALL + col1 ) * - COUNT( ALL - col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3671
SELECT COUNT ( ALL + col1 ) * - COUNT ( ALL - col2 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL - MAX( DISTINCT - + 54 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - MAX ( DISTINCT - + 54 ) AS col1 FROM tab1
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 78 IN ( + 39, - 21 / - - 32 + - - 33 + - col0, col2, 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL MAX( ALL + 15 ) * COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL MAX ( ALL + 15 ) * COUNT ( * ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT COUNT( * ) * + - COUNT( * ) * + COUNT( + col0 ) * 64 AS col2 FROM tab2
----
-1728

skipif mysql # not compatible
query I rowsort label-3675
SELECT COUNT ( * ) * + - COUNT ( * ) * + COUNT ( + col0 ) * 64 AS col2 FROM tab2
----
-1728

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 68
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 57 col1 FROM tab0
----
104
156
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 22 col1 FROM tab2
----
68
86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT DISTINCT + col0 + + + col2 DIV + + col0 AS col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + col0 + + + col2 / + + col0 AS col0 FROM tab1
----
52
85
91

query II rowsort
SELECT - col2 AS col0, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT 1 FROM tab0 AS cor0 WHERE 3 * + col1 * - + col2 NOT BETWEEN 39 AND + 54
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3685
SELECT + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT - 52 * + + ( + + MIN( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
-520

skipif mysql # not compatible
query I rowsort label-3686
SELECT - 52 * + + ( + + MIN ( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT - + 87 * - - COUNT( * ) + + 93 + + COUNT( * ) col1 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3687
SELECT - + 87 * - - COUNT ( * ) + + 93 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3689
SELECT DISTINCT - 42 * + 48 * col0, col1 DIV + col0 + 59 AS col1, - col0 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
9 values hashing to 62dee846e58adb8389e4d16c1ed183dd

skipif mysql # not compatible
query III rowsort label-3689
SELECT DISTINCT - 42 * + 48 * col0, col1 / + col0 + 59 AS col1, - col0 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
9 values hashing to 62dee846e58adb8389e4d16c1ed183dd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT CAST( + col2 AS SIGNED ) + - col2 * + 60 FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3690
SELECT CAST ( + col2 AS INTEGER ) + - col2 * + 60 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 62 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3692
SELECT CAST( NULL AS DECIMAL ) + + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT CAST ( NULL AS REAL ) + + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col0 = ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( * ) + + SUM( - 41 ) AS col0 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) + + SUM ( - 41 ) AS col0 FROM tab2
----
-120

query I rowsort
SELECT col1 + + col0 - + 92 * 99 AS col0 FROM tab1
----
-8970
-9018
-9043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT - 66 + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT - 66 + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT col2 AS col2, + col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3699
SELECT - - ( col0 ), - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * col2 - + 48 * 50 * - CAST( NULL AS DECIMAL ) + - + ( + col2 ) + col1 + - ( + - col0 )
----

skipif mysql # not compatible
query II rowsort label-3699
SELECT - - ( col0 ), - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * col2 - + 48 * 50 * - CAST ( NULL AS REAL ) + - + ( + col2 ) + col1 + - ( + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) + - + col0 + + col1 * 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 * - col1 <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 21 ) * + col0 col1 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT + ( + 58 ) AS col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - - 29 AS col2 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + - 69 FROM tab2 AS cor0 WHERE NULL <> - col2 * + col0 - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT - CAST( + - MIN( - col0 ) AS SIGNED ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3707
SELECT - CAST ( + - MIN ( - col0 ) AS INTEGER ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab1
----
11
11
11

query I rowsort
SELECT 92 * + col0 AS col1 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT ALL 60 * - 69 FROM tab2
----
-4140
-4140
-4140

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT ALL col0 FROM tab2 WHERE NULL <= + CAST( NULL AS SIGNED ) * 77
----

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL col0 FROM tab2 WHERE NULL <= + CAST ( NULL AS INTEGER ) * 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 col1, 90 + + 28 AS col0 FROM tab2
----
-82
118
-82
118
-82
118

query I rowsort
SELECT ALL 95 FROM tab1 WHERE NULL IS NULL
----
95
95
95

query I rowsort
SELECT ALL - 21 * - col1 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
1701
21
441

query II rowsort
SELECT - ( + ( - 30 ) ) AS col0, col2 FROM tab2 AS cor0
----
30
23
30
40
30
58

query I rowsort
SELECT 72 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE ( - 52 ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT MIN( ( + - col2 ) ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3720
SELECT MIN ( ( + - col2 ) ) AS col2 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - COUNT( + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - COUNT ( + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 col2 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + - 2 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 15 ) * + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT + COUNT( + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + COUNT ( + col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - + col2
----

query II rowsort
SELECT col0, - col2 + - col1 FROM tab0
----
15
-128
87
-31
97
-100

query I rowsort
SELECT DISTINCT col1 + + 26 FROM tab2
----
103
77
93

query I rowsort
SELECT ALL + 16 AS col1 FROM tab1 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT ALL - 6 + - + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - 6 + - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT 10 - col2 FROM tab2
----
-13
-30
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL + col2 - CAST( + ( + 27 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-17
20
72

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + col2 - CAST ( + ( + 27 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT COUNT( ALL + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3734
SELECT COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * + 91 AS col1 FROM tab2
----
2093
3640
5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + - 51 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + - 51 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - col1 * col0 BETWEEN - col1 * - col2 * col0 AND NULL
----

query II rowsort
SELECT DISTINCT - 58 * - 44 - + 19 * - ( + 69 ) * col2 * col1, col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 61 FROM tab2 cor0
----
-23
61
-40
61
-58
61

query II rowsort
SELECT ALL + col2 + + col0, + col0 + 15 AS col1 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
144
100
147
66
159
106

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - 21 DIV col2 + - + col1 * - - 51 FROM tab1 AS cor0
----
-2397
-255
-714

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 21 / col2 + - + col1 * - - 51 FROM tab1 AS cor0
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT ALL SUM( DISTINCT - 44 ), 94 AS col0 FROM tab0 AS cor0
----
-44
94

skipif mysql # not compatible
query II rowsort label-3744
SELECT ALL SUM ( DISTINCT - 44 ), 94 AS col0 FROM tab0 AS cor0
----
-44
94

query I rowsort
SELECT - 57 FROM tab2 AS cor0 WHERE NOT 77 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 87 + - col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL + ( - MAX( DISTINCT - - 33 ) ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + ( - MAX ( DISTINCT - - 33 ) ) AS col2 FROM tab1
----
-33

query I rowsort
SELECT col0 * - 67 AS col2 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL - col2 * - 4 + - CAST( ( - col2 ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - col2 * - 4 + - CAST ( ( - col2 ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 69 * - - col1 FROM tab1
----
3243
345
966

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3751
SELECT DISTINCT * FROM tab2 WHERE - 14 + + + col1 / - + 72 < CAST( NULL AS SIGNED ) - + 55 * + 11 * + - col2
----

skipif mysql # not compatible
query III rowsort label-3751
SELECT DISTINCT * FROM tab2 WHERE - 14 + + + col1 / - + 72 < CAST ( NULL AS INTEGER ) - + 55 * + 11 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT - CAST( NULL AS SIGNED ) + 57 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT - CAST ( NULL AS INTEGER ) + 57 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
20

query I rowsort
SELECT col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT ( - + MIN( + - ( - - CAST( + + 68 AS SIGNED ) ) ) ) col2 FROM tab2
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3756
SELECT ( - + MIN ( + - ( - - CAST ( + + 68 AS INTEGER ) ) ) ) col2 FROM tab2
----
68

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT - - 61, COUNT( * ) AS col1 FROM tab0 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-3758
SELECT - - 61, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
61
3

query I rowsort
SELECT DISTINCT + col1 * + - 34 + + col2 + + col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT ALL - col2 * + col2 + + 93 + - 12 DIV ( + col1 ) FROM tab2 AS cor0
----
-1507
-3271
-436

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - col2 * + col2 + + 93 + - 12 / ( + col1 ) FROM tab2 AS cor0
----
-1507
-3271
-436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - + col1 * - 97 * 28, col0 col2 FROM tab1 AS cor0
----
127720
91
13639
85
38120
51

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 57 - col2 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL col1 - col0 DIV 32 col2 FROM tab0 AS cor0
----
-2
19
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3764
SELECT ALL col1 - col0 / 32 col2 FROM tab0 AS cor0
----
-2
19
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - - SUM( ALL 29 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - - SUM ( ALL 29 ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND + 27
----

query I rowsort
SELECT - col2 + + - 2 AS col2 FROM tab1
----
-61
-70
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3768
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2
----
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + + col2 col1 FROM tab2
----
30
47
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT + ( - - ( - CAST( - col0 AS SIGNED ) ) ) * + col0 + - + col0 FROM tab0
----
210
7482
9312

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + ( - - ( - CAST ( - col0 AS INTEGER ) ) ) * + col0 + - + col0 FROM tab0
----
210
7482
9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT ALL - MAX( - col0 ) DIV + ( - + ( + 69 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - MAX ( - col0 ) / + ( - + ( + 69 ) ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - col2 DIV - - 77 * + - col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3773
SELECT - col2 / - - 77 * + - col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT ALL col1 DIV + 41 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL col1 / + 41 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - + col1 + col2 - + - 38 * col1 FROM tab1 WHERE NULL IS NULL
----
1807
244
614

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query II rowsort label-3777
SELECT ALL MIN( + - col1 ) AS col2, + 63 AS col0 FROM tab2 AS cor0
----
-77
63

skipif mysql # not compatible
query II rowsort label-3777
SELECT ALL MIN ( + - col1 ) AS col2, + 63 AS col0 FROM tab2 AS cor0
----
-77
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT - - col0 - + col1 FROM tab2 WHERE NOT - 64 + - + 19 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - col1 * ( + - ( + + col0 ) ) * + 93 + + col0 FROM tab0
----
113010
169998
9118

onlyif mysql # DIV for integer division: 
query II rowsort label-3782
SELECT ALL - + col2 * ( 63 ) - 18 + + 97 * + 64, + ( + + col2 ) DIV - + 86 + - - col0 * + 23 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
142
1172
1906
2093
2473
1955

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL - + col2 * ( 63 ) - 18 + + 97 * + 64, + ( + + col2 ) / - + 86 + - - col0 * + 23 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
142
1172
1906
2093
2473
1955

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT - SUM( ALL + + ( - - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - SUM ( ALL + + ( - - col1 ) ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 87 * - + col2 AND - 71
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col0 NOT BETWEEN + + 19 AND 54
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3788
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT MIN( - + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT MIN( ALL 21 ) AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3790
SELECT MIN ( ALL 21 ) AS col1 FROM tab1
----
21

query I rowsort
SELECT DISTINCT ( - 79 ) AS col1 FROM tab0, tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT - ( col0 ) * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT - ( col0 ) * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - ( - ( + 87 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3793
SELECT - ( - ( + 87 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL + ( COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL + ( COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 58 - + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - ( + + MIN( DISTINCT + 9 ) ) * - 46 FROM tab2 cor0
----
414

skipif mysql # not compatible
query I rowsort label-3797
SELECT - ( + + MIN ( DISTINCT + 9 ) ) * - 46 FROM tab2 cor0
----
414

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 NOT BETWEEN NULL AND - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT - ( - COUNT( * ) ) DIV + + 78 + + + 32 AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - ( - COUNT ( * ) ) / + + 78 + + + 32 AS col2 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ALL - ( ( - col0 ) ) * - 87 AS col1 FROM tab0 AS cor0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - MAX( col2 ) * + COUNT( * ) * 54 FROM tab2
----
-9396

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - MAX ( col2 ) * + COUNT ( * ) * 54 FROM tab2
----
-9396

query I rowsort
SELECT + - 14 * - col1 / + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT DISTINCT - col1 / + - CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - col1 / + - CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + 54 FROM tab0
----
-27
33
53

query II rowsort
SELECT ALL col0, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - - col0 * - - 62 <> - - col0 / col1
----

query I rowsort
SELECT ALL + col1 * - + 36 FROM tab0 AS cor0
----
-2916
-36
-756

query II rowsort
SELECT 70 AS col2, - col1 * - col1 * + 69 * + col2 AS col1 FROM tab0 AS cor0
----
70
21277323
70
304290
70
6831

query I rowsort
SELECT - ( - 73 ) FROM tab1 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3810
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT DISTINCT + ( - + SUM( DISTINCT - col2 ) ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT DISTINCT + ( - + SUM ( DISTINCT - col2 ) ) col0 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 39 col1, col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 12, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT SUM( ALL + - 56 ) AS col1 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3813
SELECT SUM ( ALL + - 56 ) AS col1 FROM tab0 AS cor0
----
-168

query I rowsort
SELECT DISTINCT - 48 * + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND - + col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - col0 > - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT - - COUNT( * ) DIV ( - 3 ) + + - COUNT( * ) col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3816
SELECT - - COUNT ( * ) / ( - 3 ) + + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + SUM( + 91 ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3817
SELECT + SUM ( + 91 ) FROM tab2 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3818
SELECT - 45 + CAST( + + 72 AS SIGNED ) * + col2, - 86 + + col1 FROM tab0 AS cor0 WHERE NOT col1 + - col1 + col2 / - 12 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3818
SELECT - 45 + CAST ( + + 72 AS INTEGER ) * + col2, - 86 + + col1 FROM tab0 AS cor0 WHERE NOT col1 + - col1 + col2 / - 12 IS NOT NULL
----

query I rowsort
SELECT ALL - 46 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 98 AND col2 - + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3820
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT ALL + col1 + - col1 + + + 76 AS col2 FROM tab2
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + 67 col1 FROM tab0
----
148
148
148

query I rowsort
SELECT ALL - + 11 + - - ( ( col1 ) ) FROM tab0 AS cor0
----
-10
10
70

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( 49 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3825
SELECT ALL + 83 * col1 - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 83 * col1 - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 + 13 * + col0 AS col0 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + COUNT( * ) * 11 - - 55 AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + COUNT ( * ) * 11 - - 55 AS col1 FROM tab0 AS cor0
----
88

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = + col0 / + + col1
----

query I rowsort
SELECT DISTINCT + col1 - - + col1 FROM tab2 cor0
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( + col0 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL - COUNT( + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - COUNT ( + col0 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT + CAST( 57 AS SIGNED ) col1 FROM tab1
----
57
57
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT + CAST ( 57 AS INTEGER ) col1 FROM tab1
----
57
57
57

query I rowsort
SELECT - ( - + 4 ) FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT 83 * - col2 AS col1 FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT ALL 53 * - 3 AS col2 FROM tab1
----
-159
-159
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT COUNT( 9 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT COUNT ( 9 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - col2 + - + ( 16 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3839
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = + - 74 * + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = + - 74 * + - col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT ALL MIN( ALL ( - col1 ) ) DIV - ( + + 80 ) - + + 91 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL MIN ( ALL ( - col1 ) ) / - ( + + 80 ) - + + 91 AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT - COUNT( * ) * - COUNT( * ) + - - CAST( 87 AS SIGNED ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3841
SELECT - COUNT ( * ) * - COUNT ( * ) + - - CAST ( 87 AS INTEGER ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * ( + 69 ) col2, + 13 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - + col1 + + - col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 * + 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3847
SELECT col1 AS col1, 43 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3847
SELECT col1 AS col1, 43 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * + 0 + + col1 col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
46
64
75

query I rowsort
SELECT ALL - col1 + + col0 + + col2 + + col2 FROM tab1
----
180
198
229

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3851
SELECT * FROM tab1 WHERE CAST( 47 AS SIGNED ) * col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3851
SELECT * FROM tab1 WHERE CAST ( 47 AS INTEGER ) * col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( - + col0 ) + + 23 * 6, - col2 AS col0 FROM tab1
----
47
-68
53
-59
87
-96

query I rowsort
SELECT ALL - col1 + - - 10 AS col2 FROM tab2
----
-41
-57
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT ALL + col1 * + + col1 * + 80 * - 52 + - + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + col1 * + + col1 * + 80 * - 52 + - + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT col1 * col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-3855
SELECT col1 * col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT + 74 + + + SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + 74 + + + SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-149

query I rowsort
SELECT ALL + col1 + - 20 AS col0 FROM tab1 AS cor0
----
-15
-6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + + 1 + - MIN( + col2 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + 1 + - MIN ( + col2 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT - + ( MIN( DISTINCT - - 54 ) ) - 31 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - + ( MIN ( DISTINCT - - 54 ) ) - 31 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE 5 * 41 / + col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ( 62 ) AS col0 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT - - MIN( ALL + col0 ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - - MIN ( ALL + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - ( 67 ) * - + 66 * - + 54 - + - col2 FROM tab1
----
-238692
-238720
-238729

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
1
21
81

query II rowsort
SELECT ALL col2, + col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 7 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 78 AS col0 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - - col2 * - + 22 FROM tab0 WHERE NOT col1 * + + 23 + + 11 * - + col0 / - col1 * + 54 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col2 ) * col0 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT col2 DIV col0 * + 51 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT col2 / col0 * + 51 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - + 97 * - CAST( NULL AS SIGNED ) - - + CAST( NULL AS SIGNED ) + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + 97 * - CAST ( NULL AS INTEGER ) - - + CAST ( NULL AS INTEGER ) + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + + 49 + COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + 49 + COUNT ( * ) FROM tab2 AS cor0
----
52

query II rowsort
SELECT DISTINCT - 6 * - col1 AS col2, col0 FROM tab1 AS cor0
----
282
91
30
85
84
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3878
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL COUNT( DISTINCT - 4 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL COUNT ( DISTINCT - 4 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT - MAX( + ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - MAX ( + ( - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT SUM( - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3881
SELECT DISTINCT SUM ( - col0 ) col1 FROM tab0
----
-199

query I rowsort
SELECT ALL - col1 * 56 FROM tab2
----
-2856
-3752
-4312

query I rowsort
SELECT ALL + 56 * + - col2 + + 27 * + - col0 AS col2 FROM tab1
----
-5599
-6265
-6753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 25 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 25 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL 27 * 16 + - + MAX( DISTINCT + 58 ) AS col1 FROM tab0
----
374

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 27 * 16 + - + MAX ( DISTINCT + 58 ) AS col1 FROM tab0
----
374

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT ALL col0 DIV - ( - col2 ) + col1 AS col0 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL col0 / - ( - col2 ) + col1 AS col0 FROM tab1
----
14
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - MAX( ALL + 67 ) AS col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3889
SELECT - MAX ( ALL + 67 ) AS col2 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL + ( col0 ) * + - 76 FROM tab0 AS cor0
----
-1140
-6612
-7372

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT - 48 DIV - col2 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3891
SELECT - 48 / - col2 AS col2 FROM tab0
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3892
SELECT DISTINCT + col0 DIV + 37 + - 58 AS col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) * + ( col0 ) ) IS NULL
----
-56
-57

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + col0 / + 37 + - 58 AS col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) * + ( col0 ) ) IS NULL
----
-56
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT col1 DIV + col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3893
SELECT col1 / + col2 col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ALL - ( 41 ) - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3894
SELECT ALL - ( 41 ) - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN + col1 + + col0 AND + col1 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3898
SELECT COUNT( DISTINCT + ( 64 ) ) DIV 37 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT COUNT ( DISTINCT + ( 64 ) ) / 37 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col1 * col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT 1 * - 18 + ( col2 ) AS col2 FROM tab2
----
22
40
5

query I rowsort
SELECT DISTINCT 30 - - 62 FROM tab0 WHERE 22 = NULL
----

query I rowsort
SELECT col1 / - col0 + col2 * + col0 FROM tab2 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( * ) + 14 * + COUNT( * ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( * ) + 14 * + COUNT ( * ) AS col1 FROM tab0
----
45

query I rowsort
SELECT - 90 + 16 AS col0 FROM tab1
----
-74
-74
-74

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT col2 IN ( - col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - MAX( ALL + 98 ) col1 FROM tab0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3907
SELECT - MAX ( ALL + 98 ) col1 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ( MIN( DISTINCT 36 ) ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3908
SELECT ( MIN ( DISTINCT 36 ) ) FROM tab0
----
36

query III rowsort
SELECT * FROM tab1 WHERE ( 23 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 18 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 - + 82 col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 9 ) AS col0 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - col2 BETWEEN - 31 AND + col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + COUNT( + 2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + COUNT ( + 2 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN + ( 87 ) / + ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT MIN ( ALL - col1 ) FROM tab0
----
-81

query I rowsort
SELECT - col2 - col1 FROM tab0 WHERE 7 + col0 IS NOT NULL
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * - 61 IN ( 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT col1 DIV 5 FROM tab0 WHERE NULL IS NULL
----
0
16
4

skipif mysql # not compatible
query I rowsort label-3920
SELECT col1 / 5 FROM tab0 WHERE NULL IS NULL
----
0
16
4

query I rowsort
SELECT - 61 * + 45 FROM tab0 AS cor0
----
-2745
-2745
-2745

query I rowsort
SELECT 75 - ( + 90 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT 81 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT col1 + col0 DIV + 51 AS col0 FROM tab0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-3924
SELECT col1 + col0 / + 51 AS col0 FROM tab0
----
2
22
81

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( + 62 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT MIN( 5 ) FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT MIN ( 5 ) FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL - 49 * + SUM( DISTINCT 96 * + 78 ) + + 90 FROM tab1
----
-366822

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - 49 * + SUM ( DISTINCT 96 * + 78 ) + + 90 FROM tab1
----
-366822

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3928
SELECT DISTINCT + + 75 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + + 75 + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + col1 ) - 24 ) BETWEEN - 20 * - col1 AND 45 * - col2 + - 97
----

query I rowsort
SELECT ALL - col1 + + 13 * col2 FROM tab2 AS cor0
----
248
443
687

query I rowsort
SELECT ALL + col1 + 80 AS col0 FROM tab1 AS cor0 WHERE NOT 21 IS NULL
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL SUM( col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - ( 24 ) * - col2 + - 22 AS col2 FROM tab2 AS cor0
----
1370
530
938

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - 83 < col0 * - ( + col2 * col2 )
----

query I rowsort
SELECT ALL col1 * + 96 AS col0 FROM tab0 AS cor0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * - col1 col2 FROM tab2 AS cor0
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT 62 * COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3937
SELECT 62 * COUNT ( * ) FROM tab1 AS cor0
----
186

query I rowsort
SELECT ALL - col0 * + 95 * - col2 FROM tab1
----
465120
476425
587860

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT SUM( ALL + - col2 ) * 67 AS col2 FROM tab1
----
-14941

skipif mysql # not compatible
query I rowsort label-3939
SELECT SUM ( ALL + - col2 ) * 67 AS col2 FROM tab1
----
-14941

query I rowsort
SELECT DISTINCT - col2 / col0 FROM tab1 WHERE ( 10 ) IN ( + 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL COUNT( * ) * 52 * - COUNT( * ) FROM tab1
----
-468

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL COUNT ( * ) * 52 * - COUNT ( * ) FROM tab1
----
-468

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col0 + - 37 )
----

query I rowsort
SELECT ALL - 18 + - 49 AS col1 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT + 59 - + - col2 FROM tab0
----
106
158
69

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT col2 FROM tab2 WHERE col1 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + ( 10 ) * + col2 + - col0 )
----

query I rowsort
SELECT DISTINCT 78 + - 19 FROM tab2
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT - COUNT( * ) DIV + 59 FROM tab0 WHERE + col1 NOT BETWEEN - col0 + col1 DIV - 44 AND CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - COUNT ( * ) / + 59 FROM tab0 WHERE + col1 NOT BETWEEN - col0 + col1 / - 44 AND CAST ( NULL AS REAL )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + - col0 * col1 ) <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT + 16 + + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 16 + + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 21 + + ( + 69 ) FROM tab2 AS cor0
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 47 + - 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 72 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query II rowsort
SELECT - - col0 AS col2, col0 * 43 * + col2 AS col2 FROM tab0 AS cor0
----
15
30315
87
37410
97
412929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT + - COUNT( * ) DIV + 15 DIV + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT + - COUNT ( * ) / + 15 / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + ( MAX( - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3959
SELECT + ( MAX ( - col1 ) ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 16 * + col2 AS col2 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + ( col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT SUM( ALL 95 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-3963
SELECT SUM ( ALL 95 ) FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT MAX( - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT MAX ( - - col0 ) FROM tab1
----
91

query I rowsort
SELECT - 76 * - 36 - - col2 / col2 AS col2 FROM tab2 WHERE NOT 56 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 - + 63 AS col2 FROM tab0 WHERE + col1 <> col0
----
642
807
9540

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - 32 < col1
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT - col0 * + col2 * + + ( 54 ) * + col0 + 71 DIV col2 AS col1 FROM tab2
----
-17617499
-2628069
-8847359

skipif mysql # not compatible
query I rowsort label-3968
SELECT - col0 * + col2 * + + ( 54 ) * + col0 + 71 / col2 AS col1 FROM tab2
----
-17617499
-2628069
-8847359

query I rowsort
SELECT - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL + col0 + + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + col0 + + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT NULL IN ( 85 ) )
----

query I rowsort
SELECT + + col1 * col0 + col2 + + - col0 + col0 AS col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE ( - ( col0 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + ( - 5 ) BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - - COUNT( * ) + 55 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
64

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - - COUNT ( * ) + 55 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
64

query III rowsort
SELECT * FROM tab0 WHERE ( + + col0 * 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + 23 FROM tab1 AS cor0
----
108
114
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + 1 + - + col2 * + col2 * + col2 - ( - 88 ) col2 FROM tab2 cor0
----
-12075
-195020
-63908

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT - ( - + col1 ) DIV 11 + + + col1 AS col1 FROM tab1 AS cor0
----
15
5
51

skipif mysql # not compatible
query I rowsort label-3981
SELECT - ( - + col1 ) / 11 + + + col1 AS col1 FROM tab1 AS cor0
----
15
5
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT * FROM tab2 AS cor0 WHERE + 5 * + CAST( + - col2 AS SIGNED ) * + - col0 / - 16 IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab2 AS cor0 WHERE + 5 * + CAST ( + - col2 AS INTEGER ) * + - col0 / - 16 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL - 91 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
4277
9009
910

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - 91 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
4277
9009
910

query I rowsort
SELECT - 88 AS col2 FROM tab0
----
-88
-88
-88

query I rowsort
SELECT ALL - 32 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT MIN( ALL col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3986
SELECT MIN ( ALL col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT SUM( - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3987
SELECT SUM ( - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - - 91 * + 35 - - ( - + ( + - MIN( ALL - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
3089

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - - 91 * + 35 - - ( - + ( + - MIN ( ALL - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
3089

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - SUM( - - col0 ) - - 34 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - SUM ( - - col0 ) - - 34 FROM tab0 AS cor0
----
-165

query I rowsort
SELECT ALL 95 - - 92 FROM tab1 AS cor0
----
187
187
187

query I rowsort
SELECT DISTINCT + 39 * - - col0 AS col2 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT DISTINCT ( - col0 ) * + - ( 11 ) + - + col0 FROM tab0
----
150
870
970

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 36 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( 99 + - col1 )
----

query I rowsort
SELECT ( 54 ) FROM tab0 AS cor0 WHERE NOT ( NOT col1 = + col0 + ( - - 24 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + COUNT( * ) * - - MIN( ALL + col1 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3996
SELECT + COUNT ( * ) * - - MIN ( ALL + col1 ) FROM tab1 cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) * - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - - - 81 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-140
-149
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT DISTINCT + col0 * + 34 * - 20 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( col0 < NULL )
----

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + col0 * + 34 * - 20 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( col0 < NULL )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4000
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 80 DIV - + 82 + col0 * 1 >= ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4000
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 80 / - + 82 + col0 * 1 >= ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 12 + + col1 AS col0 FROM tab1 cor0 WHERE NOT - 90 BETWEEN ( + - col2 * + + col2 * col1 - + 58 ) AND col1
----

query I rowsort
SELECT + ( - + 33 ) FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4003
SELECT + 27 AS col2, + col0 DIV + + CAST( - 16 AS SIGNED ) FROM tab2
----
27
-2
27
-4
27
-4

skipif mysql # not compatible
query II rowsort label-4003
SELECT + 27 AS col2, + col0 / + + CAST ( - 16 AS INTEGER ) FROM tab2
----
27
-2
27
-4
27
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT + 99 AS col2, MIN( DISTINCT - 49 ) AS col0 FROM tab1
----
99
-49

skipif mysql # not compatible
query II rowsort label-4004
SELECT + 99 AS col2, MIN ( DISTINCT - 49 ) AS col0 FROM tab1
----
99
-49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4007
SELECT + MIN ( - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL 34 + - - 81 DIV - 90 AS col1 FROM tab0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL 34 + - - 81 / - 90 AS col1 FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT - CAST( + + MIN( col1 ) AS SIGNED ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4009
SELECT - CAST ( + + MIN ( col1 ) AS INTEGER ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 4 / - 66 * + - 18 + - col0 <> NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < 34
----

query II rowsort
SELECT DISTINCT col0 AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT 98 * - col0 + + 66 + + 9, col1 AS col1 FROM tab1
----
-4923
14
-8255
5
-8843
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT ( + MAX( col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT ( + MAX ( col2 ) ) FROM tab2
----
58

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 >= NULL
----

query I rowsort
SELECT ALL + + 45 AS col2 FROM tab0 cor0
----
45
45
45

query II rowsort
SELECT - - ( + + col2 ) AS col2, col0 * + 60 FROM tab0 AS cor0
----
10
5220
47
900
99
5820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4019
SELECT col1 / ( CAST( NULL AS SIGNED ) ) * + col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4019
SELECT col1 / ( CAST ( NULL AS INTEGER ) ) * + col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 91 + - - ( + col2 ) AS col2 FROM tab0
----
101
138
190

query I rowsort
SELECT + col0 - - 15 * + col1 AS col1 FROM tab0
----
112
1230
402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, ( - col2 ) col0 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + 84 IS NOT NULL AND ( NULL ) BETWEEN NULL AND + + ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT - MAX( DISTINCT + 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - MAX ( DISTINCT + 7 ) AS col2 FROM tab0
----
-7

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4028
SELECT DISTINCT - col2 * - col2 * col2 AS col0, + CAST( NULL AS SIGNED ) / - + 4 AS col2 FROM tab0 AS cor0
----
1000
NULL
103823
NULL
970299
NULL

skipif mysql # not compatible
query II rowsort label-4028
SELECT DISTINCT - col2 * - col2 * col2 AS col0, + CAST ( NULL AS INTEGER ) / - + 4 AS col2 FROM tab0 AS cor0
----
1000
NULL
103823
NULL
970299
NULL

query I rowsort
SELECT + 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT COUNT( * ) * - 30 AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT COUNT ( * ) * - 30 AS col2 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 / - 51 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4033
SELECT ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col2, 72 - + - ( - - ( - - 11 ) ) col2 FROM tab1 AS cor0
----
-59
83
-68
83
-96
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 col1 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + SUM( DISTINCT - + 19 ) FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + SUM ( DISTINCT - + 19 ) FROM tab0 cor0
----
-19

query I rowsort
SELECT + + col1 * - col2 * + 56 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-16520
-178976
-75264

query I rowsort
SELECT DISTINCT 29 * - col0 FROM tab0
----
-2523
-2813
-435

query I rowsort
SELECT ALL 78 + 82 AS col0 FROM tab1
----
160
160
160

query I rowsort
SELECT ( 82 ) + + + col2 AS col2 FROM tab0
----
129
181
92

query I rowsort
SELECT 26 + - + col2 AS col1 FROM tab0
----
-21
-73
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 39 <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( ( col1 ) ) col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - MAX( - 35 ) + + 35 + + - 2 AS col2 FROM tab2 AS cor0 WHERE + 52 IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-4045
SELECT - MAX ( - 35 ) + + 35 + + - 2 AS col2 FROM tab2 AS cor0 WHERE + 52 IS NOT NULL
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT + col1 DIV - - 83 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT + col1 / - - 83 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 - - 31 AS col0 FROM tab1
----
116
122
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 + col1
----

query I rowsort
SELECT + 37 + - - col2 AS col1 FROM tab1 AS cor0
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - ( + col0 ) col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 59 <= 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT ( ( 84 ) ), + 94 AS col0 FROM tab1 AS cor0
----
84
94

query I rowsort
SELECT + + 87 - col0 * - ( + col1 ) + 19 + - 27 + col2 + + - 62 FROM tab2 AS cor0 WHERE - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + 99 * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT - + col2 + + - col0 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 99 * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT - + col2 + + - col0 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 - + 38 FROM tab2
----
-15
2
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * 22 col2 FROM tab2
----
1056
1056
1056

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT COUNT( * ) * - SUM( ALL + 94 ) col0 FROM tab2
----
-846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT COUNT ( * ) * - SUM ( ALL + 94 ) col0 FROM tab2
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - COUNT( * ) * - COUNT( * ) * - - 34 AS col1 FROM tab2
----
306

skipif mysql # not compatible
query I rowsort label-4060
SELECT - COUNT ( * ) * - COUNT ( * ) * - - 34 AS col1 FROM tab2
----
306

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT - 60 / - - MAX( DISTINCT - - 68 ) + + + AVG ( + - col0 ), COUNT( * ) * - 78 AS col2 FROM tab2 WHERE NOT + - 90 + + col0 - + col0 > NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4061
SELECT - 60 / - - MAX ( DISTINCT - - 68 ) + + + AVG ( + - col0 ), COUNT ( * ) * - 78 AS col2 FROM tab2 WHERE NOT + - 90 + + col0 - + col0 > NULL
----
NULL
0

query I rowsort
SELECT DISTINCT ( + + ( - col1 ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4063
SELECT ALL * FROM tab2 WHERE NOT + col1 <= - CAST( + + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4063
SELECT ALL * FROM tab2 WHERE NOT + col1 <= - CAST ( + + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( - - col1 ) AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + 27 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 * + - 78 * col1 col0 FROM tab2
----
18498480
20308236
4666194

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 53 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 * col0 * + + col0 + 59 AS col1 FROM tab1 AS cor0
----
132710
614184
753630

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + ( - + MAX( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4071
SELECT + ( - + MAX ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT COUNT( * ), - 25 AS col2 FROM tab1
----
3
-25

skipif mysql # not compatible
query II rowsort label-4072
SELECT COUNT ( * ), - 25 AS col2 FROM tab1
----
3
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT COUNT( * ) AS col1 FROM tab2 WHERE + - 2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE + - 2 >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab0
----
32
32
32

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE col1 <= - - 35
----
14
5

query II rowsort
SELECT 58, ( - + col1 ) AS col0 FROM tab1
----
58
-14
58
-47
58
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT 95 AS col0, MIN( DISTINCT + col1 ) AS col2 FROM tab2
----
95
51

skipif mysql # not compatible
query II rowsort label-4077
SELECT 95 AS col0, MIN ( DISTINCT + col1 ) AS col2 FROM tab2
----
95
51

query I rowsort
SELECT - + col2 * + col0 + col2 FROM tab1 WHERE NULL IS NULL
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT - 20 + col2 + - 65 - + col0 FROM tab0 cor0
----
-162
-53
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL + COUNT( ALL - ( - 53 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + COUNT ( ALL - ( - 53 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4081
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT + + col0 * - col0 + - col2 + 25 DIV col0 col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT + + col0 * - col0 + - col2 + 25 / col0 col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - + 98 + + 0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 79 AS col0 FROM tab1 AS cor0 WHERE col0 <= col0
----
-17
11
20

query I rowsort
SELECT DISTINCT + + col1 * + + 76 * - 63 FROM tab0 AS cor0
----
-100548
-387828
-4788

query I rowsort
SELECT DISTINCT col0 + ( - + 75 ) AS col1 FROM tab2 AS cor0
----
-11
-29
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT - - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 89 AS col0 FROM tab0 WHERE NULL <= 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab1
----
46
46
46

query I rowsort
SELECT - 81 AS col1 FROM tab1 WHERE + 62 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - - MIN( - - 60 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT - - MIN ( - - 60 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 25 IS NULL
----

query I rowsort
SELECT ALL + - 77 * - col2 + - col0 - + 1 FROM tab2 AS cor0
----
1724
3015
4390

query I rowsort
SELECT - col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query I rowsort
SELECT DISTINCT - col1 * + - col1 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT ALL - 23 * - col2 FROM tab0 cor0
----
1081
2277
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT CAST( NULL AS SIGNED ) * + 69 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4097
SELECT CAST ( NULL AS INTEGER ) * + 69 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 22 / + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 48 + + 41 + - - 32 NOT IN ( ( - ( - col0 ) ) + + col1 + + - col0 * 96, - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + 1
----

query I rowsort
SELECT ALL col2 * + ( - + col2 ) AS col1 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT ALL col0, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + + + col1 * - 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT col0 * col1 DIV - col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4105
SELECT col0 * col1 / - col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * 32 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * 32 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - - col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT 65, - col1 AS col0 FROM tab2 AS cor0
----
65
-51
65
-67
65
-77

query I rowsort
SELECT DISTINCT - ( 11 ) + - col0 * - - col1 FROM tab0 AS cor0
----
-108
-1226
-1838

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 64 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + MAX( - + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + MAX ( - + col2 ) FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4114
SELECT DISTINCT col0 + + CAST( + + 22 AS SIGNED ) * + + col2 AS col1, - 18 FROM tab2 AS cor0
----
1351
-18
552
-18
944
-18

skipif mysql # not compatible
query II rowsort label-4114
SELECT DISTINCT col0 + + CAST ( + + 22 AS INTEGER ) * + + col2 AS col1, - 18 FROM tab2 AS cor0
----
1351
-18
552
-18
944
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT - MAX( col0 ) + - + 43 + - 74 FROM tab0
----
-214

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - MAX ( col0 ) + - + 43 + - 74 FROM tab0
----
-214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 55 + 30 - - col0 col1 FROM tab1
----
229
232
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - COUNT( * ) * + 12 * - 61 + - SUM( + col2 ) AS col1 FROM tab2
----
2075

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - COUNT ( * ) * + 12 * - 61 + - SUM ( + col2 ) AS col1 FROM tab2
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COUNT( * ) + - 92 AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-4118
SELECT COUNT ( * ) + - 92 AS col0 FROM tab0
----
-89

query I rowsort
SELECT col1 + - - col2 + col2 FROM tab1
----
123
183
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT - col1 * - - col0 * + + CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT - col1 * - - col0 * + + CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + 74 FROM tab2
----
120
138
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT CAST( + col1 AS SIGNED ) + + - col2 AS col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( + col1 AS INTEGER ) + + - col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT - col1 + 8 AS col0 FROM tab1
----
-39
-6
3

query I rowsort
SELECT col1 + + col2 + 3 * + - col1 AS col2 FROM tab2
----
-114
-76
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4125
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + 41 )
----

skipif mysql # not compatible
query III rowsort label-4125
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 53 - - col1 + - + 18 col2 FROM tab0 AS cor0
----
116
36
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - + 2 col1 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - + col2 * col0 * + + col1
----

query I rowsort
SELECT ALL - col1 + col1 * - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT - col1 - col1 * + 85 * + col1 FROM tab2
----
-221136
-381632
-504042

query I rowsort
SELECT ALL - + 50 + ( + 62 ) FROM tab2 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - COUNT( * ) * - 25 AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - COUNT ( * ) * - 25 AS col1 FROM tab0 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 86 * col2, col1, + col0, - + col2 * - 30 - col1 * + 42, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT COUNT( * ) + SUM( ALL + col1 ) + + 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 65 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT COUNT ( * ) + SUM ( ALL + col1 ) + + 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 65 * + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT SUM( ( + 42 ) ) * + - COUNT( * ) + SUM( ALL + + 50 ) AS col2 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-4135
SELECT SUM ( ( + 42 ) ) * + - COUNT ( * ) + SUM ( ALL + + 50 ) AS col2 FROM tab0
----
-228

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT col2 FROM tab2 WHERE NOT NULL NOT IN ( - - col1 + 46 * col0 - - - col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4137
SELECT col2 FROM tab2 WHERE NOT NULL NOT IN ( - - col1 + 46 * col0 - - - col0, - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT col0 * - 64 FROM tab0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + + COUNT( + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4140
SELECT + + COUNT ( + - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT + ( - + MIN( + - CAST( NULL AS SIGNED ) ) ) AS col2, 14 FROM tab2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4141
SELECT + ( - + MIN ( + - CAST ( NULL AS INTEGER ) ) ) AS col2, 14 FROM tab2
----
NULL
14

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT MAX( ALL - col2 ) + - COUNT( DISTINCT + - col0 ) col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4145
SELECT MAX ( ALL - col2 ) + - COUNT ( DISTINCT + - col0 ) col0 FROM tab2 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - - col2 ) col2, 90 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
90
-68
90
-96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL 47 + - + COUNT( * ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 47 + - + COUNT ( * ) FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL SUM( - 65 ) FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL SUM ( - 65 ) FROM tab1 AS cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4149
SELECT col1, - 92 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4149
SELECT col1, - 92 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 94 * + 5, 88 AS col0 FROM tab0
----
470
88

query III rowsort
SELECT * FROM tab0 WHERE ( + 28 / + col1 - - + col1 * - - ( 50 ) + 68 IS NULL )
----

query III rowsort
SELECT + col1, - col2 * - col0 + col2 AS col0, - + col2 FROM tab2 WHERE 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT - MAX( + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4154
SELECT - MAX ( + col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT + CAST( ( - col0 ) AS SIGNED ) DIV col0 - + 39 * - col0 FROM tab2
----
1793
2495
2924

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + CAST ( ( - col0 ) AS INTEGER ) / col0 - + 39 * - col0 FROM tab2
----
1793
2495
2924

query I rowsort
SELECT DISTINCT 66 + - col0 FROM tab1
----
-19
-25
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT ALL - 91 + col1 DIV + col0 AS col0 FROM tab1
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - 91 + col1 / + col0 AS col0 FROM tab1
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT SUM( + 93 ) + MAX( - 78 ) AS col1, - ( + + 47 ) col0 FROM tab0 cor0
----
201
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4158
SELECT SUM ( + 93 ) + MAX ( - 78 ) AS col1, - ( + + 47 ) col0 FROM tab0 cor0
----
201
-47

query I rowsort
SELECT - - col2 + 89 + - 94 AS col2 FROM tab2 AS cor0
----
18
35
53

query I rowsort
SELECT col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + col2 * col0 * - - col0 + - ( + - col1 ) FROM tab2 AS cor0
----
163917
326317
48719

query II rowsort
SELECT ALL + - col0, - 32 AS col1 FROM tab1 cor0
----
-51
-32
-85
-32
-91
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - MAX( DISTINCT + 40 ) * COUNT( + 0 ) AS col0 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - MAX ( DISTINCT + 40 ) * COUNT ( + 0 ) AS col0 FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT SUM( DISTINCT + 48 ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4164
SELECT SUM ( DISTINCT + 48 ) AS col1 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT ALL - COUNT( * ) DIV 8 * - 93 + + - MIN( + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - COUNT ( * ) / 8 * - 93 + + - MIN ( + + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT DISTINCT 85 DIV - + col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT 85 / - + col1 AS col0 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT + col2, - col1 + - 65 FROM tab0
----
10
-86
47
-146
99
-66

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 * - col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 * + 38 FROM tab1
----
1786
190
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT - - 47 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 62 = - 1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT - - 47 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 62 = - 1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT col1 + + CAST( - col0 AS SIGNED ) + + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
771
804
9507

skipif mysql # not compatible
query I rowsort label-4171
SELECT col1 + + CAST ( - col0 AS INTEGER ) + + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
771
804
9507

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col2 AND - col2 + col0 + - - col2 + - col2 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT col2 DIV - + 29 FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4173
SELECT col2 / - + 29 FROM tab1 AS cor0
----
-2
-2
-3

query II rowsort
SELECT ALL col0 AS col2, col0 FROM tab0 cor0 WHERE col2 + - + col0 <> + + ( + 71 )
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4175
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( - col0, - col1, + col0 - - col0 + - 92 * col2 * + 96 / CAST( NULL AS SIGNED ) - - col1 - - col2 )
----

skipif mysql # not compatible
query III rowsort label-4175
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( - col0, - col1, + col0 - - col0 + - 92 * col2 * + 96 / CAST ( NULL AS INTEGER ) - - col1 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4176
SELECT * FROM tab0 AS cor0 WHERE col0 * 93 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4176
SELECT * FROM tab0 AS cor0 WHERE col0 * 93 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 / - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT ALL COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4178
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL + col2 + - 32 FROM tab0
----
-22
15
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT + col1 DIV + col2 + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4180
SELECT + col1 / + col2 + col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT MIN( - + 78 ) + + 66 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4181
SELECT MIN ( - + 78 ) + + 66 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT + col0 + + 7 AS col1 FROM tab2
----
53
71
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT + col2 * - - 7 * - col0 + + CAST( + col1 AS SIGNED ) col1 FROM tab2
----
-17843
-30383
-7355

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4183
SELECT DISTINCT + col2 * - - 7 * - col0 + + CAST ( + col1 AS INTEGER ) col1 FROM tab2
----
-17843
-30383
-7355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT + 23 + + ( COUNT( * ) ) DIV + - 29 AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + 23 + + ( COUNT ( * ) ) / + - 29 AS col2 FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL - col2 - + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ( + + col1 ) * - 33 AS col0 FROM tab2
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT MIN( DISTINCT - 35 ) * + 4 AS col1 FROM tab2
----
-140

skipif mysql # not compatible
query I rowsort label-4187
SELECT MIN ( DISTINCT - 35 ) * + 4 AS col1 FROM tab2
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT - CAST( + ( - - col2 ) AS SIGNED ) * + + col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - CAST ( + ( - - col2 ) AS INTEGER ) * + + col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * - + 58 AS col1 FROM tab1 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * - + 58 AS col1 FROM tab1 AS cor0
----
522

query I rowsort
SELECT DISTINCT - + 44 AS col2 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL + - SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL + - SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + - 25 FROM tab2 cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT ALL - - col2 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - - col2 / + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + + col0 AS col1 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - - 53 col1 FROM tab1
----
-3392
-3392
-3392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 38 AS col1, + 35 col2 FROM tab0
----
38
35
38
35
38
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + MAX( ALL - col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4197
SELECT DISTINCT + MAX ( ALL - col2 ) col0 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + col2 * 63 * - col2 FROM tab1
----
-219303
-291312
-580608

query I rowsort
SELECT - 84 AS col1 FROM tab0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT + col1 * + col2 * col1 FROM tab0
----
308367
4410
99

query I rowsort
SELECT DISTINCT col2 * 18 FROM tab1
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4202
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + col1 + + 37 <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4202
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + col1 + + 37 <= ( NULL )
----

query II rowsort
SELECT DISTINCT + ( col2 ) + col0, 40 * + col0 AS col2 FROM tab1 AS cor0
----
144
3400
147
2040
159
3640

query I rowsort
SELECT + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT 38 DIV + 11 + + col1 FROM tab2
----
54
70
80

skipif mysql # not compatible
query I rowsort label-4205
SELECT 38 / + 11 + + col1 FROM tab2
----
54
70
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT + col0 DIV + 24 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + col0 / + 24 FROM tab0
----
0
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - 86 + + - COUNT( col0 ) AS col0 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - 86 + + - COUNT ( col0 ) AS col0 FROM tab0 cor0
----
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 70 AS col0 FROM tab0 cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT ALL - col2 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - col2 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 52 AS col0, col2 AS col1 FROM tab1 AS cor0
----
52
59
52
68
52
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4212
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4212
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT - col0 AS col0, - col1 FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT + 74 + - 70 FROM tab1 cor0 WHERE NULL IS NULL
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT - ( - + col0 ) DIV col2 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4215
SELECT - ( - + col0 ) / col2 AS col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT - - col2 * - 5 FROM tab0 AS cor0
----
-235
-495
-50

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT col1 <= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 31 - - COUNT( * ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4218
SELECT 31 - - COUNT ( * ) AS col2 FROM tab0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT 8 DIV + - col2 - + + 20 * + + col2 AS col1 FROM tab0 WHERE + 79 >= - col1 * + 36
----
-1980
-200
-940

skipif mysql # not compatible
query I rowsort label-4219
SELECT 8 / + - col2 - + + 20 * + + col2 AS col1 FROM tab0 WHERE + 79 >= - col1 * + 36
----
-1980
-200
-940

query I rowsort
SELECT col0 - + ( + - col2 ) - + + 1 * - 46 + - 70 AS col0 FROM tab0
----
172
38
73

query III rowsort
SELECT * FROM tab1 WHERE + + col0 BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col2 FROM tab0
----
108
96
98

query I rowsort
SELECT + + col2 * col2 * - 88 + col1 + - + col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-194245
-862583
-8845

query I rowsort
SELECT 8 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-677
-686
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL - COUNT( + - 24 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - COUNT ( + - 24 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 <= - 7
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + + 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT CAST( - + 97 AS SIGNED ) * - 90, col1 AS col2 FROM tab1 AS cor0
----
8730
14
8730
47
8730
5

skipif mysql # not compatible
query II rowsort label-4228
SELECT CAST ( - + 97 AS INTEGER ) * - 90, col1 AS col2 FROM tab1 AS cor0
----
8730
14
8730
47
8730
5

query I rowsort
SELECT ALL + 73 * - col0 FROM tab2 AS cor0
----
-3358
-4672
-5475

query II rowsort
SELECT - - col0 AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4231
SELECT - CAST( NULL AS DECIMAL ) AS col2, col0 DIV col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-4231
SELECT - CAST ( NULL AS REAL ) AS col2, col0 / col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT ALL 29 AS col1, + COUNT( * ) - 94 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col2 )
----
29
-94

skipif mysql # not compatible
query II rowsort label-4232
SELECT ALL 29 AS col1, + COUNT ( * ) - 94 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col2 )
----
29
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > - - 73
----
51
14
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - + 35 FROM tab2 WHERE NOT col2 IS NULL
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 + + - 55, - col0 col0 FROM tab0
----
-46
-15
-46
-87
-46
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL CAST( NULL AS SIGNED ) + + 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL CAST ( NULL AS INTEGER ) + + 13 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - + ( - 93 ) FROM tab0
----
12
72
92

query I rowsort
SELECT + col0 + - 73 FROM tab2
----
-27
-9
2

query I rowsort
SELECT 53 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-652
-817
-9550

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT - - MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + SUM( DISTINCT + 4 ) * - + 72 + - + 0 * 17 * + SUM( ALL - - 43 ) * COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + SUM ( DISTINCT + 4 ) * - + 72 + - + 0 * 17 * + SUM ( ALL - - 43 ) * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-288

query I rowsort
SELECT - ( 3 ) + col1 * + 42 AS col2 FROM tab0 AS cor0
----
3399
39
879

query I rowsort
SELECT DISTINCT + col0 - col1 * - ( - + col1 ) * - - col1 AS col0 FROM tab1 AS cor0
----
-103732
-2693
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - ( + MIN( DISTINCT - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - ( + MIN ( DISTINCT - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT - + 2 * + + COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - + 2 * + + COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + - col0 - - - col1 + col0 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + col0 * + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL SUM( DISTINCT + 19 ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL SUM ( DISTINCT + 19 ) AS col1 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT SUM( ALL + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4250
SELECT SUM ( ALL + col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT 8 * - SUM( ALL + + col2 ) FROM tab1
----
-1784

skipif mysql # not compatible
query I rowsort label-4251
SELECT 8 * - SUM ( ALL + + col2 ) FROM tab1
----
-1784

query I rowsort
SELECT ( 89 ) AS col1 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT - 63 * + MAX( DISTINCT col2 ) FROM tab2
----
-3654

skipif mysql # not compatible
query I rowsort label-4253
SELECT - 63 * + MAX ( DISTINCT col2 ) FROM tab2
----
-3654

query II rowsort
SELECT DISTINCT + col1 + - + col0 AS col2, - col2 FROM tab1
----
-37
-96
-44
-68
-80
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT col1 DIV col1 AS col1 FROM tab2 AS cor0 WHERE + ( + - 36 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT col1 / col1 AS col1 FROM tab2 AS cor0 WHERE + ( + - 36 ) IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab0 AS cor0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + 73 AND NULL
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ( col2 ) * + CAST( - 3 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - 79 BETWEEN NULL AND + - col0
----
-297
-30

skipif mysql # not compatible
query I rowsort label-4258
SELECT ( col2 ) * + CAST ( - 3 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - 79 BETWEEN NULL AND + - col0
----
-297
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT ( + + 63 > + + col2 * col1 * + 28 * + 62 )
----
-46
-64
-75

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col2 <> col0 * col2 + - 1 + + + ( - + col0 ) / - 37 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT - - col1 DIV col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4264
SELECT - - col1 / col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ( - COUNT( * ) ) * + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4265
SELECT ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4266
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4266
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 73 FROM tab1
----
51
73
85
73
91
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT CAST( - AVG ( - 63 ) AS SIGNED ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4268
SELECT CAST ( - AVG ( - 63 ) AS INTEGER ) FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT + CAST( NULL AS SIGNED ) * + - 78 AS col2 FROM tab1 WHERE NOT - - ( - + 16 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + CAST ( NULL AS INTEGER ) * + - 78 AS col2 FROM tab1 WHERE NOT - - ( - + 16 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - + col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4272
SELECT + col2, 90 DIV 92 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-4272
SELECT + col2, 90 / 92 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT + + ( - 66 ) AS col2 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT DISTINCT col1 AS col2, - 40 FROM tab0 AS cor0
----
1
-40
21
-40
81
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4275
SELECT DISTINCT 17 * col0 + 77 + - CAST( NULL AS DECIMAL ) * + - 42 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT 17 * col0 + 77 + - CAST ( NULL AS REAL ) * + - 42 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT MIN( DISTINCT 75 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT MIN ( DISTINCT 75 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
75

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - + 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query I rowsort
SELECT DISTINCT - col1 + + - col0 + + col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT 81, col1, - ( + col1 ) + 24 + - col2 AS col1 FROM tab2 AS cor0 WHERE + col0 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 col2 FROM tab2 AS cor0
----
-63
-63
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 82 NOT BETWEEN + 12 / - - 86 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 - ( - 26 ) col2 FROM tab0 AS cor0
----
125
125
125

query I rowsort
SELECT - col1 - - - 20 AS col1 FROM tab2 AS cor0
----
-71
-87
-97

query I rowsort
SELECT + + 18 - 59 AS col2 FROM tab2 cor0
----
-41
-41
-41

query I rowsort
SELECT ALL 36 - + col2 AS col0 FROM tab0 AS cor0
----
-11
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 9 ) col0 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4289
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT col1 DIV 72 * - + 10 * + + col2 FROM tab2
----
-400
0
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT col1 / 72 * - + 10 * + + col2 FROM tab2
----
-400
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT MIN( - col1 ) * 26 AS col0 FROM tab0 AS cor0
----
-2106

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT MIN ( - col1 ) * 26 AS col0 FROM tab0 AS cor0
----
-2106

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT - 71, 28 + COUNT( * ) col2 FROM tab2 AS cor0
----
-71
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4293
SELECT - 71, 28 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-71
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, + col2 * + col0 col2 FROM tab0 AS cor0
----
-15
705
-87
870
-97
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT DISTINCT COUNT( ALL - + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT COUNT ( ALL - + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( + 99 ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query II rowsort
SELECT ALL + col0, col1 + col1 FROM tab1
----
51
28
85
10
91
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + 67 * COUNT( * ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 67 * COUNT ( * ) FROM tab0 AS cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT col1 DIV - 53 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT col1 / - 53 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4302
SELECT * FROM tab2 cor0 WHERE NOT ( + CAST( col2 AS DECIMAL ) ) BETWEEN 76 * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4302
SELECT * FROM tab2 cor0 WHERE NOT ( + CAST ( col2 AS REAL ) ) BETWEEN 76 * - col0 AND NULL
----

query I rowsort
SELECT col0 + - - 90 AS col2 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT ALL col1, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT col0 DIV col1 DIV col0 DIV + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT col0 / col1 / col0 / + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4, col0 col0 FROM tab2 AS cor0
----
4
46
4
64
4
75

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT - 85 + 17 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT - col1 * - - col2 * + col1 + + + col1 AS col0 FROM tab2
----
-237083
-260295
-59772

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - ( + ( - 72 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL - CAST( + + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 55 * - 37 AS col1 FROM tab1 AS cor0
----
2035

query I rowsort
SELECT DISTINCT + 15 - - col0 - - + col0 + col0 * col2 FROM tab1 AS cor0
----
5013
5200
6385

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ( - MAX( ALL - 5 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ( - MAX ( ALL - 5 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 62 * + col0 - - - col0 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT COUNT( * ) - + + 48 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4316
SELECT COUNT ( * ) - + + 48 FROM tab0
----
-45

query I rowsort
SELECT DISTINCT + 88 + + - col0 FROM tab1
----
-3
3
37

query II rowsort
SELECT col2, 33 FROM tab1 AS cor0 WHERE - 85 BETWEEN NULL AND + - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 * - - col2 + 85 AS col1 FROM tab2 AS cor0
----
-1088
-2995
-3801

query I rowsort
SELECT DISTINCT - 90 - col1 + + 17 + col1 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - - col1 * 50 * col0 * 56 FROM tab1 AS cor0
----
1190000
11975600
1999200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + 11 * col2 + CAST( + - col0 AS SIGNED ) - - 88 FROM tab2 AS cor0 WHERE ( NULL ) > + 8 * - 46 - col1 + + col0 * + + 2
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + 11 * col2 + CAST ( + - col0 AS INTEGER ) - - 88 FROM tab2 AS cor0 WHERE ( NULL ) > + 8 * - 46 - col1 + + col0 * + + 2
----

query I rowsort
SELECT ( + + col0 ) FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - - AVG ( + + ( col2 ) ) FROM tab1 AS cor0 WHERE col1 + + + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT ALL 57 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 57 / + col0 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4327
SELECT DISTINCT + ( + 71 ) * + CAST( NULL AS SIGNED ) * - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 * + col1 * col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4327
SELECT DISTINCT + ( + 71 ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 * + col1 * col1 IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL COUNT( * ) * - ( - 79 ) AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL COUNT ( * ) * - ( - 79 ) AS col0 FROM tab0
----
237

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 + col0 * 61 + + + col2 + - - 52 * - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4330
SELECT + col1 DIV - 25 AS col2, col2 + - 63 FROM tab1
----
-1
5
0
-4
0
33

skipif mysql # not compatible
query II rowsort label-4330
SELECT + col1 / - 25 AS col2, col2 + - 63 FROM tab1
----
-1
5
0
-4
0
33

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4333
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV - 88 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / - 88 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 99 AS col0, + col1 col1 FROM tab0
----
99
1
99
21
99
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4335
SELECT - COUNT( * ) AS col2, 97 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
97

skipif mysql # not compatible
query II rowsort label-4335
SELECT - COUNT ( * ) AS col2, 97 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
97

query I rowsort
SELECT DISTINCT - col2 * + + col1 * col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL IS NULL OR NOT + 92 * + 40 / + 1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - - col0 * - - 60 + - col2 * col2 FROM tab2 cor0
----
1136
2231
2240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 col1 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col1 + col2 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - ( 54 ) FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - MAX( DISTINCT - 97 ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-4342
SELECT - MAX ( DISTINCT - 97 ) AS col1 FROM tab2
----
97

query II rowsort
SELECT ALL col2 AS col1, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL MAX( + ( col2 ) ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4344
SELECT ALL MAX ( + ( col2 ) ) col0 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - MIN( - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - MIN ( - col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4347
SELECT + col0, CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4347
SELECT + col0, CAST ( NULL AS REAL ) * + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 + + col2 col2 FROM tab0
----
111
163
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT + COUNT( * ) AS col1, - 94 FROM tab2
----
3
-94

skipif mysql # not compatible
query II rowsort label-4349
SELECT + COUNT ( * ) AS col1, - 94 FROM tab2
----
3
-94

query I rowsort
SELECT ALL + 76 - - col2 - 25 + - - col0 * + - ( - col1 ) * - + col2 FROM tab1
----
-24965
-290717
-68397

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + col0 )
----

query I rowsort
SELECT - ( + col0 ) * - 26 + - col1 AS col0 FROM tab0 AS cor0
----
2241
2521
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT 67 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
67
67
67

query I rowsort
SELECT ALL + + col1 * col0 * + col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT 17 * + 2 AS col2 FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT + AVG ( + col0 ) col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 97 * + CAST( NULL AS SIGNED ), + 26 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4357
SELECT + AVG ( + col0 ) col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 97 * + CAST ( NULL AS INTEGER ), + 26 )
----
NULL

query I rowsort
SELECT ALL - col1 * - + col0 - - col0 AS col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL - + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + + 73 AS col0 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + ( - + col1 ) AS col1 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL - 3, + ( - col2 ) + col2 AS col0 FROM tab0
----
-3
0
-3
0
-3
0

query I rowsort
SELECT ALL - col2 + col2 + 59 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * - col0 col1 FROM tab2
----
-1196
-1664
-1950

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 93 NOT BETWEEN NULL AND col1 * - 5 * + col1 * 39 + - col0 - + col2
----

query I rowsort
SELECT ALL col1 * - - 51 FROM tab1
----
2397
255
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * 96 * + col0 col1 FROM tab2
----
388608
540672
633600

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 41 * COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-4369
SELECT 41 * COUNT ( * ) FROM tab0
----
123

query I rowsort
SELECT col1 + + 83 * - - 91 FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - COUNT( * ) * + 35 AS col0 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4371
SELECT - COUNT ( * ) * + 35 AS col0 FROM tab1 AS cor0
----
-105

query II rowsort
SELECT ALL + + 1 AS col0, 6 * + + 67 FROM tab1 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT ALL - col2 + - 86 AS col0 FROM tab2
----
-109
-126
-144

query I rowsort
SELECT ALL col0 + col1 FROM tab1 WHERE ( - col2 ) NOT IN ( ( 22 ) )
----
138
65
90

query I rowsort
SELECT ALL - ( - col1 ) * 11 AS col0 FROM tab1
----
154
517
55

query I rowsort
SELECT + 8 - col1 FROM tab0
----
-13
-73
7

query I rowsort
SELECT DISTINCT 30 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + ( - ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col0 + 57 FROM tab0
----
-648
-813
-9546

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 39 ) AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL 77 * MAX( + col2 ) AS col2 FROM tab1
----
7392

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL 77 * MAX ( + col2 ) AS col2 FROM tab1
----
7392

query I rowsort
SELECT ALL ( 2 ) AS col1 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT - MIN( DISTINCT 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4383
SELECT - MIN ( DISTINCT 47 ) FROM tab1
----
-47

query I rowsort
SELECT + col0 * - col0 + - col0 * - 68 AS col0 FROM tab0
----
-1653
-2813
795

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) AS col1 FROM tab2 WHERE - ( - col1 ) IS NOT NULL
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( col1 * + 48 ) AND col2 + + col0 * col2
----

query I rowsort
SELECT ALL - 43 + col2 FROM tab1
----
16
25
53

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND + col2 * + col2
----

query I rowsort
SELECT + 75 FROM tab0 WHERE col0 / col2 + - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT ALL 61 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 61 / + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + COUNT( * ) * - 50 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4391
SELECT + COUNT ( * ) * - 50 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT 19 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 3 col0 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - SUM( DISTINCT col0 ) + COUNT( * ) col2 FROM tab0 cor0 WHERE col0 * 34 + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4394
SELECT - SUM ( DISTINCT col0 ) + COUNT ( * ) col2 FROM tab0 cor0 WHERE col0 * 34 + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL 94 FROM tab0 AS cor0 WHERE NOT 82 + col2 * col2 IS NULL
----
94
94
94

query I rowsort
SELECT ALL col0 * 92 FROM tab1 AS cor0 WHERE NOT - col1 + col0 / col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( + col1 ) AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT + + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL SUM( 63 ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL SUM ( 63 ) FROM tab2
----
189

query I rowsort
SELECT DISTINCT - ( - + 37 ) FROM tab1
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 45 col2 FROM tab0
----
2115
4455
450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4404
SELECT * FROM tab0 WHERE NOT ( 59 + + 7 ) < ( - col1 + - CAST( col2 + - col0 / col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4404
SELECT * FROM tab0 WHERE NOT ( 59 + + 7 ) < ( - col1 + - CAST ( col2 + - col0 / col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 21 * + col0 AS col0 FROM tab2
----
1344
1575
966

query I rowsort
SELECT ALL - 83 * + - col0 * col0 AS col2 FROM tab2
----
175628
339968
466875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT CAST( - MAX( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( - MAX ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 97 * + col2 AS col0 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT + 49 * + col1 + - col0 * - col0 FROM tab2 AS cor0
----
4615
7869
8908

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 32 + - 57 * col1 FROM tab2
----
-2875
-3787
-4357

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT + + col0 + - + ( - 63 ) DIV col2 FROM tab0 AS cor0
----
16
93
97

skipif mysql # not compatible
query I rowsort label-4415
SELECT + + col0 + - + ( - 63 ) / col2 FROM tab0 AS cor0
----
16
93
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT DISTINCT - 29 DIV COUNT( * ) + - ( 89 ) + - 43 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - 29 / COUNT ( * ) + - ( 89 ) + - 43 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT DISTINCT + col1 - - 12 FROM tab1 AS cor0
----
17
26
59

query II rowsort
SELECT DISTINCT - col0, - 40 AS col0 FROM tab0 AS cor0
----
-15
-40
-87
-40
-97
-40

query I rowsort
SELECT - - 68 * col2 * - - 15 AS col2 FROM tab2 AS cor0
----
23460
40800
59160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT NULL > - col1 + + - 50 + + 6 * ( + col0 + + 86 * col1 )
----

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT NULL > - col1 + + - 50 + + 6 * ( + col0 + + 86 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + col0 DIV + ( + + col2 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col0 / + ( + + col2 ) FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + col2 * 16 * - 4 AS col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

query I rowsort
SELECT - - col2 * 99 + - col2 FROM tab2 AS cor0
----
2254
3920
5684

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4425
SELECT ALL 63 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-4425
SELECT ALL 63 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT DISTINCT col0 + - 52 + col2 FROM tab1
----
107
92
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL - ( - col0 ) * - CAST( NULL AS SIGNED ) + col1 + col0 + 49 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - ( - col0 ) * - CAST ( NULL AS INTEGER ) + col1 + col0 + 49 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col1 * col1 ) IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col1 * col1 ) IN ( - col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 * col2 col1, col1 * col1 * + col0 AS col0 FROM tab2
----
1480
379456
2146
336675
851
119646

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT MIN( DISTINCT - 95 ) - - 51 AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4430
SELECT MIN ( DISTINCT - 95 ) - - 51 AS col2 FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT - 69 - + + CAST( NULL AS SIGNED ) - + 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT - 69 - + + CAST ( NULL AS INTEGER ) - + 78 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * - col1 >= col2 AND + col0 BETWEEN ( NULL ) AND ( - col2 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 + + + col0 col0, - 7 * 11 col2 FROM tab0 AS cor0
----
115
-77
125
-77
43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - MAX( + - 82 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4434
SELECT - MAX ( + - 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL - 19 - MAX( DISTINCT - ( + + col0 ) ) col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4435
SELECT ALL - 19 - MAX ( DISTINCT - ( + + col0 ) ) col1 FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT DISTINCT COUNT( DISTINCT + 67 ) DIV COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT COUNT ( DISTINCT + 67 ) / COUNT ( * ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1, - 27 AS col1 FROM tab0 AS cor0
----
1
-27
21
-27
81
-27

query I rowsort
SELECT ALL - ( + 37 ) FROM tab1 cor0
----
-37
-37
-37

query II rowsort
SELECT + col1 AS col0, - ( - 69 ) - + col1 AS col0 FROM tab0 AS cor0
----
1
68
21
48
81
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT SUM( - + 97 ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4442
SELECT SUM ( - + 97 ) AS col2 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT col0 AS col0, col2 * - + 29 FROM tab1
----
51
-2784
85
-1711
91
-1972

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4446
SELECT ALL * FROM tab2 WHERE ( - - ( + ( + col1 ) ) + + 13 + - col2 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4446
SELECT ALL * FROM tab2 WHERE ( - - ( + ( + col1 ) ) + + 13 + - col2 ) < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + MAX( DISTINCT + 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + MAX ( DISTINCT + 62 ) FROM tab2
----
62

query I rowsort
SELECT ALL col1 + + 96 * col0 FROM tab1
----
4910
8165
8783

query II rowsort
SELECT col1 AS col2, - 4 FROM tab0
----
1
-4
21
-4
81
-4

query I rowsort
SELECT col2 * - 95 / col2 + + ( ( col2 ) + - col2 ) AS col2 FROM tab0 WHERE NOT NULL IN ( + col1, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - MIN( ALL col2 ) * + COUNT( * ) * + 26 + - COUNT( * ) FROM tab1
----
-4605

skipif mysql # not compatible
query I rowsort label-4453
SELECT - MIN ( ALL col2 ) * + COUNT ( * ) * + 26 + - COUNT ( * ) FROM tab1
----
-4605

query I rowsort
SELECT + col1 * - col2 FROM tab1 AS cor0 WHERE ( col1 * 55 * + col0 ) BETWEEN ( + 16 ) AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE + 97 BETWEEN NULL AND - ( - + 97 )
----

query I rowsort
SELECT 2 AS col0 FROM tab1 AS cor0 WHERE - 94 <> + - 19 * - col0 + 35 + 55
----
2
2
2

query I rowsort
SELECT ALL 68 + 61 * - col0 FROM tab0 AS cor0
----
-5239
-5849
-847

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col0 <= col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + - 89 * - MIN( - 6 ) * - + 46 + COUNT( ALL 66 ) * + MAX( + 10 ) FROM tab2 AS cor0
----
24594

skipif mysql # not compatible
query I rowsort label-4459
SELECT + - 89 * - MIN ( - 6 ) * - + 46 + COUNT ( ALL 66 ) * + MAX ( + 10 ) FROM tab2 AS cor0
----
24594

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 12 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 66 + + + ( col0 ) AS col2, 88 AS col2 FROM tab0
----
153
88
163
88
81
88

query I rowsort
SELECT DISTINCT col1 + + + 38 FROM tab1
----
43
52
85

query I rowsort
SELECT 91 FROM tab0 WHERE col1 IS NOT NULL
----
91
91
91

query I rowsort
SELECT ALL + ( - col1 ) * + + col2 + + + 92 AS col0 FROM tab0
----
-118
-3715
-7

query I rowsort
SELECT 14 * + col2 AS col1 FROM tab1
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT COUNT( + ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT COUNT ( + ( - col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT MIN( - + col1 ) + + 10 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT MIN ( - + col1 ) + + 10 FROM tab2
----
-67

query I rowsort
SELECT ALL - 21 * 23 AS col0 FROM tab0 cor0
----
-483
-483
-483

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4469
SELECT ALL - COUNT( * ) * - 78 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - COUNT ( * ) * - 78 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 + - 24 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + 91 AS col1 FROM tab2
----
114
131
149

query II rowsort
SELECT + col2, col0 + col1 + + 93 * + - 85 AS col0 FROM tab1 WHERE NOT - 45 * + + col1 * 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - MIN( + 85 ) col0 FROM tab1
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT - MIN ( + 85 ) col0 FROM tab1
----
-85

query II rowsort
SELECT - 40, 55 AS col1 FROM tab0
----
-40
55
-40
55
-40
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL + - MIN( DISTINCT - - col2 ) col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT ALL + - MIN ( DISTINCT - - col2 ) col2 FROM tab0 cor0
----
-10

query I rowsort
SELECT 16 FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT SUM( - - col0 ) * + 90 + - COUNT( * ) FROM tab0 AS cor0
----
17907

skipif mysql # not compatible
query I rowsort label-4478
SELECT SUM ( - - col0 ) * + 90 + - COUNT ( * ) FROM tab0 AS cor0
----
17907

query I rowsort
SELECT DISTINCT 36 + + col1 FROM tab2 AS cor0
----
103
113
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col1 col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT col2 AS col0, 41 AS col2 FROM tab2 AS cor0
----
23
41
40
41
58
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * + 1 - + + col0 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - col1, + 79 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( DISTINCT col2 ) - - COUNT( * ) col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4485
SELECT ALL COUNT ( DISTINCT col2 ) - - COUNT ( * ) col0 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL 0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT - col2 DIV col2 * - 9 - + col2 AS col2 FROM tab1 AS cor0
----
-50
-59
-87

skipif mysql # not compatible
query I rowsort label-4487
SELECT - col2 / col2 * - 9 - + col2 AS col2 FROM tab1 AS cor0
----
-50
-59
-87

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 56 * - col2 - col0 FROM tab2
----
1242
2176
3173

query I rowsort
SELECT - 91 - - + col2 * + - 34 FROM tab1
----
-2097
-2403
-3355

query II rowsort
SELECT DISTINCT - col1 + 84, ( - col0 ) * + col1 AS col1 FROM tab1
----
37
-4277
70
-714
79
-425

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab2 WHERE + - ( col2 ) <> + col2 * col1 * - - 41
----
46
64
75

query I rowsort
SELECT ALL - col0 * col0 + - 48 + - 9 AS col2 FROM tab0 AS cor0
----
-282
-7626
-9466

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT DISTINCT - + 58 DIV - col1 AS col2 FROM tab1 cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - + 58 / - col1 AS col2 FROM tab1 cor0
----
1
11
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 92 + + col1 + - col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - 1 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL - col2 * ( + 43 ) AS col1 FROM tab0
----
-2021
-4257
-430

query I rowsort
SELECT DISTINCT 48 * col1 AS col0 FROM tab0
----
1008
3888
48

query I rowsort
SELECT col1 * - 27 AS col0 FROM tab0 AS cor0
----
-2187
-27
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT - 34 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT - 34 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT + col2 DIV - + 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT + col2 / - + 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT + - 60 DIV col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT + - 60 / col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - 28 * + - col0 AS col0 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + SUM( 9 ) AS col0 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-4507
SELECT + SUM ( 9 ) AS col0 FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4508
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ALL + 54 + + - col0 * + + col0 * + col1 FROM tab0
----
-158895
-18171
-9355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + MAX( ALL - col2 ) + + 1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + MAX ( ALL - col2 ) + + 1 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL col2 + CAST( NULL AS SIGNED ) + - 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL col2 + CAST ( NULL AS INTEGER ) + - 55 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 * - + 56 * + col1 * + 16 FROM tab2
----
-2102067
-4415565
-4502467

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + 20 + COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 20 + COUNT ( * ) AS col0 FROM tab1
----
23

query I rowsort
SELECT + 34 + col2 * + col2 AS col0 FROM tab0
----
134
2243
9835

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT DISTINCT - 0 + - COUNT( * ) AS col1, - COUNT( DISTINCT 13 ) AS col1 FROM tab1 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT - 0 + - COUNT ( * ) AS col1, - COUNT ( DISTINCT 13 ) AS col1 FROM tab1 AS cor0
----
-3
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT + + 71 / + - 92 * - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + + 71 / + - 92 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL - 42 - - - col2 FROM tab0
----
-141
-52
-89

query I rowsort
SELECT + col1 - - col2 * + 25 AS col2 FROM tab2
----
1077
1517
626

query I rowsort
SELECT - 0 + 95 AS col2 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4522
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + CAST( + col0 AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4522
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + CAST ( + col0 AS REAL ) ) ) IS NULL
----

query I rowsort
SELECT - - 55 + + col2 FROM tab2 AS cor0
----
113
78
95

query I rowsort
SELECT - ( - col1 ) + - 2 AS col1 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT DISTINCT col0 + - ( + 34 ) * - - 46 * + col2 AS col0 FROM tab2 AS cor0
----
-35926
-62496
-90637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col0 + + col1 * - col1 FROM tab1 AS cor0
----
-131
-2071
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT + + ( - - col2 ) * col0 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4528
SELECT + + ( - - col2 ) * col0 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL 82 - MAX( DISTINCT + 99 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL 82 - MAX ( DISTINCT + 99 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 73 * col1 * - + col0 AS col1 FROM tab2
----
-171258
-359744
-366825

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT ALL 27 AS col1, col2 AS col0 FROM tab0
----
27
10
27
47
27
99

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL > ( - col0 * + 40 + - col0 )
----

query I rowsort
SELECT - ( - - col0 ) * - - 73 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT - ( - col0 ) FROM tab0 WHERE + col2 IS NOT NULL AND ( + 80 ) > + col1
----
87
97

query I rowsort
SELECT ALL 72 * + col2 * - - 8 FROM tab1
----
33984
39168
55296

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 78, - col0 + 12 )
----

query I rowsort
SELECT ALL + - 55 AS col0 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-4539
SELECT + col1, - 81 DIV + ( col2 ) FROM tab1 AS cor0
----
14
0
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-4539
SELECT + col1, - 81 / + ( col2 ) FROM tab1 AS cor0
----
14
0
47
-1
5
-1

query I rowsort
SELECT ALL - + 54 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4541
SELECT 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-4541
SELECT CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT MIN( + col0 ) * COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4542
SELECT MIN ( + col0 ) * COUNT ( * ) AS col1 FROM tab1
----
153

query I rowsort
SELECT ALL - - 86 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT COUNT( * ) + 54 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4544
SELECT COUNT ( * ) + 54 FROM tab2
----
57

query I rowsort
SELECT + 1 + - col0 AS col0 FROM tab1 AS cor0
----
-50
-84
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE + ( - - 54 ) * + 27 + + + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE + ( - - 54 ) * + 27 + + + col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT - MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT col0 * + + col0 + - + col0 * + 87 FROM tab2
----
-1472
-1886
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - - 13 FROM tab0
----
1287
130
611

query I rowsort
SELECT ALL - col1 + - col0 * + col2 * + 88 + + ( - col0 ) + + ( - 93 ) AS col2 FROM tab1
----
-431006
-441503
-544775

query II rowsort
SELECT DISTINCT col0 * col0 + + + ( - col0 ), ( - + ( + col0 ) ) AS col0 FROM tab0
----
210
-15
7482
-87
9312
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 91 + COUNT( * ) + CAST( NULL AS SIGNED ) + + - COUNT( col2 ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4555
SELECT ALL - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 91 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + - COUNT ( col2 ) col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col1 * + col1 + - + 7 FROM tab0 cor0
----
-6
434
6554

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT DISTINCT COUNT( * ) AS col0, + 10 FROM tab2 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-4557
SELECT DISTINCT COUNT ( * ) AS col0, + 10 FROM tab2 AS cor0
----
3
10

query I rowsort
SELECT 43 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT 58 + COUNT( * ) AS col1 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-4559
SELECT 58 + COUNT ( * ) AS col1 FROM tab1
----
61

query I rowsort
SELECT ALL - 15 + + - col1 AS col2 FROM tab0
----
-16
-36
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT col2 DIV - + 96 + - - 71 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT col2 / - + 96 + - - 71 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT + + 97 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + + 97 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <> col0
----

query I rowsort
SELECT DISTINCT ( 15 ) * - - col1 - - col2 AS col2 FROM tab2 AS cor0
----
1063
1195
788

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT + + 25 * - - 5 * + - COUNT( col2 ) AS col0, + 39 AS col0 FROM tab1 cor0
----
-375
39

skipif mysql # not compatible
query II rowsort label-4565
SELECT + + 25 * - - 5 * + - COUNT ( col2 ) AS col0, + 39 AS col0 FROM tab1 cor0
----
-375
39

query I rowsort
SELECT + + 58 AS col0 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 49 = - - col2 * + - 12 * - + 18 * - - col0 * - + 63 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL COUNT( + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL COUNT ( + col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + 17 * col1 AS col2 FROM tab2
----
1139
1309
867

query I rowsort
SELECT - ( + 37 ) * 58 FROM tab0
----
-2146
-2146
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT MAX( DISTINCT col1 ) FROM tab0 WHERE NOT NULL > col0 * - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT MAX ( DISTINCT col1 ) FROM tab0 WHERE NOT NULL > col0 * - - 26
----
NULL

query I rowsort
SELECT + col2 * - + 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + ( ( - COUNT( DISTINCT col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4573
SELECT + ( ( - COUNT ( DISTINCT col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT + col2 DIV - 55 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT + col2 / - 55 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT col0 DIV 66 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-99
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT col0 / 66 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-99
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT COUNT( * ) * - + COUNT( * ) AS col0, + 0 AS col1 FROM tab2 AS cor0
----
-9
0

skipif mysql # not compatible
query II rowsort label-4576
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0, + 0 AS col1 FROM tab2 AS cor0
----
-9
0

query I rowsort
SELECT col2 * col2 + + - 21 FROM tab0 AS cor0
----
2188
79
9780

query I rowsort
SELECT 99 + + - 30 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
69
69
69

query I rowsort
SELECT col1 * - ( - 15 ) AS col0 FROM tab0 AS cor0
----
1215
15
315

query II rowsort
SELECT ALL - col1 AS col0, 21 AS col0 FROM tab1 AS cor0
----
-14
21
-47
21
-5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + ( + - SUM( - 86 ) ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4581
SELECT + ( + - SUM ( - 86 ) ) FROM tab1 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query II rowsort label-4582
SELECT DISTINCT + 48 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-4582
SELECT DISTINCT + 48 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - COUNT( * ) * 38 * - + 66 FROM tab0 AS cor0
----
7524

skipif mysql # not compatible
query I rowsort label-4583
SELECT - COUNT ( * ) * 38 * - + 66 FROM tab0 AS cor0
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + COUNT( * ) + + 30 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COUNT ( * ) + + 30 AS col2 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL col2 + + ( - 74 ) FROM tab0
----
-27
-64
25

query I rowsort
SELECT col0 * col0 + + col2 + + col1 AS col0 FROM tab2
----
2190
4213
5750

query II rowsort
SELECT - ( - - col0 ) AS col2, - 23 FROM tab0
----
-15
-23
-87
-23
-97
-23

query I rowsort
SELECT + ( - - col1 ) * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col0 * col0 - - + col2 FROM tab2 AS cor0
----
2139
4136
5683

query III rowsort
SELECT * FROM tab1 WHERE + + 68 + + 97 <> - 86 * - 68 * + col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 49 + - 19 AS col0 FROM tab1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4592
SELECT ALL - COUNT( ALL - - col0 ) + + AVG ( + col0 ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - COUNT ( ALL - - col0 ) + + AVG ( + col0 ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT 86 * + col2 + - ( - - 38 ) FROM tab1
----
5036
5810
8218

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col1
----

query I rowsort
SELECT ALL - + 35 AS col1 FROM tab0 cor0 WHERE + col0 * + 88 IS NOT NULL
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL + - ( + 56 ) * + CAST( NULL AS SIGNED ) + - col0 * - 68 + + 84 AS col2 FROM tab0 AS cor0 WHERE - 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + - ( + 56 ) * + CAST ( NULL AS INTEGER ) + - col0 * - 68 + + 84 AS col2 FROM tab0 AS cor0 WHERE - 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT - 45 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 45 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 96 FROM tab0 AS cor0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT DISTINCT + MIN( col1 ) AS col2, 90 AS col2 FROM tab0
----
1
90

skipif mysql # not compatible
query II rowsort label-4599
SELECT DISTINCT + MIN ( col1 ) AS col2, 90 AS col2 FROM tab0
----
1
90

query I rowsort
SELECT - col1 * - 5 * + col0 AS col2 FROM tab0
----
485
6075
9135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT + 82 DIV 46 * COUNT( ALL + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT + 82 / 46 * COUNT ( ALL + col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT + CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-4602
SELECT + CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4603
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - + col0 AS SIGNED ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4603
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - + col0 AS INTEGER ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + SUM( 66 ) * + + 35 * 48 AS col2 FROM tab1 AS cor0
----
332640

skipif mysql # not compatible
query I rowsort label-4605
SELECT + SUM ( 66 ) * + + 35 * 48 AS col2 FROM tab1 AS cor0
----
332640

query I rowsort
SELECT ALL - 75 * + col0 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT + col2 * + CAST( col2 AS SIGNED ) FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-4607
SELECT + col2 * + CAST ( col2 AS INTEGER ) FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - ( + COUNT( DISTINCT - col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4608
SELECT - ( + COUNT ( DISTINCT - col0 ) ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 63 IS NULL
----

query I rowsort
SELECT ALL + col0 * + col0 + - 56 AS col2 FROM tab0
----
169
7513
9353

query III rowsort
SELECT ALL * FROM tab1 WHERE 15 / + + col1 * + + 69 < - 55
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT ALL col2 / - + CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL col2 / - + CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + + col1 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col0 + - + 68 + 99 + - - col2 AS col0 FROM tab0 AS cor0
----
128
227
93

query I rowsort
SELECT DISTINCT - - 10 * + + col1 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT - ( + ( - + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT 1 + - COUNT( * ) + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-4619
SELECT 1 + - COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT col0 / col0 - - col0, - col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 - - 42 < NULL
----

query I rowsort
SELECT + ( - + 78 ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT + - 89 DIV - + 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - 89 / - + 95 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col0 + - 9 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
1015
1674
4957

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + ( + + COUNT( DISTINCT - - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4626
SELECT + ( + + COUNT ( DISTINCT - - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT ( - COUNT( * ) ) col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4627
SELECT ( - COUNT ( * ) ) col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col1 * - col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT CAST( NULL AS SIGNED ) * + 6 * - AVG ( - 84 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT CAST ( NULL AS INTEGER ) * + 6 * - AVG ( - 84 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - + col2 / + col2 - - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL COUNT( * ) * 16 col2 FROM tab2
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT ALL COUNT ( * ) * 16 col2 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT - COUNT( - + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT - COUNT ( - + col1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4636
SELECT DISTINCT - CAST( - ( - + col1 ) AS SIGNED ) AS col2, + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-4636
SELECT DISTINCT - CAST ( - ( - + col1 ) AS INTEGER ) AS col2, + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 WHERE - - 73 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 15 col1 FROM tab1
----
1275
1365
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col2 FROM tab0 WHERE NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT - ( 14 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4640
SELECT - ( 14 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ( + CAST( + col1 AS SIGNED ) ) + - + col2 * + - col1 FROM tab0 AS cor0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-4641
SELECT ( + CAST ( + col1 AS INTEGER ) ) + - + col2 * + - col1 FROM tab0 AS cor0
----
100
231
3888

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN - col2 AND 14 * 55 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT + + MAX( ALL - ( col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + + MAX ( ALL - ( col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL 91 * - CAST( NULL AS SIGNED ) + - + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 91 * - CAST ( NULL AS INTEGER ) + - + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * + 59 FROM tab2 cor0
----
1357
2360
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT - col1 + + 39 DIV - 93 - + col2 DIV + col2 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - col1 + + 39 / - 93 - + col2 / + col2 FROM tab1 AS cor0
----
-15
-48
-6

query I rowsort
SELECT DISTINCT - 18 * - col2 + - 48 FROM tab2 AS cor0
----
366
672
996

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( - col1 * - - col1, - col0, - - col1, - col2, + 11 + - - col0, - 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT + ( - - col0 ) + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4650
SELECT DISTINCT + ( - - col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4651
SELECT DISTINCT 15 AS col0, col1 + + CAST( - - col0 AS SIGNED ) + - ( - col0 ) + - 24 AS col2 FROM tab0
----
15
171
15
87

skipif mysql # not compatible
query II rowsort label-4651
SELECT DISTINCT 15 AS col0, col1 + + CAST ( - - col0 AS INTEGER ) + - ( - col0 ) + - 24 AS col2 FROM tab0
----
15
171
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT MAX( + 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4652
SELECT MAX ( + 12 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - SUM( DISTINCT - - col2 ) * 12 AS col1 FROM tab1
----
-2676

skipif mysql # not compatible
query I rowsort label-4653
SELECT - SUM ( DISTINCT - - col2 ) * 12 AS col1 FROM tab1
----
-2676

query II rowsort
SELECT col0, - 96 * - 5 * - + col2 FROM tab0
----
15
-22560
87
-4800
97
-47520

query II rowsort
SELECT - col2 AS col1, 89 * + col1 FROM tab0 AS cor0
----
-10
1869
-47
7209
-99
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT ALL + 67 DIV + - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + 67 / + - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT - + 35 * 28 * + - 70 + COUNT( * ) col1 FROM tab0 cor0
----
68603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4657
SELECT DISTINCT - + 35 * 28 * + - 70 + COUNT ( * ) col1 FROM tab0 cor0
----
68603

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - 56 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 56 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4659
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

query I rowsort
SELECT ALL - + 73 * col0 + + - 52 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3775
-6257
-6695

query I rowsort
SELECT DISTINCT - + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

query II rowsort
SELECT DISTINCT col1 AS col2, - 24 FROM tab2
----
51
-24
67
-24
77
-24

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( + col0 ) AND + 17 * col2 * - 7 * + 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT MAX( CAST( + + col2 AS SIGNED ) ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT MAX ( CAST ( + + col2 AS INTEGER ) ) col1 FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 5 = 7 * + 63 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, col2 AS col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT - col1 / 61 + - 97 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - col1 / 61 + - 97 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + 14 DIV 5 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 14 / 5 AS col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT ALL + CAST( NULL AS SIGNED ) / 42 * - + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4670
SELECT ALL + CAST ( NULL AS INTEGER ) / 42 * - + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 / - - col1 col2 FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT MAX( 20 ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT MAX ( 20 ) FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4673
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1, col1 * 87 AS col1 FROM tab0 AS cor0
----
-1
87
-21
1827
-81
7047

query II rowsort
SELECT col2 AS col2, col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL MIN( + + 61 ) AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL MIN ( + + 61 ) AS col1 FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT + COUNT( * ) * + - 78 AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + COUNT ( * ) * + - 78 AS col1 FROM tab1
----
-234

query I rowsort
SELECT 24 * - col0 FROM tab0
----
-2088
-2328
-360

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - MIN( - col0 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4680
SELECT - MIN ( - col0 ) col1 FROM tab1
----
91

query I rowsort
SELECT DISTINCT 59 + - - col2 * + - col0 AS col0 FROM tab1
----
-4837
-4956
-6129

query I rowsort
SELECT DISTINCT 86 * - col2 * - col1 AS col2 FROM tab0
----
18060
327402
8514

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - - COUNT( * ) - + COUNT( ALL col0 ) FROM tab0 WHERE NOT - - 67 > + + col1 * - col1 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - COUNT ( * ) - + COUNT ( ALL col0 ) FROM tab0 WHERE NOT - - 67 > + + col1 * - col1 + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL COUNT( * ) + + COUNT( ALL + + col2 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL COUNT ( * ) + + COUNT ( ALL + + col2 ) AS col2 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 92 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 0 + - col2 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1, tab1 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COUNT( * ) + - + MAX( + 68 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-4689
SELECT COUNT ( * ) + - + MAX ( + 68 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

query III rowsort
SELECT * FROM tab2 WHERE col2 / + col0 > + 90
----

query I rowsort
SELECT ALL + col0 * + 19 FROM tab0 WHERE ( NULL ) IS NULL
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE + col2 + 65 NOT BETWEEN NULL AND + - col2 + + 24
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE + col2 + 65 NOT BETWEEN NULL AND + - col2 + + 24
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 88 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4048
5632
6600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4694
SELECT ALL - 9 + - - CAST( NULL AS DECIMAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT ALL - 9 + - - CAST ( NULL AS REAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - + 1 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - ( 88 ) * + - COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-4696
SELECT - ( 88 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT MAX( ALL - 14 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT MAX ( ALL - 14 ) FROM tab0 AS cor0
----
-14

query II rowsort
SELECT + - 85, + 22 * - col0 AS col0 FROM tab0 AS cor0
----
-85
-1914
-85
-2134
-85
-330

query I rowsort
SELECT DISTINCT - col2 + + + 15 * col0 AS col1 FROM tab1
----
1216
1297
669

query I rowsort
SELECT - + 36 AS col2 FROM tab0 cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT + + col2 * 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-4701
SELECT + + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT + - col1 * - col2 * 38 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + - col1 * - col2 * 38 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 AS col2, ( - 77 ) * + col2 FROM tab1 AS cor0
----
-59
-4543
-68
-5236
-96
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - COUNT( * ) * 34 col1 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4705
SELECT - COUNT ( * ) * 34 col1 FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT 8 * - COUNT( DISTINCT - + ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 8 * - COUNT ( DISTINCT - + ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + - 9 * col1 + col0 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + + MIN( + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4708
SELECT + + MIN ( + col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - + MIN( + col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4709
SELECT - + MIN ( + col2 ) AS col2 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT + + COUNT( * ) * + ( ( - ( - 75 ) ) ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + + COUNT ( * ) * + ( ( - ( - 75 ) ) ) FROM tab0 AS cor0
----
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4712
SELECT - CAST( NULL AS DECIMAL ) + - ( - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - CAST ( NULL AS REAL ) + - ( - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL + col0 DIV 28 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + col0 / 28 FROM tab1
----
1
3
3

query I rowsort
SELECT ALL + - 53 AS col0 FROM tab2 AS cor0
----
-53
-53
-53

query II rowsort
SELECT ALL - col0 AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + ( - 74 ) * col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-227920
-287564
-86802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT + 33 DIV - + SUM( DISTINCT ( + 16 ) ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 33 / - + SUM ( DISTINCT ( + 16 ) ) FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT COUNT( DISTINCT - 74 ) * + 20 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4718
SELECT COUNT ( DISTINCT - 74 ) * + 20 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL COUNT( - col2 ) FROM tab1 WHERE NOT NULL <= col1 - - 14
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL COUNT ( - col2 ) FROM tab1 WHERE NOT NULL <= col1 - - 14
----
0

query I rowsort
SELECT - ( + - col2 ) - - col2 - - 84 AS col0 FROM tab2
----
130
164
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + - col0 + + col0 + + + col1 + + - ( + CAST( NULL AS SIGNED ) ) * + col0 * col0 / + CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + - col0 + + col0 + + + col1 + + - ( + CAST ( NULL AS INTEGER ) ) * + col0 * col0 / + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 - col2 col0 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL + + col2 - - - 39 * + col0 AS col1, - 73 FROM tab0 cor0
----
-3383
-73
-3684
-73
-538
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4724
SELECT DISTINCT - COUNT( * ) * - + 65 + + ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - COUNT ( * ) * - + 65 + + ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 78 * - - col2 FROM tab1 cor0
----
4602
5304
7488

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + ( col2 )
----

query I rowsort
SELECT ALL + 9 - col0 FROM tab1 AS cor0
----
-42
-76
-82

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + + col2 * + + 1 <= col0
----
15
81
47
87
21
10

query II rowsort
SELECT col2, + 50 AS col1 FROM tab1
----
59
50
68
50
96
50

onlyif mysql # DIV for integer division: 
query II rowsort label-4730
SELECT DISTINCT col2 col1, - col1 DIV col2 FROM tab2
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4730
SELECT DISTINCT col2 col1, - col1 / col2 FROM tab2
----
23
-2
40
-1
58
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT + ( - 39 ) DIV - + COUNT( * ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4731
SELECT + ( - 39 ) / - + COUNT ( * ) AS col2 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT 61 * + COUNT( * ) col1 FROM tab1
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4732
SELECT DISTINCT 61 * + COUNT ( * ) col1 FROM tab1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT + 9 DIV - + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 9 / - + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4734
SELECT + CAST( + ( - col0 ) AS SIGNED ) AS col1, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-4734
SELECT + CAST ( + ( - col0 ) AS INTEGER ) AS col1, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT 97 * + - 2 FROM tab2
----
-194
-194
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - MIN( - - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4737
SELECT - MIN ( - - col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT - 20 * - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-100
-280
-940

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 > - col0 - + - col0 * 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + + MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + + MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT CAST( - + CAST( - 65 AS SIGNED ) AS SIGNED ) col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4741
SELECT DISTINCT CAST ( - + CAST ( - 65 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT ( ( - + COUNT( * ) ) ) AS col1, ( + + 26 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
26

skipif mysql # not compatible
query II rowsort label-4742
SELECT ( ( - + COUNT ( * ) ) ) AS col1, ( + + 26 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - col1 ) <= 46 + + + col2 )
----

query I rowsort
SELECT - + 47 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL + + CAST( + MAX( DISTINCT - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + + CAST ( + MAX ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT + - col1 + + + col0 * + 8 AS col1 FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 15 * - col0 AS col2 FROM tab1
----
-1275
-1365
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL - - CAST( + 79 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - - CAST ( + 79 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT COUNT( + + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( + + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL 81 + - - MIN( ALL - col1 ) + 65 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL 81 + - - MIN ( ALL - col1 ) + 65 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT CAST( + + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4752
SELECT CAST ( + + col1 AS INTEGER ) FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2 WHERE - 72 > - + 26 + - + col1
----
20

query I rowsort
SELECT ALL - 3 + - + col1 + - col1 FROM tab1 cor0
----
-13
-31
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4755
SELECT ALL - 14 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - 14 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) + - col0 col2 FROM tab2 AS cor0
----
-43
-61
-72

query I rowsort
SELECT DISTINCT + col1 * + 20 FROM tab0
----
1620
20
420

query I rowsort
SELECT ALL - + ( - + col0 ) * col0 + - - col0 FROM tab2 WHERE NOT NULL <> - 43
----

query I rowsort
SELECT - col0 FROM tab0 WHERE - - col2 * 16 IS NULL
----

query I rowsort
SELECT ALL - 79 + - 41 AS col2 FROM tab0
----
-120
-120
-120

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + COUNT( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4762
SELECT + COUNT ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL + COUNT( - 63 ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + COUNT ( - 63 ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT + COUNT( * ) - - + 47 + + 54 * - - 72 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + COUNT ( * ) - - + 47 + + 54 * - - 72 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT ALL ( + - ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col1 - - + col0 + - col2 FROM tab0 cor0
----
-113
-3
56

query I rowsort
SELECT + col0 * - + 2 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT MAX( ALL - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4769
SELECT MAX ( ALL - + col2 ) FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 / 53 NOT IN ( col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT + 79 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 / - - col1 > - + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT + - COUNT( * ) - 71 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-80

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT + - COUNT ( * ) - 71 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 91 <> 6
----

query II rowsort
SELECT + col1 AS col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT + 39 * + - col0 FROM tab2 AS cor0
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT DISTINCT + 52, + MIN( - + col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
52
-297

skipif mysql # not compatible
query II rowsort label-4777
SELECT DISTINCT + 52, + MIN ( - + col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
52
-297

query II rowsort
SELECT + - col1 AS col0, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT DISTINCT - - 45 AS col2, ( - col0 ) AS col2 FROM tab1 AS cor0
----
45
-51
45
-85
45
-91

query II rowsort
SELECT DISTINCT - 33 AS col1, + 78 FROM tab0 AS cor0
----
-33
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + 24 * + COUNT( * ) * - 14 col1 FROM tab0 AS cor0
----
-1008

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4781
SELECT + 24 * + COUNT ( * ) * - 14 col1 FROM tab0 AS cor0
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT - - 22 DIV - MAX( - ( + 45 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT - - 22 / - MAX ( - ( + 45 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 68 * - 55 AS col1 FROM tab1 AS cor0
----
3740
3740
3740

query II rowsort
SELECT DISTINCT col1, col2 FROM tab1 AS cor0 WHERE + 10 IS NULL
----

query I rowsort
SELECT col0 * + col0 + + col1 + + 32 AS col1 FROM tab0
----
338
7622
9442

query I rowsort
SELECT ALL col2 + + ( + + col0 ) + + col2 + - 96 * col1 - col2 * + 6 FROM tab2
----
-4942
-6589
-7488

query I rowsort
SELECT DISTINCT - col1 + 55 + - ( col0 ) FROM tab1
----
-10
-35
-83

query II rowsort
SELECT ALL - col0 + col0 AS col2, col0 AS col2 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4789
SELECT - col0 * - col1 * col0 - col0 DIV - CAST( - 36 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
107915
315391
376873

skipif mysql # not compatible
query I rowsort label-4789
SELECT - col0 * - col1 * col0 - col0 / - CAST ( - 36 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
107915
315391
376873

query I rowsort
SELECT ALL ( 39 ) + col1 AS col1 FROM tab2 AS cor0
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT - COUNT( * ) * + 51 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - COUNT ( * ) * + 51 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL col1 + + 5 AS col1 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT COUNT( * ) DIV + 75 + + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) / + 75 + + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 * + 50 + col1 FROM tab0 AS cor0
----
-4329
-4849
-669

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4795
SELECT * FROM tab2 AS cor0 WHERE - col1 + + + col1 + col2 <> + col2 - - CAST( NULL AS SIGNED ) + 36
----

skipif mysql # not compatible
query III rowsort label-4795
SELECT * FROM tab2 AS cor0 WHERE - col1 + + + col1 + col2 <> + col2 - - CAST ( NULL AS INTEGER ) + 36
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4796
SELECT ALL col0 DIV + col2 + + + 14 AS col0, ( + col0 ) + 40 FROM tab0 AS cor0
----
14
137
14
55
22
127

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL col0 / + col2 + + + 14 AS col0, ( + col0 ) + 40 FROM tab0 AS cor0
----
14
137
14
55
22
127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col2 * - col2 + 61 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + ( col1 ) * 6 + - - ( + 61 ) + - col2 FROM tab1 AS cor0
----
-119
-28
-289

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT - 24 DIV col1 FROM tab0 cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - 24 / col1 FROM tab0 cor0
----
-1
-24
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + - ( + col2 ) ) IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, col1 + - col1 AS col1 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col0 FROM tab2
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4805
SELECT col1 DIV + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT col1 / + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 18
----

query I rowsort
SELECT + ( + col2 ) * - col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT ALL - 34 * + + ( - + SUM( ALL - CAST( - col1 AS SIGNED ) ) ) AS col0 FROM tab1
----
2244

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 34 * + + ( - + SUM ( ALL - CAST ( - col1 AS INTEGER ) ) ) AS col0 FROM tab1
----
2244

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT DISTINCT + COUNT( * ) AS col2, + 35 col2 FROM tab0 AS cor0
----
3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4809
SELECT DISTINCT + COUNT ( * ) AS col2, + 35 col2 FROM tab0 AS cor0
----
3
35

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( col1 + 2 ) NOT BETWEEN 1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT + 60 DIV + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + 60 / + col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4812
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4812
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT - col2 + - ( + CAST( - 93 AS SIGNED ) ) * - 43 AS col0 FROM tab2
----
-4022
-4039
-4057

skipif mysql # not compatible
query I rowsort label-4813
SELECT - col2 + - ( + CAST ( - 93 AS INTEGER ) ) * - 43 AS col0 FROM tab2
----
-4022
-4039
-4057

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + SUM( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4814
SELECT ALL + SUM ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4815
SELECT - MAX( + CAST( 86 AS SIGNED ) ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT - MAX ( + CAST ( 86 AS INTEGER ) ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + col1 * + ( 1 ) FROM tab0 cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 col0 FROM tab0 AS cor0
----
-56
-56
-56

query II rowsort
SELECT + col0 * col2, + col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 34 ), + col1 - + + 93 col2 FROM tab0 AS cor0
----
34
-12
34
-72
34
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, + col1 + col1 col1 FROM tab0
----
15
162
87
42
97
2

query II rowsort
SELECT + col2, - col2 * - col2 AS col0 FROM tab2
----
23
529
40
1600
58
3364

query II rowsort
SELECT DISTINCT 42 * + + 92 + + 16, + col0 FROM tab0
----
3880
15
3880
87
3880
97

query I rowsort
SELECT - col1 * - ( - col2 ) + - - col1 AS col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL OR NULL = NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = col0 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * 69 col2 FROM tab1
----
3450
3450
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 72 col1 FROM tab1 WHERE NOT + col1 + col1 BETWEEN NULL AND - col0 + + 54 * 15
----

query III rowsort
SELECT * FROM tab2 WHERE 11 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL 85 DIV col2 col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL 85 / col2 col2 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab2
----
41
41
41

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE ( 15 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT col2 / + col1 > 10 * + 99
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> + col1 * 71
----

query III rowsort
SELECT * FROM tab0 WHERE 16 BETWEEN col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT - col0 - + 29 * - col2 FROM tab0 WHERE NOT + 94 * + col2 < ( - col0 + - col0 )
----
1348
203
2774

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT col1 + - col0 DIV 83 AS col2 FROM tab0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-4841
SELECT col1 + - col0 / 83 AS col2 FROM tab0
----
0
20
81

query I rowsort
SELECT ALL col2 + + 2 AS col0 FROM tab1
----
61
70
98

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 NOT IN ( col1 + ( col1 + + 90 ) * + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT SUM( 26 ) / - 30 FROM tab1 WHERE NOT NULL NOT BETWEEN - 60 * + ( col0 ) - + col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT SUM ( 26 ) / - 30 FROM tab1 WHERE NOT NULL NOT BETWEEN - 60 * + ( col0 ) - + col1 AND col0
----
NULL

query I rowsort
SELECT col1 + 26 AS col1 FROM tab1
----
31
40
73

query I rowsort
SELECT ALL + col0 + + 98 AS col2 FROM tab2 WHERE NOT + 82 * - 3 BETWEEN + col0 AND ( - col2 )
----
144
162
173

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT col0 + 47 DIV + 18 AS col2 FROM tab0
----
17
89
99

skipif mysql # not compatible
query I rowsort label-4847
SELECT col0 + 47 / + 18 AS col2 FROM tab0
----
17
89
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT DISTINCT ( CAST( ( - MAX( col2 ) ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT ( CAST ( ( - MAX ( col2 ) ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 6 FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN + 32 AND NULL
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) * MIN( - CAST( NULL AS SIGNED ) * - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) * MIN ( - CAST ( NULL AS INTEGER ) * - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 65 * - col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

query I rowsort
SELECT 82 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT ALL 92 * SUM( - col0 * ( + ( + col0 ) DIV col1 ) ) FROM tab1 AS cor0
----
-155388

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL 92 * SUM ( - col0 * ( + ( + col0 ) / col1 ) ) FROM tab1 AS cor0
----
-155388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - MIN( + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4855
SELECT - MIN ( + col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT col0 < - col1
----
15
87
97

query I rowsort
SELECT - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 39 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) * - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4860
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-4860
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 col0 FROM tab0 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col1 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN + col1 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 18 * - col2 AS col1 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT ALL + + CAST( ( + 36 ) AS SIGNED ) FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + + CAST ( ( + 36 ) AS INTEGER ) FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + MIN( col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + MIN ( col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 75 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 * col0 > + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 1 + col1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL col0 FROM tab2 WHERE ( col1 ) > ( CAST( 97 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL col0 FROM tab2 WHERE ( col1 ) > ( CAST ( 97 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT ALL - 67 + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - 67 + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) + - 6 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) + - 6 FROM tab1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE col2 > 73
----
51
14
96

query I rowsort
SELECT col2 + + 27 * 65 FROM tab0
----
1765
1802
1854

query I rowsort
SELECT DISTINCT + ( col1 ) + - 68 FROM tab1 WHERE NULL <> - col1 / + col1
----

query I rowsort
SELECT DISTINCT 98 + + 43 AS col0 FROM tab0
----
141

query I rowsort
SELECT 62 + ( col0 ) * col0 FROM tab0 WHERE - col1 NOT BETWEEN - 24 AND col0
----
287

query I rowsort
SELECT DISTINCT - col0 + + 59 AS col1 FROM tab0
----
-28
-38
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col1 ) + 35 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT + SUM( ALL col1 ) - 84 col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4880
SELECT DISTINCT + SUM ( ALL col1 ) - 84 col1 FROM tab0 AS cor0
----
19

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 IS NULL
----

query I rowsort
SELECT ALL - + 56 - 23 * 86 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 41a5b6d74d9318f33f6bd81edd57c1b3

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT COUNT( * ) * 72 AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4883
SELECT COUNT ( * ) * 72 AS col1 FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE + 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE + 75 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT DISTINCT 45, + SUM( - 13 ) AS col2 FROM tab1 cor0
----
45
-39

skipif mysql # not compatible
query II rowsort label-4887
SELECT DISTINCT 45, + SUM ( - 13 ) AS col2 FROM tab1 cor0
----
45
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT MAX( ALL + - col0 ) * COUNT( * ) + + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-4888
SELECT MAX ( ALL + - col0 ) * COUNT ( * ) + + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + MIN( 29 ) * COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4889
SELECT + MIN ( 29 ) * COUNT ( * ) AS col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 41 * col0 AS col1 FROM tab0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT ALL COUNT( * ) DIV - 42 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL COUNT ( * ) / - 42 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + COUNT( - + ( col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + COUNT ( - + ( col0 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + 40 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + - col1 - + 99 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 57 NOT BETWEEN ( - - 6 + col0 ) AND col0
----

query I rowsort
SELECT - col0 * - - col1 * + - 0 * + + col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 13 * - 3 * col0 FROM tab0 AS cor0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - + MAX( ALL + col0 ) * MIN( col2 + + 43 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - + MAX ( ALL + col0 ) * MIN ( col2 + + 43 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, + 24 FROM tab0 AS cor0
----
10
24
47
24
99
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 25, 24 * + + 23 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 744c7474291c2b143a5ea560d4e4bdd0

query I rowsort
SELECT col0 + col2 - + - 78 FROM tab1
----
222
225
237

query III rowsort
SELECT ALL * FROM tab1 WHERE 0 = - 48
----

query I rowsort
SELECT 83 + + - col0 + - - col2 FROM tab1
----
128
57
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT + + col0 + - 39 DIV col1 AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + col0 + - 39 / col1 AS col1 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT DISTINCT - 30 AS col1, + 53 FROM tab1 AS cor0
----
-30
53

query I rowsort
SELECT - 53 * + + 42 AS col1 FROM tab0 AS cor0
----
-2226
-2226
-2226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) + - COUNT( ALL + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT - col1 + + - ( - - 86 ) + - CAST( NULL AS SIGNED ) * - ( - col0 ) <= - 95 + 78
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4909
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT - col1 + + - ( - - 86 ) + - CAST ( NULL AS INTEGER ) * - ( - col0 ) <= - 95 + 78
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4910
SELECT DISTINCT - MAX( DISTINCT 50 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 88 + + - CAST( + - 54 AS DECIMAL ) + - 19 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT - MAX ( DISTINCT 50 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 88 + + - CAST ( + - 54 AS REAL ) + - 19 = NULL
----
NULL

query I rowsort
SELECT col1 * 14 FROM tab0
----
1134
14
294

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4912
SELECT CAST( NULL AS SIGNED ), - col2 * + col2 DIV - col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4912
SELECT CAST ( NULL AS INTEGER ), - col2 * + col2 / - col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL - - SUM( DISTINCT col1 ) * 66 FROM tab0 WHERE NOT - 94 * + + 28 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - - SUM ( DISTINCT col1 ) * 66 FROM tab0 WHERE NOT - 94 * + + 28 <> NULL
----
NULL

query I rowsort
SELECT + 26 - col1 FROM tab2
----
-25
-41
-51

query I rowsort
SELECT - - 90 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( + 79 ) BETWEEN ( NULL ) AND col1 + 38 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT SUM( col0 ) + + 85 - - MIN( - - 39 ) FROM tab0
----
323

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT SUM ( col0 ) + + 85 - - MIN ( - - 39 ) FROM tab0
----
323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT ( col1 ) - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT ( col1 ) - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query II rowsort
SELECT + 33 AS col2, - col0 * - col0 FROM tab0 AS cor0
----
33
225
33
7569
33
9409

query I rowsort
SELECT ALL - 2 * col2 * - 17 + + + 66 - + col1 FROM tab1 AS cor0
----
2067
2331
3316

query I rowsort
SELECT + col0 * - - 95 + - col2 AS col0 FROM tab1 AS cor0
----
4749
8016
8577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4923
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query II rowsort
SELECT + + ( + 70 ), col0 FROM tab2 AS cor0
----
70
46
70
64
70
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT col0 IN ( + ( - + col0 ) * - + col2 * + 92 + 82 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - - col1 AND NULL
----
-14
-47
-5

query II rowsort
SELECT ALL + col1 AS col2, + col0 + + col2 FROM tab0
----
1
196
21
97
81
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL + 80 * - COUNT( * ) * - - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + 80 * - COUNT ( * ) * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + ( COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT ALL + ( COUNT ( * ) ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4930
SELECT * FROM tab1 WHERE NOT + + col2 * + - col0 + + CAST( - + 98 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4930
SELECT * FROM tab1 WHERE NOT + + col2 * + - col0 + + CAST ( - + 98 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 12 + - 11 AS col1 FROM tab1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4932
SELECT SUM( DISTINCT col0 ) * 99 FROM tab0 WHERE NOT + CAST( - col0 AS DECIMAL ) * + col2 * col1 - + 81 * - col0 * + 73 IS NULL
----
19701

skipif mysql # not compatible
query I rowsort label-4932
SELECT SUM ( DISTINCT col0 ) * 99 FROM tab0 WHERE NOT + CAST ( - col0 AS REAL ) * + col2 * col1 - + 81 * - col0 * + 73 IS NULL
----
19701

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT ALL 51 + col1 DIV + col0 FROM tab0
----
51
51
56

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 51 + col1 / + col0 FROM tab0
----
51
51
56

query I rowsort
SELECT ( - - 1 ) + col0 AS col2 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT + col1 * - col2 * + 37 AS col0 FROM tab1 AS cor0
----
-10915
-118252
-49728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + col0 col2 FROM tab2 AS cor0
----
-3680
-5120
-6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE - + col0 IN ( + + col1, col1 / + 55 * - - 5 + + 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4938
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( + + col1 ) + 18 FROM tab1
----
23
32
65

query III rowsort
SELECT * FROM tab2 WHERE ( + 96 + - + 51 ) IS NULL
----

query I rowsort
SELECT + col1 + - + 79 * - + col2 FROM tab1 AS cor0
----
4666
5419
7598

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT + col0 * + - 23 - col1 + - col2 DIV 29 + 57 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( + col2 * - + 35 DIV + col0 ) AND ( NULL )
----
-1965
-2178

skipif mysql # not compatible
query I rowsort label-4942
SELECT + col0 * + - 23 - col1 + - col2 / 29 + 57 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( + col2 * - + 35 / + col0 ) AND ( NULL )
----
-1965
-2178

query I rowsort
SELECT DISTINCT 35 - + 14 - + + 31 AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT 2 DIV col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT 2 / col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * - 51 + + 99 AS col2 FROM tab1 cor0
----
3108
3567
4995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + 78 + - col0 AS col1 FROM tab1
----
-13
-7
27

query III rowsort
SELECT * FROM tab1 WHERE - - col0 / - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT - 78 + - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - 78 + - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
-81

query I rowsort
SELECT ALL - 73 - col2 FROM tab2
----
-113
-131
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - SUM( DISTINCT col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4951
SELECT - SUM ( DISTINCT col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT DISTINCT COUNT( col0 ) AS col2, + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + 96, col1 + + - col2, - ( + - 98 ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-4952
SELECT DISTINCT COUNT ( col0 ) AS col2, + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + 96, col1 + + - col2, - ( + - 98 ) )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ALL + col0 + - - col0 DIV + col2 + - - 12 + + 65 * - - col1 AS col0 FROM tab1 AS cor0
----
3159
423
973

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + col0 + - - col0 / + col2 + - - 12 + + 65 * - - col1 AS col0 FROM tab1 AS cor0
----
3159
423
973

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - - 58 * + COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - - 58 * + COUNT ( * ) FROM tab2 AS cor0
----
174

query I rowsort
SELECT DISTINCT ( - 4 ) * col0 - 11 FROM tab2 AS cor0
----
-195
-267
-311

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT + + col2 DIV ( col1 ) FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + + col2 / ( col1 ) FROM tab0 AS cor0
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT + MIN( DISTINCT + + col2 ) col2 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) col2 FROM tab2
----
23

query II rowsort
SELECT 70 AS col1, + 99 AS col0 FROM tab1
----
70
99
70
99
70
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 91 ) col1 FROM tab1
----
-91

query II rowsort
SELECT - 99, - col2 * - col1 AS col0 FROM tab0
----
-99
210
-99
3807
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT MIN( - col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4962
SELECT DISTINCT MIN ( - col2 ) col1 FROM tab0
----
-99

query I rowsort
SELECT + ( 83 ) * col2 AS col0 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - - SUM( ALL + 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - - SUM ( ALL + 8 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL + - ( - 35 ) AS col2 FROM tab0 cor0
----
35
35
35

query II rowsort
SELECT + col1 AS col1, col2 AS col1 FROM tab1 cor0
----
14
96
47
68
5
59

query II rowsort
SELECT ALL - 49 AS col1, 78 * col1 AS col0 FROM tab2 AS cor0
----
-49
3978
-49
5226
-49
6006

query I rowsort
SELECT DISTINCT + AVG ( ALL - ( + col1 ) ) * - 36 AS col0 FROM tab1 AS cor0 WHERE 28 + - - 3 / - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT + ( - COUNT( * ) ) AS col0, - COUNT( * ) AS col1 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4969
SELECT + ( - COUNT ( * ) ) AS col0, - COUNT ( * ) AS col1 FROM tab0
----
-3
-3

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT + 33 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4971
SELECT ALL * FROM tab1 WHERE NOT - CAST( - - col0 AS SIGNED ) - - col1 * + col0 * 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4971
SELECT ALL * FROM tab1 WHERE NOT - CAST ( - - col0 AS INTEGER ) - - col1 * + col0 * 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 19 + col1 FROM tab0
----
100
20
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 60 >= - col2
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - 16 AS col1 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 46 + + col1 AS col1 FROM tab0 AS cor0
----
127
47
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT + col2 * 31 DIV - 83 - col2 FROM tab2 AS cor0
----
-31
-54
-79

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + col2 * 31 / - 83 - col2 FROM tab2 AS cor0
----
-31
-54
-79

query I rowsort
SELECT ALL + col0 * + + col0 - - 23 * col1 + + + col2 AS col2 FROM tab0 cor0
----
2135
8062
9531

query I rowsort
SELECT ALL - 56 * ( - - col1 ) * 32 FROM tab2 AS cor0
----
-120064
-137984
-91392

query I rowsort
SELECT - 94 - + col0 + + col1 FROM tab0 AS cor0
----
-160
-190
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4983
SELECT + + col1 - - CAST( - + col2 AS SIGNED ) col1, col1 FROM tab2 cor0
----
28
51
37
77
9
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4983
SELECT + + col1 - - CAST ( - + col2 AS INTEGER ) col1, col1 FROM tab2 cor0
----
28
51
37
77
9
67

query II rowsort
SELECT - - 87 - + col2 + col0 AS col1, - 13 AS col0 FROM tab0 cor0
----
164
-13
55
-13
85
-13

query II rowsort
SELECT + ( + - col2 ) - - col1 AS col1, col1 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT 3 DIV 77 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT 3 / 77 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT 52 + + col1 FROM tab2
----
103
119
129

query I rowsort
SELECT 51 * - 84 + + col0 FROM tab1
----
-4193
-4199
-4233

query I rowsort
SELECT + col2 FROM tab0 WHERE + col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL - COUNT( DISTINCT - col1 ) * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - COUNT ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4991
SELECT ALL - col1 AS col1, - 12 * - - 19 AS col1, + - col2 + col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) = - - col2
----

skipif mysql # not compatible
query III rowsort label-4991
SELECT ALL - col1 AS col1, - 12 * - - 19 AS col1, + - col2 + col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) = - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 61 < + - CAST( NULL AS SIGNED ) * + + 85 + - col2
----

skipif mysql # not compatible
query III rowsort label-4992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 61 < + - CAST ( NULL AS INTEGER ) * + + 85 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col2 ) * + col1 * - col1 ) IN ( + col2 / - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 * - - ( col1 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0 WHERE col1 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + - COUNT( * ) * + 98 AS col0 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-4996
SELECT + - COUNT ( * ) * + 98 AS col0 FROM tab2 AS cor0
----
-294

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4997
SELECT ALL - + CAST( 49 AS SIGNED ) DIV - col1 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-4997
SELECT ALL - + CAST ( 49 AS INTEGER ) / - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL COUNT ( * ) FROM tab2, tab1 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * + - 19 AND + 15
----

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT DISTINCT - + COUNT( * ) DIV + + ( + ( - 98 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - + COUNT ( * ) / + + ( + ( - 98 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + col2 * - 13 FROM tab2
----
-253
-456
-679

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col2 ) + + 6 FROM tab2
----
-17
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL - COUNT( * ) + + + MAX( col2 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - COUNT ( * ) + + + MAX ( col2 ) AS col0 FROM tab1
----
93

query I rowsort
SELECT ALL 46 + - + 80 AS col2 FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL 91 + COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL 91 + COUNT ( * ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL ( - ( + 23 ) ) + - - SUM( ALL + 7 ) - - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL ( - ( + 23 ) ) + - - SUM ( ALL + 7 ) - - COUNT ( * ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 - - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - - COUNT( * ) col1 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5011
SELECT - - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - col0 - + + 16, col2 + col1 * col0 / - 98 )
----

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab0 cor0
----
17

query I rowsort
SELECT ALL 77 * + - 87 + col0 AS col2 FROM tab2
----
-6624
-6635
-6653

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT CAST( NULL AS DECIMAL ) - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT CAST ( NULL AS REAL ) - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT col1 - - ( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT col1 - - ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 + + col1 * col0 * col2 AS col1 FROM tab1 AS cor0
----
25160
290927
68595

query I rowsort
SELECT - - 78 + 11 FROM tab0 AS cor0
----
89
89
89

query III rowsort
SELECT ALL col0 + + + col2 * + + 92, ( + - col0 ) AS col1, - - ( - + 61 ) * + col1 * 9 AS col2 FROM tab1 cor0
----
9 values hashing to 1bdc8455728d86bc44b7cc6f0c241f90

query II rowsort
SELECT DISTINCT + ( col0 ), 59 * col1 * + + 35 + - 68 FROM tab0 AS cor0
----
15
167197
87
43297
97
1997

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < col2 / col2 + + + 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT SUM( ALL + - col0 ) AS col0, 79 + + - MAX( ( 58 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5022
SELECT SUM ( ALL + - col0 ) AS col0, 79 + + - MAX ( ( 58 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT COUNT( * ) * 89 AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5024
SELECT COUNT ( * ) * 89 AS col1 FROM tab2
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT + ( - + ( - + MAX( - - CAST( - col1 AS SIGNED ) ) ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5025
SELECT + ( - + ( - + MAX ( - - CAST ( - col1 AS INTEGER ) ) ) ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 27 < col1 )
----

query I rowsort
SELECT col0 * - 23 AS col1 FROM tab0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5028
SELECT - 51 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, ( 37 ) FROM tab2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5028
SELECT - 51 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, ( 37 ) FROM tab2
----
NULL
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 + ( - + col1 ) >= NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, + col0 * + col2 AS col1 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5031
SELECT + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5031
SELECT + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - col2 + - - col0 FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT DISTINCT 55 DIV 51 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT 55 / 51 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5036
SELECT * FROM tab0 AS cor0 WHERE ( NOT - CAST( - col0 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5036
SELECT * FROM tab0 AS cor0 WHERE ( NOT - CAST ( - col0 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT - - 21 AS col2 FROM tab1 AS cor0 WHERE + col1 >= - + col2 / - + CAST( NULL AS SIGNED ) / - + col2
----

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - - 21 AS col2 FROM tab1 AS cor0 WHERE + col1 >= - + col2 / - + CAST ( NULL AS INTEGER ) / - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT - - MAX( - + 95 ) AS col1 FROM tab2 AS cor0 WHERE - ( + + CAST( col0 AS SIGNED ) ) - + + 9 * + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT - - MAX ( - + 95 ) AS col1 FROM tab2 AS cor0 WHERE - ( + + CAST ( col0 AS INTEGER ) ) - + + 9 * + - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT - + col2 + col0 DIV col0 AS col2 FROM tab0 cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - + col2 + col0 / col0 AS col2 FROM tab0 cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + MIN ( col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col0 + + 93 * - 19 AS col1 FROM tab2 AS cor0
----
-1813
-1831
-1842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT ( - - SUM( ALL + ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT ( - - SUM ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL - 0 + MIN( 48 ) + + 7 * + COUNT( col2 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - 0 + MIN ( 48 ) + + 7 * + COUNT ( col2 ) FROM tab0
----
69

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - - 28 * - col1 + + 22 + + + col0 + col2 FROM tab0
----
12467
183792
246

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT + COUNT( * ) + + 40 + + 99 AS col2 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IN ( - 36 )
----
139

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + COUNT ( * ) + + 40 + + 99 AS col2 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IN ( - 36 )
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT + 60 DIV - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5048
SELECT + 60 / - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col2 * + col1 col2 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE + col2 * - + col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT + col0 - - 46 FROM tab1 AS cor0
----
131
137
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT SUM( ALL - col2 ) / - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT SUM ( ALL - col2 ) / - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT - 61 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-61
3

skipif mysql # not compatible
query II rowsort label-5055
SELECT - 61 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-61
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 96 AS col0, col2 + - col2 FROM tab2 AS cor0
----
96
0

query I rowsort
SELECT DISTINCT + + 24 + col0 FROM tab0 cor0 WHERE NOT - col0 >= + col1
----
111
121
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + + MAX( 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5059
SELECT + + MAX ( 55 ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT - 39 * - col2 AS col0 FROM tab0 AS cor0
----
1833
3861
390

query I rowsort
SELECT 11 * + + col0 FROM tab1
----
1001
561
935

query II rowsort
SELECT col2 * - + 59 * - 42 AS col0, - col1 FROM tab0
----
116466
-81
245322
-1
24780
-21

query II rowsort
SELECT + 60 + + ( - col0 ) * + - 0 AS col2, 9 / - - col2 * + col0 AS col2 FROM tab0 WHERE NOT NULL < col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + SUM( ALL + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5065
SELECT + SUM ( ALL + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + + MIN( ( + col2 ) ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5066
SELECT + + MIN ( ( + col2 ) ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5067
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 97 AND + - 60
----

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE ( - col1 IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - MIN( DISTINCT - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5070
SELECT - MIN ( DISTINCT - col2 ) FROM tab0
----
99

query II rowsort
SELECT ALL col0, ( + - 54 ) FROM tab2
----
46
-54
64
-54
75
-54

query I rowsort
SELECT - col2 + - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT + - ( - 34 ) * - CAST( - COUNT( * ) AS SIGNED ) + + 50 FROM tab2 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-5073
SELECT + - ( - 34 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + 50 FROM tab2 AS cor0
----
152

query I rowsort
SELECT + 30 + + 26 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + COUNT( - col1 ) + - COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT + COUNT ( - col1 ) + - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col0 AS col0, col2 FROM tab2 AS cor0 WHERE NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - COUNT( * ) FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - COUNT ( * ) FROM tab1, tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 21 ) + - - 96 col0 FROM tab1
----
117
117
117

query I rowsort
SELECT DISTINCT - col1 + - 9 AS col2 FROM tab1
----
-14
-23
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * - col1 + + + 81 + - ( + 81 ) / + + 22 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * - col1 + + + 81 + - ( + 81 ) / + + 22 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col2 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 57 * - - col2 + - col2 + - 16 FROM tab0 cor0
----
2616
544
5528

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ( - - COUNT( ALL - 20 ) ) 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-5083
SELECT ( - - COUNT ( ALL - 20 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + + col2 + col1 FROM tab0 AS cor0 WHERE 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 27 col0 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5086
SELECT ALL col2 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL col2 + + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5087
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5088
SELECT - SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + 24 * + - col2 * - col2 AS col2 FROM tab1
----
110976
221184
83544

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + COUNT( col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + COUNT ( col1 ) FROM tab1
----
3

query II rowsort
SELECT col0 AS col0, 71 FROM tab0
----
15
71
87
71
97
71

query I rowsort
SELECT - col2 * + - col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5093
SELECT - 60 col2, CAST( + 96 AS SIGNED ) AS col0 FROM tab1
----
-60
96
-60
96
-60
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5093
SELECT - 60 col2, CAST ( + 96 AS INTEGER ) AS col0 FROM tab1
----
-60
96
-60
96
-60
96

query II rowsort
SELECT DISTINCT 71, + col2 FROM tab1
----
71
59
71
68
71
96

query I rowsort
SELECT + ( - 6 ) FROM tab0
----
-6
-6
-6

query II rowsort
SELECT ALL - col0 AS col2, + col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + SUM( ALL col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5097
SELECT + SUM ( ALL col2 ) AS col1 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0 WHERE NOT col1 * + col1 + - 99 >= NULL
----

query II rowsort
SELECT ALL 61 AS col0, col1 + - col2 AS col0 FROM tab0
----
61
-98
61
11
61
34

query I rowsort
SELECT ( ( + col1 ) ) + - + col2 AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - 62 + + col2 FROM tab2
----
-22
-39
-4

query I rowsort
SELECT ALL - + 61 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - - 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5105
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - + CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5105
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - + CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 56 * - col0 AS col2 FROM tab1 AS cor0
----
2856
4760
5096

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - 53 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT COUNT( - 86 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5109
SELECT COUNT ( - 86 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL + 47 * COUNT( * ) - - + 73 FROM tab0 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + 47 * COUNT ( * ) - - + 73 FROM tab0 AS cor0
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - - MIN( ALL + 16 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT - - MIN ( ALL + 16 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT + 42 - + col2 FROM tab1
----
-17
-26
-54

query I rowsort
SELECT ALL - 74 + - col1 FROM tab1
----
-121
-79
-88

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE + 23 NOT BETWEEN NULL AND + 99
----

query I rowsort
SELECT ALL col2 * + 95 AS col1 FROM tab2 AS cor0
----
2185
3800
5510

query I rowsort
SELECT ALL - + col0 * + + col2 + - 16 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab2 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - SUM( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5120
SELECT - SUM ( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT SUM( DISTINCT + ( - 6 ) ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5121
SELECT SUM ( DISTINCT + ( - 6 ) ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - ( - - 10 ) FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5123
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col2 * col2, - ( col1 ) * + 48 + 43, - col1 + + col0, CAST( - col0 AS SIGNED ) * - + 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5123
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col2 * col2, - ( col1 ) * + 48 + 43, - col1 + + col0, CAST ( - col0 AS INTEGER ) * - + 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5124
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + CAST( + 53 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5124
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + CAST ( + 53 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 59 AS col1, - col2 AS col1 FROM tab1
----
59
-59
59
-68
59
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) * + 55 * + - 63 + + 63 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 55 * + - 63 + + 63 FROM tab1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col0 * 72 col2 FROM tab2 AS cor0
----
-152352
-294912
-405000

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - MAX( - + 26 ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5129
SELECT - MAX ( - + 26 ) AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT + 44 * - 98 FROM tab2 AS cor0
----
-4312
-4312
-4312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE 14 BETWEEN - + col0 AND - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5132
SELECT + col0, 77 DIV + 95 + + - col2 * + col1 col1 FROM tab0
----
15
-3807
87
-210
97
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5132
SELECT + col0, 77 / + 95 + + - col2 * + col1 col1 FROM tab0
----
15
-3807
87
-210
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT 28 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT 28 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 54 AS col2 FROM tab2 AS cor0
----
-2754
-3618
-4158

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 24 <> NULL
----

query I rowsort
SELECT + + 19 + + 74 AS col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT - 83 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT ( - - COUNT( * ) ) * - COUNT( * ) + - COUNT( * ) * + SUM( ALL - col1 ) col0 FROM tab0
----
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT DISTINCT ( - - COUNT ( * ) ) * - COUNT ( * ) + - COUNT ( * ) * + SUM ( ALL - col1 ) col0 FROM tab0
----
300

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - ( - col0 ) + - - 77 IS NULL
----

query II rowsort
SELECT col1 * + - col0, 61 AS col0 FROM tab2
----
-2346
61
-4928
61
-5025
61

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT 71 + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT 71 + COUNT ( * ) FROM tab1
----
74

query I rowsort
SELECT DISTINCT - col0 - - ( col1 ) - + - col2 + 95 * col2 * + + col2 AS col0 FROM tab2
----
152053
319630
50283

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 + + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT MAX( ALL + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5146
SELECT MAX ( ALL + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL SUM ( DISTINCT - col0 ) FROM tab2
----
-185

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT - col2 DIV + - ( + + col1 ) col0 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5149
SELECT DISTINCT - col2 / + - ( + + col1 ) col0 FROM tab0 AS cor0
----
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT - + 15 DIV - 43 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT - + 15 / - 43 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * + 43 FROM tab0 cor0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT 46 * + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT 46 * + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + MAX( DISTINCT - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + MAX ( DISTINCT - 42 ) FROM tab2
----
-42

query I rowsort
SELECT col2 * + 11 AS col2 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + 97 * - MAX( ALL - 54 ) FROM tab2
----
5238

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 97 * - MAX ( ALL - 54 ) FROM tab2
----
5238

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <> col1 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - col2 / + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT DISTINCT col1 + - - col0 * 67 DIV 16 AS col1 FROM tab1
----
227
360
428

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT col1 + - - col0 * 67 / 16 AS col1 FROM tab1
----
227
360
428

query I rowsort
SELECT DISTINCT - col0 + 43 * + 89 - + col1 - - + col2 * - col2 FROM tab2 cor0
----
2086
3201
321

query I rowsort
SELECT ALL + - ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 = + col2
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE 43 * 41 IS NULL
----

query II rowsort
SELECT - col2 AS col0, + col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col0 * 71 - - 74 FROM tab1 AS cor0
----
3695
6109
6535

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - COUNT( * ) - + COUNT( - + 63 ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COUNT ( * ) - + COUNT ( - + 63 ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 11 DIV - 64 - + - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5166
SELECT 11 / - 64 - + - col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - 84 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - 84 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) + + 87 AS col2 FROM tab1
----
-9
19
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5170
SELECT DISTINCT - col0 AS col1, - col1 DIV + CAST( - + col2 AS SIGNED ) FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-5170
SELECT DISTINCT - col0 AS col1, - col1 / + CAST ( - + col2 AS INTEGER ) FROM tab1 cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - - col2 NOT BETWEEN - col2 + + col0 + + 68 - - - col2 AND + 29
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col2 * 38 * + 92 FROM tab2 AS cor0
----
139840
202768
80408

query I rowsort
SELECT - + 32 FROM tab1 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + ( - COUNT( DISTINCT - - 29 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5174
SELECT + ( - COUNT ( DISTINCT - - 29 ) ) FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab0 AS cor0 WHERE - 43 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 54 * + + 54 * - + col2 FROM tab0 AS cor0
----
-137052
-288684
-29160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT + ( - CAST( - - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5179
SELECT + ( - CAST ( - - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 55 + + col0 FROM tab0 WHERE NOT + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= 74 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT MAX( DISTINCT + col0 ) / + + 15 FROM tab2 AS cor0 WHERE col2 IN ( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT MAX ( DISTINCT + col0 ) / + + 15 FROM tab2 AS cor0 WHERE col2 IN ( - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + - MIN( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5184
SELECT + - MIN ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL MAX( ALL - + 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL MAX ( ALL - + 30 ) FROM tab0 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 40 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + col0 * - col2 + 22 * col2 FROM tab1 AS cor0
----
-2784
-3717
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + 56 + 73 AS col1 FROM tab1 AS cor0
----
129
129
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT 14 DIV - col1 AS col1 FROM tab0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT 14 / - col1 AS col1 FROM tab0
----
-14
0
0

query I rowsort
SELECT + col0 * + - 31 FROM tab2
----
-1426
-1984
-2325

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + - 84 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5193
SELECT COUNT( * ) DIV + SUM( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT COUNT ( * ) / + SUM ( + col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL 3 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col0 AND + 41
----

query I rowsort
SELECT 78 * + 77 FROM tab0
----
6006
6006
6006

query I rowsort
SELECT col1 * 40 FROM tab1
----
1880
200
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT + CAST( + CAST( + + col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5199
SELECT + CAST ( + CAST ( + + col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5201
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5201
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 46 col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * 6 col1 FROM tab1 AS cor0
----
3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5204
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * 6 col1 FROM tab1 AS cor0
----
3
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab0 cor0
----
58

query I rowsort
SELECT - col2 * - - col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ( + 20 ) AS col1 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT COUNT( * ) * - 36 AS col2 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT COUNT ( * ) * - 36 AS col2 FROM tab2 AS cor0
----
-108

query II rowsort
SELECT + 15, col0 FROM tab2 AS cor0
----
15
46
15
64
15
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5210
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - SUM( - + col1 ) + - COUNT( * ) AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - SUM ( - + col1 ) + - COUNT ( * ) AS col1 FROM tab1
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT - COUNT( + + col2 ) DIV + SUM( ALL - + 11 ) FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT - COUNT ( + + col2 ) / + SUM ( ALL - + 11 ) FROM tab1 WHERE NULL IS NULL
----
0

query II rowsort
SELECT + col0 * - + 62 AS col2, + 46 FROM tab2
----
-2852
46
-3968
46
-4650
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT ALL - col2 + + col1 + - + CAST( + col2 AS SIGNED ) FROM tab2
----
-3
-49
5

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - col2 + + col1 + - + CAST ( + col2 AS INTEGER ) FROM tab2
----
-3
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT + ( + + ( + COUNT( * ) ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5214
SELECT DISTINCT + ( + + ( + COUNT ( * ) ) ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL CAST( + - 66 AS SIGNED ) * + col1 * 81 + col2 FROM tab0 AS cor0
----
-112256
-432979
-5247

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL CAST ( + - 66 AS INTEGER ) * + col1 * 81 + col2 FROM tab0 AS cor0
----
-112256
-432979
-5247

query I rowsort
SELECT + col1 + - col2 + + - 42 FROM tab2
----
-14
-33
-5

query I rowsort
SELECT ALL - col0 - + 2 AS col0 FROM tab0 cor0
----
-17
-89
-99

query II rowsort
SELECT ALL + 83 * 49 - + 65 + + col0, col1 AS col2 FROM tab0 AS cor0
----
4017
81
4089
21
4099
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - 15 * 98 - - COUNT( * ) + COUNT( * ) - - 94 col2 FROM tab1 cor0
----
-1370

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5220
SELECT - 15 * 98 - - COUNT ( * ) + COUNT ( * ) - - 94 col2 FROM tab1 cor0
----
-1370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5221
SELECT CAST( NULL AS SIGNED ) - + col2 * - 2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5221
SELECT CAST ( NULL AS INTEGER ) - + col2 * - 2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - col2 * 15 FROM tab1
----
-1020
-1440
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT DISTINCT - col1 DIV - 19 AS col0 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - col1 / - 19 AS col0 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT - 95 DIV - - col1 AS col0 FROM tab0 WHERE NOT - col1 - + col1 IS NULL
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-5224
SELECT - 95 / - - col1 AS col0 FROM tab0 WHERE NOT - col1 - + col1 IS NULL
----
-1
-4
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + MAX( ALL + - col2 ) * + 93 AS col2 FROM tab2
----
-2139

skipif mysql # not compatible
query I rowsort label-5225
SELECT + MAX ( ALL + - col2 ) * + 93 AS col2 FROM tab2
----
-2139

query I rowsort
SELECT DISTINCT col2 * - ( + + 51 ) AS col0 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT - col0 * + ( + col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5228
SELECT + col0 * - + 58, col2, + CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5228
SELECT + col0 * - + 58, col2, + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COUNT( * ) + - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) + - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

query I rowsort
SELECT ALL - 65 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - SUM( + - ( + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5231
SELECT - SUM ( + - ( + col1 ) ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5232
SELECT ALL col2, - CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-5232
SELECT ALL col2, - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT + + 46 FROM tab1 AS cor0 WHERE NOT 45 NOT IN ( col0, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT - 44 DIV ( + col0 ) + col2 AS col2 FROM tab0 cor0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-5234
SELECT - 44 / ( + col0 ) + col2 AS col2 FROM tab0 cor0
----
10
45
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5235
SELECT CAST( 48 AS SIGNED ) DIV - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT CAST ( 48 AS INTEGER ) / - 87 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - SUM( DISTINCT + 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5236
SELECT - SUM ( DISTINCT + 97 ) FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT SUM( DISTINCT + 1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5237
SELECT SUM ( DISTINCT + 1 ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 NOT BETWEEN NULL AND 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT DISTINCT CAST( - 9 AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT CAST ( - 9 AS INTEGER ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 27 BETWEEN ( - col1 ) AND - col2
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT ALL - col2 + col0 AS col2, 11 FROM tab0 AS cor0 WHERE NOT + col0 * + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > col2 AND NOT + 32 IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, ( - 23 ) AS col1 FROM tab0
----
10
-23
47
-23
99
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col1 col0 FROM tab1 WHERE - col1 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5246
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL col2 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 AS col2 FROM tab2 WHERE NULL IS NULL
----
-85
-85
-85

query I rowsort
SELECT 55 * - - col1 + - - col0 AS col0 FROM tab2
----
2851
3760
4299

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT - col0 DIV - + col2 + + + 23 + + - col2 * 71 AS col0 FROM tab2
----
-1608
-2816
-4094

skipif mysql # not compatible
query I rowsort label-5249
SELECT - col0 / - + col2 + + + 23 + + - col2 * 71 AS col0 FROM tab2
----
-1608
-2816
-4094

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT + 25 AS col0, - COUNT( * ) AS col0 FROM tab0
----
25
-3

skipif mysql # not compatible
query II rowsort label-5251
SELECT + 25 AS col0, - COUNT ( * ) AS col0 FROM tab0
----
25
-3

query I rowsort
SELECT DISTINCT col2 * - col2 + - + col0 AS col0 FROM tab0
----
-187
-2224
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - SUM( ALL - - col0 ) FROM tab0 WHERE - col2 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - SUM ( ALL - - col0 ) FROM tab0 WHERE - col2 IS NOT NULL
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5254
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT - col2 BETWEEN - ( col2 ) AND - 78 )
----
97
1
99

query I rowsort
SELECT DISTINCT + + col2 + + + 18 FROM tab1 AS cor0
----
114
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 4 <> NULL
----

query I rowsort
SELECT col2 - - col2 + + + 49 AS col0 FROM tab1 AS cor0
----
167
185
241

query I rowsort
SELECT + 73 + ( 58 ) FROM tab0
----
131
131
131

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - - ( - col0 ) AS col2 FROM tab1 WHERE + col0 IS NULL
----

query II rowsort
SELECT col2 + col2, col1 FROM tab2
----
116
67
46
51
80
77

query I rowsort
SELECT DISTINCT col0 + - col1 + 86 * 80 FROM tab1
----
6917
6924
6960

query I rowsort
SELECT col0 * - - col0 * - col2 + + 70 AS col0 FROM tab2
----
-163770
-326180
-48598

query I rowsort
SELECT col1 + col0 + - - 12 AS col0 FROM tab0 AS cor0
----
108
110
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 * - 83 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL + MIN( DISTINCT 88 ) * ( + + ( - - 68 ) ) * - + CAST( + 2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-11968

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + MIN ( DISTINCT 88 ) * ( + + ( - - 68 ) ) * - + CAST ( + 2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-11968

query I rowsort
SELECT 55 * + col0 FROM tab1
----
2805
4675
5005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col1 + - + ( col1 ) * - col2 FROM tab2
----
46
1224
64
3157
75
3953

query I rowsort
SELECT + col1 * + - 65 * - col0 * + + col1 AS col1 FROM tab2
----
21883875
24664640
7776990

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT CAST( - 67 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT CAST ( - 67 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5276
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1 + col2 * CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5276
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1 + col2 * CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT - ( + col2 ) FROM tab2 WHERE + col2 = - 77 / 77
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 37 ) < NULL
----

query I rowsort
SELECT + 82 * 14 AS col1 FROM tab0
----
1148
1148
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - COUNT( * ) * + 48 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5280
SELECT - COUNT ( * ) * + 48 FROM tab2
----
-144

query I rowsort
SELECT DISTINCT 27 * + col0 AS col0 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT DISTINCT - 42 - + ( 49 ) FROM tab0
----
-91

query I rowsort
SELECT ALL AVG ( + col0 ) AS col2 FROM tab1 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + 28 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5285
SELECT ALL + col1 AS col1 FROM tab0 WHERE CAST( - col2 AS DECIMAL ) * - 74 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + col1 AS col1 FROM tab0 WHERE CAST ( - col2 AS REAL ) * - 74 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + ( + col1 ) * - col2 + 59 AS col2 FROM tab2
----
-1114
-3021
-3827

query I rowsort
SELECT col1 * 75 AS col1 FROM tab0
----
1575
6075
75

query I rowsort
SELECT ( - ( ( - col0 ) ) ) AS col1 FROM tab1 WHERE ( + col2 ) NOT IN ( + 52 )
----
51
85
91

query I rowsort
SELECT ALL - col0 * - 3 AS col0 FROM tab2
----
138
192
225

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( 9 * col1 )
----

query I rowsort
SELECT ALL + col1 + - ( col1 ) FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT MIN( ALL col0 ) * - MIN( ALL col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-5293
SELECT MIN ( ALL col0 ) * - MIN ( ALL col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT SUM( - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT DISTINCT SUM ( - col1 ) col2 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5296
SELECT - MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
96

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) - col1 > col2 / + col2
----

query I rowsort
SELECT DISTINCT 10 * 45 AS col0 FROM tab1
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 28 + col0 * + ( + col2 ) FROM tab2
----
1086
2588
4378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 82 col0 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0 WHERE ( 87 / + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN ( - col0 ) AND ( + col0 + col1 * 1 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT * FROM tab1 cor0 WHERE + col0 - col0 <> CAST( NULL AS SIGNED ) - col1 * + col0
----

skipif mysql # not compatible
query III rowsort label-5304
SELECT * FROM tab1 cor0 WHERE + col0 - col0 <> CAST ( NULL AS INTEGER ) - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5305
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN + col0 * - CAST( NULL AS SIGNED ) AND 8
----

skipif mysql # not compatible
query III rowsort label-5305
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN + col0 * - CAST ( NULL AS INTEGER ) AND 8
----

query I rowsort
SELECT 25 + - col0 AS col1 FROM tab0 AS cor0
----
-62
-72
10

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 ) IN ( - 35 * - 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col2 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT col2 * - 9 + + 32 FROM tab2 AS cor0
----
-175
-328
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col0 FROM tab2 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT 22 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT 22 / - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT 34 * - 80 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT CAST( + 81 AS SIGNED ) IS NULL
----
9 values hashing to 82839ebf2b86d5a92810b8fbeb0b77d6

skipif mysql # not compatible
query I rowsort label-5313
SELECT 34 * - 80 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT CAST ( + 81 AS INTEGER ) IS NULL
----
9 values hashing to 82839ebf2b86d5a92810b8fbeb0b77d6

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT + MAX( ALL + 22 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
22

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + MAX ( ALL + 22 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
22

query I rowsort
SELECT DISTINCT - - col2 * + 75 AS col2 FROM tab0 AS cor0
----
3525
7425
750

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5316
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col2 ) + + CAST( NULL AS DECIMAL ) > col2
----

skipif mysql # not compatible
query III rowsort label-5316
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col2 ) + + CAST ( NULL AS REAL ) > col2
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 + + col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE + col0 IN ( 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - ( 69 ) * 17 AS col0 FROM tab1 AS cor0
----
-1173
-1173
-1173

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 68 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT DISTINCT - 48 DIV - - col1 AS col1 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - 48 / - - col1 AS col1 FROM tab1
----
-1
-3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT - CAST( + + 87 AS SIGNED ) FROM tab2
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-5323
SELECT - CAST ( + + 87 AS INTEGER ) FROM tab2
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5324
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT CAST( col2 AS DECIMAL ) + - col1 * + 42 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT CAST ( col2 AS REAL ) + - col1 * + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT 84 * - + ( + MIN( col1 ) ) AS col1 FROM tab1
----
-420

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 84 * - + ( + MIN ( col1 ) ) AS col1 FROM tab1
----
-420

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5326
SELECT DISTINCT * FROM tab2 WHERE ( 59 * - CAST( NULL AS SIGNED ) - - col1 * col0 ) BETWEEN ( col2 / 91 ) AND 1
----

skipif mysql # not compatible
query III rowsort label-5326
SELECT DISTINCT * FROM tab2 WHERE ( 59 * - CAST ( NULL AS INTEGER ) - - col1 * col0 ) BETWEEN ( col2 / 91 ) AND 1
----

query I rowsort
SELECT DISTINCT - 32 * 24 * + col2 AS col2 FROM tab1
----
-45312
-52224
-73728

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + 39 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48
-58
24

query I rowsort
SELECT DISTINCT col1 - col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 / col1 AND - 12 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT MAX( DISTINCT + 49 ) FROM tab1, tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT MAX ( DISTINCT + 49 ) FROM tab1, tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT + 0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

query I rowsort
SELECT + + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col2 + - 55 + + 38 * + col2 AS col1 FROM tab0 AS cor0
----
1778
335
3806

query I rowsort
SELECT - col2 + + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 65 AS col0 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL COUNT( ALL + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL COUNT ( ALL + + col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 BETWEEN - col1 AND ( - col0 )
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 23 / - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 7 ) IS NULL
----

query I rowsort
SELECT + col0 * - col0 * + col0 * col0 AS col1 FROM tab1
----
-52200625
-6765201
-68574961

query I rowsort
SELECT ALL 79 FROM tab0 WHERE ( 18 ) IS NOT NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT DISTINCT - 63 + + + COUNT( * ), - 42 col2 FROM tab0
----
-60
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5343
SELECT DISTINCT - 63 + + + COUNT ( * ), - 42 col2 FROM tab0
----
-60
-42

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5345
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - 53 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5345
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5346
SELECT CAST( - col1 AS SIGNED ) AS col2, - col1 DIV + col2 AS col2 FROM tab2
----
-51
-2
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-5346
SELECT CAST ( - col1 AS INTEGER ) AS col2, - col1 / + col2 AS col2 FROM tab2
----
-51
-2
-67
-1
-77
-1

query I rowsort
SELECT DISTINCT - 81 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + 88 * + CAST( + - col0 AS SIGNED ) - 53 FROM tab2 cor0
----
-4101
-5685
-6653

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 88 * + CAST ( + - col0 AS INTEGER ) - 53 FROM tab2 cor0
----
-4101
-5685
-6653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT ALL + CAST( col0 AS SIGNED ) + + col1 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL + CAST ( col0 AS INTEGER ) + + col1 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE + 13 > - 77
----
-59
-68
-96

query I rowsort
SELECT ALL - 24 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT - 16 + - col0 + + CAST( NULL AS SIGNED ) / 23 FROM tab0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 16 + - col0 + + CAST ( NULL AS INTEGER ) / 23 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT 91 DIV + ( + - col1 ) AS col1 FROM tab0
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-5353
SELECT 91 / + ( + - col1 ) AS col1 FROM tab0
----
-1
-4
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5354
SELECT col1 AS col2, col1 - + + ( - + 75 ) DIV + col2 + 20 FROM tab0 AS cor0
----
1
21
21
48
81
102

skipif mysql # not compatible
query II rowsort label-5354
SELECT col1 AS col2, col1 - + + ( - + 75 ) / + col2 + 20 FROM tab0 AS cor0
----
1
21
21
48
81
102

query I rowsort
SELECT + col1 / - + ( - col0 ) + + col2 FROM tab1 AS cor0 WHERE NOT 23 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT ALL col1 DIV col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + + - col1 + - + 47 * + col1 + col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL col1 / col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + + - col1 + - + 47 * + col1 + col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col1 / + col0 FROM tab1 AS cor0 WHERE NULL <> ( + + col1 * + col2 ) AND NOT 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - + 45 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - + 45 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col0 < NULL
----
0

query II rowsort
SELECT ALL col2, - 97 - + col2 FROM tab2
----
23
-120
40
-137
58
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT COUNT( ALL + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5361
SELECT COUNT ( ALL + col2 ) FROM tab2
----
3

query I rowsort
SELECT ( - ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT col0, + 76 + 96 FROM tab2
----
46
172
64
172
75
172

query I rowsort
SELECT DISTINCT + 97 * - col2 AS col2 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT DISTINCT col2 * ( + col2 ) DIV - 18 - + col2 AS col1 FROM tab1
----
-252
-324
-608

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT col2 * ( + col2 ) / - 18 - + col2 AS col1 FROM tab1
----
-252
-324
-608

query I rowsort
SELECT ALL + 76 * + 15 FROM tab0 AS cor0
----
1140
1140
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT - CAST( + col1 AS SIGNED ) * col0 + + col0 * + 90 AS col1 FROM tab0 cor0
----
135
6003
8633

skipif mysql # not compatible
query I rowsort label-5367
SELECT - CAST ( + col1 AS INTEGER ) * col0 + + col0 * + 90 AS col1 FROM tab0 cor0
----
135
6003
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL MIN( - col2 ) + + + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL MIN ( - col2 ) + + + COUNT ( * ) FROM tab0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5369
SELECT - 80 + + col0 - - ( - 34 ) - - + col2 * - CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT - 80 + + col0 - - ( - 34 ) - - + col2 * - CAST ( CAST ( NULL AS REAL ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL - + MIN( 83 ) * 89 AS col0 FROM tab0 WHERE ( 75 + 38 ) <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - + MIN ( 83 ) * 89 AS col0 FROM tab0 WHERE ( 75 + 38 ) <= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT SUM( ALL - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5371
SELECT SUM ( ALL - - col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT - + 91 * + ( + 76 ) AS col2 FROM tab2 AS cor0 WHERE - 6 IS NOT NULL
----
-6916
-6916
-6916

query I rowsort
SELECT ALL col1 - - + col2 + - col0 + - 39 * + col0 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-192139
-195925
-91466

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5375
SELECT DISTINCT - 84 - + col2 col1 FROM tab2 AS cor0 WHERE NOT + 86 + - - CAST( NULL AS DECIMAL ) * - - col0 > ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5375
SELECT DISTINCT - 84 - + col2 col1 FROM tab2 AS cor0 WHERE NOT + 86 + - - CAST ( NULL AS REAL ) * - - col0 > ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT 28 + - + col1 FROM tab1 cor0 WHERE + col0 * + 12 + + + 3 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( * ) * + 31 FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( * ) * + 31 FROM tab2 cor0
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5378
SELECT + col2 - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT + col2 - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 3 + + 81 BETWEEN NULL AND ( col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * - col2 * + - 53 col2 FROM tab1
----
162604
187408
264576

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT + 64 + + COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + 64 + + COUNT ( * ) FROM tab0
----
67

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - 57 * + - col2 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5385
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * 54, + CAST( NULL AS SIGNED ), + 95 )
----

skipif mysql # not compatible
query III rowsort label-5385
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * 54, + CAST ( NULL AS INTEGER ), + 95 )
----

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5387
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + 41, col1 AS col0 FROM tab2 AS cor0
----
41
51
41
67
41
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT + SUM( DISTINCT + 11 ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5390
SELECT + SUM ( DISTINCT + 11 ) AS col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + SUM( + col2 ) / + COUNT( * ) * + 14 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * ( col2 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT + SUM ( + col2 ) / + COUNT ( * ) * + 14 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * ( col2 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT - SUM( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5392
SELECT - SUM ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL + ( MIN( - + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + ( MIN ( - + col1 ) ) FROM tab1
----
-47

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col2 IS NULL
----
1
21
81

query I rowsort
SELECT ALL 43 + - + col2 AS col0 FROM tab0
----
-4
-56
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT 75 + col1 + - - col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT 75 + col1 + - - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5399
SELECT ALL * FROM tab0 WHERE NOT - 69 < CAST( + ( + 27 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5399
SELECT ALL * FROM tab0 WHERE NOT - 69 < CAST ( + ( + 27 ) AS INTEGER )
----

query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - 15 IS NULL
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 FROM tab2 cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 60 col1, 36 FROM tab0 AS cor0
----
60
36
60
36
60
36

query I rowsort
SELECT DISTINCT + col1 * - 18 + - 35 AS col0 FROM tab0 AS cor0
----
-1493
-413
-53

query I rowsort
SELECT - 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - COUNT( - 88 ) + 40 + + COUNT( * ) * - COUNT( ( - - col2 ) ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - COUNT ( - 88 ) + 40 + + COUNT ( * ) * - COUNT ( ( - - col2 ) ) FROM tab1
----
28

query II rowsort
SELECT - col1 AS col2, col0 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL - col1 + + - 20 AS col1 FROM tab1
----
-25
-34
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL CAST( + 1 AS SIGNED ) + - + SUM( ALL - - 12 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL CAST ( + 1 AS INTEGER ) + - + SUM ( ALL - - 12 ) FROM tab0
----
-35

query I rowsort
SELECT ALL - 64 + + col1 AS col0 FROM tab0
----
-43
-63
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col1 + 51 col0 FROM tab1 AS cor0
----
2307
261
81

query I rowsort
SELECT + 11 + + 62 AS col1 FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - 30 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 30 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL 98 * + 29 AS col1 FROM tab0 AS cor0
----
2842
2842
2842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5416
SELECT * FROM tab0 AS cor0 WHERE - 9 * + 56 * + CAST( NULL AS SIGNED ) - 8 * - + col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-5416
SELECT * FROM tab0 AS cor0 WHERE - 9 * + 56 * + CAST ( NULL AS INTEGER ) - 8 * - + col0 > NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= + 46 / + col1
----

query II rowsort
SELECT ( + 22 ) AS col0, col0 AS col0 FROM tab0 WHERE + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT ALL + col1 DIV - ( - col0 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + col1 / - ( - col0 ) FROM tab2
----
0
1
1

query II rowsort
SELECT DISTINCT - 10 + - - col1 AS col2, col1 AS col1 FROM tab2
----
41
51
57
67
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5422
SELECT ALL COUNT( * ), - COUNT( col1 ) DIV - ( - + ( ( + 28 ) ) ) FROM tab0 WHERE + col2 DIV 38 + + col2 * + col0 - 8 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL COUNT ( * ), - COUNT ( col1 ) / - ( - + ( ( + 28 ) ) ) FROM tab0 WHERE + col2 / 38 + + col2 * + col0 - 8 IS NULL
----
0
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE col1 * - + 42 = + - col2 * col1 + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col1 * + - col1 * + 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 WHERE + 58 + + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT COUNT( * ) * - - 39 + 13 FROM tab2 WHERE NOT NULL IS NOT NULL
----
130

skipif mysql # not compatible
query I rowsort label-5426
SELECT COUNT ( * ) * - - 39 + 13 FROM tab2 WHERE NOT NULL IS NOT NULL
----
130

query I rowsort
SELECT 84 * - + col2 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5428
SELECT - col2 * + ( - col2 ) * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT - col2 * + ( - col2 ) * - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab0 AS cor0 WHERE NOT 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - MIN( DISTINCT 43 ) FROM tab0 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5430
SELECT - MIN ( DISTINCT 43 ) FROM tab0 cor0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT DISTINCT COUNT( * ), + 30 AS col0 FROM tab1 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-5431
SELECT DISTINCT COUNT ( * ), + 30 AS col0 FROM tab1 AS cor0
----
3
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col2 FROM tab1 cor0
----
41

query I rowsort
SELECT DISTINCT 40 + - + col1 * col0 FROM tab0
----
-1175
-1787
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT + SUM( - 78 ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-5435
SELECT + SUM ( - 78 ) AS col2 FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT 80 * + MIN( + 57 ) * + - 70 AS col1 FROM tab0
----
-319200

skipif mysql # not compatible
query I rowsort label-5436
SELECT 80 * + MIN ( + 57 ) * + - 70 AS col1 FROM tab0
----
-319200

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT COUNT( * ) + + 86 * 37 AS col0 FROM tab2
----
3185

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT COUNT ( * ) + + 86 * 37 AS col0 FROM tab2
----
3185

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - col0 * + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - MIN( - - 1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5439
SELECT - MIN ( - - 1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT + MAX( col2 ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5440
SELECT DISTINCT + MAX ( col2 ) col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + col2 * - + ( - 40 ) FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT - 16 + - + col0 + - + col1 FROM tab2 AS cor0
----
-113
-157
-158

onlyif mysql # DIV for integer division: 
query II rowsort label-5443
SELECT ALL - 59 + + col2 DIV + col1 + + - 29 - - - 84 * 75 * - col1 - - col2 * 61, col0 * - 49 col0 FROM tab2 AS cor0
----
322615
-2254
425550
-3675
487452
-3136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5443
SELECT ALL - 59 + + col2 / + col1 + + - 29 - - - 84 * 75 * - col1 - - col2 * 61, col0 * - 49 col0 FROM tab2 AS cor0
----
322615
-2254
425550
-3675
487452
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT DISTINCT col2 - col1 DIV + col1 AS col0 FROM tab0 cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT col2 - col1 / + col1 AS col0 FROM tab0 cor0
----
46
9
98

query I rowsort
SELECT DISTINCT + + col2 - + 42 FROM tab0 AS cor0
----
-32
5
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - 23 col2 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT DISTINCT + 64 * + col2 FROM tab1 AS cor0
----
3776
4352
6144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - - col1 - + + col2 * + - col2 AS col0 FROM tab0 cor0
----
121
2290
9802

query I rowsort
SELECT + col1 - + - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT + col1 * + ( - col1 ) - - 79 FROM tab2 AS cor0
----
-2522
-4410
-5850

query I rowsort
SELECT ALL 75 * + - col2 FROM tab0 AS cor0
----
-3525
-7425
-750

query I rowsort
SELECT - col1 * + col1 - + - col1 FROM tab2 cor0 WHERE - col1 BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT col2 + - col2 + col0 * 20 + 9 DIV - + col0 AS col1 FROM tab1
----
1020
1700
1820

skipif mysql # not compatible
query I rowsort label-5456
SELECT col2 + - col2 + col0 * 20 + 9 / - + col0 AS col1 FROM tab1
----
1020
1700
1820

query II rowsort
SELECT ALL + 76 - - col1 AS col1, - col0 * 71 AS col0 FROM tab0
----
157
-1065
77
-6887
97
-6177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT CAST( NULL AS SIGNED ) * + col1 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + 59 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( NULL AS INTEGER ) * + col1 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 59 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 - - 36 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5461
SELECT ALL CAST( NULL AS SIGNED ), - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL CAST ( NULL AS INTEGER ), - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT - COUNT( * ) + + + SUM( ALL + - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT - COUNT ( * ) + + + SUM ( ALL + - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - COUNT( * ) * - 65 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5465
SELECT - COUNT ( * ) * - 65 FROM tab0 AS cor0
----
195

query I rowsort
SELECT + col2 * 16 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT MIN( + - 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT MIN ( + - 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT ALL 86 DIV - SUM( - ( - + col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL 86 / - SUM ( - ( - + col1 ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - + 9 * + col1 AS col1, col2 FROM tab1 AS cor0
----
-126
96
-423
68
-45
59

query I rowsort
SELECT ALL - 86 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL - col2 DIV + ( + + 45 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - col2 / + ( + + 45 ) FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT + - SUM( + 90 ) col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5472
SELECT + - SUM ( + 90 ) col0 FROM tab2 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT DISTINCT + 51 DIV - col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + 51 / - col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT ALL + col2 * + - col2 + + - col0 / + + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE 81 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 - 53 + - ( - col0 ) + col2 ) <> + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 + - col2 AS col0, 92 - - - ( + - col1 ) - + - col0 * - col2 FROM tab2 AS cor0
----
17
-4191
23
-915
24
-2391

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT MAX( DISTINCT - 31 ) FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT MAX ( DISTINCT - 31 ) FROM tab2 cor0
----
-31

query III rowsort
SELECT * FROM tab2 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - COUNT( * ) - + 22 AS col2 FROM tab0, tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5479
SELECT - COUNT ( * ) - + 22 AS col2 FROM tab0, tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL 44 * - CAST( NULL AS SIGNED ) * + col0 * - col2 + + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 44 * - CAST ( NULL AS INTEGER ) * + col0 * - col2 + + + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 6 + + 60 + - col1, col0 * - - 62 AS col0 FROM tab1 WHERE NOT + + col1 * - col1 / - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + - 46 * + - 57 * + MAX( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-26220

skipif mysql # not compatible
query I rowsort label-5482
SELECT + - 46 * + - 57 * + MAX ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-26220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT ALL CAST( - SUM( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL CAST ( - SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE - 58 + - col0 NOT BETWEEN - 92 AND NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT 26 + + - col0 DIV - col2 AS col1 FROM tab2 cor0
----
27
28

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT 26 + + - col0 / - col2 AS col1 FROM tab2 cor0
----
27
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 9 ) + + col0 + + 21 col2 FROM tab0
----
117
127
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT - CAST( + col0 AS SIGNED ) + + 33 FROM tab2
----
-13
-31
-42

skipif mysql # not compatible
query I rowsort label-5487
SELECT - CAST ( + col0 AS INTEGER ) + + 33 FROM tab2
----
-13
-31
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT 41 + - CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-6
27
36

skipif mysql # not compatible
query I rowsort label-5488
SELECT 41 + - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-6
27
36

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT - 60 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 86 + - 37 AS col2 FROM tab1 AS cor0
----
49

query I rowsort
SELECT ALL - col0 - + 65 FROM tab0 AS cor0
----
-152
-162
-80

query I rowsort
SELECT ALL 82 - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
4359
507
796

query I rowsort
SELECT + + 58 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= + 8
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= + 8
----
0

query I rowsort
SELECT ALL + ( + 8 ) FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT - col2 / - + col2 * + 10 AS col1 FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - MAX( - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - MAX ( - col1 ) FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 * + col0 FROM tab2
----
2530
3520
4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT col2 * CAST( + 60 AS SIGNED ) FROM tab0
----
2820
5940
600

skipif mysql # not compatible
query I rowsort label-5501
SELECT col2 * CAST ( + 60 AS INTEGER ) FROM tab0
----
2820
5940
600

query I rowsort
SELECT - 75 * - - 5 FROM tab1
----
-375
-375
-375

query I rowsort
SELECT + ( + - col0 ) * 70 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT - 84 AS col0 FROM tab0 WHERE NOT - 13 IN ( + + col0 / 19 )
----
-84
-84
-84

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT 20 <> ( + 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 57 * - + 83 IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT DISTINCT - + 80 AS col1, MAX( - 6 ) FROM tab0 AS cor0
----
-80
-6

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT - + 80 AS col1, MAX ( - 6 ) FROM tab0 AS cor0
----
-80
-6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + CAST( + - col1 AS SIGNED ) >= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + CAST ( + - col1 AS INTEGER ) >= + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + ( - ( - COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5510
SELECT + ( - ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + 2 AS col0, + col1 AS col1 FROM tab2
----
2
51
2
67
2
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT 42 + + + COUNT( * ) col1 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5512
SELECT 42 + + + COUNT ( * ) col1 FROM tab0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT col0 DIV - + 96 + - col0 * ( - col2 ) AS col1 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5513
SELECT col0 / - + 96 + - col0 * ( - col2 ) AS col1 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT SUM( + col0 ) * - - 44 FROM tab2 AS cor0
----
8140

skipif mysql # not compatible
query I rowsort label-5515
SELECT SUM ( + col0 ) * - - 44 FROM tab2 AS cor0
----
8140

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NOT col0 >= + + 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5517
SELECT ALL + CAST( NULL AS SIGNED ), + SUM( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL + CAST ( NULL AS INTEGER ), + SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5518
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col0, col1 * - col1 / + CAST( NULL AS SIGNED ) + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5518
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col0, col1 * - col1 / + CAST ( NULL AS INTEGER ) + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + MAX( ALL col2 ) * - - COUNT( * ) AS col2 FROM tab0 cor0
----
297

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + MAX ( ALL col2 ) * - - COUNT ( * ) AS col2 FROM tab0 cor0
----
297

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 * col1 )
----

query I rowsort
SELECT - 35 AS col1 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT ALL AVG ( - 59 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 + - - 88 AS col0 FROM tab0 AS cor0
----
109
169
89

query I rowsort
SELECT DISTINCT + col0 + 18 AS col1 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + ( + MIN( ALL - + 20 ) ) AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5526
SELECT + ( + MIN ( ALL - + 20 ) ) AS col1 FROM tab1
----
-20

query I rowsort
SELECT ALL 60 + - ( col2 ) AS col0 FROM tab1
----
-36
-8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT col0 + + col1 DIV + 75 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT col0 + + col1 / + 75 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NULL = - col0
----

query I rowsort
SELECT + col0 + + 31 * + col0 + + 44 FROM tab0
----
2828
3148
524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT 60 + + - col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-132
-58
-76

skipif mysql # not compatible
query I rowsort label-5532
SELECT 60 + + - col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-132
-58
-76

query I rowsort
SELECT + col2 * + 82 * col2 + + col1 * + ( - 27 ) + col1 * + 24 AS col1 FROM tab1 AS cor0
----
285427
379027
755670

onlyif mysql # DIV for integer division: 
query II rowsort label-5534
SELECT - col1 AS col0, - 49 DIV - col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-5534
SELECT - col1 AS col0, - 49 / - col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - MIN( - + 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5535
SELECT - MIN ( - + 62 ) FROM tab0 AS cor0
----
62

query II rowsort
SELECT DISTINCT + + 11 AS col1, - 78 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
11
240240
11
303108
11
91494

query I rowsort
SELECT DISTINCT - col2 * - + ( - 25 ) AS col1 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) * - 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) * - 5 FROM tab2
----
0

query I rowsort
SELECT ALL - ( - - 69 ) FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + + col2 * - col1 * - - col0 - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col1 ) col2 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * - + col2 * - col0 col0 FROM tab0 AS cor0
----
29610
36540
403326

onlyif mysql # DIV for integer division: 
query II rowsort label-5543
SELECT + - 75 DIV + - col1 + - col0 * ( + col2 ) col2, col1 DIV - 69 AS col0 FROM tab2 cor0
----
-1057
0
-2560
-1
-4349
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5543
SELECT + - 75 / + - col1 + - col0 * ( + col2 ) col2, col1 / - 69 AS col0 FROM tab2 cor0
----
-1057
0
-2560
-1
-4349
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT - col0 * - - CAST( 11 AS SIGNED ) + + col1 - ( + 57 ) * col1 FROM tab1 cor0
----
-1215
-1345
-3633

skipif mysql # not compatible
query I rowsort label-5544
SELECT - col0 * - - CAST ( 11 AS INTEGER ) + + col1 - ( + 57 ) * col1 FROM tab1 cor0
----
-1215
-1345
-3633

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT col2 = + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT col2 = + col1 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - ( col2 ) ) * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1560
3306
506

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 IS NOT NULL
----

query I rowsort
SELECT - + col2 + + + col0 + - 82 AS col0 FROM tab2 AS cor0
----
-58
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL COUNT( * ) * + MAX( DISTINCT + col1 ) + COUNT( * ) * 51 FROM tab2
----
384

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + col1 ) + COUNT ( * ) * 51 FROM tab2
----
384

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT 90 DIV - col1 col2 FROM tab0
----
-1
-4
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT 90 / - col1 col2 FROM tab0
----
-1
-4
-90

query I rowsort
SELECT DISTINCT 41 + - col2 * col1 AS col0 FROM tab1
----
-1303
-254
-3155

query III rowsort
SELECT ALL * FROM tab0 WHERE 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL MAX( + ( - 26 ) ) + 66 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL MAX ( + ( - 26 ) ) + 66 FROM tab1
----
40

query I rowsort
SELECT ALL col0 - 39 FROM tab0
----
-24
48
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE 13 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-2601
-4489
-5929

query II rowsort
SELECT ALL 56 AS col0, + 18 FROM tab0 AS cor0
----
56
18
56
18
56
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT - COUNT( * ) * ( - MIN( - col1 ) ) AS col2 FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT - COUNT ( * ) * ( - MIN ( - col1 ) ) AS col2 FROM tab0 cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5561
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT + 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + 93 AS col0 FROM tab2 WHERE - 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT SUM( ALL - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT SUM ( ALL - + col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 / - + 53 * + ( - col0 ) NOT IN ( - 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 49 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT + col2 * + 85 AS col2 FROM tab0
----
3995
8415
850

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5568
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST( col0 AS DECIMAL ) * + - col2, + col1, + col2 )
----

skipif mysql # not compatible
query III rowsort label-5568
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST ( col0 AS REAL ) * + - col2, + col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - SUM( ALL + + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5569
SELECT - SUM ( ALL + + col2 ) AS col2 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col2 + - - 22 col2 FROM tab1
----
51
118
85
81
91
90

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + - + col2 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + - col0 + + col0 NOT IN ( - col2 + - col0, 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5573
SELECT 60, COUNT( * ) * - + CAST( 81 AS SIGNED ) AS col1 FROM tab2
----
60
-243

skipif mysql # not compatible
query II rowsort label-5573
SELECT 60, COUNT ( * ) * - + CAST ( 81 AS INTEGER ) AS col1 FROM tab2
----
60
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL SUM( - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL SUM ( - + col0 ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + 66 * - col0 AS col0, col2 col0 FROM tab1
----
171666
96
476850
59
546546
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 AS col0, + col2 col2 FROM tab0
----
94
10
94
47
94
99

query I rowsort
SELECT DISTINCT + ( + 36 ) AS col2 FROM tab2
----
36

query II rowsort
SELECT DISTINCT + + col0, - col2 - + col2 * - 86 + - col2 + + col1 + - col0 AS col1 FROM tab0 cor0
----
15
4014
87
774
97
8220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5579
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-5579
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5580
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * col1 - + col0 FROM tab0 AS cor0 WHERE NOT 32 < NULL
----

query I rowsort
SELECT ALL - + 38 AS col1 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + 28 * - col0 + 74 FROM tab0 AS cor0
----
-2362
-2642
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT COUNT( + + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT COUNT ( + + col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * + 99 AS col0 FROM tab1 AS cor0
----
1386
4653
495

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > col0 * + col2 / + 10
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab1 AS cor0 WHERE + ( + 49 ) >= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT + col2 DIV + 74 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5590
SELECT + col2 / + 74 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5591
SELECT col1 - col1 DIV + CAST( - + col0 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5591
SELECT col1 - col1 / + CAST ( - + col0 AS INTEGER ) FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 20 <= NULL
----

query I rowsort
SELECT ( - 58 ) + - - col0 FROM tab2
----
-12
17
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT DISTINCT - col2 * + 57 + - col0 + - 20 DIV - col1 AS col2 FROM tab0
----
-2694
-5720
-657

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - col2 * + 57 + - col0 + - 20 / - col1 AS col2 FROM tab0
----
-2694
-5720
-657

query I rowsort
SELECT col0 + - + ( + col0 ) + + - 72 * col1 AS col0 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT ALL + col2 + + 32 FROM tab2
----
55
72
90

query I rowsort
SELECT ALL - - 47 * + + ( col1 ) + + - col2 AS col1 FROM tab1 AS cor0
----
176
2141
562

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / col0 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT + MAX( - 94 ) AS col1 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + MAX ( - 94 ) AS col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT AVG ( + + col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col1 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5601
SELECT ALL * FROM tab2 WHERE NOT - CAST( - - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5601
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5602
SELECT ALL + col1 AS col0, 46 DIV - col0 AS col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-5602
SELECT ALL + col1 AS col0, 46 / - col0 AS col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5604
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) * col1 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5604
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( col2 AS REAL ) * col1 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - ( + 47 ) FROM tab2 cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - - 90 AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT COUNT( * ) AS col1, + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5608
SELECT COUNT ( * ) AS col1, + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT + CAST( + 76 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-5610
SELECT + CAST ( + 76 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5611
SELECT ALL COUNT( - CAST( + col1 AS SIGNED ) ) AS col0, COUNT( DISTINCT + - ( - col2 ) ) * + - 32 * + - ( + 19 ) FROM tab1
----
3
1824

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL COUNT ( - CAST ( + col1 AS INTEGER ) ) AS col0, COUNT ( DISTINCT + - ( - col2 ) ) * + - 32 * + - ( + 19 ) FROM tab1
----
3
1824

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL MAX( - col1 ), 67 * + 46 AS col1 FROM tab0
----
-1
3082

skipif mysql # not compatible
query II rowsort label-5612
SELECT ALL MAX ( - col1 ), 67 * + 46 AS col1 FROM tab0
----
-1
3082

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5613
SELECT ALL * FROM tab1 WHERE - + col2 BETWEEN NULL AND + 18 + + CAST( NULL AS SIGNED ) * + 97
----

skipif mysql # not compatible
query III rowsort label-5613
SELECT ALL * FROM tab1 WHERE - + col2 BETWEEN NULL AND + 18 + + CAST ( NULL AS INTEGER ) * + 97
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL + SUM( DISTINCT col2 ) * + CAST( - COUNT( + ( - col1 ) ) AS SIGNED ) * COUNT( * ) + - - MAX( + col1 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + SUM ( DISTINCT col2 ) * + CAST ( - COUNT ( + ( - col1 ) ) AS INTEGER ) * COUNT ( * ) + - - MAX ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col0 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL 80 AS col0 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5617
SELECT + SUM( - col2 ), + 80 col2 FROM tab2 AS cor0
----
-121
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5617
SELECT + SUM ( - col2 ), + 80 col2 FROM tab2 AS cor0
----
-121
80

query I rowsort
SELECT ALL - - col0 * - + ( - col1 ) + + 38 FROM tab0 AS cor0
----
1253
135
1865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL - 83 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - 83 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + + 94 * col1 FROM tab0
----
2074
9823
9895

query I rowsort
SELECT - ( col1 ) + - + col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT 7 * 78 * - - col1 + col2 DIV + col2 FROM tab0 AS cor0
----
11467
44227
547

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT 7 * 78 * - - col1 + col2 / + col2 FROM tab0 AS cor0
----
11467
44227
547

query I rowsort
SELECT 48 + - col1 FROM tab0 AS cor0
----
-33
27
47

query I rowsort
SELECT DISTINCT - - 55 - - col1 + + 58 FROM tab0 AS cor0
----
114
134
194

query II rowsort
SELECT DISTINCT + col0, 73 FROM tab2 AS cor0
----
46
73
64
73
75
73

query I rowsort
SELECT - col2 + col0 * 89 * + + col0 FROM tab1 AS cor0
----
231393
642966
736941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT - CAST( col2 AS SIGNED ) * 38 - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1443
-2137
-823

skipif mysql # not compatible
query I rowsort label-5627
SELECT - CAST ( col2 AS INTEGER ) * 38 - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1443
-2137
-823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col0 col0 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT - 77, - col1 AS col0 FROM tab2 WHERE - 72 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 3 <> NULL
----

query I rowsort
SELECT - col1 * + 23 * + + 55 FROM tab2
----
-64515
-84755
-97405

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT 88 - - + COUNT( * ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5632
SELECT 88 - - + COUNT ( * ) FROM tab0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-5633
SELECT ALL + col1 + + 85 AS col1, + col2 * ( + + 65 ) DIV 64 FROM tab2 AS cor0
----
136
23
152
58
162
40

skipif mysql # not compatible
query II rowsort label-5633
SELECT ALL + col1 + + 85 AS col1, + col2 * ( + + 65 ) / 64 FROM tab2 AS cor0
----
136
23
152
58
162
40

query II rowsort
SELECT + col1 - + col0 AS col2, + col2 AS col1 FROM tab2 cor0
----
-8
58
13
40
5
23

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 * + - 38 FROM tab0
----
-1786
-3762
-380

query II rowsort
SELECT ALL col2, - col1 AS col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT - col0 * + 3 AS col2 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + 34 * COUNT( * ) FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + 34 * COUNT ( * ) FROM tab2 cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT ALL col0 DIV - - col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL col0 / - - col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT - COUNT( * ) * 72 AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - COUNT ( * ) * 72 AS col2 FROM tab1 AS cor0
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5642
SELECT ALL + - ( COUNT( * ) ) DIV COUNT( * ) col1, - 29 AS col2 FROM tab0 AS cor0
----
-1
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5642
SELECT ALL + - ( COUNT ( * ) ) / COUNT ( * ) col1, - 29 AS col2 FROM tab0 AS cor0
----
-1
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-5643
SELECT DISTINCT 73, + ( + + col1 ) DIV 72 + col0 AS col0 FROM tab2 cor0
----
73
46
73
65
73
75

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT 73, + ( + + col1 ) / 72 + col0 AS col0 FROM tab2 cor0
----
73
46
73
65
73
75

query III rowsort
SELECT DISTINCT + 5 AS col0, + col1 AS col1, - + ( + ( 45 ) ) AS col1 FROM tab2
----
9 values hashing to 990c228f5ce010e9fa82a6e3ac25d9bb

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT + MIN( - - col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5645
SELECT + MIN ( - - col2 ) col1 FROM tab0
----
10

query I rowsort
SELECT ALL col2 + - col1 * - col2 FROM tab1
----
1440
3264
354

query II rowsort
SELECT + col2 AS col0, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT 57 + - + 14 * COUNT( * ) AS col2 FROM tab1 WHERE + ( + 18 ) IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT 57 + - + 14 * COUNT ( * ) AS col2 FROM tab1 WHERE + ( + 18 ) IS NULL
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + col0 col0 FROM tab1
----
-295885
-420784
-470016

query II rowsort
SELECT + col1, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, ( - col2 ) FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT ALL col1 + - + col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 68 * + 13 AS col2 FROM tab0
----
884

query II rowsort
SELECT 14, + col1 FROM tab2
----
14
51
14
67
14
77

query II rowsort
SELECT ALL - col0, - col1 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-46
-2601
-64
-5929
-75
-4489

query III rowsort
SELECT * FROM tab2 cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 - + col1 FROM tab1 AS cor0
----
-1307
-215
-3152

query I rowsort
SELECT ALL + col2 - - col2 * col0 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + col1 - - 39 * - col0 FROM tab2 AS cor0
----
-1743
-2419
-2858

query I rowsort
SELECT - col2 * col0 - - 28 FROM tab2 AS cor0
----
-1030
-2532
-4322

query I rowsort
SELECT - col1 * - col0 - col2 AS col2 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - + 90 * + col1 FROM tab1 AS cor0 WHERE + col1 - + CAST( + col0 AS SIGNED ) IS NOT NULL
----
-1260
-4230
-450

skipif mysql # not compatible
query I rowsort label-5662
SELECT - + 90 * + col1 FROM tab1 AS cor0 WHERE + col1 - + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-1260
-4230
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT ALL CAST( COUNT( - + 89 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL CAST ( COUNT ( - + 89 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT ALL + CAST( - 94 AS SIGNED ) - - - 4 + - 60 + + 87 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + CAST ( - 94 AS INTEGER ) - - - 4 + - 60 + + 87 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, col2 col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 92 + col0 FROM tab1
----
-1
-41
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 71 AND NULL
----

query I rowsort
SELECT - col0 * + col0 + + 86 + - 7 + + - col2 * - col1 + 71 * + 29 * - col2 * 46 + col1 FROM tab0
----
-4447816
-9385916
-954399

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT + COUNT( + + ( - - 76 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + COUNT ( + + ( - - 76 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + col1 + + - col1 * + 57 * + col1 AS col1 FROM tab2
----
-148206
-255806
-337876

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN col2 - + + 13 * + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL + MIN( - + col2 ) AS col2 FROM tab1 WHERE NOT + 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL + MIN ( - + col2 ) AS col2 FROM tab1 WHERE NOT + 50 IS NOT NULL
----
NULL

query I rowsort
SELECT - 66 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3366
-4422
-5082

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT DISTINCT + col1 DIV + col0 + 72 col1 FROM tab2 AS cor0
----
72
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5674
SELECT DISTINCT + col1 / + col0 + 72 col1 FROM tab2 AS cor0
----
72
73

query I rowsort
SELECT + col1 * + 14 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 + - - 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT MAX( DISTINCT + - ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5678
SELECT MAX ( DISTINCT + - ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IS NOT NULL OR - + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + - + col1 FROM tab1 WHERE NOT - 93 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 WHERE NOT - col0 < + + col0
----

query I rowsort
SELECT - 38 + + col1 AS col0 FROM tab1
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + 4 * - COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 4 * - COUNT ( * ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - COUNT( * ) * - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5684
SELECT - COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL - col2 + + + 28 AS col2 FROM tab1
----
-31
-40
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 + - 50 col2, 1 AS col0 FROM tab1 AS cor0
----
-33
1
-33
1
-33
1

query II rowsort
SELECT ALL + 52 + col1, ( - col1 ) * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
103
2392
119
5100
129
4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT DISTINCT - - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + + 23 + + + col0 IS NULL
----

query II rowsort
SELECT ALL - + col1 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + + col0 - + - col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT COUNT( ALL - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5693
SELECT COUNT ( ALL - col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + 85 * + + 64 * + col2 IN ( - ( + + col2 ) * + col2 + 65, + 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 25 col1 FROM tab2
----
1150
1600
1875

query II rowsort
SELECT DISTINCT - 33 * + col1, + col0 * 61 AS col2 FROM tab2
----
-1683
2806
-2211
4575
-2541
3904

query I rowsort
SELECT col2 * + + col2 * + 82 - col1 FROM tab2 AS cor0
----
131123
275781
43327

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + MIN( - 71 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + MIN ( - 71 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query II rowsort
SELECT col0 AS col2, ( - 60 ) FROM tab2
----
46
-60
64
-60
75
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT col0 DIV col1 DIV - + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT col0 / col1 / - + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5702
SELECT - + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT + + ( col1 ) FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5703
SELECT + + ( col1 ) FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + 67 * + + 10 + + 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + - col2 - + col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT ALL col2 + 50 AS col0 FROM tab2 AS cor0 WHERE - 62 = + - 37
----

query I rowsort
SELECT DISTINCT - - 8 AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - ( - - 22 ) FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT ALL + 45 DIV + + COUNT( * ) + + COUNT( DISTINCT + 97 ) - + 6 AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + 45 / + + COUNT ( * ) + + COUNT ( DISTINCT + 97 ) - + 6 AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) FROM tab1
----
110
115
64

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE + + 43 / col2 <= + - col2 + - col1 + + + col0
----
87

query I rowsort
SELECT DISTINCT + col2 * col1 + 93 FROM tab0 AS cor0
----
192
303
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT COUNT( * ) - + 34 col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5714
SELECT DISTINCT COUNT ( * ) - + 34 col2 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT ALL + 24 - - col2 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT DISTINCT - col2 + - 5 + + col2 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT SUM( ALL - - col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT SUM ( ALL - - col0 ) AS col1 FROM tab0 cor0
----
199

query I rowsort
SELECT ALL col0 - + - col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT - col1 * col0 - + 84 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - col1 * col0 - + 84 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 34 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 86 <> NULL
----

query II rowsort
SELECT + - col1, col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT col0, - ( - col1 ) AS col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT col0 AS col1, + 8 FROM tab1
----
51
8
85
8
91
8

query II rowsort
SELECT ALL col0, + col2 + + - col0 AS col2 FROM tab0
----
15
32
87
-77
97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT COUNT( * ) FROM tab1 WHERE NOT - 45 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT COUNT ( * ) FROM tab1 WHERE NOT - 45 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT - 30 FROM tab0 WHERE NOT + CAST( 13 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5726
SELECT - 30 FROM tab0 WHERE NOT + CAST ( 13 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * - - 71 * + + col0 FROM tab0
----
129717
6887
86265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5728
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) * + - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) * + - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5731
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 85 + col2 IS NOT NULL
----

query I rowsort
SELECT + - ( + col2 ) + - col2 * - col2 * - col0 * + - col0 FROM tab1 AS cor0
----
23970720
25150166
38291276

query I rowsort
SELECT + 67 + - - 26 AS col1 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT ALL + MAX( DISTINCT - - 76 ) AS col0, 26 + 46 + + 18 FROM tab0 AS cor0
----
76
90

skipif mysql # not compatible
query II rowsort label-5735
SELECT ALL + MAX ( DISTINCT - - 76 ) AS col0, 26 + 46 + + 18 FROM tab0 AS cor0
----
76
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + 72 + - COUNT( * ) + + 89 FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5736
SELECT + 72 + - COUNT ( * ) + + 89 FROM tab0 AS cor0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + + col0 * col1 + col0 AS col2 FROM tab2
----
2415
5032
5158

query II rowsort
SELECT - 13 AS col2, 11 * 6 + - + col1 + - - 53 * - col2 AS col2 FROM tab2
----
-13
-1204
-13
-2131
-13
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - 39 + - - 32 + - COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - 39 + - - 32 + - COUNT ( * ) FROM tab0
----
-10

query I rowsort
SELECT ALL + col1 + - + col2 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT + COUNT( * ) col2, + COUNT( * ) + - - COUNT( * ) FROM tab2
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5742
SELECT + COUNT ( * ) col2, + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
3
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT ALL col1 - - col1 DIV - - col0 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL col1 - - col1 / - - col0 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
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-5744
SELECT CAST ( NULL AS INTEGER ) * + + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + col2 * - 54 / col2 > NULL
----

query I rowsort
SELECT DISTINCT col2 + - 29 FROM tab0
----
-19
18
70

query I rowsort
SELECT - 65 + 82 AS col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + ( col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 * - ( col1 ) AS col0 FROM tab1
----
1106
3713
395

query I rowsort
SELECT 74 + - col0 FROM tab1
----
-11
-17
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT + CAST( col2 AS SIGNED ) * - 32 FROM tab2
----
-1280
-1856
-736

skipif mysql # not compatible
query I rowsort label-5751
SELECT + CAST ( col2 AS INTEGER ) * - 32 FROM tab2
----
-1280
-1856
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL SUM( col0 ) col1 FROM tab1 WHERE 15 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5752
SELECT ALL SUM ( col0 ) col1 FROM tab1 WHERE 15 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - COUNT( * ) * + 51 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-5753
SELECT - COUNT ( * ) * + 51 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + COUNT( * ) * 65 col0 FROM tab1
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5754
SELECT DISTINCT + COUNT ( * ) * 65 col0 FROM tab1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5755
SELECT DISTINCT * FROM tab1 WHERE CAST( col1 AS SIGNED ) BETWEEN + 0 AND ( - col2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-5755
SELECT DISTINCT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) BETWEEN + 0 AND ( - col2 + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) <> 21 * 69 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - MIN( DISTINCT - col0 ) FROM tab1 WHERE NULL > - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT - MIN ( DISTINCT - col0 ) FROM tab1 WHERE NULL > - 19
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( col2 * - ( col2 ) ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + 6
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( - col0 ) >= ( col1 / col1 )
----

query I rowsort
SELECT + col1 + 31 FROM tab2
----
108
82
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 42 NOT IN ( 34 )
----

query I rowsort
SELECT ALL ( ( col0 ) ) FROM tab1
----
51
85
91

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE NULL BETWEEN 34 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT 79 + + COUNT( * ) AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT 79 + + COUNT ( * ) AS col0 FROM tab0
----
82

query I rowsort
SELECT DISTINCT + ( + 35 ) FROM tab1
----
35

query I rowsort
SELECT ALL + col2 * - 24 + col0 FROM tab1 WHERE - 51 + + col0 IS NOT NULL
----
-1331
-1541
-2253

query I rowsort
SELECT DISTINCT 82 FROM tab0 WHERE ( NULL ) <> 46 - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col2 + col1
----

query I rowsort
SELECT DISTINCT col1 - + col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT + ( col2 ) * col2 + + 30 * col2 FROM tab0
----
12771
3619
400

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col1 ) IN ( col0 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col1 * col2 + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col1 * col2 + col2 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT + COUNT( ALL - ( ( - col2 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5774
SELECT + COUNT ( ALL - ( ( - col2 ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COUNT( ALL col1 ) + + 66 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( ALL col1 ) + + 66 AS col0 FROM tab2
----
69

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - 17 - + 87 * col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 BETWEEN col0 * col2 AND ( 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 67 + - col2 AS col0 FROM tab1
----
-1
-29
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT - col2 DIV col2 + col2 AS col1 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5779
SELECT - col2 / col2 + col2 AS col1 FROM tab0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT COUNT( * ) - 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5780
SELECT COUNT ( * ) - 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + COUNT( * ) + 53 AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5781
SELECT + COUNT ( * ) + 53 AS col0 FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN ( col0 ) AND + col1 + + 30 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT - + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL + - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - - MAX( ALL + col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - - MAX ( ALL + col2 ) AS col2 FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT 54 FROM tab0 cor0
----
54

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - 0 - 46 )
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT - - COUNT( * ) DIV 59 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT - - COUNT ( * ) / 59 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 44 * + col1 AS col0 FROM tab1 AS cor0
----
2068
220
616

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT + - ( + col2 ) DIV - 68 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5791
SELECT + - ( + col2 ) / - 68 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 * col2 + - 7 AS col1 FROM tab0 cor0
----
-712
-877
-9610

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - - 61 AS col0 FROM tab1
----
3111
5185
5551

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5795
SELECT * FROM tab2 WHERE col0 / CAST( col0 * 53 AS SIGNED ) + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5795
SELECT * FROM tab2 WHERE col0 / CAST ( col0 * 53 AS INTEGER ) + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 + ( col0 ) col2 FROM tab2
----
101
74
84

query I rowsort
SELECT ALL - AVG ( DISTINCT + 91 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 7 / col2 + - 39 / col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( 91 + + col2 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + COUNT( * ) + 32 AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-5799
SELECT + COUNT ( * ) + 32 AS col2 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT CAST( + + col2 AS SIGNED ) + col1 AS col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-5800
SELECT CAST ( + + col2 AS INTEGER ) + col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NULL < 94
----
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL < 94
----
0

query I rowsort
SELECT ALL col2 * + - 94 * - 80 + - col1 FROM tab1
----
443675
511313
721906

query III rowsort
SELECT * FROM tab1 WHERE ( 57 ) <= + col1
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE - 18 BETWEEN ( col2 + 92 * col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-52
-52
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 27 + + 25 IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE NOT ( - 46 * col1 ) < - 88 + + col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - 20 * + - SUM( + col1 ) FROM tab0 AS cor0
----
2060

skipif mysql # not compatible
query I rowsort label-5809
SELECT - 20 * + - SUM ( + col1 ) FROM tab0 AS cor0
----
2060

query I rowsort
SELECT ALL col0 + 53 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 * + 73 AS col2 FROM tab0 AS cor0 WHERE col0 >= ( + - col2 )
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL MAX( ( + - ( - 12 ) ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL MAX ( ( + - ( - 12 ) ) ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT + MIN( ALL + col2 ) col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT DISTINCT + MIN ( ALL + col2 ) col1 FROM tab0 cor0
----
10

query I rowsort
SELECT ALL - - 94 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
94
94
94

query I rowsort
SELECT DISTINCT + - 30 * + 73 FROM tab2 AS cor0
----
-2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT COUNT( * ) + 87 FROM tab0 cor0 WHERE NOT ( CAST( + col1 AS SIGNED ) ) IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-5817
SELECT COUNT ( * ) + 87 FROM tab0 cor0 WHERE NOT ( CAST ( + col1 AS INTEGER ) ) IS NOT NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - SUM( DISTINCT - 63 ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5818
SELECT - SUM ( DISTINCT - 63 ) AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT - + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5819
SELECT - + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - col1 * + ( 3 ) * + 31 FROM tab0 AS cor0
----
1953
7533
93

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( + col0 * - ( + 52 / - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT DISTINCT + - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT + - col1 / + col2 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 82 + - col2 AND NULL
----

query II rowsort
SELECT - col0 AS col2, + 27 AS col2 FROM tab2 AS cor0
----
-46
27
-64
27
-75
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * col0 - col2
----

query I rowsort
SELECT ALL - 28 * col1 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT DISTINCT - + 26 * - ( + + 75 ) AS col1 FROM tab2 cor0
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + MAX( ALL - + col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5829
SELECT + MAX ( ALL - + col2 ) col1 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col2 ) * + col0 BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV - + col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT CAST ( col0 AS INTEGER ) / - + col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT + - 42 + col1 - - col2 AS col2 FROM tab2 AS cor0
----
32
75
83

query I rowsort
SELECT + 53 + + ( - col2 ) * + col2 AS col1 FROM tab0 cor0
----
-2156
-47
-9748

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT COUNT( * ) + + 54 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5834
SELECT COUNT ( * ) + + 54 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( ( + 42 ) * col0 )
----

query II rowsort
SELECT DISTINCT + col1, col2 * - col0 * col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5837
SELECT + CAST( - - col2 AS SIGNED ) * + 24 + - ( - CAST( NULL AS DECIMAL ) ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT + CAST ( - - col2 AS INTEGER ) * + 24 + - ( - CAST ( NULL AS REAL ) ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT DISTINCT 67 / + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( + - col1 - + ( CAST( - 67 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT 67 / + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( + - col1 - + ( CAST ( - 67 AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col2 / + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5840
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) * col2 + col2 + + col2 > 30 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5840
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) * col2 + col2 + + col2 > 30 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT - 41 + - col0 * + col1 - CAST( NULL AS SIGNED ) + + col2 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT - 41 + - col0 * + col1 - CAST ( NULL AS INTEGER ) + + col2 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( ( + ( + 0 ) ) ) FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + 15 + - col1 FROM tab1
----
-32
1
10

query I rowsort
SELECT ALL - col2 + - col0 * 53 * - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT ALL - 88 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-139
-155
-165

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - 88 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-139
-155
-165

query I rowsort
SELECT col1 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT 31 AS col0, + col2 AS col0 FROM tab0
----
31
10
31
47
31
99

query I rowsort
SELECT DISTINCT - col2 + + 27 FROM tab1
----
-32
-41
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT + col0 - - ( 98 ) DIV - - col1 FROM tab1 AS cor0
----
104
58
93

skipif mysql # not compatible
query I rowsort label-5849
SELECT + col0 - - ( 98 ) / - - col1 FROM tab1 AS cor0
----
104
58
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT + MIN( ALL + CAST( + col0 AS SIGNED ) ) - + - 16 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5850
SELECT + MIN ( ALL + CAST ( + col0 AS INTEGER ) ) - + - 16 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL + 14 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5852
SELECT ALL - ( + col2 ) - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - ( + col2 ) - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT - 10 * + col2 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5855
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col1 * - col1 + + + CAST( NULL AS SIGNED ) + - - col0 + + col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5855
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col1 * - col1 + + + CAST ( NULL AS INTEGER ) + - - col0 + + col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 43 * - 22 * + col2 FROM tab1 AS cor0
----
-55814
-64328
-90816

query II rowsort
SELECT ALL + + col1 * col1, + col0 FROM tab1 cor0
----
196
51
2209
91
25
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col2 = + col0
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL > - 83 * - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 55 + + ( + - ( + - col2 ) ) + - col0
----

query II rowsort
SELECT DISTINCT - 95 AS col2, + col2 AS col1 FROM tab0
----
-95
10
-95
47
-95
99

query II rowsort
SELECT col2 AS col1, 18 * + 2 AS col1 FROM tab0
----
10
36
47
36
99
36

query I rowsort
SELECT ALL - 55 * - 47 AS col2 FROM tab1
----
2585
2585
2585

query I rowsort
SELECT 95 * - col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT ALL + 28 DIV - 14 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + 28 / - 14 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - + 16 + col0 FROM tab2 cor0 WHERE NOT + 62 + + col1 * + col0 * - - 29 - + + col1 < + - col0
----
30
48
59

query II rowsort
SELECT ALL + 97, + col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5869
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 29 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5869
SELECT ALL + + CAST ( NULL AS REAL ) * + 29 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 6 + + col1 >= + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + MAX( + 2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-5872
SELECT + MAX ( + 2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT + + COUNT( * ) - + + 67 AS col2 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + + COUNT ( * ) - + + 67 AS col2 FROM tab0 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col0, ( + col2 ) + + 99 FROM tab2 AS cor0 WHERE + col2 * + col0 IS NOT NULL
----
95
122
95
139
95
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL - AVG ( ALL - ( + col2 ) ) / + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 13 + - 38 NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL - AVG ( ALL - ( + col2 ) ) / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 13 + - 38 NOT IN ( - col1 )
----
NULL

query II rowsort
SELECT col0 - - - col0 * - - 17 * + + col1 * - + col1 AS col2, col1 FROM tab2 AS cor0
----
2034028
51
5723550
67
6450816
77

query I rowsort
SELECT 38 - + - col0 FROM tab0
----
125
135
53

query I rowsort
SELECT col1 + 16 FROM tab1
----
21
30
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT DISTINCT + MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT SUM( ALL - 47 ) + + 34 FROM tab0
----
-107

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT SUM ( ALL - 47 ) + + 34 FROM tab0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - COUNT( * ) + - COUNT( * ) col2 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5882
SELECT ALL - COUNT ( * ) + - COUNT ( * ) col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - 55 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - - COUNT( - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5884
SELECT - - COUNT ( - + col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL > col2 + 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT + COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5886
SELECT + COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 14 AS col2 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL col2 * + - 14 FROM tab0
----
-1386
-140
-658

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 + + col2 col0 FROM tab1 AS cor0
----
14
192
47
136
5
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT DISTINCT + 82 AS col1, + 43 FROM tab1 AS cor0
----
82
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5893
SELECT - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 WHERE NOT 81 > NULL
----

query I rowsort
SELECT ALL - + 36 AS col2 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT col2 * - - col2 * - col0 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT - 58 DIV + col2 FROM tab0 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT - 58 / + col2 FROM tab0 cor0
----
-1
-5
0

query I rowsort
SELECT + 62 * + 60 AS col1 FROM tab2 AS cor0
----
3720
3720
3720

query I rowsort
SELECT ( - - 64 ) * col2 * + + 70 AS col0 FROM tab2 AS cor0
----
103040
179200
259840

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT MAX( - - 78 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT MAX ( - - 78 ) AS col1 FROM tab2
----
78

query I rowsort
SELECT ALL + col2 - + + col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL COUNT( col0 ) - MIN( DISTINCT + col2 ) + - + 49 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL COUNT ( col0 ) - MIN ( DISTINCT + col2 ) + - + 49 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT + col0 + + - col2 * - col0 - col1 AS col1 FROM tab2 cor0
----
1053
2547
4358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT + col2 - + - col1 * CAST( NULL AS SIGNED ) * + 63 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + col2 - + - col1 * CAST ( NULL AS INTEGER ) * + 63 * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 99 * + col2 AS col1 FROM tab2 cor0
----
2277
3960
5742

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + col2 * ( + + 95 ) / - ( - 33 ) * + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT ALL col0 * - + CAST( - 0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL col0 * - + CAST ( - 0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL col2 * ( + CAST( NULL AS SIGNED ) ) / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL col2 * ( + CAST ( NULL AS INTEGER ) ) / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL 25 DIV + 7 AS col1 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL 25 / + 7 AS col1 FROM tab0
----
3
3
3

query I rowsort
SELECT - col0 * col1 * - 21 FROM tab2
----
103488
105525
49266

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NOT NULL >= - col0 * ( + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT - 58 - + col2 FROM tab0
----
-105
-157
-68

query I rowsort
SELECT + 11 * - + col1 FROM tab2
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + SUM( DISTINCT col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5917
SELECT + SUM ( DISTINCT col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT + + CAST( - col0 AS SIGNED ), - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
query II rowsort label-5918
SELECT + + CAST ( - col0 AS INTEGER ), - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 38 col0 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL + col1 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1215
1827
97

query I rowsort
SELECT + col2 * 40 FROM tab2
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT + MIN( ALL - 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + MIN ( ALL - 68 ) FROM tab0
----
-68

query I rowsort
SELECT - - 44 * - - col0 FROM tab1 cor0
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5924
SELECT + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL ( - 4 ) FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL COUNT( + - col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL COUNT ( + - col1 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5930
SELECT + CAST( NULL AS SIGNED ) AS col2, + 81 AS col2 FROM tab2 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-5930
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2 AS cor0
----
NULL
81
NULL
81
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT + + MAX( DISTINCT + col0 ) FROM tab1 WHERE NOT + + col2 NOT BETWEEN + 1 AND + - col2 * + CAST( NULL AS SIGNED ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT + + MAX ( DISTINCT + col0 ) FROM tab1 WHERE NOT + + col2 NOT BETWEEN + 1 AND + - col2 * + CAST ( NULL AS INTEGER ) * col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5933
SELECT + 10 AS col0, + COUNT( * ) * 72 AS col2 FROM tab1
----
10
216

skipif mysql # not compatible
query II rowsort label-5933
SELECT + 10 AS col0, + COUNT ( * ) * 72 AS col2 FROM tab1
----
10
216

query I rowsort
SELECT 72 * col2 + col0 FROM tab2
----
1702
2944
4251

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL - 66 + + COUNT( * ) + + 40 AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - 66 + + COUNT ( * ) + + 40 AS col0 FROM tab0
----
-23

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5937
SELECT col2 + - 14 AS col2, col0 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-4
NULL
33
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-5937
SELECT col2 + - 14 AS col2, col0 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-4
NULL
33
NULL
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT ALL + COUNT( * ) DIV + 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + COUNT ( * ) / + 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 / + col0 * - + 1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT DISTINCT + 58 DIV 89 * + COUNT( * ) + - - 92 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + 58 / 89 * + COUNT ( * ) + - - 92 FROM tab2 AS cor0
----
92

query I rowsort
SELECT 32 + - col0 FROM tab1 AS cor0
----
-19
-53
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT DISTINCT - - col0 - + - col2 + - - 22 DIV col2 AS col2 FROM tab0 AS cor0
----
196
62
99

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - - col0 - + - col2 + - - 22 / col2 AS col2 FROM tab0 AS cor0
----
196
62
99

query I rowsort
SELECT - 68 + + col2 AS col0 FROM tab0
----
-21
-58
31

onlyif mysql # DIV for integer division: 
query II rowsort label-5945
SELECT ALL ( + col1 ) DIV - col1 AS col2, 61 + - 57 col0 FROM tab2
----
-1
4
-1
4
-1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5945
SELECT ALL ( + col1 ) / - col1 AS col2, 61 + - 57 col0 FROM tab2
----
-1
4
-1
4
-1
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT DISTINCT - COUNT( * ), + COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5946
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT - MAX( ALL + - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT - MAX ( ALL + - col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1 * - + ( + 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND col1
----

query II rowsort
SELECT - col0 AS col0, + 66 FROM tab2 AS cor0
----
-46
66
-64
66
-75
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5952
SELECT col2, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5952
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT + + CAST( 49 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + + CAST ( 49 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL - col1 / + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - col1 / + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col1 + - + col0 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT - + 13 + + 39 AS col2 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5957
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5957
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + - ( - col1 ) FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - MAX( DISTINCT + 90 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - MAX ( DISTINCT + 90 ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT DISTINCT + col0 DIV ( 73 ) * - + col2 FROM tab1
----
-59
-68
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT + col0 / ( 73 ) * - + col2 FROM tab1
----
-59
-68
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT ALL 27 + + + 0 DIV - col2 col2 FROM tab0
----
27
27
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5962
SELECT ALL 27 + + + 0 / - col2 col2 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5963
SELECT ALL + 52 * - + COUNT( * ) + - COUNT( * ) - - + MIN( 32 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
-127
3

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL + 52 * - + COUNT ( * ) + - COUNT ( * ) - - + MIN ( 32 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
-127
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5964
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> CAST( - col0 AS SIGNED ) + + + 48 - + 72 * + 49
----

skipif mysql # not compatible
query III rowsort label-5964
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> CAST ( - col0 AS INTEGER ) + + + 48 - + 72 * + 49
----

query III rowsort
SELECT * FROM tab1 WHERE - 8 = + 21 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT COUNT( * ) AS col0, 1 FROM tab2 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-5966
SELECT COUNT ( * ) AS col0, 1 FROM tab2 AS cor0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT MIN( ( + - col2 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5967
SELECT MIN ( ( + - col2 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-174

query I rowsort
SELECT DISTINCT 65 + - + col2 - - + col2 AS col0 FROM tab0
----
65

query I rowsort
SELECT 86 + col2 AS col1 FROM tab1 AS cor0
----
145
154
182

query II rowsort
SELECT col0, ( + col0 ) FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 54 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 54 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT 52 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT 52 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col0, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - 95 + - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - col0 * - 95 FROM tab1
----
247095
686375
786695

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT 6 * - SUM( col1 ) AS col2 FROM tab2
----
-1170

skipif mysql # not compatible
query I rowsort label-5976
SELECT 6 * - SUM ( col1 ) AS col2 FROM tab2
----
-1170

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5977
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) - - col1 NOT BETWEEN - - col2 AND + col1 * 71
----

skipif mysql # not compatible
query III rowsort label-5977
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) - - col1 NOT BETWEEN - - col2 AND + col1 * 71
----

query I rowsort
SELECT ALL ( - ( + 38 ) ) * - col2 * - 45 AS col2 FROM tab0
----
-169290
-17100
-80370

query I rowsort
SELECT ALL 14 FROM tab0 WHERE NOT - col0 + - col2 BETWEEN col1 * - col1 / + col1 AND - - 71
----
14
14

query I rowsort
SELECT ALL ( - col2 ) * - + 87 AS col1 FROM tab0
----
4089
8613
870

query I rowsort
SELECT DISTINCT + 49 * 5 AS col1 FROM tab2 AS cor0
----
245

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL > 55 + col0
----

query I rowsort
SELECT DISTINCT + 15 + - 34 AS col2 FROM tab0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + ( + - 16 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 96 col2 FROM tab0 cor0
----
4512
9504
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT + COUNT( * ), COUNT( ALL - 53 ) + + - 27 + MAX( - 19 ) * 10 + - 15 + - - 31 AS col1 FROM tab1 AS cor0
----
3
-198

skipif mysql # not compatible
query II rowsort label-5989
SELECT + COUNT ( * ), COUNT ( ALL - 53 ) + + - 27 + MAX ( - 19 ) * 10 + - 15 + - - 31 AS col1 FROM tab1 AS cor0
----
3
-198

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab2 AS cor0 WHERE - 23 IS NOT NULL
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5991
SELECT - 52 DIV + - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 52 / + - COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT DISTINCT + col0 + - - col0 + - 62 FROM tab1
----
108
120
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5993
SELECT COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL MIN( ALL + col1 ) + - ( 90 ) AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL MIN ( ALL + col1 ) + - ( 90 ) AS col0 FROM tab0
----
-89

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + + col0
----

query I rowsort
SELECT + 17 + + col2 AS col1 FROM tab2
----
40
57
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5997
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-5997
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + CAST ( NULL AS INTEGER ) * + col0
----

query II rowsort
SELECT DISTINCT - col1 + 45, col2 FROM tab1 AS cor0
----
-2
68
31
96
40
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL - + COUNT( * ) * + 2 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5999
SELECT ALL - + COUNT ( * ) * + 2 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL COUNT( * ) + - 89 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL COUNT ( * ) + - 89 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col1 FROM tab0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - - COUNT( DISTINCT 20 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - - COUNT ( DISTINCT 20 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL ( - + 16 ) FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 * - 84 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6005
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 * - 84 IS NULL
----
3

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab2 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * + col0 * + col0 col1 FROM tab1
----
1857114
3070625
35417837

query I rowsort
SELECT ALL col2 * - - 87 AS col1 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + 29 * + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 60 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-6011
SELECT + 29 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 60 IS NULL
----
87

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 * 57 / - col2 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, col1 + 16 AS col1 FROM tab1 AS cor0
----
59
21
68
63
96
30

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL 49 + col2 FROM tab0
----
148
59
96

query I rowsort
SELECT DISTINCT col2 + + - 58 FROM tab0
----
-11
-48
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( col0, - 4 - - 71, - col0, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + + COUNT( * ) + + + SUM( ALL col0 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-6018
SELECT + + COUNT ( * ) + + + SUM ( ALL col0 ) FROM tab1 AS cor0
----
230

query I rowsort
SELECT col1 * 77 * + - 19 + + col0 AS col0 FROM tab1 AS cor0
----
-20431
-68670
-7230

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT - ( - + 25 ) DIV + col2 * - - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT - ( - + 25 ) / + col2 * - - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - + col2 ) * + col2 + 28 + - - col0 AS col0 FROM tab1
----
-3368
-4505
-9137

query I rowsort
SELECT ALL ( col1 ) + + col2 AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT + SUM( col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6023
SELECT + SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col1 - col2 + - + 61 AS col1 FROM tab1 AS cor0
----
-115
-143
-82

query I rowsort
SELECT ALL - + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT CAST( NULL AS SIGNED ) + - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT CAST ( NULL AS INTEGER ) + - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT DISTINCT + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col0 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + 53 + + col1 * - col1 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 94 FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT - CAST( 11 AS SIGNED ) col1 FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6031
SELECT - CAST ( 11 AS INTEGER ) col1 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL > + - 56 * + - 57 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + COUNT( * ) * - 23 col1 FROM tab2
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6033
SELECT + COUNT ( * ) * - 23 col1 FROM tab2
----
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NOT col1 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT + col2 * col1 DIV + - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + col2 * col1 / + - col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 73 * + + 84 AS col0 FROM tab2
----
-6132
-6132
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT ALL + col1 * - ( 54 ) FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT + 39 * + 26 FROM tab0
----
1014
1014
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + MAX( ALL 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6040
SELECT + MAX ( ALL 42 ) FROM tab1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6041
SELECT - ( + 90 ) DIV COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6041
SELECT - ( + 90 ) / COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-90

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT col2 - + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT COUNT( + 81 ) + - - 74 AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6043
SELECT COUNT ( + 81 ) + - - 74 AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + col1 + 91 + + col2 FROM tab2
----
165
208
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT + COUNT( col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + COUNT ( col1 ) FROM tab2
----
3

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( + 8 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 76 IS NULL
----

query I rowsort
SELECT DISTINCT + - 1 - - + 26 + + + 37 AS col0 FROM tab1 cor0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT + ( 35 ) * - - 36 + + + MAX( ALL - + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6050
SELECT + ( 35 ) * - - 36 + + + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL - - 5 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - - 5 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 4 col2 FROM tab0 cor0
----
-1
4
-21
4
-81
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT - ( - 14 ) DIV + + 18 - + 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-6053
SELECT - ( - 14 ) / + + 18 - + 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + COUNT( * ) - - MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6054
SELECT + COUNT ( * ) - - MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col1 * 54 AS col0 FROM tab2 AS cor0
----
-2754
-3618
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6056
SELECT ALL - CAST( - 86 AS SIGNED ) DIV COUNT( * ) + + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - CAST ( - 86 AS INTEGER ) / COUNT ( * ) + + COUNT ( * ) FROM tab1
----
31

query II rowsort
SELECT ALL - 46 + + + col2, - ( + col1 ) AS col2 FROM tab0
----
-36
-21
1
-81
53
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT + col2 + col2 * - - CAST( 41 AS SIGNED ) FROM tab0
----
1974
4158
420

skipif mysql # not compatible
query I rowsort label-6058
SELECT + col2 + col2 * - - CAST ( 41 AS INTEGER ) FROM tab0
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT col1 + + CAST( + col2 AS SIGNED ) + - 95 * col0 + + 55 FROM tab2
----
-4241
-5908
-6945

skipif mysql # not compatible
query I rowsort label-6059
SELECT col1 + + CAST ( + col2 AS INTEGER ) + - 95 * col0 + + 55 FROM tab2
----
-4241
-5908
-6945

query I rowsort
SELECT DISTINCT col1 - col0 + + 67 + + - 6 AS col1 FROM tab1
----
-19
17
24

query I rowsort
SELECT ALL - col2 + - ( + - col1 ) AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT - col1 / - ( 26 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + 32 + col1 FROM tab1 AS cor0
----
1551
165
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * - + col0 col1 FROM tab2
----
-3542
-4928
-5775

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 9 * - 98 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT COUNT( * ) + - - 89 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
98

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) + - - 89 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT + + COUNT( * ) * + AVG ( ALL + - 97 ) col1 FROM tab1 cor0 WHERE NOT - col2 < CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6068
SELECT + + COUNT ( * ) * + AVG ( ALL + - 97 ) col1 FROM tab1 cor0 WHERE NOT - col2 < CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + col2 * - - col0 FROM tab1 AS cor0 WHERE NOT col1 <= - 50
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT ALL + col0 DIV - - 43 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL + col0 / - - 43 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - + 93 ) FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT MAX( ALL + col2 ) AS col2, - COUNT( * ) FROM tab2
----
58
-3

skipif mysql # not compatible
query II rowsort label-6072
SELECT MAX ( ALL + col2 ) AS col2, - COUNT ( * ) FROM tab2
----
58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL - SUM( ALL - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - SUM ( ALL - col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + COUNT( * ) * - 59 * - - COUNT( * ) FROM tab0
----
-531

skipif mysql # not compatible
query I rowsort label-6074
SELECT + COUNT ( * ) * - 59 * - - COUNT ( * ) FROM tab0
----
-531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col2 col2, + col1 * - - 91 FROM tab1
----
-3481
455
-4624
4277
-9216
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT DISTINCT 68 DIV col1 * + + col0 * - 22 FROM tab2
----
-1012
-1650
0

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT 68 / col1 * + + col0 * - 22 FROM tab2
----
-1012
-1650
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT - col0 - col2 FROM tab1 WHERE NOT col1 + + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6078
SELECT - col0 - col2 FROM tab1 WHERE NOT col1 + + + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col1 * - col0 * + col0 + + col1 AS col2, + ( - + col1 ) + - 6 * 24 FROM tab0 AS cor0
----
-158928
-165
-18144
-225
-9408
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL - col0 + - 56 AS col0 FROM tab2 AS cor0 WHERE ( NOT ( ( ( NOT ( CAST( col0 AS SIGNED ) ) IS NOT NULL ) ) ) )
----
-102
-120
-131

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - col0 + - 56 AS col0 FROM tab2 AS cor0 WHERE ( NOT ( ( ( NOT ( CAST ( col0 AS INTEGER ) ) IS NOT NULL ) ) ) )
----
-102
-120
-131

query I rowsort
SELECT DISTINCT 33 + + col1 AS col2 FROM tab1 WHERE 51 BETWEEN + col0 + - 85 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) * + col0 * + col0 * 79 - + col2 FROM tab2
----
24915968
29773125
8525364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT + col2 + + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT + col2 + + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 33 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 40 + + - col2 FROM tab0 AS cor0
----
-139
-50
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT + ( + col0 ) + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6088
SELECT + ( + col0 ) + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2, 0, + ( - - col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT + col2 DIV - - col1 * - col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT + col2 / - - col1 * - col1 AS col0 FROM tab0
----
-99
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 > - col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE 2 BETWEEN + col1 AND 51
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT SUM( col1 ) * + 95 - + 55 * + 9 AS col1 FROM tab0
----
9290

skipif mysql # not compatible
query I rowsort label-6095
SELECT SUM ( col1 ) * + 95 - + 55 * + 9 AS col1 FROM tab0
----
9290

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL COUNT( * ) + - COUNT( + + col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL COUNT ( * ) + - COUNT ( + + col1 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT col0 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT col0 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - + 22 AS col1 FROM tab2
----
-45
-62
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + COUNT( * ) - 20 * COUNT( * ) + - MAX( - + col2 ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6099
SELECT + COUNT ( * ) - 20 * COUNT ( * ) + - MAX ( - + col2 ) AS col2 FROM tab1
----
2

query I rowsort
SELECT + 23 - - col2 AS col1 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT DISTINCT + col0 * 58 AS col2 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT DISTINCT - + 33 * - ( - col0 ) * col1 + + - 21 * - col1 AS col0 FROM tab0 AS cor0
----
-3180
-38394
-59850

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0 WHERE 28 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - + 24 * - 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + col0 DIV + + 99 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT + col0 / + + 99 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6106
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( - col0 AS SIGNED ) + + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6106
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - col0 AS INTEGER ) + + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT - - COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT - - COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6108
SELECT ALL + - col2 * - ( - col0 ) + - CAST( NULL AS SIGNED ) / + col1 col1, + 18 FROM tab1 cor0
----
NULL
18
NULL
18
NULL
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6108
SELECT ALL + - col2 * - ( - col0 ) + - CAST ( NULL AS INTEGER ) / + col1 col1, + 18 FROM tab1 cor0
----
NULL
18
NULL
18
NULL
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT DISTINCT 44 + - col1 + + - 77 - + 16 + - col0 * - CAST( + 70 AS SIGNED ) * - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-42988804
-52750066
-9285633

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT 44 + - col1 + + - 77 - + 16 + - col0 * - CAST ( + 70 AS INTEGER ) * - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-42988804
-52750066
-9285633

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 58 ) IS NOT NULL
----

query I rowsort
SELECT ( - - col1 ) * - col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT + col2 + - col1 + + - col2 + + col0 col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6112
SELECT + col2 + - col1 + + - col2 + + col0 col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
37
44
80

query I rowsort
SELECT ALL col1 + + + 42 AS col1 FROM tab0
----
123
43
63

query I rowsort
SELECT + 99 * + col2 FROM tab0
----
4653
9801
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - SUM( - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6115
SELECT - SUM ( - col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT MIN( - 2 ) * COUNT( * ), - 84 AS col1 FROM tab2
----
-6
-84

skipif mysql # not compatible
query II rowsort label-6116
SELECT MIN ( - 2 ) * COUNT ( * ), - 84 AS col1 FROM tab2
----
-6
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6117
SELECT ALL col1 * 98 * - - 27 * - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL col1 * 98 * - - 27 * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 + + ( col2 ) col0, 11 col0 FROM tab0
----
-37
11
-74
11
15
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col0 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6120
SELECT DISTINCT + col2 DIV col1 * + - CAST( NULL AS SIGNED ) AS col0, col0 DIV + - col2 AS col2 FROM tab2 cor0
----
NULL
-1
NULL
-2

skipif mysql # not compatible
query II rowsort label-6120
SELECT DISTINCT + col2 / col1 * + - CAST ( NULL AS INTEGER ) AS col0, col0 / + - col2 AS col2 FROM tab2 cor0
----
NULL
-1
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT + + SUM( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + + SUM ( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - - 12 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 089770693ed05b90ff1d6e52838c3525

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 * - 71 FROM tab2 cor0
----
1610
2800
4060

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = ( - + 73 ) + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 - - 20 col1 FROM tab0 AS cor0
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + col0 + - ( - + col2 ) + 42 - col0 FROM tab2 AS cor0
----
-2327
-4910
-5000

query I rowsort
SELECT + ( - - col0 ) - - + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + col2 - - 13 FROM tab2 cor0
----
36
53
71

query I rowsort
SELECT + + col1 - 12 + - col1 FROM tab0 AS cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT + 24 * COUNT( ALL - col2 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + 24 * COUNT ( ALL - col2 ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT + - MIN( col1 ) col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT DISTINCT + - MIN ( col1 ) col0 FROM tab1 cor0
----
-5

query I rowsort
SELECT + ( + - 42 ) AS col2 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT + COUNT( ( col0 ) ) * + + 50 AS col0 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6137
SELECT + COUNT ( ( col0 ) ) * + + 50 AS col0 FROM tab0 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT - col2 DIV col1 * + col0 FROM tab0 AS cor0
----
-9603
0
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT - col2 / col1 * + col0 FROM tab0 AS cor0
----
-9603
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT - 64 + col0 - col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 64 + col0 - col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT - 18 DIV - - col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT - 18 / - - col2 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT - col1 AS col1, + 58 AS col1 FROM tab2 AS cor0
----
-51
58
-67
58
-77
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT ALL - col1 DIV 3 FROM tab2 AS cor0
----
-17
-22
-25

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - col1 / 3 FROM tab2 AS cor0
----
-17
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL + SUM( ALL + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL + SUM ( ALL + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6145
SELECT * FROM tab2 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) * col0 + + 21 + + ( - 19 ) AND - + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6145
SELECT * FROM tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) * col0 + + 21 + + ( - 19 ) AND - + ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT + 1 AS col2, COUNT( * ) * - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
1
-81

skipif mysql # not compatible
query II rowsort label-6146
SELECT + 1 AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
1
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT + + col1 * 84 * CAST( - col1 AS SIGNED ) * + col0 FROM tab0 WHERE + + 4 * 69 > - col0
----
-3222828
-8148
-8266860

skipif mysql # not compatible
query I rowsort label-6147
SELECT + + col1 * 84 * CAST ( - col1 AS INTEGER ) * + col0 FROM tab0 WHERE + + 4 * 69 > - col0
----
-3222828
-8148
-8266860

query II rowsort
SELECT col1 * col2 * + col0 AS col0, 95 AS col2 FROM tab1 cor0
----
25075
95
290836
95
68544
95

query II rowsort
SELECT 83 AS col2, + 24 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6150
SELECT - col1 - + + CAST( - + 3 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE CAST( - 30 AS SIGNED ) * + - col0 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6150
SELECT - col1 - + + CAST ( - + 3 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE CAST ( - 30 AS INTEGER ) * + - col0 * col0 IS NULL
----

query I rowsort
SELECT - 49 + + - col1 AS col2 FROM tab1
----
-54
-63
-96

query I rowsort
SELECT ALL - 55 + - 93 AS col2 FROM tab2 AS cor0
----
-148
-148
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-6153
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6153
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT - + 71 - - COUNT( DISTINCT + 8 ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - + 71 - - COUNT ( DISTINCT + 8 ) FROM tab2 AS cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT ALL - - 51 DIV ( + col1 ) - - col1 FROM tab1 AS cor0
----
15
17
48

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - - 51 / ( + col1 ) - - col1 FROM tab1 AS cor0
----
15
17
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT - - COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT - - COUNT ( col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + + col2 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + col1 * - ( - ( ( col2 ) ) ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - 80 * + col0 * + ( ( - + 63 ) ) * + col1 * + 0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT COUNT( * ) * - - SUM( col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-6161
SELECT COUNT ( * ) * - - SUM ( col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL - COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 87 * + 5 FROM tab1
----
435
435
435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6164
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6165
SELECT CAST( - - 25 AS SIGNED ) * + CAST( - col0 AS SIGNED ) DIV - + col0 + + - 90 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-6165
SELECT CAST ( - - 25 AS INTEGER ) * + CAST ( - col0 AS INTEGER ) / - + col0 + + - 90 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT DISTINCT - col0 DIV col0 col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6166
SELECT DISTINCT - col0 / col0 col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT DISTINCT 12, col1 AS col2 FROM tab0 AS cor0
----
12
1
12
21
12
81

query I rowsort
SELECT DISTINCT + col0 + - + ( + 42 ) FROM tab1 AS cor0
----
43
49
9

query II rowsort
SELECT - col2 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL + - SUM( ALL col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + - SUM ( ALL col0 ) FROM tab2 cor0
----
-185

query II rowsort
SELECT DISTINCT ( + - 54 ) AS col0, col2 FROM tab1
----
-54
59
-54
68
-54
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT 72 + - - col0 DIV + col1 FROM tab0
----
169
72
76

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT 72 + - - col0 / + col1 FROM tab0
----
169
72
76

query I rowsort
SELECT ALL - 57 * col1 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT ALL col1 * + col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT 39 + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT 39 + COUNT ( * ) FROM tab0
----
42

query I rowsort
SELECT col1 * + col1 * - - 73 FROM tab1
----
14308
161257
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT 26 + + + COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-6177
SELECT 26 + + + COUNT ( * ) FROM tab2
----
29

query I rowsort
SELECT - 85 + 36 AS col0 FROM tab0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL - CAST( NULL AS SIGNED ) / col1 * col0 - - 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 * col0 - - 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col1 - + - col2 AS col1 FROM tab0 AS cor0
----
1262
1837
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - col2 col1, + col2 * 18 AS col2 FROM tab0 AS cor0
----
-210
180
-3807
846
-99
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - MAX( + 6 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6182
SELECT - MAX ( + 6 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col1 * 62 FROM tab0
----
1302
5022
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 95 NOT BETWEEN NULL AND - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6185
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT col2 * col2 * - col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT + 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-6187
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + 79 - - - COUNT( * ) + - 51 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + 79 - - - COUNT ( * ) + - 51 AS col0 FROM tab2
----
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 <= - - 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NOT + - col0 BETWEEN - - 11 * - - col1 AND NULL AND CAST( - col2 AS SIGNED ) <= - 48
----
-58

skipif mysql # not compatible
query I rowsort label-6190
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NOT + - col0 BETWEEN - - 11 * - - col1 AND NULL AND CAST ( - col2 AS INTEGER ) <= - 48
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - - 95 * - col1 col2, + 59 * + 94 * + - col1 + 68 + + - 58 + + col1 * - - col1 + col2 FROM tab0 AS cor0
----
-2016
-116005
-7776
-442608
-96
-5436

query I rowsort
SELECT + 48 * ( - - col1 ) - + - col2 FROM tab2 AS cor0
----
2471
3274
3736

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL + MAX( DISTINCT - col0 ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6193
SELECT ALL + MAX ( DISTINCT - col0 ) col0 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT 74 * - 21, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1554
3

skipif mysql # not compatible
query II rowsort label-6194
SELECT 74 * - 21, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1554
3

query I rowsort
SELECT DISTINCT - col1 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT DISTINCT col2 - + - col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL MAX( - col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6197
SELECT ALL MAX ( - col2 ) col1 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6199
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT col0, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT DISTINCT - col1 DIV 31 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - col1 / 31 AS col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT COUNT( - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT COUNT ( - - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT ALL + - COUNT( * ) AS col0, 37 AS col2 FROM tab1 AS cor0
----
-3
37

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL + - COUNT ( * ) AS col0, 37 AS col2 FROM tab1 AS cor0
----
-3
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6205
SELECT * FROM tab2 WHERE 0 NOT IN ( - CAST( col1 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6205
SELECT * FROM tab2 WHERE 0 NOT IN ( - CAST ( col1 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 91 ) BETWEEN NULL AND ( 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 70 * - 89 AS col1 FROM tab1 WHERE NOT col0 * + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) * - ( 13 * 12 ) AS col2 FROM tab0 WHERE NOT ( col2 ) BETWEEN col0 AND 6
----
-13572
-15132
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT DISTINCT - col2 DIV + ( 42 ) + + col0 * 54 FROM tab2
----
2484
3456
4049

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - col2 / + ( 42 ) + + col0 * 54 FROM tab2
----
2484
3456
4049

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL COUNT( 61 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL COUNT ( 61 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 * - ( - 2 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6212
SELECT col2 - + col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT col2 - + col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab2 WHERE 3 IS NOT NULL
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - COUNT( * ) * - SUM( DISTINCT - 39 * col2 ) + COUNT( * ) FROM tab0
----
-18249

skipif mysql # not compatible
query I rowsort label-6214
SELECT - COUNT ( * ) * - SUM ( DISTINCT - 39 * col2 ) + COUNT ( * ) FROM tab0
----
-18249

query I rowsort
SELECT + col0 * 49 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT + 70 * - col0 AS col1 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6217
SELECT * FROM tab2 WHERE + 65 > ( + CAST( - col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6217
SELECT * FROM tab2 WHERE + 65 > ( + CAST ( - col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT - 34 - COUNT( * ) AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - 34 - COUNT ( * ) AS col1 FROM tab1
----
-37

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 / + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ( - SUM( DISTINCT - col2 ) ) + COUNT( 24 ) col2 FROM tab0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6220
SELECT ( - SUM ( DISTINCT - col2 ) ) + COUNT ( 24 ) col2 FROM tab0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6221
SELECT DISTINCT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) * - col1 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6221
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) * - col1 ) < NULL
----

query I rowsort
SELECT 6 + - col2 FROM tab2
----
-17
-34
-52

query I rowsort
SELECT 19 * 38 FROM tab1
----
722
722
722

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT COUNT( * ) * ( - 10 ) AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6224
SELECT COUNT ( * ) * ( - 10 ) AS col2 FROM tab1
----
-30

query I rowsort
SELECT + col0 + col1 AS col0 FROM tab0 WHERE NOT ( ( ( - col2 ) ) ) IN ( 98 )
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 * + col1 + + ( ( 44 ) ) ) BETWEEN 45 + + 87 / col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 62 ) < ( + 28 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE NOT ( ( 72 ) * + col0 ) >= ( + 92 )
----

query I rowsort
SELECT - col1 * 24 + col1 AS col2 FROM tab2
----
-1173
-1541
-1771

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 78 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / + 82 < - 88 * 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 + 44 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT + 13 - col0 FROM tab0 AS cor0
----
-2
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT col1 - - col1 DIV - 13 FROM tab1 AS cor0
----
13
44
5

skipif mysql # not compatible
query I rowsort label-6235
SELECT col1 - - col1 / - 13 FROM tab1 AS cor0
----
13
44
5

query I rowsort
SELECT - 36 - col1 * col0 FROM tab1 AS cor0
----
-4313
-461
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT + col2 DIV 6 - - col1 FROM tab2 AS cor0
----
54
76
83

skipif mysql # not compatible
query I rowsort label-6237
SELECT + col2 / 6 - - col1 FROM tab2 AS cor0
----
54
76
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT ALL - 55 DIV col0 - + 93 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-2140
-3720
-5394

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - 55 / col0 - + 93 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-2140
-3720
-5394

query I rowsort
SELECT DISTINCT ( ( ( - col0 ) ) ) * col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > ( NULL )
----

query I rowsort
SELECT ALL + 84 - - col1 FROM tab2 WHERE NOT + col1 IS NULL
----
135
151
161

query III rowsort
SELECT * FROM tab2 WHERE ( - 44 ) NOT IN ( 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 85 + - col0 FROM tab1
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6245
SELECT ALL * FROM tab1 WHERE NOT ( col2 + + col1 * 22 ) IN ( col0 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6245
SELECT ALL * FROM tab1 WHERE NOT ( col2 + + col1 * 22 ) IN ( col0 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6246
SELECT DISTINCT CAST( - col2 AS SIGNED ) 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-6246
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / + col1 col1 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + 28 * col1 ) BETWEEN NULL AND 22 + - 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT + 83 * ( col2 + 74 ) FROM tab1 cor0
----
11039
11786
14110

query I rowsort
SELECT DISTINCT + col2 * + 78 AS col2 FROM tab1 AS cor0
----
4602
5304
7488

query I rowsort
SELECT col2 * + col2 FROM tab2 AS cor0 WHERE NOT 23 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 14 + - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 80 / 8 AS col0 FROM tab0 AS cor0 WHERE - col1 > 2 + 44 / ( col2 - 42 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT ALL 63 DIV SUM( 15 * col2 + col1 * - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 63 / SUM ( 15 * col2 + col1 * - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - 50 ) FROM tab2 cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - ( - 8 ) FROM tab2
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT 74 DIV 11 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT 74 / 11 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT - col1 DIV - - 12 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT - col1 / - - 12 FROM tab0
----
-1
-6
0

query I rowsort
SELECT - 89 * col0 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT ALL + 14 + col2 FROM tab1 WHERE NOT + 51 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * col1 * + col2 col2 FROM tab1
----
-2065
-22372
-9408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6266
SELECT DISTINCT - 94 * - CAST( NULL AS DECIMAL ) - - 11 FROM tab0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - 94 * - CAST ( NULL AS REAL ) - - 11 FROM tab0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + MIN( + + 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6267
SELECT + MIN ( + + 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT + col2 * col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT COUNT( - col2 ) * + ( + 32 + + COUNT( * ) ) - + 3 FROM tab0 AS cor0 WHERE NOT ( CAST( - 42 AS SIGNED ) + - col1 ) BETWEEN NULL AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6269
SELECT COUNT ( - col2 ) * + ( + 32 + + COUNT ( * ) ) - + 3 FROM tab0 AS cor0 WHERE NOT ( CAST ( - 42 AS INTEGER ) + - col1 ) BETWEEN NULL AND NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT 56 + - COUNT( 81 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6271
SELECT 56 + - COUNT ( 81 ) FROM tab0 AS cor0
----
53

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) + 82 AS col0 FROM tab2
----
3
85

skipif mysql # not compatible
query II rowsort label-6273
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + 82 AS col0 FROM tab2
----
3
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6274
SELECT ALL * FROM tab2 WHERE NOT ( - - col1 + + CAST( 33 AS SIGNED ) * + col2 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6274
SELECT ALL * FROM tab2 WHERE NOT ( - - col1 + + CAST ( 33 AS INTEGER ) * + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT - + 24 AS col1, - MAX( - - col0 ) FROM tab2 AS cor0
----
-24
-75

skipif mysql # not compatible
query II rowsort label-6275
SELECT - + 24 AS col1, - MAX ( - - col0 ) FROM tab2 AS cor0
----
-24
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 40 col2 FROM tab1 AS cor0
----
-26
-35
7

query I rowsort
SELECT DISTINCT + 2 + + col0 FROM tab1 cor0
----
53
87
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 83 <= col0 + - 71
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT DISTINCT + - 51 AS col2, 17 * + - COUNT( col0 ) col2 FROM tab0 AS cor0
----
-51
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6279
SELECT DISTINCT + - 51 AS col2, 17 * + - COUNT ( col0 ) col2 FROM tab0 AS cor0
----
-51
-51

query I rowsort
SELECT ALL 63 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + col1 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col1 ) <> - col0 * + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + + COUNT( ALL + 90 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6283
SELECT + + COUNT ( ALL + 90 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * 64 + + col1 - col1 col1 FROM tab0 AS cor0
----
2304
2304
2304

query II rowsort
SELECT DISTINCT + col0, + col2 * - - 68 FROM tab2 AS cor0
----
46
1564
64
2720
75
3944

query I rowsort
SELECT - col1 * 15 - col1 * + col2 FROM tab2 AS cor0
----
-1938
-4235
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - 59 * - + COUNT( * ) - + + 85 + + COUNT( * ) * - ( - 22 + MIN( + col0 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 59 * - + COUNT ( * ) - + + 85 + + COUNT ( * ) * - ( - 22 + MIN ( + col0 ) ) AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT col1 + col2 + - + col2 * + - 74 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT col1 + col2 + - + col2 * + - 74 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6289
SELECT ALL CAST( - CAST( 38 AS DECIMAL ) AS SIGNED ) + + col2 + - col0 AS col1 FROM tab2
----
-55
-61
-62

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL CAST ( - CAST ( 38 AS REAL ) AS INTEGER ) + + col2 + - col0 AS col1 FROM tab2
----
-55
-61
-62

query I rowsort
SELECT DISTINCT 92 + - + col0 FROM tab1
----
1
41
7

query I rowsort
SELECT + 17 * - col1 + - col0 * - - col2 FROM tab1
----
-5100
-5134
-6987

query I rowsort
SELECT col0 + + col2 * col2 * - - col1 FROM tab2
----
123264
225463
27025

query I rowsort
SELECT - 76 FROM tab1 WHERE NULL > - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT ALL + - 74 + + + COUNT( * ) DIV 62 FROM tab2 WHERE NULL = NULL
----
-74

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + - 74 + + + COUNT ( * ) / 62 FROM tab2 WHERE NULL = NULL
----
-74

query I rowsort
SELECT ALL + 86 + col2 * - 55 AS col1 FROM tab0
----
-2499
-464
-5359

query II rowsort
SELECT ALL + + 33 * col0, col2 FROM tab1 cor0
----
1683
96
2805
59
3003
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - 50 )
----

query II rowsort
SELECT ALL + 53 - 34, col1 FROM tab1 AS cor0
----
19
14
19
47
19
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL COUNT( * ) * 27 FROM tab0 AS cor0 WHERE NOT 31 < - + 55 + 49 + ( - col1 - col0 )
----
81

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL COUNT ( * ) * 27 FROM tab0 AS cor0 WHERE NOT 31 < - + 55 + 49 + ( - col1 - col0 )
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6300
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( 78 ) + + 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( 78 ) + + 40 IS NULL
----
NULL

query II rowsort
SELECT ( - col0 ), col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - 38 FROM tab2 AS cor0 WHERE ( - 3 + - + 71 + - col1 - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - - 32 FROM tab2
----
1280
1856
736

query I rowsort
SELECT DISTINCT + col2 * - - 39 + col0 FROM tab0
----
1848
3958
477

query I rowsort
SELECT 54 * + 62 FROM tab0
----
3348
3348
3348

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 + + 23 - col2 * - col1 / col2 + 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT DISTINCT + 9 DIV + + col2 + - col0 * + col1 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT + 9 / + + col2 + - col0 * + col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT ALL - - 1 DIV col0 * col2 * - 27 * - 66 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - - 1 / col0 * col2 * - 27 * - 66 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT - 76 AS col0, col0 + + + 88 FROM tab2 cor0
----
-76
134
-76
152
-76
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6312
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6312
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT 7 FROM tab0 AS cor0 WHERE NOT ( col0 + + + 67 ) IN ( col1 + - 62 )
----
7
7
7

query I rowsort
SELECT - + col1 * + + col0 * 60 + + col1 AS col0 FROM tab2 AS cor0
----
-140709
-295603
-301433

query I rowsort
SELECT ALL - 62 * - col1 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT + col1 + col2 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col2 col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + MIN( DISTINCT - - col1 ) FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT + MIN ( DISTINCT - - col1 ) FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = ( + col2 * + 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - + 93, 26 AS col2 FROM tab1 AS cor0
----
-93
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + ( + + SUM( DISTINCT - 94 ) ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6323
SELECT + ( + + SUM ( DISTINCT - 94 ) ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6324
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 * CAST( NULL AS DECIMAL ) * + col2 ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-6324
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 * CAST ( NULL AS REAL ) * + col2 ) NOT IN ( + col0 )
----

query II rowsort
SELECT 78 AS col2, + col0 * + 69 FROM tab0 AS cor0
----
78
1035
78
6003
78
6693

query I rowsort
SELECT DISTINCT - + col0 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT ALL col2 * + col1 + 17 FROM tab2
----
1190
3097
3903

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6328
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 ) AND 14 + - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6328
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 ) AND 14 + - CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6329
SELECT - + col2 + col2 AS col1, - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT - + col2 + col2 AS col1, - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT - - CAST( NULL AS SIGNED ) + - ( MIN( DISTINCT - col1 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT - - CAST ( NULL AS INTEGER ) + - ( MIN ( DISTINCT - col1 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col2 AS col1, + col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT 89 + + + 29 AS col1 FROM tab0
----
118

query I rowsort
SELECT DISTINCT + 20 + - - col2 FROM tab1
----
116
79
88

query I rowsort
SELECT + 95 - col1 FROM tab1
----
48
81
90

query I rowsort
SELECT DISTINCT 43 + - + 63 * - col0 * + + 69 * 20 * - 40 FROM tab1
----
-177357557
-295595957
-316461557

query III rowsort
SELECT * FROM tab0 WHERE - - col2 / col0 + + col1 NOT IN ( - col0 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6337
SELECT DISTINCT - SUM( ALL CAST( + + ( - 87 ) AS SIGNED ) ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - SUM ( ALL CAST ( + + ( - 87 ) AS INTEGER ) ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT DISTINCT - 33 * - + col1 FROM tab2 AS cor0 WHERE 14 > ( + - col1 ) AND NULL NOT IN ( + 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * - 4 col1 FROM tab1 AS cor0
----
-220
-220
-220

query I rowsort
SELECT + 69 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6341
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT DISTINCT + 70 + - COUNT( * ) AS col1, 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61
45

skipif mysql # not compatible
query II rowsort label-6342
SELECT DISTINCT + 70 + - COUNT ( * ) AS col1, 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT - ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6344
SELECT - ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 96 ) + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col1 * 81 + 74 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT DISTINCT - 2 DIV - MIN( ALL - 72 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT - 2 / - MIN ( ALL - 72 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6348
SELECT ALL - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + 67 ) + + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-16
0
10

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 = col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, + 50 AS col1 FROM tab2
----
-51
50
-67
50
-77
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + MIN( + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + MIN ( + + col1 ) FROM tab0
----
1

query I rowsort
SELECT ALL - col0 * col2 * col2 FROM tab2
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 col0, col2 AS col2 FROM tab2
----
-20
23
-20
40
-20
58

query I rowsort
SELECT ALL 80 + - 33 AS col2 FROM tab2
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT DISTINCT + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT DISTINCT 34 DIV + COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT 34 / + COUNT ( * ) FROM tab0
----
11

query I rowsort
SELECT DISTINCT col1 * + + col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + 26 * - 86 * + 57 AS col0 FROM tab0
----
-127452
-127452
-127452

query I rowsort
SELECT DISTINCT col0 / + ( col0 ) + + + col0 * - + col2 FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 85 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 81 FROM tab2 cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT COUNT( - 57 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT COUNT ( - 57 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 21 AS col0, - col1 + + col1 * - col0 FROM tab1 AS cor0
----
-21
-430
-21
-4324
-21
-728

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col1 col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL col0 * ( - + col1 ) + 55 FROM tab1
----
-370
-4222
-659

query I rowsort
SELECT + col2 + - + 77 + - - col0 - - + col0 + - col1 * col0 FROM tab2
----
-2308
-4837
-4894

query I rowsort
SELECT 52 + - 40 AS col1 FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6370
SELECT * FROM tab0 WHERE + 75 + CAST( col0 AS SIGNED ) = col1 + + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-6370
SELECT * FROM tab0 WHERE + 75 + CAST ( col0 AS INTEGER ) = col1 + + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL - col1 + col1 + col2 - - + 92 + - + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE ( NOT - 4 IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6371
SELECT ALL - col1 + col1 + col2 - - + 92 + - + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE ( NOT - 4 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL 51 + + COUNT( * ) * - SUM( - col2 ) FROM tab0
----
519

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL 51 + + COUNT ( * ) * - SUM ( - col2 ) FROM tab0
----
519

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6373
SELECT - 15, - COUNT( * ) DIV 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15
-9

skipif mysql # not compatible
query II rowsort label-6373
SELECT - 15, - COUNT ( * ) / 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15
-9

query I rowsort
SELECT col0 * - - col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT - COUNT( * ) col2, + 26 * 1 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6375
SELECT - COUNT ( * ) col2, + 26 * 1 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
78

query II rowsort
SELECT - col2, col2 AS col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT ( - col0 ) DIV col0 + - + col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-6377
SELECT ( - col0 ) / col0 + - + col0 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT ALL ( + ( - 98 ) ) FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - - 12 + - + 63 AS col0 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6381
SELECT col0 DIV + - 69 + col0 AS col1 FROM tab1
----
51
84
90

skipif mysql # not compatible
query I rowsort label-6381
SELECT col0 / + - 69 + col0 AS col1 FROM tab1
----
51
84
90

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN + + col2 AND + 76 / - - col0
----

query I rowsort
SELECT DISTINCT col1 + - 49 AS col0 FROM tab0
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT 71 * - COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT 71 * - COUNT ( * ) FROM tab0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6385
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - ( CAST( 67 AS SIGNED ) ) * - col2, + col1 * + - 37, - col0 )
----

skipif mysql # not compatible
query III rowsort label-6385
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - ( CAST ( 67 AS INTEGER ) ) * - col2, + col1 * + - 37, - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 + + col1 / - 23 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 64 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - + col2 ) * + + col0 * + col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + col1 * 67 AS col1 FROM tab1 WHERE NOT ( - - col1 ) / - + col1 IS NULL
----
3149
335
938

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT 30 DIV 77 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT 30 / 77 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6391
SELECT 83 DIV + + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6391
SELECT 83 / + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT + ( + 37 ) * col2 + + 25 * - 37 AS col1 FROM tab0
----
-555
2738
814

query I rowsort
SELECT 52 * + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - MIN( ALL - col2 ) + 83 AS col2 FROM tab1 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-6394
SELECT - MIN ( ALL - col2 ) + 83 AS col2 FROM tab1 AS cor0
----
179

query I rowsort
SELECT - 85 + + 38 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col1 - + col1 * + 80 AS col1 FROM tab0 AS cor0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - SUM( 41 ) - 57 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - SUM ( 41 ) - 57 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT ALL + 17 * + - col1 FROM tab1 cor0
----
-238
-799
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT - COUNT( * ) * + + 15 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6400
SELECT - COUNT ( * ) * + + 15 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ( + 90 ) * - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND ( + + 91 * + 49 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6402
SELECT * FROM tab2 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IN ( ( col1 ) - col2 + - + 26 )
----

skipif mysql # not compatible
query III rowsort label-6402
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IN ( ( col1 ) - col2 + - + 26 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT + col1 + - 72 < col2 * + 27 * - 12 + 20
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT COUNT( * ) - + - SUM( DISTINCT 81 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT COUNT ( * ) - + - SUM ( DISTINCT 81 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL - col0 AS col1, + ( - - 63 ) FROM tab1
----
-51
63
-85
63
-91
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT ALL + 24 DIV - col1 FROM tab0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + 24 / - col1 FROM tab0
----
-1
-24
0

query II rowsort
SELECT - col0 AS col1, col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 27, col2 + + col2 + + 7 + + - 78 col1 FROM tab2 AS cor0
----
-27
-25
-27
45
-27
9

query I rowsort
SELECT + - 9 AS col1 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT COUNT( ALL - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6412
SELECT COUNT ( ALL - - col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + 73 + + - col0 AS col0 FROM tab2
----
49
50
56

query II rowsort
SELECT DISTINCT 75, col2 AS col1 FROM tab2
----
75
23
75
40
75
58

query I rowsort
SELECT - 1 + - col1 AS col1 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT ALL + - 91 + - 19 FROM tab0 AS cor0
----
-110
-110
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT + col2 * + 36 * + + CAST( NULL AS SIGNED ) * 35 * + 36 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT + col2 * + 36 * + + CAST ( NULL AS INTEGER ) * 35 * + 36 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 + ( + ( + col1 ) ), + col0 * - col1 AS col0 FROM tab2
----
117
-4928
125
-5025
74
-2346

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - 81 + + - COUNT( * ) AS col1 FROM tab1 WHERE - + 13 - - col1 * + col2 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-6420
SELECT - 81 + + - COUNT ( * ) AS col1 FROM tab1 WHERE - + 13 - - col1 * + col2 IS NULL
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > ( col1 - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT ALL + col1 + + col1 + - + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
159
42

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + col1 + + col1 + - + col2 / + col0 AS col0 FROM tab0 AS cor0
----
1
159
42

query I rowsort
SELECT ALL 44 * + - ( - 50 ) AS col0 FROM tab1 cor0
----
2200
2200
2200

query I rowsort
SELECT + ( + AVG ( DISTINCT + 14 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL <> + col1
----
NULL

query I rowsort
SELECT ALL - + 88 - - ( col1 ) + - col0 + + col2 * 86 FROM tab1 AS cor0
----
4906
5716
8131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT - CAST( + 94 AS SIGNED ) + + col1 * 14 AS col1 FROM tab2 AS cor0
----
620
844
984

skipif mysql # not compatible
query I rowsort label-6426
SELECT - CAST ( + 94 AS INTEGER ) + + col1 * 14 AS col1 FROM tab2 AS cor0
----
620
844
984

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT ALL - col1 DIV - col2 - + 57 + + col0 DIV - col0 FROM tab2 AS cor0
----
-56
-57
-57

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - col1 / - col2 - + 57 + + col0 / - col0 FROM tab2 AS cor0
----
-56
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + ( + MAX( 78 ) ) col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6428
SELECT ALL + ( + MAX ( 78 ) ) col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT MAX( ALL + 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6430
SELECT MAX ( ALL + 66 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL - SUM( - + 88 ) AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - SUM ( - + 88 ) AS col1 FROM tab1
----
264

query I rowsort
SELECT - 58 * - + col1 FROM tab0
----
1218
4698
58

query I rowsort
SELECT DISTINCT - 90 * - col2 AS col0 FROM tab1
----
5310
6120
8640

query II rowsort
SELECT - 10, col2 FROM tab1
----
-10
59
-10
68
-10
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6437
SELECT ALL 28, 4 * - col2 DIV - col2 AS col2 FROM tab1
----
28
4
28
4
28
4

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL 28, 4 * - col2 / - col2 AS col2 FROM tab1
----
28
4
28
4
28
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 * - col2 * - 64 - ( 32 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - col0 - - + col1
----

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT 82 DIV col1 FROM tab0 AS cor0
----
1
3
82

skipif mysql # not compatible
query I rowsort label-6441
SELECT 82 / col1 FROM tab0 AS cor0
----
1
3
82

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 <> - 90 / + ( - col1 ) * - col2 + + col1 + + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT COUNT( * ) * - 5 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-45

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT COUNT ( * ) * - 5 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 col1, - col1 * - 96 * - - col2 AS col2 FROM tab1 cor0
----
-14
129024
-14
28320
-14
306816

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 + - col2 / + col1 / - - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 46 < CAST( NULL AS SIGNED ) / + + col0
----

skipif mysql # not compatible
query I rowsort label-6446
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 46 < CAST ( NULL AS INTEGER ) / + + col0
----

query II rowsort
SELECT ALL col2 AS col1, 91 FROM tab2 AS cor0
----
23
91
40
91
58
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT + - 61 + - CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT + - 61 + - CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 86 FROM tab1 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( 30 ) + + ( - + 77 ) col2, - 23 AS col0 FROM tab0 AS cor0
----
-47
-23
-47
-23
-47
-23

query I rowsort
SELECT ALL col0 * + col0 + + 56 + col2 + col0 AS col0 FROM tab0 AS cor0
----
343
7722
9661

query I rowsort
SELECT + col2 + + col1 - - + 57 FROM tab2 AS cor0
----
131
174
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT + COUNT( * ) * - + 52 + - 33 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + COUNT ( * ) * - + 52 + - 33 FROM tab0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + MAX( - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6457
SELECT + MAX ( - + col2 ) FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 70 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - col2 AS col2, col1 col0 FROM tab2
----
17
67
23
51
24
77

query II rowsort
SELECT - col1 AS col0, col1 AS col0 FROM tab2 AS cor0 WHERE 89 * + col2 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6461
SELECT * FROM tab0 AS cor0 WHERE col0 * + + CAST( - + ( + col0 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6461
SELECT * FROM tab0 AS cor0 WHERE col0 * + + CAST ( - + ( + col0 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * 56 FROM tab2
----
1288
2240
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - + SUM( DISTINCT + - 11 ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-6463
SELECT - + SUM ( DISTINCT + - 11 ) FROM tab2 cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, ( col0 ) + - - col1 col0 FROM tab2 cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL 50 - COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL 50 - COUNT ( * ) FROM tab0 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL ( + 58 ) FROM tab2 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * col2 col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT SUM( - col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT SUM ( - col2 ) col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + - 22 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col0 + + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
-48
-48
-48

query II rowsort
SELECT ALL col2 * + 9 AS col0, + 55 FROM tab0
----
423
55
891
55
90
55

query II rowsort
SELECT - 43 * + 27, 71 AS col0 FROM tab0
----
-1161
71
-1161
71
-1161
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT 52 DIV + + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT 52 / + + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 9 * 20 FROM tab0
----
180
180
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL - CAST( NULL AS SIGNED ) * - MIN( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - CAST ( NULL AS INTEGER ) * - MIN ( - col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL COUNT( * ) * + + COUNT( DISTINCT 29 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL COUNT ( * ) * + + COUNT ( DISTINCT 29 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT DISTINCT + ( - SUM( ALL + + col2 ) ) * + COUNT( ALL 85 ) AS col1 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + ( - SUM ( ALL + + col2 ) ) * + COUNT ( ALL 85 ) AS col1 FROM tab0 AS cor0
----
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT ALL col2 DIV 60 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL col2 / 60 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT - 45 * - SUM( 0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT - 45 * - SUM ( 0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT 88 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT 88 < NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT COUNT( - + col2 ) + + 93 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-6483
SELECT COUNT ( - + col2 ) + + 93 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6484
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
3

query II rowsort
SELECT - col1 AS col0, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT + ( MIN( ALL + + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6486
SELECT + ( MIN ( ALL + + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6487
SELECT - CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) + - 27 FROM tab1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-6487
SELECT - CAST ( NULL AS REAL ) AS col1, COUNT ( * ) + - 27 FROM tab1
----
NULL
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - 59 FROM tab0
----
-38
-58
22

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - ( 87 ) IS NULL
----

query I rowsort
SELECT col1 + + - 56 FROM tab2
----
-5
11
21

query I rowsort
SELECT ALL + 51 AS col0 FROM tab1 WHERE - col1 BETWEEN NULL AND 42
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6494
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6495
SELECT DISTINCT * FROM tab2 WHERE + - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6495
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT - col2 AS col2, col2 FROM tab0 WHERE col1 + + + ( - + col0 ) BETWEEN + - 41 - + 5 AND 98
----
-47
47

query I rowsort
SELECT ALL - 84 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL + + 26 - ( CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) * + - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + + 26 - ( CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) * + - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6499
SELECT - 77 * + + 76 * + col0 + - + col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-298548
NULL
-497479
NULL
-532600
NULL

skipif mysql # not compatible
query II rowsort label-6499
SELECT - 77 * + + 76 * + col0 + - + col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-298548
NULL
-497479
NULL
-532600
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - - col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - + col0 - + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6502
SELECT DISTINCT + 65 AS col2, - col1 + + CAST( - - col1 AS SIGNED ) + - col0 * + col0 + - col1 + 77 * + + col1 * + col1 + + - col2 col1 FROM tab1 AS cor0
----
65
-5364
65
12381
65
161697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6502
SELECT DISTINCT + 65 AS col2, - col1 + + CAST ( - - col1 AS INTEGER ) + - col0 * + col0 + - col1 + 77 * + + col1 * + col1 + + - col2 col1 FROM tab1 AS cor0
----
65
-5364
65
12381
65
161697

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT 30 DIV + 98 - + + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6503
SELECT 30 / + 98 - + + col1 FROM tab2
----
-51
-67
-77

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT - MAX( DISTINCT + 33 ) DIV 24 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6505
SELECT - MAX ( DISTINCT + 33 ) / 24 AS col1 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 53 + col1 IS NOT NULL
----

query I rowsort
SELECT 66 + - - 70 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - col0 * + 57 AS col0 FROM tab1 AS cor0
----
-148257
-411825
-472017

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6509
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6509
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - + CAST ( NULL AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col0 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL SUM( - 91 ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL SUM ( - 91 ) AS col2 FROM tab1
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT CAST( - col0 AS SIGNED ) * 12 * 4 AS col2 FROM tab2
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-6512
SELECT CAST ( - col0 AS INTEGER ) * 12 * 4 AS col2 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 75 * - - SUM( DISTINCT 98 ) AS col2 FROM tab0
----
7350

skipif mysql # not compatible
query I rowsort label-6513
SELECT 75 * - - SUM ( DISTINCT 98 ) AS col2 FROM tab0
----
7350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT CAST( ( - col1 ) AS SIGNED ) * - 38 AS col1 FROM tab0
----
3078
38
798

skipif mysql # not compatible
query I rowsort label-6515
SELECT CAST ( ( - col1 ) AS INTEGER ) * - 38 AS col1 FROM tab0
----
3078
38
798

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col0 * col1 + 63 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 10 * col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 54 col1 FROM tab0 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT DISTINCT - col0 * ( col1 ) + - 45 DIV 27 FROM tab2 AS cor0
----
-2347
-4929
-5026

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - col0 * ( col1 ) + - 45 / 27 FROM tab2 AS cor0
----
-2347
-4929
-5026

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - + ( - - SUM( ALL - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6520
SELECT - + ( - - SUM ( ALL - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col1 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT - col2 * + + col2 * - 59 * col2 + - col1 + + col1 FROM tab2 AS cor0
----
11511608
3776000
717853

query I rowsort
SELECT - - 36 + + - ( - col2 ) FROM tab2 AS cor0
----
59
76
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 + - col2 + - col1 col1 FROM tab1 AS cor0
----
-131
-136
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT + COUNT( - - 10 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + COUNT ( - - 10 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 14 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
14
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 77 * + 61 ) IS NULL
----

query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - 89 - - 26 AS col1 FROM tab0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT + + COUNT( * ) - - 37 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT + + COUNT ( * ) - - 37 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT + SUM( - 7 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT + SUM ( - 7 ) AS col2 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 - + 31 ) NOT BETWEEN ( NULL ) AND + col2 * - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 73 FROM tab0 AS cor0
----
160
170
88

query I rowsort
SELECT + 56 / - col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * - - 42 + + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL 26 * CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL 26 * CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6537
SELECT ALL * FROM tab1 WHERE NOT + 30 IN ( + + col2, - col0, + CAST( - + col2 AS SIGNED ), + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6537
SELECT ALL * FROM tab1 WHERE NOT + 30 IN ( + + col2, - col0, + CAST ( - + col2 AS INTEGER ), + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 66 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1386
-5346
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT - col0 DIV + 38 col0 FROM tab0 cor0
----
-2
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6539
SELECT - col0 / + 38 col0 FROM tab0 cor0
----
-2
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6540
SELECT - - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6541
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT + - COUNT( + + col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT + - COUNT ( + + col2 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL - MIN( + + col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - MIN ( + + col1 ) AS col2 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6546
SELECT CAST( NULL AS DECIMAL ) * - ( COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT CAST ( NULL AS REAL ) * - ( COUNT ( * ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT SUM( + 54 ) col1 FROM tab0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6548
SELECT SUM ( + 54 ) col1 FROM tab0
----
162

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL MIN( DISTINCT + ( + - col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL MIN ( DISTINCT + ( + - col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + - 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 64 + ( + ( + - 25 ) ) + 57 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT DISTINCT col1 / - col2 * + 4 + - CAST( - col1 AS SIGNED ) + + col1 + + col0 * ( + col0 ) * - + ( + + CAST( NULL AS SIGNED ) ) + - 87 - - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT col1 / - col2 * + 4 + - CAST ( - col1 AS INTEGER ) + + col1 + + col0 * ( + col0 ) * - + ( + + CAST ( NULL AS INTEGER ) ) + - 87 - - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col1 * col1 + + + col2 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT + col0 - - col2 DIV + col1 AS col2 FROM tab0 cor0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + col0 - - col2 / + col1 AS col2 FROM tab0 cor0
----
15
196
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT - + col2 * - col1 * - col0 + - CAST( col0 AS SIGNED ) + + col0 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6557
SELECT - + col2 * - col1 * - col0 + - CAST ( col0 AS INTEGER ) + + col0 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT ALL col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col2 - + + col1 FROM tab1
----
113
178
89

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL = 94 / col2 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * - 52 col2 FROM tab0
----
-3588
-3588
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL COUNT( * ) + SUM( - + col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL COUNT ( * ) + SUM ( - + col2 ) FROM tab2
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT DISTINCT - CAST( - 71 AS SIGNED ) * - 80 - - 53 AS col0 FROM tab0
----
-5627

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) * - 80 - - 53 AS col0 FROM tab0
----
-5627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6564
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * CAST( NULL AS SIGNED ) * COUNT( * ) - + 63 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 63 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT col0 + - 33 FROM tab0
----
-18
54
64

query I rowsort
SELECT DISTINCT ( 48 ) * - + col2 * - col1 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT MAX( - 58 ), MAX( + 41 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-58
41

skipif mysql # not compatible
query II rowsort label-6568
SELECT MAX ( - 58 ), MAX ( + 41 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-58
41

query I rowsort
SELECT DISTINCT + col0 * - - 26 + + col2 + col2 * + - col1 * col0 AS col2 FROM tab1
----
-22806
-288402
-67122

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 21 + + col1 AND - col2 * - 26 * + 42
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 87 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 - - 31 AS col0, - col0 FROM tab2 AS cor0
----
-27
-75
-9
-64
8
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-6573
SELECT ALL + + col1 DIV + col0 AS col1, + col2 FROM tab2 AS cor0
----
0
58
1
23
1
40

skipif mysql # not compatible
query II rowsort label-6573
SELECT ALL + + col1 / + col0 AS col1, + col2 FROM tab2 AS cor0
----
0
58
1
23
1
40

query I rowsort
SELECT + - col1 * col2 * + - col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT DISTINCT + 66 * + col0 + - col2 FROM tab0 AS cor0
----
5732
6303
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL 97 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 97 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - ( - ( + 67 ) ) FROM tab1
----
-3149
-335
-938

query II rowsort
SELECT ALL 73 * + ( 18 ), col0 FROM tab0 AS cor0
----
1314
15
1314
87
1314
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT COUNT ( - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6580
SELECT CAST( - CAST( col0 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6580
SELECT CAST ( - CAST ( col0 AS REAL ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 * 0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT col0, - col0 - + col2 AS col0 FROM tab0
----
15
-62
87
-97
97
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT ALL 55, COUNT( * ) AS col0 FROM tab2
----
55
3

skipif mysql # not compatible
query II rowsort label-6584
SELECT ALL 55, COUNT ( * ) AS col0 FROM tab2
----
55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL MAX( ALL + - col0 ) col0 FROM tab2 WHERE ( NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) ) )
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6585
SELECT ALL MAX ( ALL + - col0 ) col0 FROM tab2 WHERE ( NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) ) )
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 69 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT - 35, 5 AS col1, + - col0 + - - 4 AS col1 FROM tab0
----
9 values hashing to a9f85df45f6f188dbe8b70cf8da9cc9c

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT SUM( + 86 ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT SUM ( + 86 ) AS col2 FROM tab0 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + MIN( 72 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-6589
SELECT + MIN ( 72 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - COUNT( * ) + - COUNT( + + 21 ) col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6590
SELECT - COUNT ( * ) + - COUNT ( + + 21 ) col1 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT COUNT( * ) + - 18 AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6591
SELECT COUNT ( * ) + - 18 AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL - col1 - 64 FROM tab2 AS cor0
----
-115
-131
-141

query I rowsort
SELECT 75 AS col2 FROM tab1 AS cor0 WHERE + 24 <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6594
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 col0, col1 AS col1 FROM tab0 cor0
----
-11
21
-34
81
98
1

query II rowsort
SELECT ALL + + col2 * + - col2, 79 * + + 15 AS col2 FROM tab1 AS cor0
----
-3481
1185
-4624
1185
-9216
1185

query I rowsort
SELECT DISTINCT + + col0 * 19 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 94 * - 74 + + - 66 + + - col1 AND - - 44
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 FROM tab0 cor0 WHERE NOT ( NOT - ( ( col1 ) ) >= - 79 )
----
-1
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT MAX( DISTINCT 73 ) * - CAST( 99 AS SIGNED ) - - + 21 FROM tab0
----
-7206

skipif mysql # not compatible
query I rowsort label-6601
SELECT MAX ( DISTINCT 73 ) * - CAST ( 99 AS INTEGER ) - - + 21 FROM tab0
----
-7206

query I rowsort
SELECT ALL 69 FROM tab1 WHERE NOT NULL < + col2
----

query I rowsort
SELECT DISTINCT + col1 + - 34 FROM tab1
----
-20
-29
13

query III rowsort
SELECT * FROM tab1 WHERE 3 < - + ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 78, + 59 AS col2 FROM tab0 AS cor0
----
-78
59

query I rowsort
SELECT ALL - 13 FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6607
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL + - 79 * - - MAX( - 55 ) * + 19 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
82555

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + - 79 * - - MAX ( - 55 ) * + 19 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
82555

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT AVG ( DISTINCT 56 ) / - + 32 + + 21 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL <= 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6612
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + ( + CAST( + + 43 AS SIGNED ) ) + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6612
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + ( + CAST ( + + 43 AS INTEGER ) ) + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT DISTINCT - + COUNT( * ) DIV - - MAX( DISTINCT ( - 6 ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - + COUNT ( * ) / - - MAX ( DISTINCT ( - 6 ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col1, + col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab2 WHERE NOT col0 * + col1 <> + col2 * - col1
----

query I rowsort
SELECT col0 * + 61 + - + 90 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3021
5095
5461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6618
SELECT col1 * CAST( + + col2 AS SIGNED ) AS col1, + col1 AS col0 FROM tab0
----
210
21
3807
81
99
1

skipif mysql # not compatible
query II rowsort label-6618
SELECT col1 * CAST ( + + col2 AS INTEGER ) AS col1, + col1 AS col0 FROM tab0
----
210
21
3807
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT - 82 + + MAX( ALL + ( + 36 ) ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - 82 + + MAX ( ALL + ( + 36 ) ) FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - + 98 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-6621
SELECT - + 98 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-101

query I rowsort
SELECT DISTINCT - - 77 AS col2 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL - COUNT( * ) + - 84 AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - COUNT ( * ) + - 84 AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE - 11 / - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - + col1 + - + col1 + + + col2 col0 FROM tab0 AS cor0
----
-1523
-5866
26

query I rowsort
SELECT ALL + col0 * 21 + + col0 FROM tab0
----
1914
2134
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - - + 87 col0 FROM tab1 AS cor0
----
146
155
183

query II rowsort
SELECT 41 * - + col2 + - + col0 * - 46 AS col1, + col2 * - - col0 FROM tab0 AS cor0
----
-1237
705
3592
870
403
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL - - SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - - SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + col2 * + - ( - col0 ) + - col1 + - col0 * + 59 * 19 AS col2 FROM tab1 AS cor0
----
-52289
-90275
-95870

query I rowsort
SELECT - 74 + 11 AS col1 FROM tab2
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 37 + 3 col2 FROM tab0
----
-41
19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT MIN ( col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab1 WHERE + col2 IS NULL
----

query II rowsort
SELECT + 9 AS col1, + col0 AS col2 FROM tab1 WHERE NOT ( NOT col0 >= - ( - col0 ) )
----
9
51
9
85
9
91

query I rowsort
SELECT DISTINCT + col2 - + - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( col2 ) * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 78, col1 * - + 66 AS col0 FROM tab2
----
78
-3366
78
-4422
78
-5082

query I rowsort
SELECT DISTINCT col1 * - 56 * - + ( 69 ) * - col0 FROM tab1 AS cor0
----
-1642200
-16526328
-2758896

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6641
SELECT + 22 * - + 75 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 22 * - + 75 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + 67 + 18 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT + CAST( NULL AS SIGNED ) + - ( - - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT + CAST ( NULL AS INTEGER ) + - ( - - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6645
SELECT - + CAST( col2 AS DECIMAL ) * CAST( NULL AS SIGNED ) + + 43 + - col2 * + ( - - 89 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT - + CAST ( col2 AS REAL ) * CAST ( NULL AS INTEGER ) + + 43 + - col2 * + ( - - 89 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - 98 AS col2 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT - + col0 * - + col2 * + col0 / + 59 - 5 FROM tab2 WHERE NULL <= - - col1
----

query I rowsort
SELECT DISTINCT 66 + - col1 FROM tab1
----
19
52
61

query I rowsort
SELECT ALL + col1 * col1 * + + 9 FROM tab2
----
23409
40401
53361

query II rowsort
SELECT DISTINCT col2 + + col2, + ( 0 ) AS col0 FROM tab2
----
116
0
46
0
80
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND + - col1 + - col1 / - col1 + + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT ALL + 76 + - + 62, COUNT( * ) col2 FROM tab1 AS cor0
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6652
SELECT ALL + 76 + - + 62, COUNT ( * ) col2 FROM tab1 AS cor0
----
14
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + col2 NOT BETWEEN - col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + - COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + - COUNT ( col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + - col0 col2 FROM tab0
----
-13
-85
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT - 64 + 37 * + COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - 64 + 37 * + COUNT ( * ) FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6658
SELECT + COUNT( * ) + + 88 * + + CAST( NULL AS SIGNED ) AS col1, ( - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-6658
SELECT + COUNT ( * ) + + 88 * + + CAST ( NULL AS INTEGER ) AS col1, ( - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-33

query I rowsort
SELECT DISTINCT + 53 + + - col1 FROM tab2
----
-14
-24
2

query I rowsort
SELECT ALL - 71 + - col2 AS col1 FROM tab0
----
-118
-170
-81

query I rowsort
SELECT 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN 48 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6663
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6663
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( + col2, col2 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - COUNT( * ) * + - 24 col2 FROM tab0 AS cor0 WHERE ( NULL ) = 10 + - 37 * + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT ALL - COUNT ( * ) * + - 24 col2 FROM tab0 AS cor0 WHERE ( NULL ) = 10 + - 37 * + col1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR + col1 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9

query II rowsort
SELECT ALL col0, ( + col1 ) AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT DISTINCT - CAST( 67 AS SIGNED ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - CAST ( 67 AS INTEGER ) FROM tab1
----
-67

onlyif mysql # DIV for integer division: 
query III rowsort label-6670
SELECT ALL - 86 AS col1, col2 DIV - + col1 * + col0, + + col2 col2 FROM tab2
----
9 values hashing to 62cc4a5f920c9b9faf6a33ca15df2fc2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6670
SELECT ALL - 86 AS col1, col2 / - + col1 * + col0, + + col2 col2 FROM tab2
----
9 values hashing to 62cc4a5f920c9b9faf6a33ca15df2fc2

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL MAX( + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL MAX ( + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT DISTINCT 31 AS col0, + COUNT( * ) col0 FROM tab0
----
31
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6672
SELECT DISTINCT 31 AS col0, + COUNT ( * ) col0 FROM tab0
----
31
3

query I rowsort
SELECT 37 * - + col1 * + + col1 FROM tab0
----
-16317
-242757
-37

query II rowsort
SELECT - + 86, - col1 AS col0 FROM tab0 AS cor0
----
-86
-1
-86
-21
-86
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT 37 * COUNT( * ) + ( - 54 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 37 * COUNT ( * ) + ( - 54 ) FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT + SUM( DISTINCT + - col2 ) AS col2, SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-121
-195

skipif mysql # not compatible
query II rowsort label-6676
SELECT + SUM ( DISTINCT + - col2 ) AS col2, SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-121
-195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 82 < NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 3 * col0 AND ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 3 * col0 AND ( + col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 35 * + col2 / - CAST( - col1 AS SIGNED ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 35 * + col2 / - CAST ( - col1 AS INTEGER ) IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6681
SELECT DISTINCT + COUNT( * ) * + SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + COUNT ( * ) * + SUM ( - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 14 AS col2, col2 * - + col2 * 23 AS col1 FROM tab2
----
14
-12167
14
-36800
14
-77372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT col2 AS col1 FROM tab2 WHERE NULL NOT IN ( - - col1, 25, col2 * ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6684
SELECT col2 AS col1 FROM tab2 WHERE NULL NOT IN ( - - col1, 25, col2 * ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ( + col2 ) * + col1 + col1 AS col2 FROM tab1
----
1358
300
3243

query I rowsort
SELECT DISTINCT - 96 - - col2 FROM tab0 AS cor0
----
-49
-86
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) DIV + MIN( - col2 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) / + MIN ( - col2 ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + MIN( 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6688
SELECT + MIN ( 30 ) FROM tab0
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE col2 * 81 <> - ( + ( col1 ) ) + col1
----
-3

skipif mysql # not compatible
query I rowsort label-6690
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE col2 * 81 <> - ( + ( col1 ) ) + col1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 65 + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6693
SELECT ALL * FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6693
SELECT ALL * FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6694
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV COUNT( ALL col1 * col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / COUNT ( ALL col1 * col1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT 58 DIV COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6695
SELECT 58 / COUNT ( * ) FROM tab2
----
19

query I rowsort
SELECT ALL + col1 * ( col1 ) + + col0 AS col2 FROM tab2
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col1 FROM tab2 WHERE NOT + 7 * col2 NOT BETWEEN ( NULL ) AND 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT ( + col2 ) DIV - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6698
SELECT ( + col2 ) / - col2 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT ALL 39 + 50 DIV - col0 FROM tab0
----
36
39
39

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL 39 + 50 / - col0 FROM tab0
----
36
39
39

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col1 * + 2 >= ( + 68 / - col1 )
----

query I rowsort
SELECT DISTINCT - 97 * + 67 FROM tab1 WHERE - col1 IN ( + col2 - ( col2 ) )
----

query I rowsort
SELECT ALL + 86 * 50 AS col0 FROM tab1
----
4300
4300
4300

query I rowsort
SELECT 71 FROM tab0 WHERE NOT ( col0 / col0 ) BETWEEN ( col0 + col2 ) AND NULL
----
71
71
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6704
SELECT - 67 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT - 67 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col1 / col0 AS col1 FROM tab1 WHERE NOT ( + 5 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - col0 * + col2
----

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2
----
-75
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 58 col0 FROM tab2
----
104
122
133

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 16 * col0 > NULL
----

query I rowsort
SELECT + 33 AS col1 FROM tab0 WHERE NOT ( - ( - col0 ) ) IN ( - col2 / + ( + col0 ) )
----
33
33
33

query I rowsort
SELECT ALL + 25 + + col2 FROM tab0
----
124
35
72

query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - 91 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 15 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 29 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 29 FROM tab0
----
NULL

query I rowsort
SELECT + 24 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT ( - 78 ) + + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab2
----
-14
-3
-32

skipif mysql # not compatible
query I rowsort label-6718
SELECT ( - 78 ) + + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
-14
-3
-32

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col1 NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col1 * col0
----

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1 WHERE NOT - col0 * col0 > + 80
----
21
54
82

query I rowsort
SELECT + col0 + 30 * + col0 AS col2 FROM tab0
----
2697
3007
465

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT col2 DIV col2 + 39 * col0 AS col2 FROM tab2
----
1795
2497
2926

skipif mysql # not compatible
query I rowsort label-6724
SELECT col2 / col2 + 39 * col0 AS col2 FROM tab2
----
1795
2497
2926

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + col1 FROM tab0 AS cor0 WHERE NOT - 4 NOT IN ( 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6727
SELECT + MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - 96 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT - 99 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 99 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT 96 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6731
SELECT 96 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 + + 63 AS col1 FROM tab1
----
114
148
154

query I rowsort
SELECT 54 - - col0 FROM tab1 WHERE NOT ( 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - MAX( - col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - MAX ( - col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + 32 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND - 14
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + COUNT( * ) + 46 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6738
SELECT + COUNT ( * ) + 46 FROM tab0 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT col0 DIV - col1 AS col2 FROM tab2 AS cor0 WHERE - col0 - - 97 <> ( + 77 + col0 )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6739
SELECT col0 / - col1 AS col2 FROM tab2 AS cor0 WHERE - col0 - - 97 <> ( + 77 + col0 )
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT 34 + - COUNT( * ) col0 FROM tab2 cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6740
SELECT 34 + - COUNT ( * ) col0 FROM tab2 cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6741
SELECT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) + col0 < ( 8 * 46 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6741
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) + col0 < ( 8 * 46 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 25 FROM tab0 AS cor0 WHERE NOT ( - col2 ) * col0 BETWEEN NULL AND + col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6743
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + - 73 + + col2 * - 30 AS col0 FROM tab2 AS cor0
----
-1273
-1813
-763

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 92 BETWEEN ( NULL ) AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT + col2 + - col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + col2 + - col2 / + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT DISTINCT + 34 * - 42 AS col2 FROM tab2 AS cor0
----
-1428

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 41
----

query I rowsort
SELECT ALL 43 FROM tab0 WHERE ( 22 ) IS NOT NULL
----
43
43
43

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT ALL + col1 + col1 + + col2 DIV + col1 FROM tab0
----
101
162
42

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + col1 + col1 + + col2 / + col1 FROM tab0
----
101
162
42

query I rowsort
SELECT 10 AS col0 FROM tab2 WHERE 13 NOT IN ( 13 * 75 )
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL + MIN( ALL + col2 ) + 16 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + MIN ( ALL + col2 ) + 16 FROM tab0
----
26

query I rowsort
SELECT DISTINCT col1 - + + ( col2 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL + col1 + + 51 * 13 AS col2 FROM tab2
----
714
730
740

query I rowsort
SELECT col2 * + ( + 83 ) FROM tab1
----
4897
5644
7968

query I rowsort
SELECT ALL - 96 * - 26 FROM tab1 WHERE - col2 - + 11 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT + - CAST( NULL AS SIGNED ) - 7 / col1 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-6758
SELECT + - CAST ( NULL AS INTEGER ) - 7 / col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 83 * + - 78 FROM tab2 AS cor0
----
6474
6474
6474

query I rowsort
SELECT DISTINCT + col0 - + + ( + ( - col0 ) ) FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT - - MAX( CAST( NULL AS SIGNED ) ) / - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT - - MAX ( CAST ( NULL AS INTEGER ) ) / - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT ( - 32 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL - - 64 + + 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT - COUNT( * ) + - SUM( ALL - col2 + 43 ) * - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT - COUNT ( * ) + - SUM ( ALL - col2 + 43 ) * - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT - MIN( 16 ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6766
SELECT - MIN ( 16 ) AS col1 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + col0 + + - 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT DISTINCT 66 DIV - 65 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT 66 / - 65 FROM tab0
----
-1

query I rowsort
SELECT + 96 FROM tab2 WHERE NOT NULL IS NOT NULL
----
96
96
96

query I rowsort
SELECT DISTINCT 63 + 60 * + col0 FROM tab0 WHERE NOT col2 IS NULL
----
5283
5883
963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT + 12 * + - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 12 * + - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 30 * - - 39 AS col1 FROM tab0
----
1170
1170
1170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 78 * col1 col2, 14 AS col0 FROM tab1
----
-1092
14
-3666
14
-390
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6774
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) > ( + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6774
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) > ( + - col2 )
----

query I rowsort
SELECT + col2 * - + ( - col0 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 + 64 FROM tab0 cor0 WHERE NOT col1 - col1 IN ( 40 )
----
-17
43
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col0 FROM tab2 cor0
----
12
12
12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT IN ( 60 * 50 ) )
----

query I rowsort
SELECT + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query II rowsort
SELECT + 26, + col1 AS col2 FROM tab1
----
26
14
26
47
26
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL ( MIN( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL ( MIN ( + col2 ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - ( - - 61 ) AS col2 FROM tab1 cor0
----
-61
-61
-61

query I rowsort
SELECT - 46 * - 48 FROM tab0 AS cor0
----
2208
2208
2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 13 + col1 + + - ( - 4 ) NOT BETWEEN ( col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 * col2 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN col1 AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < ( - col2 ) AND - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 21 + 21 + + - col1 FROM tab1 AS cor0
----
-1223
-1454
-2009

query I rowsort
SELECT ALL 69 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * + 3 col2 FROM tab2
----
213
213
213

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6796
SELECT ALL + col1 + col0 + + CAST( NULL AS DECIMAL ) * + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + col1 + col0 + + CAST ( NULL AS REAL ) * + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab1 WHERE + col2 IN ( + - col0, 74 )
----

query I rowsort
SELECT DISTINCT 82 * + 99 + - - 66 * + col1 AS col0 FROM tab1
----
11220
8448
9042

query I rowsort
SELECT + col2 FROM tab0 WHERE ( 19 * - + col1 * + col0 * - col2 - - col1 / col1 >= ( col0 ) )
----
10
47
99

query I rowsort
SELECT DISTINCT col1 + - + 6 FROM tab0
----
-5
15
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT DISTINCT - 5 - COUNT( * ) AS col0, ( - - 69 ) * - + 32 FROM tab2
----
-8
-2208

skipif mysql # not compatible
query II rowsort label-6801
SELECT DISTINCT - 5 - COUNT ( * ) AS col0, ( - - 69 ) * - + 32 FROM tab2
----
-8
-2208

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT - COUNT( ALL + - col2 ), - MIN( col1 ) AS col1 FROM tab2 AS cor0
----
-3
-51

skipif mysql # not compatible
query II rowsort label-6802
SELECT - COUNT ( ALL + - col2 ), - MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
-3
-51

query I rowsort
SELECT - - col0 + + col1 FROM tab0 cor0 WHERE - 50 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + ( + col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + ( + col2 ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 70 NOT IN ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 NOT BETWEEN - 83 AND + 65
----

query I rowsort
SELECT ALL 23 * + - 28 * + col0 AS col0 FROM tab1 cor0
----
-32844
-54740
-58604

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT MIN( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6808
SELECT MIN ( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 7 * 25 + + col1 FROM tab0 AS cor0
----
176
196
256

query I rowsort
SELECT ALL - 38 * 28 FROM tab0 AS cor0
----
-1064
-1064
-1064

query I rowsort
SELECT ALL - - 86 FROM tab2 cor0 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + 60 ) FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL col1 + + 30 FROM tab1 WHERE 45 / + col2 + + col0 + + col1 * - 69 BETWEEN + - col1 * - ( + 36 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL COUNT( - - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL COUNT ( - - col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col0, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT ALL COUNT( * ) AS col2, + SUM( - col1 ) FROM tab2
----
3
-195

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL COUNT ( * ) AS col2, + SUM ( - col1 ) FROM tab2
----
3
-195

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6817
SELECT + CAST( col0 AS SIGNED ) DIV - col0 AS col1, + col0 - - col0 + + col2 + col0 * + col1 DIV col1 FROM tab0
----
-1
271
-1
390
-1
92

skipif mysql # not compatible
query II rowsort label-6817
SELECT + CAST ( col0 AS INTEGER ) / - col0 AS col1, + col0 - - col0 + + col2 + col0 * + col1 / col1 FROM tab0
----
-1
271
-1
390
-1
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT + col0 + 31 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT + COUNT( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6821
SELECT + COUNT ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - COUNT( * ) FROM tab0 WHERE + 60 + 66 + + + col2 * - col0 NOT IN ( col2 * + + 99 )
----
-3

skipif mysql # not compatible
query I rowsort label-6822
SELECT - COUNT ( * ) FROM tab0 WHERE + 60 + 66 + + + col2 * - col0 NOT IN ( col2 * + + 99 )
----
-3

query I rowsort
SELECT 41 + + + col2 FROM tab0
----
140
51
88

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= 40
----

query II rowsort
SELECT col1 + + col1 AS col0, - 74 AS col1 FROM tab0 AS cor0
----
162
-74
2
-74
42
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col1 / 57 BETWEEN 27 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 27 - col0 col2, 43 - + col0 - 11 FROM tab1 AS cor0
----
-24
-19
-58
-53
-64
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - col2 col1 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - col2 <= - + 2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 97 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE - + 74 + + + 15 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6831
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - + 74 + + + 15 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 - + - 71 + 40 * 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6833
SELECT ALL * FROM tab2 WHERE NOT CAST( - col0 AS SIGNED ) - - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6833
SELECT ALL * FROM tab2 WHERE NOT CAST ( - col0 AS INTEGER ) - - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + 78 AS col1 FROM tab1
----
137
146
174

query I rowsort
SELECT DISTINCT 66 - + - ( + col1 ) AS col0 FROM tab0
----
147
67
87

query III rowsort
SELECT ALL * FROM tab2 WHERE + 17 + - 87 IS NOT NULL AND NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 88 FROM tab0
----
103
175
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 < col0
----
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 < col0
----
1

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE NOT + col1 * - - col0 IS NULL
----
21
21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col0 + + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT SUM( ALL col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6841
SELECT SUM ( ALL col2 ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - - 3 * COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - - 3 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 AS col1, - 62 col1 FROM tab0
----
26
-62
26
-62
26
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 - - - col1 <= + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT COUNT( + - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6845
SELECT COUNT ( + - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6846
SELECT - - 82 AS col1, CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-6846
SELECT - - 82 AS col1, CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
82
3

query I rowsort
SELECT DISTINCT - + col1 * 32 AS col1 FROM tab0 AS cor0
----
-2592
-32
-672

query II rowsort
SELECT - 82, + col2 AS col1 FROM tab0 AS cor0
----
-82
10
-82
47
-82
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6849
SELECT - + ( - + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT - + ( - + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col1 + col0, + col1 AS col0 FROM tab2 AS cor0
----
141
77
142
67
97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL - 14 + + - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - 14 + + - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - + 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - + 29 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 70 * + col0 AS col0 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT ALL 39 * + 61 * - - 27 AS col1 FROM tab0
----
64233
64233
64233

query I rowsort
SELECT DISTINCT col2 * 9 FROM tab0
----
423
891
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 34 col0 FROM tab2
----
1360
1972
782

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 55 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-6858
SELECT DISTINCT 29 DIV col0 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

skipif mysql # not compatible
query II rowsort label-6858
SELECT DISTINCT 29 / col0 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + COUNT( * ) * - COUNT( * ) + - 36 col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT + COUNT ( * ) * - COUNT ( * ) + - 36 col1 FROM tab1 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 87 col1 FROM tab1 AS cor0
----
-101
-134
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT MAX( - - 19 ) * 34 + - 41 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
523

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT MAX ( - - 19 ) * 34 + - 41 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL MAX( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL MAX ( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6863
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col2 - + 44 FROM tab1 AS cor0
----
-103
-112
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT ALL + COUNT( * ) AS col2, ( - COUNT( * ) ) col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6865
SELECT ALL + COUNT ( * ) AS col2, ( - COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6866
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col0 + 67 AS col1 FROM tab2 AS cor0
----
-2049
-4029
-5558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 42 ) * + + col0 + + 42 col1 FROM tab0 AS cor0
----
-3612
-4032
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - COUNT( * ) + + - COUNT( * ) col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6869
SELECT - COUNT ( * ) + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + ( + + col1 ) + + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT col0 + - + col0 + col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + 11 + - - COUNT( * ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6872
SELECT + 11 + - - COUNT ( * ) AS col1 FROM tab1
----
14

query I rowsort
SELECT - col1 + + col0 - 15 + - - col1 * col2 + + - 39 AS col1 FROM tab2
----
1114
3013
3840

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col2 FROM tab1 WHERE NOT - col2 > 55 * - col0 * - col1
----
425
4277
714

query I rowsort
SELECT ALL + 42 * - col0 AS col0 FROM tab0
----
-3654
-4074
-630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6876
SELECT CAST( - col0 AS SIGNED ), 14 * + 99 * ( + col1 ) + 84 AS col0 FROM tab0
----
-15
112350
-87
29190
-97
1470

skipif mysql # not compatible
query II rowsort label-6876
SELECT CAST ( - col0 AS INTEGER ), 14 * + 99 * ( + col1 ) + 84 AS col0 FROM tab0
----
-15
112350
-87
29190
-97
1470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + - + col1 + - + col1 + + 26 col2 FROM tab1 WHERE NULL IS NULL
----
111
27
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT 19 * 97 * - 75 AS col0 FROM tab1 AS cor0
----
-138225
-138225
-138225

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT ALL - COUNT( * ) AS col1, - SUM( - col0 ) AS col1 FROM tab2 WHERE NOT ( - col1 IS NOT NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL - COUNT ( * ) AS col1, - SUM ( - col0 ) AS col1 FROM tab2 WHERE NOT ( - col1 IS NOT NULL )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + COUNT( * ) * 88 - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-6882
SELECT + COUNT ( * ) * 88 - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL + SUM( 49 ) AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + SUM ( 49 ) AS col1 FROM tab0 AS cor0
----
147

query I rowsort
SELECT - 44 + + col2 AS col0 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6886
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 36 / + + 66 >= col2 - + + CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6886
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 36 / + + 66 >= col2 - + + CAST ( col1 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL - CAST( AVG ( ALL + col2 ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - CAST ( AVG ( ALL + col2 ) AS INTEGER ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab0
----
100
128
31

query II rowsort
SELECT DISTINCT - col0 * + col0 AS col0, 95 * - col1 AS col2 FROM tab1
----
-2601
-1330
-7225
-475
-8281
-4465

query I rowsort
SELECT ALL + 9 + - ( + col0 ) FROM tab0
----
-6
-78
-88

query I rowsort
SELECT DISTINCT + 15 + + col0 * col0 * + - col0 FROM tab2
----
-262129
-421860
-97321

query I rowsort
SELECT - + 5 AS col1 FROM tab1 WHERE NULL IN ( 4, - 84 )
----

query I rowsort
SELECT ALL col1 + 40 FROM tab1
----
45
54
87

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 35 NOT BETWEEN + col0 AND ( - - col2 * - - 0 * ( - col2 ) - + 77 )
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 * 27 + 86 FROM tab0
----
-2101
-481
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE - - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col0 + 24 AS col0 FROM tab1 AS cor0
----
-27
-61
-67

query II rowsort
SELECT ALL col2 * - col0, col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1058
-2601
-2560
-5929
-4350
-4489

query II rowsort
SELECT DISTINCT ( + 55 ) AS col2, - 89 AS col0 FROM tab1 AS cor0
----
55
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6900
SELECT ALL CAST( + col2 AS SIGNED ) - + col1 DIV + - col2 * - col1 * + 51 AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL CAST ( + col2 AS INTEGER ) - + col1 / + - col2 * - col1 * + 51 AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + col0 * 0 * - ( col0 ) + + + ( + 58 ) FROM tab0 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT DISTINCT COUNT( * ) DIV - ( + ( + 38 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT COUNT ( * ) / - ( + ( + 38 ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 54 AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT - 62 FROM tab2 WHERE NOT ( NULL BETWEEN col0 AND + - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6905
SELECT - 62 FROM tab2 WHERE NOT ( NULL BETWEEN col0 AND + - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT + COUNT( * ) DIV 3 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + COUNT ( * ) / 3 FROM tab1
----
1

query II rowsort
SELECT + col0 * + - ( + + col2 ) AS col1, col0 AS col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

query II rowsort
SELECT - + col2, 37 * col1 + + col1 * col1 * col2 - + col2 AS col2 FROM tab2 AS cor0
----
-23
61687
-40
239969
-58
262783

query II rowsort
SELECT DISTINCT col1 AS col0, col0 * + col1 * - col1 + + + col2 * + + 72 FROM tab1 AS cor0
----
14
-3084
47
-196123
5
2123

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 0 * + - 35 > ( + - col0 + - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL MIN( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL MIN ( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + COUNT( * ) * - + 98 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-6912
SELECT + COUNT ( * ) * - + 98 FROM tab2
----
-294

query I rowsort
SELECT - + col2 + + col1 FROM tab2 WHERE NOT + 7 IS NULL
----
28
37
9

query I rowsort
SELECT - 60 * - col1 FROM tab0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6915
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col0 + + col1 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 20 col2 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL - + COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6919
SELECT ALL - + COUNT ( * ) col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - - 33 AS col1 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 58
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6922
SELECT ALL CAST( + col1 AS SIGNED ) DIV - + 74 + ( - 22 ) * col0 + 76 + + - 48 AS col0, 37 * + - 92 * - col1 AS col2 FROM tab1
----
-1094
47656
-1842
17020
-1974
159988

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL CAST ( + col1 AS INTEGER ) / - + 74 + ( - 22 ) * col0 + 76 + + - 48 AS col0, 37 * + - 92 * - col1 AS col2 FROM tab1
----
-1094
47656
-1842
17020
-1974
159988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT col1 + + col2 * CAST( 11 AS SIGNED ) FROM tab2
----
304
517
705

skipif mysql # not compatible
query I rowsort label-6923
SELECT col1 + + col2 * CAST ( 11 AS INTEGER ) FROM tab2
----
304
517
705

query II rowsort
SELECT DISTINCT + col0 + - + col2 + + col1, 68 AS col1 FROM tab0
----
-1
68
49
68
98
68

query I rowsort
SELECT col1 + + + 74 * + + col2 FROM tab0
----
3559
7327
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT col2 + CAST( - 1 AS SIGNED ) - col1 FROM tab1
----
20
53
81

skipif mysql # not compatible
query I rowsort label-6926
SELECT col2 + CAST ( - 1 AS INTEGER ) - col1 FROM tab1
----
20
53
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( + - col0 ) < + ( - + col0 ) + - + col1
----

query I rowsort
SELECT ALL ( + 18 ) + col2 FROM tab2
----
41
58
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6931
SELECT - 79 DIV - + col2 col2, col1 * - + col1 col1 FROM tab1
----
0
-196
1
-2209
1
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6931
SELECT - 79 / - + col2 col2, col1 * - + col1 col1 FROM tab1
----
0
-196
1
-2209
1
-25

query I rowsort
SELECT ALL col0 + + 43 FROM tab2
----
107
118
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT + col1 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT + col1 / + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 17 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + col1 * - col2 * - col1 + - col0 FROM tab0
----
2
308352
4323

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT + - COUNT( * ) col1 FROM tab0 AS cor0 WHERE col1 > - 17 - - col2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6936
SELECT + - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE col1 > - 17 - - col2
----
-2

query I rowsort
SELECT DISTINCT - - 40 * col1 - - col1 FROM tab0 cor0
----
3321
41
861

query I rowsort
SELECT col2 + + col2 + + col2 + + col0 FROM tab2 AS cor0
----
115
184
249

query I rowsort
SELECT + 20 AS col0 FROM tab2 AS cor0 WHERE NOT 61 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * 19 + col2 FROM tab2 AS cor0
----
1256
1483
897

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6942
SELECT 0 * + + MAX( ALL + - 36 ), + 13 DIV - ( 85 ) col0 FROM tab2
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6942
SELECT 0 * + + MAX ( ALL + - 36 ), + 13 / - ( 85 ) col0 FROM tab2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6943
SELECT * FROM tab0 WHERE NOT + col0 * col1 + col2 * + col1 - + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6943
SELECT * FROM tab0 WHERE NOT + col0 * col1 + col2 * + col1 - + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col2 ) * col1 IN ( + + col0, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT - SUM( 24 ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT - SUM ( 24 ) AS col0 FROM tab1
----
-72

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= + 50
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * col1 + - col2 col0 FROM tab0 AS cor0
----
-92
137
520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT SUM( + + 27 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6950
SELECT SUM ( + + 27 ) AS col1 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + MAX( + - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + MAX ( + - col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT + + COUNT( * ) * - + 94 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + + COUNT ( * ) * - + 94 FROM tab2 AS cor0
----
-282

query I rowsort
SELECT + - 99 + + + col2 AS col0 FROM tab2 AS cor0
----
-41
-59
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT + 33 + col1 * col1 - col1 DIV + 89 * 55 * col1 * - 57 FROM tab1 AS cor0
----
2242
229
58

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 33 + col1 * col1 - col1 / + 89 * 55 * col1 * - 57 FROM tab1 AS cor0
----
2242
229
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6955
SELECT COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL 56 + col0 AS col0 FROM tab2
----
102
120
131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - + col0 IN ( col2 * - - col1 - + col2 * - - 94 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( + + 26 / + col2 + 79 - - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE - + 23 NOT IN ( 29, col2 / col2 / + col2 + - col0, 99 * - 20 )
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT DISTINCT + MAX( DISTINCT 60 ) DIV - 10 - + SUM( col2 ) AS col0 FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + MAX ( DISTINCT 60 ) / - 10 - + SUM ( col2 ) AS col0 FROM tab2
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6961
SELECT + 74 - + - COUNT( * ) AS col1, + COUNT( - + ( - - col2 ) ) DIV + 81 AS col0 FROM tab2 AS cor0
----
77
0

skipif mysql # not compatible
query II rowsort label-6961
SELECT + 74 - + - COUNT ( * ) AS col1, + COUNT ( - + ( - - col2 ) ) / + 81 AS col0 FROM tab2 AS cor0
----
77
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - - 33 - - col0 )
----

query I rowsort
SELECT + col0 * - 70 + + 34 AS col1 FROM tab2
----
-3186
-4446
-5216

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT 67 + 27 + + + 4 * - - COUNT( * ) AS col1 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-6964
SELECT 67 + 27 + + + 4 * - - COUNT ( * ) AS col1 FROM tab2
----
106

query II rowsort
SELECT ALL col1 + col1 * 26, + 70 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( ( ( NULL ) IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT + col1 * + 71 + col0 DIV - 14 AS col1 FROM tab2 AS cor0
----
3618
4752
5463

skipif mysql # not compatible
query I rowsort label-6967
SELECT + col1 * + 71 + col0 / - 14 AS col1 FROM tab2 AS cor0
----
3618
4752
5463

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + MAX( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6968
SELECT + MAX ( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
7

query II rowsort
SELECT + col0 AS col2, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL col2 DIV - 26 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL col2 / - 26 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT ALL COUNT( * ) AS col2, - 33 FROM tab1
----
3
-33

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL COUNT ( * ) AS col2, - 33 FROM tab1
----
3
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - 63 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT col1 + + - col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + col1 * - - 33 * - col1 IS NOT NULL
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-6973
SELECT col1 + + - col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col1 * - - 33 * - col1 IS NOT NULL
----
-66
-96
66

query II rowsort
SELECT col2 * + - 65, col0 FROM tab2
----
-1495
46
-2600
64
-3770
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6975
SELECT - 80 DIV + + SUM( DISTINCT - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT - 80 / + + SUM ( DISTINCT - col0 ) FROM tab1
----
0

query I rowsort
SELECT ALL ( - 62 ) * 80 * col1 FROM tab0
----
-104160
-401760
-4960

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL + COUNT( * ) * - SUM( - - col0 ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL + COUNT ( * ) * - SUM ( - - col0 ) AS col2 FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT 47 * - COUNT( ALL - - 20 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT 47 * - COUNT ( ALL - - 20 ) FROM tab1
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT - 70 DIV - col1 AS col1 FROM tab0 cor0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 70 / - col1 AS col1 FROM tab0 cor0
----
0
3
70

query I rowsort
SELECT DISTINCT 53 * col0 * - - col1 FROM tab2
----
124338
261184
266325

query I rowsort
SELECT + 2 AS col1 FROM tab1 AS cor0 WHERE 33 >= + - 88
----
2
2
2

query I rowsort
SELECT ALL 20 AS col1 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - ( + - col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT + 31 * - COUNT( * ) + + + 28 + 11 + - 34 * - + 4 AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-6984
SELECT + 31 * - COUNT ( * ) + + + 28 + 11 + - 34 * - + 4 AS col0 FROM tab1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + - 89 col1 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT ALL - col2 + + + 77 FROM tab0
----
-22
30
67

query II rowsort
SELECT - col0 * + col2 + + - col2, - col1 AS col2 FROM tab2
----
-1081
-51
-2600
-77
-4408
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 84 + - - 35 FROM tab2
----
119
119
119

query I rowsort
SELECT DISTINCT col1 - - 49 AS col1 FROM tab1
----
54
63
96

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - + col0 * - + col2 / - + col2 <= - + col0 * + + col2 + - - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT - 45 * - + COUNT( * ) * - - 43 + - + MAX( col0 ) FROM tab2
----
5730

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 45 * - + COUNT ( * ) * - - 43 + - + MAX ( col0 ) FROM tab2
----
5730

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE - 78 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + COUNT( * ) + - 34 AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6994
SELECT + COUNT ( * ) + - 34 AS col0 FROM tab0
----
-31

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT DISTINCT - + col2 - - + col0 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6997
SELECT + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT DISTINCT ( + + COUNT( * ) ) AS col2, SUM( DISTINCT + 6 ) FROM tab2
----
3
6

skipif mysql # not compatible
query II rowsort label-6998
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2, SUM ( DISTINCT + 6 ) FROM tab2
----
3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT MIN( ALL - 29 ) - 53 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-6999
SELECT MIN ( ALL - 29 ) - 53 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT + col0 - + col0 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col0 - + col0 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab1
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7002
SELECT ALL * FROM tab1 WHERE NOT col0 + CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7002
SELECT ALL * FROM tab1 WHERE NOT col0 + CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7003
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7003
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 93 AS col1 FROM tab2 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL - COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 69 + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-5
6

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + + 47 AS col1 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - 23 * col0 * + - 75 FROM tab1
----
146625
156975
87975

query I rowsort
SELECT + col1 * + - col0 * - col0 AS col0 FROM tab1
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 WHERE NOT + 94 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + 24 * col0 * + + ( - CAST( - CAST( - - ( col1 ) AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab2
----
118272
120600
56304

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 24 * col0 * + + ( - CAST ( - CAST ( - - ( col1 ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab2
----
118272
120600
56304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - COUNT( - 54 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7015
SELECT - COUNT ( - 54 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT DISTINCT + col2 / + + ( - CAST( NULL AS SIGNED ) ) * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT + col2 / + + ( - CAST ( NULL AS INTEGER ) ) * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + - col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + COUNT( * ) * - COUNT( * ) + - 79 * + 7 AS col0 FROM tab0 AS cor0
----
-562

skipif mysql # not compatible
query I rowsort label-7019
SELECT + COUNT ( * ) * - COUNT ( * ) + - 79 * + 7 AS col0 FROM tab0 AS cor0
----
-562

query I rowsort
SELECT + ( + col1 ) + + ( + col2 ) FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT ALL + - col1 * - 77 + - - col1 AS col0 FROM tab0 AS cor0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT ALL - COUNT( * ) AS col0, + 61 FROM tab2 AS cor0
----
-3
61

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL - COUNT ( * ) AS col0, + 61 FROM tab2 AS cor0
----
-3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( + + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7025
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( + + col2 IS NOT NULL )
----
3

query I rowsort
SELECT + - 93 FROM tab0 cor0
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = ( NULL )
----

query I rowsort
SELECT - ( + - 81 ) AS col0 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL + MIN( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + MIN ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 96 + 26 col0 FROM tab2 cor0
----
-2182
-3814
-5542

query I rowsort
SELECT DISTINCT + 22 * + col0 + - 56 FROM tab2
----
1352
1594
956

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT SUM( DISTINCT ( - col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7032
SELECT SUM ( DISTINCT ( - col2 ) ) AS col2 FROM tab2
----
-121

query II rowsort
SELECT ALL - col2, col1 + col1 - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 WHERE - 87 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7034
SELECT - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 WHERE - 87 IS NULL
----

query I rowsort
SELECT + + 76 * + col1 - 16 + - col1 FROM tab2 cor0
----
3809
5009
5759

query I rowsort
SELECT - ( - - 45 ) - + col0 FROM tab2 AS cor0
----
-109
-120
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 6 IS NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - - col1 + ( 15 ) AS col0 FROM tab1 AS cor0
----
105
153
80

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT + 99 + + col2 + + + 96 + col2 FROM tab0 AS cor0 WHERE NOT + 0 + 15 IS NULL
----
215
289
393

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + ( - + 5 ) * - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-7044
SELECT + ( - + 5 ) * - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
115

query I rowsort
SELECT + 74 * - - 65 FROM tab1
----
4810
4810
4810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 10 * - col0 col0 FROM tab2
----
-21160
-40960
-56250

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7047
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 42 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 42 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + + col1 * - col0 * + + ( + - col1 ) AS col2 FROM tab2
----
-22557225
-29218112
-6101946

query I rowsort
SELECT DISTINCT - 26 * - ( + 7 ) + col0 * + col2 FROM tab2
----
1240
2742
4532

query I rowsort
SELECT + - 24 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ( col1 ) * 48 + + 8 + - 58 AS col1 FROM tab2 AS cor0
----
2398
3166
3646

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col0 / col0
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col0 / col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 48 BETWEEN 13 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT 60 + COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT 60 + COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT ( + 56 ) AS col0 FROM tab0
----
56
56
56

query I rowsort
SELECT + - col1 + + col1 - + 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT + col2 + - - ( - + col2 ) + + - col1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7059
SELECT + CAST( NULL AS DECIMAL ) + - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT + CAST ( NULL AS REAL ) + - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 61 + 86 FROM tab1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT ( - - 22 ) + + 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-7061
SELECT ( - - 22 ) + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + 75 * + col2 AS col0 FROM tab0 cor0
----
3525
7425
750

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 BETWEEN 84 * - col0 - col1 * col0 * + - 18 AND - col2
----

query I rowsort
SELECT ALL + - ( 2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT + SUM( - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7071
SELECT + SUM ( - col0 ) FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7072
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + ( + 7 ) DIV + 31 * - col1 IN ( col1, - col0, col1, CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7072
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + ( + 7 ) / + 31 * - col1 IN ( col1, - col0, col1, CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 * - + col1 FROM tab1 WHERE NOT NULL > - col2 * + col2 * + 80 + - + 43 - + 70
----

query I rowsort
SELECT DISTINCT col2 + - ( + 78 ) - - 47 + + - col1 FROM tab2
----
-40
-59
-68

query I rowsort
SELECT ALL col2 + - 93 * + col0 + + ( - + col2 ) AS col0 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT col0 * + 20 AS col2 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + + col0 * - + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * 33 * + + 48 + + - col2 col2 FROM tab0
----
36333
36385
36422

query I rowsort
SELECT ALL - col0 * - - 4 AS col2 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT + col2 * 74 + - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
3493
7423
827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 71 * - + 59 FROM tab1 AS cor0
----
4189
4189
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - COUNT( * ) * + - 12 AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7083
SELECT - COUNT ( * ) * + - 12 AS col2 FROM tab0 AS cor0
----
36

query II rowsort
SELECT DISTINCT 66 * 37 + + col0 + + col0 AS col0, 54 + - ( col1 ) FROM tab1 AS cor0
----
2544
40
2612
49
2624
7

query I rowsort
SELECT DISTINCT + 79 * - 56 AS col1 FROM tab0
----
-4424

query I rowsort
SELECT ALL - 7 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - 38 FROM tab2, tab2 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL + AVG ( ALL + col1 ) * + AVG ( col0 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + AVG ( ALL + col1 ) * + AVG ( col0 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7089
SELECT + 49 + - col0 + - CAST( NULL AS DECIMAL ) * + 7 + + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 49 + - col0 + - CAST ( NULL AS REAL ) * + 7 + + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + 64 + + - 15 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT ALL + - 36 AS col0 FROM tab0 cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT DISTINCT - 31 * - 42 * - MAX( CAST( - ( - col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-105462

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - 31 * - 42 * - MAX ( CAST ( - ( - col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-105462

query I rowsort
SELECT ALL + + col1 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( - 5 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( - 5 ) AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL MAX( - + col0 ) + - MIN( ALL - + col2 ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL MAX ( - + col0 ) + - MIN ( ALL - + col2 ) AS col2 FROM tab2
----
12

query I rowsort
SELECT 13 - col0 AS col0 FROM tab1
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL + MIN( DISTINCT + 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + MIN ( DISTINCT + 6 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - + MAX( DISTINCT 89 ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7098
SELECT - + MAX ( DISTINCT 89 ) FROM tab1 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7099
SELECT - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7100
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1, 37 + col0 AS col1 FROM tab2
----
51
83
67
112
77
101

query I rowsort
SELECT ALL col0 * col2 * + 51 FROM tab2
----
130560
221850
53958

query I rowsort
SELECT - 11 * + + ( - 43 ) AS col2 FROM tab1 AS cor0
----
473
473
473

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

query I rowsort
SELECT DISTINCT + 50 + col1 / 24 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 62 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT DISTINCT + 66 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + 66 / + col1 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT DISTINCT + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + col2 / - col2 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7108
SELECT + 47 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) IN ( - col0, - 59 * - + 88, col0, col0 + - + col2, + ( + col2 ) * col1 * 3 * col2 + - col1 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7108
SELECT + 47 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) IN ( - col0, - 59 * - + 88, col0, col0 + - + col2, + ( + col2 ) * col1 * 3 * col2 + - col1 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT + 31 + + col1 * - col1 AS col1 FROM tab1 WHERE NOT + 37 * - + 7 * + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-165
-2178
6

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 31 + + col1 * - col1 AS col1 FROM tab1 WHERE NOT + 37 * - + 7 * + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-165
-2178
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE + 70 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT - SUM( - - col2 ) + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - SUM ( - - col2 ) + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT + 99 DIV + col0 FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 99 / + col0 FROM tab0
----
1
1
6

query I rowsort
SELECT DISTINCT + 62 + - col2 FROM tab2
----
22
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT DISTINCT 12 + + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT 12 + + - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + - col2 * col1 * 39 AS col0 FROM tab0 AS cor0
----
-148473
-3861
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT ( - + 6 ) - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT ( - + 6 ) - COUNT ( * ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab2 AS cor0 WHERE ( NOT ( ( NOT col0 * col2 IS NULL ) ) )
----

query I rowsort
SELECT - + col2 * + - col1 * - - col2 + - - col1 AS col2 FROM tab0 AS cor0
----
179010
2121
9802

query I rowsort
SELECT ALL + col0 - col0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + - 20 * - 5 + - 17 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - col1 * + - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + 80 + + - col1 * + 64 AS col1 FROM tab1 AS cor0
----
-240
-2928
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN + - col1 / - ( 59 ) - + col1 - - + col2 + - col1 - + + 39 * 68 AND col2
----

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN + - col1 / - ( 59 ) - + col1 - - + col2 + - col1 - + + 39 * 68 AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7128
SELECT ALL CAST( + - MIN( DISTINCT col2 ) AS SIGNED ) DIV + + 40 * - + 10 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL CAST ( + - MIN ( DISTINCT col2 ) AS INTEGER ) / + + 40 * - + 10 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL MAX( - ( + + col0 ) ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL MAX ( - ( + + col0 ) ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT + col0 * + - 93 AS col1 FROM tab1
----
-4743
-7905
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7131
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 ) / - ( - CAST( NULL AS SIGNED ) ) * + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7131
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 ) / - ( - CAST ( NULL AS INTEGER ) ) * + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7132
SELECT col1 DIV 43 AS col0, col1 FROM tab0
----
0
1
0
21
1
81

skipif mysql # not compatible
query II rowsort label-7132
SELECT col1 / 43 AS col0, col1 FROM tab0
----
0
1
0
21
1
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= NULL AND + 41 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT DISTINCT - MIN( - - col1 ) DIV + + MAX( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - MIN ( - - col1 ) / + + MAX ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col2 AS col2, 0 AS col2 FROM tab2
----
-23
0
-40
0
-58
0

query I rowsort
SELECT + 38 * - 0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + - 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab1
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + col2
----

query I rowsort
SELECT + ( - 1 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col2 * - 62 AS col1 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT ALL + col1 * + + col2 * - col2 AS col2 FROM tab2 cor0
----
-123200
-225388
-26979

query I rowsort
SELECT + + 9 + - col1 AS col2 FROM tab2 AS cor0
----
-42
-58
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7144
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - - 16 - + CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7144
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - - 16 - + CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT + + 75 + - - 51 + col0 * col0 - - - 93 + ( + col2 ) DIV 94 * col0 - - 59 + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
379
7758
9794

skipif mysql # not compatible
query I rowsort label-7145
SELECT + + 75 + - - 51 + col0 * col0 - - - 93 + ( + col2 ) / 94 * col0 - - 59 + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
379
7758
9794

query I rowsort
SELECT 0 + col1 + 65 AS col1 FROM tab2 AS cor0
----
116
132
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT DISTINCT - COUNT( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - COUNT ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT MIN( ALL - 51 ) + + 60 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT MIN ( ALL - 51 ) + + 60 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + - col2 - 48 * - col2 * + col0 col2 FROM tab0
----
33883
41840
460935

query III rowsort
SELECT * FROM tab2 WHERE + - col2 >= + ( 84 ) + + ( + + col0 )
----

query I rowsort
SELECT DISTINCT 56 + + - ( - 77 ) AS col1 FROM tab0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL col1 DIV - - 75 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL col1 / - - 75 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, - col0 * + col0 )
----

query II rowsort
SELECT ALL col1 - + col1, + col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab1 WHERE + 59 IN ( 19 * - + col0 * col2, - 48, - col1 * + col1 - - + col1, - col2 / + - col2 )
----

query I rowsort
SELECT DISTINCT - col1 * - 97 FROM tab0 AS cor0 WHERE 19 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT DISTINCT + COUNT( * ) - - 65 AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-7158
SELECT DISTINCT + COUNT ( * ) - - 65 AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
68
3

query I rowsort
SELECT - + 44 AS col0 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT + COUNT( + - col0 ) AS col0, + 3 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7160
SELECT + COUNT ( + - col0 ) AS col0, + 3 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - COUNT( * ) * + - SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - COUNT ( * ) * + - SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL + MAX( DISTINCT + 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + MAX ( DISTINCT + 26 ) AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL + + 81 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + + 85 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT + 82 DIV col1 AS col2 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-7165
SELECT + 82 / col1 AS col2 FROM tab1
----
1
16
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT ( + + col0 ) / + ( - ( + - 7 ) ) * + col2 + - + col1 + - 34 / - + 4 + - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7166
SELECT ( + + col0 ) / + ( - ( + - 7 ) ) * + col2 + - + col1 + - 34 / - + 4 + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL MAX( ALL - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL MAX ( ALL - - col1 ) FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + col0 col1 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT ALL 65, col0 FROM tab2 AS cor0
----
65
46
65
64
65
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT + CAST( 89 AS SIGNED ) FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CAST ( 89 AS INTEGER ) FROM tab2 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT DISTINCT COUNT( * ), 46 AS col0 FROM tab0 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-7172
SELECT DISTINCT COUNT ( * ), 46 AS col0 FROM tab0 AS cor0
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT 67 + + SUM( ALL col0 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT 67 + + SUM ( ALL col0 ) FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7174
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + col1 * col1 < col1
----

skipif mysql # not compatible
query III rowsort label-7174
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + col1 * col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT COUNT( * ) FROM tab0 WHERE - col0 + - 71 * 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( * ) FROM tab0 WHERE - col0 + - 71 * 91 IS NULL
----
0

query I rowsort
SELECT DISTINCT 40 - 55 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT COUNT( + 2 ) * COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7177
SELECT DISTINCT COUNT ( + 2 ) * COUNT ( * ) col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL - 79 * ( + COUNT( * ) * + COUNT( * ) ) AS col1 FROM tab2
----
-711

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - 79 * ( + COUNT ( * ) * + COUNT ( * ) ) AS col1 FROM tab2
----
-711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col2 FROM tab1
----
87
87
87

query I rowsort
SELECT DISTINCT col2 * + 74 FROM tab1 WHERE NOT ( NULL ) <> ( + col2 * col0 + - 69 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + col0 * + col1
----

query I rowsort
SELECT DISTINCT 72 * ( - 57 ) FROM tab1 WHERE NOT ( 0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE 72 * + 64 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7185
SELECT MAX ( + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL - MIN( ALL col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - MIN ( ALL col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL - col2 * - ( - col2 ) FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND ( + col2 )
----

query I rowsort
SELECT col2 + + 42 AS col2 FROM tab1
----
101
110
138

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL + CAST( + MAX( - 78 ) AS SIGNED ) - + COUNT( * ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + CAST ( + MAX ( - 78 ) AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 58 * ( col2 * - ( + 81 ) ) AS col2 FROM tab1
----
-277182
-319464
-451008

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL SUM( DISTINCT - col1 ) + COUNT( * ) * MAX( + col2 ) AS col2 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL SUM ( DISTINCT - col1 ) + COUNT ( * ) * MAX ( + col2 ) AS col2 FROM tab1
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT 56 FROM tab0 WHERE col2 BETWEEN col1 * - col1 AND + col2 + - col1 DIV + col0
----
56
56

skipif mysql # not compatible
query I rowsort label-7195
SELECT 56 FROM tab0 WHERE col2 BETWEEN col1 * - col1 AND + col2 + - col1 / + col0
----
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT ALL COUNT( DISTINCT + col0 ) DIV 5 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL COUNT ( DISTINCT + col0 ) / 5 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL - COUNT( * ) * CAST( - AVG ( - col2 ) AS SIGNED ) + 94 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - COUNT ( * ) * CAST ( - AVG ( - col2 ) AS INTEGER ) + 94 FROM tab0
----
-62

query I rowsort
SELECT ALL + col1 + 18 AS col1 FROM tab2
----
69
85
95

query I rowsort
SELECT ALL - col2 + - 56 AS col0 FROM tab2
----
-114
-79
-96

query I rowsort
SELECT - 26 + col2 * 56 AS col0 FROM tab1
----
3278
3782
5350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7202
SELECT CAST( col1 AS DECIMAL ) * col0 col2 FROM tab2 AS cor0 WHERE ( ( ( 91 ) ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7202
SELECT CAST ( col1 AS REAL ) * col0 col2 FROM tab2 AS cor0 WHERE ( ( ( 91 ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL - 30 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 >= 73 + + col0 / col2
----
-27

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - 30 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 >= 73 + + col0 / col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT DISTINCT - 88 * MAX( DISTINCT 62 * + col2 ) AS col1 FROM tab2 AS cor0
----
-316448

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT - 88 * MAX ( DISTINCT 62 * + col2 ) AS col1 FROM tab2 AS cor0
----
-316448

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 WHERE NOT NULL = col2 + - 69
----

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE + col2 <> col0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 95 * + 39 AS col1 FROM tab1 AS cor0
----
-3705
-3705
-3705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + 76 col2 FROM tab2 AS cor0
----
2432
2432
2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7209
SELECT - 59 DIV + COUNT( DISTINCT - col2 * 60 ) FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 59 / + COUNT ( DISTINCT - col2 * 60 ) FROM tab1 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL - MAX( DISTINCT col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab0
----
-81

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT + 19 - - 13 FROM tab2
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * 55 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 * col0 - col0 / 73 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT - COUNT( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7215
SELECT DISTINCT - COUNT ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - MIN( + col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7216
SELECT - MIN ( + col0 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col0 / + col1 FROM tab0 AS cor0 WHERE col1 - col1 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT MAX( col1 ) * - 29 FROM tab0
----
-2349

skipif mysql # not compatible
query I rowsort label-7218
SELECT MAX ( col1 ) * - 29 FROM tab0
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT - MAX( DISTINCT + 24 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - MAX ( DISTINCT + 24 ) FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT MIN( 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7220
SELECT MIN ( 15 ) AS col0 FROM tab2
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 57 FROM tab0 WHERE NOT - 90 * 94 + + col1 IS NULL
----
57
57
57

query I rowsort
SELECT ( col0 ) FROM tab1 WHERE NOT ( col0 ) BETWEEN + 73 AND ( 33 ) - + col0 * + col0
----
51
85
91

query I rowsort
SELECT col1 * col0 + + col2 FROM tab0 AS cor0 WHERE NOT + 39 IS NOT NULL
----

query I rowsort
SELECT + + 55 AS col0 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 27 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
23
40
58

query I rowsort
SELECT - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query II rowsort
SELECT DISTINCT - col1 AS col2, - 12 FROM tab1 AS cor0
----
-14
-12
-47
-12
-5
-12

query I rowsort
SELECT ALL 55 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 57 NOT IN ( 20 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 + + 49 AS col2 FROM tab2 AS cor0
----
1222
3129
3935

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7233
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7234
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT + 39 + - col1 FROM tab1
----
-8
25
34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7237
SELECT * FROM tab1 WHERE col1 * + ( 17 ) - + 4 NOT BETWEEN col0 * - col1 AND ( + col0 * + CAST( - col0 / 43 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7237
SELECT * FROM tab1 WHERE col1 * + ( 17 ) - + 4 NOT BETWEEN col0 * - col1 AND ( + col0 * + CAST ( - col0 / 43 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 23 FROM tab1
----
-1081
-115
-322

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 33 IN ( + col0 + + col2 * 83 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT ALL + COUNT( ALL - + 3 ) DIV + COUNT( * ) + + - 75 + 74 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + COUNT ( ALL - + 3 ) / + COUNT ( * ) + + - 75 + 74 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE - col0 > NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 29 + + col0 FROM tab1
----
114
120
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7244
SELECT ALL * FROM tab0 WHERE - CAST( - 45 AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7244
SELECT ALL * FROM tab0 WHERE - CAST ( - 45 AS INTEGER ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - 17 * - COUNT( 34 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT - 17 * - COUNT ( 34 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + 96 + + 34 AS col0 FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT + CAST( NULL AS SIGNED ) - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT + CAST ( NULL AS INTEGER ) - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + + col0 ) = + 16 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 14 - + 97 FROM tab1 AS cor0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT MAX( ALL + + col1 ) + COUNT( * ) + - CAST( ( COUNT( * ) ) AS SIGNED ) * - 26 AS col0 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-7250
SELECT MAX ( ALL + + col1 ) + COUNT ( * ) + - CAST ( ( COUNT ( * ) ) AS INTEGER ) * - 26 AS col0 FROM tab1 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col1 NOT IN ( - col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col1 NOT IN ( - col1 ) ) )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 22 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT DISTINCT 85 DIV - - 63 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT 85 / - - 63 AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - + 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - ( - col1 ) * - - 63 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # DIV for integer division: 
query II rowsort label-7258
SELECT 30 + - + col0, + col1 DIV 75 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
0
-55
0
-61
0

skipif mysql # not compatible
query II rowsort label-7258
SELECT 30 + - + col0, + col1 / 75 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
0
-55
0
-61
0

query I rowsort
SELECT 21 * - col1 AS col2 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL MAX( - ( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL MAX ( - ( col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7261
SELECT + CAST( NULL AS SIGNED ), COUNT( + 90 ) + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7261
SELECT + CAST ( NULL AS INTEGER ), COUNT ( + 90 ) + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 AS col1 FROM tab0 cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 76 col1, col0 + + - col0, col2 + + - col2 FROM tab2 AS cor0
----
9 values hashing to 567ed2e9b173363ccce8384fbb78aed3

query I rowsort
SELECT ALL + + col2 * + + col1 + + - col0 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + SUM( ( col2 ) ) * + 27 FROM tab1 AS cor0
----
6021

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + SUM ( ( col2 ) ) * + 27 FROM tab1 AS cor0
----
6021

query I rowsort
SELECT DISTINCT col2 * - 11 FROM tab1 WHERE NOT + col1 + + col1 + 2 IN ( - col2 + - 66 )
----
-1056
-649
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT - ( + MAX( DISTINCT + col1 ) ) * 28 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( + MAX ( DISTINCT + col1 ) ) * 28 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7268
SELECT + COUNT( * ) DIV 12 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT + COUNT ( * ) / 12 FROM tab1
----
0

query I rowsort
SELECT ALL + ( + 81 ) AS col0 FROM tab0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col2 FROM tab0
----
-62

query I rowsort
SELECT col0 * + + 9 FROM tab2
----
414
576
675

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT + col0 DIV + - 60 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT + col0 / + - 60 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - col1 * + 82 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col0 + + - 44 / - + col2 * - 83 + + col2 * - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT MAX( - + ( + - col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT MAX ( - + ( + - col1 ) ) AS col0 FROM tab1
----
47

query I rowsort
SELECT + 65 + - col2 * 64 AS col0 FROM tab1 WHERE ( - 15 ) BETWEEN NULL AND - col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT + col0 + + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + col0 + + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + - 22 AS col2 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 7 * col1 NOT BETWEEN + + col1 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE - - 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 96 + + col1 AS col1 FROM tab2
----
-19
-29
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ( + COUNT( * ) ) + 72 AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7282
SELECT ( + COUNT ( * ) ) + 72 AS col0 FROM tab2
----
75

query I rowsort
SELECT + 77 FROM tab2 WHERE col0 IS NOT NULL
----
77
77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 + - col1 * - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7285
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + SUM( DISTINCT - col2 ) + 46 + + + MAX( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT - col2 ) + 46 + + + MAX ( - col1 ) FROM tab0
----
NULL

query I rowsort
SELECT 88 * 98 + - col0 AS col2 FROM tab1
----
8533
8539
8573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) + col0 col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL - - col0 + + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + + col1 * + 86 FROM tab2 AS cor0
----
4386
5762
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT - 29 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7290
SELECT - 29 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - 64 * COUNT( * ) FROM tab0, tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - 64 * COUNT ( * ) FROM tab0, tab0 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 3 ) NOT IN ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 3 ) NOT IN ( 21 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col1 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT + col1 * - col1 * - col0 AS col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + - COUNT( 42 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + - COUNT ( 42 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - - col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + 47 * col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT MAX( DISTINCT + 83 ) * 85 * + - MIN( 58 ) col1 FROM tab1 cor0
----
-409190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7297
SELECT DISTINCT MAX ( DISTINCT + 83 ) * 85 * + - MIN ( 58 ) col1 FROM tab1 cor0
----
-409190

query I rowsort
SELECT ALL - 70 * + + col0 + + col1 FROM tab1 AS cor0
----
-3556
-5945
-6323

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7299
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col0 + + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT - COUNT( 31 ) * + 43 * + 8 - - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT - COUNT ( 31 ) * + 43 * + 8 - - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ( - 87 ) * COUNT( * ) FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7302
SELECT ( - 87 ) * COUNT ( * ) FROM tab0 AS cor0
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT ALL - col0 DIV - 15 + - 60 - - + col1 FROM tab1 AS cor0
----
-43
-50
-7

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - col0 / - 15 + - 60 - - + col1 FROM tab1 AS cor0
----
-43
-50
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT + CAST( - 43 AS SIGNED ) FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7304
SELECT + CAST ( - 43 AS INTEGER ) FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - col2 * 1 AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - ( 90 ) AS col1 FROM tab1
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 > + col2 * + 59 / col1 * - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7308
SELECT col2 * + + col1 * 51 AS col2, - CAST( + 3 AS SIGNED ) AS col1 FROM tab2
----
157080
-3
198186
-3
59823
-3

skipif mysql # not compatible
query II rowsort label-7308
SELECT col2 * + + col1 * 51 AS col2, - CAST ( + 3 AS INTEGER ) AS col1 FROM tab2
----
157080
-3
198186
-3
59823
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * + col2 * + 23 col2 FROM tab1
----
-104788
-147936
-90919

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT - 46 DIV col1 AS col1 FROM tab0 AS cor0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 46 / col1 AS col1 FROM tab0 AS cor0
----
-2
-46
0

query II rowsort
SELECT - col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7312
SELECT ALL + - 59 + + + CAST( NULL AS SIGNED ) * + 6, 64 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7312
SELECT ALL + - 59 + + + CAST ( NULL AS INTEGER ) * + 6, 64 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
61

query I rowsort
SELECT + - col1 + - 85 AS col2 FROM tab1 AS cor0
----
-132
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL - + SUM( + 68 ) AS col2 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - + SUM ( + 68 ) AS col2 FROM tab2 AS cor0
----
-204

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT CAST( + col1 AS SIGNED ) * + 10 FROM tab1 AS cor0
----
140
470
50

skipif mysql # not compatible
query I rowsort label-7316
SELECT CAST ( + col1 AS INTEGER ) * + 10 FROM tab1 AS cor0
----
140
470
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7317
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL > - 19
----

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL > - 19
----

query I rowsort
SELECT + 66 * 89 FROM tab2 AS cor0
----
5874
5874
5874

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7319
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7319
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + 71 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - 67 <= + 31 * - col2 + - 27
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT - COUNT( * ) * - - ( - 61 ) * - 28 + + ( - 75 ) AS col2 FROM tab1 AS cor0
----
-5199

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT - COUNT ( * ) * - - ( - 61 ) * - 28 + + ( - 75 ) AS col2 FROM tab1 AS cor0
----
-5199

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT - + col1 + + 73 DIV - col1 AS col2 FROM tab0 AS cor0
----
-24
-74
-81

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT - + col1 + + 73 / - col1 AS col2 FROM tab0 AS cor0
----
-24
-74
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) FROM tab0
----
3

query I rowsort
SELECT + 15 FROM tab2 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + col1 / + - 89 + - + col1 col0 FROM tab2 WHERE - 55 IS NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7327
SELECT DISTINCT - 34 + ( - + CAST( NULL AS SIGNED ) ) col2, CAST( + ( - COUNT( - col2 ) ) AS SIGNED ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7327
SELECT DISTINCT - 34 + ( - + CAST ( NULL AS INTEGER ) ) col2, CAST ( + ( - COUNT ( - col2 ) ) AS INTEGER ) FROM tab0
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT - col2 - - col1 + - col0 + - col2 DIV col1 col0 FROM tab1
----
-113
-139
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7328
SELECT - col2 - - col1 + - col0 + - col2 / col1 col0 FROM tab1
----
-113
-139
-150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + col1 * 9 AS col2 FROM tab2
----
459
603
693

query I rowsort
SELECT - col1 * - - col1 * - col1 AS col1 FROM tab2
----
132651
300763
456533

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT - 30 DIV - 47 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT - 30 / - 47 FROM tab0
----
0
0
0

query I rowsort
SELECT + 75 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NOT - 70 + col2 + + + col1 IS NOT NULL )
----

query I rowsort
SELECT + + 91 * 26 FROM tab2 cor0
----
2366
2366
2366

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT + COUNT( * ) * + CAST( 21 AS SIGNED ) + - 48 AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + COUNT ( * ) * + CAST ( 21 AS INTEGER ) + - 48 AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT 70 * 71 * col2 IN ( col1 - col2 + + col2 )
----
156

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT 70 * 71 * col2 IN ( col1 - col2 + + col2 )
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL + col0 * 8 AS col1 FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT ALL + + 68 FROM tab0 AS cor0
----
68
68
68

query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT ALL - - col0, + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7346
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7346
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL ( - 31 ) * - - 96 + + - col0, + col0 FROM tab1
----
-3027
51
-3061
85
-3067
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + 10 * - - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 10 * - - COUNT ( * ) FROM tab2
----
30

query I rowsort
SELECT + 28 * + col1 FROM tab1
----
1316
140
392

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 - col1 + + col0 <= + col0 + + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - SUM( - col1 ) + - COUNT( * ) + - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-7351
SELECT - SUM ( - col1 ) + - COUNT ( * ) + - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ALL col1 + + 12 DIV + col2 * + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL col1 + + 12 / + col2 * + col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT CAST( NULL AS SIGNED ) + + AVG ( ALL - + col2 ) FROM tab1 cor0 WHERE + 31 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT CAST ( NULL AS INTEGER ) + + AVG ( ALL - + col2 ) FROM tab1 cor0 WHERE + 31 IS NOT NULL
----
NULL

query I rowsort
SELECT 71 * 99 AS col2 FROM tab1
----
7029
7029
7029

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7357
SELECT DISTINCT * FROM tab1 WHERE + - col0 * - col0 * - - CAST( - 96 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7357
SELECT DISTINCT * FROM tab1 WHERE + - col0 * - col0 * - - CAST ( - 96 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL + 22 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + 22 / + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 - ( - + col2 ) FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT - col1 FROM tab0 AS cor0 WHERE ( 15 ) IN ( 81 + + 43, - col1 / + 9 + + CAST( - + col0 AS SIGNED ) + col1, 61 )
----

skipif mysql # not compatible
query I rowsort label-7360
SELECT - col1 FROM tab0 AS cor0 WHERE ( 15 ) IN ( 81 + + 43, - col1 / + 9 + + CAST ( - + col0 AS INTEGER ) + col1, 61 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT * FROM tab2 cor0 WHERE + col0 - CAST( - 65 AS SIGNED ) * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7363
SELECT * FROM tab2 cor0 WHERE + col0 - CAST ( - 65 AS INTEGER ) * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + 2 + - col2 + - 77 FROM tab0 AS cor0
----
-30
-67
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT - CAST( - 8 AS SIGNED ) + + col0 + + 95 * + col2 col2 FROM tab1
----
5698
6559
9179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT - CAST ( - 8 AS INTEGER ) + + col0 + + 95 * + col2 col2 FROM tab1
----
5698
6559
9179

query II rowsort
SELECT 93 AS col1, + 29 AS col1 FROM tab1
----
93
29
93
29
93
29

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 + + - col1 FROM tab2
----
-56
-59
-90

query I rowsort
SELECT DISTINCT - ( + - 10 ) AS col1 FROM tab0
----
10

query II rowsort
SELECT ALL + 91 AS col2, ( col1 ) + - - col2 - ( + 31 ) AS col1 FROM tab1
----
91
33
91
79
91
84

query I rowsort
SELECT ALL col2 * - - 6 * - 71 AS col2 FROM tab1
----
-25134
-28968
-40896

query I rowsort
SELECT + col2 * - 92 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
55
55
55

query I rowsort
SELECT 8 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 44 ) col2 FROM tab1 AS cor0
----
44

query II rowsort
SELECT - 78, col0 FROM tab1 cor0
----
-78
51
-78
85
-78
91

query II rowsort
SELECT DISTINCT - + col1, - 97 * - col1 AS col1 FROM tab1 cor0
----
-14
1358
-47
4559
-5
485

query II rowsort
SELECT ALL - col1 AS col1, + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + - 73 * + 9 FROM tab1 WHERE NOT - col2 IS NULL
----
-657
-657
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL + 55 * COUNT( * ) AS col0 FROM tab1 cor0
----
165

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL + 55 * COUNT ( * ) AS col0 FROM tab1 cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7380
SELECT DISTINCT - + CAST( - ( + - col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - + CAST ( - ( + - col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT - MAX( CAST( - + col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - MAX ( CAST ( - + col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col1 + + 40 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 32 AS col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT 85 + col0 FROM tab0 AS cor0
----
100
172
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL - SUM( + - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - SUM ( + - col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL 46 + - COUNT( * ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL 46 + - COUNT ( * ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT + - col1 / 40 + - + 70 FROM tab2 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL - COUNT( col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - COUNT ( col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT MIN( - - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7389
SELECT MIN ( - - col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT DISTINCT - + col2 - - 86 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 27
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, col0 * + + col0 FROM tab1 AS cor0
----
-14
2601
-47
8281
-5
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT DISTINCT - + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 WHERE col0 = + 42
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 WHERE col0 = + 42
----
0

query I rowsort
SELECT + col2 + 11 + - col1 FROM tab1 AS cor0
----
32
65
93

query I rowsort
SELECT col2 + + col2 + 21 AS col2 FROM tab1
----
139
157
213

query II rowsort
SELECT - col1 - + col2 + - - col2 * - col2 AS col2, 59 FROM tab2 WHERE + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 48 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - COUNT( * ) + 26 * - - SUM( ALL 73 ) * - COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
-17085

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - COUNT ( * ) + 26 * - - SUM ( ALL 73 ) * - COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
-17085

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + col1 > - col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT - - col2 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
690
783
9506

query II rowsort
SELECT DISTINCT + ( - 79 ), + 22 AS col1 FROM tab2 AS cor0
----
-79
22

query I rowsort
SELECT + - 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL 28 - + - 18 AS col1 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT DISTINCT - col0 DIV col1 - col1 + - + 25 AS col2 FROM tab2 AS cor0
----
-102
-76
-93

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - col0 / col1 - col1 + - + 25 AS col2 FROM tab2 AS cor0
----
-102
-76
-93

query I rowsort
SELECT - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - 34 * - - COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 34 * - - COUNT ( * ) FROM tab2
----
-102

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 > + + col1 - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > + ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col1 ) NOT IN ( - + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT col1 DIV - 67 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT col1 / - 67 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - - COUNT( ALL + 12 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7413
SELECT - - COUNT ( ALL + 12 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + - + col2 AS col1 FROM tab1 AS cor0 WHERE + 63 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7415
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7415
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT col0 * + col0 * col2 + + 21 DIV - col0 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-7417
SELECT col0 * + col0 * col2 + + 21 / - col0 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7418
SELECT DISTINCT col1 col1, CAST( - - col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
51
46
67
116
77
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7418
SELECT DISTINCT col1 col1, CAST ( - - col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
51
46
67
116
77
80

query II rowsort
SELECT ALL - 54 AS col0, + col2 FROM tab1 AS cor0
----
-54
59
-54
68
-54
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 93
----

query II rowsort
SELECT DISTINCT col0, + 52 FROM tab0 AS cor0
----
15
52
87
52
97
52

query II rowsort
SELECT DISTINCT col2 + col0, + col0 AS col0 FROM tab1
----
144
85
147
51
159
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT ALL - col2 + - - col1 - + + 69 DIV col0 + - 81 + + 92 AS col1 FROM tab0
----
-87
22
41

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - col2 + - - col1 - + + 69 / col0 + - 81 + + 92 AS col1 FROM tab0
----
-87
22
41

query III rowsort
SELECT ALL * FROM tab2 WHERE - 73 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 + - 36 AS col0 FROM tab1
----
-104
-132
-95

query I rowsort
SELECT DISTINCT + + 80 + - 27 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + col2 * - - col2 AS col2 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7428
SELECT * FROM tab0 AS cor0 WHERE ( ( CAST( NULL AS SIGNED ) IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-7428
SELECT * FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7429
SELECT * FROM tab1 WHERE col0 * 95 + - - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7429
SELECT * FROM tab1 WHERE col0 * 95 + - - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - + col0 + - col0 - - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - col2 * - + 54 + - col1 + + - ( + col2 ) FROM tab2 AS cor0
----
1168
2043
3007

query I rowsort
SELECT ALL - col0 * - 33 AS col1 FROM tab2 AS cor0
----
1518
2112
2475

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - col0 * + - col0 + - 52 FROM tab1 AS cor0
----
2549
7173
8229

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT ALL 74 DIV + - col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 74 / + - col2 FROM tab0
----
-1
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 2 col0 FROM tab0
----
162
2
42

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col0 FROM tab2
----
59

query I rowsort
SELECT + col1 * + ( col2 ) FROM tab0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 21
----

query I rowsort
SELECT DISTINCT + 17 * - ( ( 44 ) ) AS col2 FROM tab0, tab1 cor0
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7442
SELECT DISTINCT CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + COUNT( * ), - 40 AS col2 FROM tab2 AS cor0
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-7442
SELECT DISTINCT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ), - 40 AS col2 FROM tab2 AS cor0
----
NULL
-40

query II rowsort
SELECT ALL - col0 * + + 31, col0 AS col2 FROM tab2 AS cor0
----
-1426
46
-1984
64
-2325
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7444
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col0 = - 54 + - col1 * + + 33
----

skipif mysql # not compatible
query III rowsort label-7444
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 = - 54 + - col1 * + + 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7445
SELECT ALL SUM( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) DIV 10, + MAX( DISTINCT col0 ) DIV + COUNT( * ) AS col0, 75 AS col2 FROM tab2 AS cor0
----
NULL
25
75

skipif mysql # not compatible
query III rowsort label-7445
SELECT ALL SUM ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) / 10, + MAX ( DISTINCT col0 ) / + COUNT ( * ) AS col0, 75 AS col2 FROM tab2 AS cor0
----
NULL
25
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN - - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col0 FROM tab2
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * + col0 col2 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL MAX( col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL MAX ( col2 ) FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col1 - - 77 + + - col1 col2 FROM tab1 AS cor0
----
-14
-8
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT - col1 DIV + - 6 AS col0 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-7451
SELECT - col1 / + - 6 AS col0 FROM tab1 AS cor0
----
0
2
7

query II rowsort
SELECT ALL col1, - col2 * + col0 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL MIN( DISTINCT + 82 ) + + - COUNT( * ) AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL MIN ( DISTINCT + 82 ) + + - COUNT ( * ) AS col2 FROM tab2
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 >= NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + col1 + col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT SUM( col2 ) + + - MIN( + 3 ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT SUM ( col2 ) + + - MIN ( + 3 ) FROM tab1
----
220

query I rowsort
SELECT - ( - 17 ) AS col1 FROM tab1
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT - COUNT( - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - COUNT ( - col2 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 66 + - - col1 AS col1 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL 37 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL 37 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
34

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 WHERE + col2 / + 95 - - col0 IS NOT NULL
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT DISTINCT + col0 + - CAST( - 71 AS SIGNED ) AS col0 FROM tab2
----
117
135
146

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT + col0 + - CAST ( - 71 AS INTEGER ) AS col0 FROM tab2
----
117
135
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + + MIN( + 5 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + MIN ( + 5 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL 66 + ( - MAX( + - col2 ) ) * - - 66 FROM tab1
----
3960

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL 66 + ( - MAX ( + - col2 ) ) * - - 66 FROM tab1
----
3960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7466
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT - - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT - - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 * + ( + col1 ) - + ( 86 ) + - 59 + 58 * - col1 FROM tab2 AS cor0
----
192509
287419
50855

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7470
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT CAST ( NULL AS REAL ) * - - col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT SUM( + + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7471
SELECT SUM ( + + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 97 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - 49 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7473
SELECT DISTINCT 77 * - + 78 + - 46 * + + col0 + col2 * - + ( + 87 ), col2 DIV col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-10785
0
-10878
0
-19081
0

skipif mysql # not compatible
query II rowsort label-7473
SELECT DISTINCT 77 * - + 78 + - 46 * + + col0 + col2 * - + ( + 87 ), col2 / col0 / - col0 AS col0 FROM tab0 AS cor0
----
-10785
0
-10878
0
-19081
0

query II rowsort
SELECT + + col0 * - col0 AS col1, 68 AS col1 FROM tab1 AS cor0
----
-2601
68
-7225
68
-8281
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT - MIN( ALL - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7476
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7476
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 BETWEEN - col0 + + col1 AND + col2
----
15
81
47
97
1
99

query II rowsort
SELECT DISTINCT 90, 28 AS col1 FROM tab1
----
90
28

query I rowsort
SELECT + 91 * - - col0 AS col1 FROM tab1
----
4641
7735
8281

query I rowsort
SELECT 43 FROM tab0 WHERE NOT NULL <> - 73 + + - 50
----

query I rowsort
SELECT + col0 * + + 79 AS col2 FROM tab1
----
4029
6715
7189

query II rowsort
SELECT + col1 AS col0, + col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - COUNT( * ) * + 41 AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-7484
SELECT - COUNT ( * ) * + 41 AS col0 FROM tab0
----
-123

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( + col0 ) / + - col1 + + 7
----

query I rowsort
SELECT DISTINCT col2 + 9 * col0 FROM tab2
----
437
616
733

query I rowsort
SELECT DISTINCT + - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL - MIN( + CAST( - - 51 AS SIGNED ) ) col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT ALL - MIN ( + CAST ( - - 51 AS INTEGER ) ) col2 FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7489
SELECT ALL + + COUNT( * ) * + 28 * + 37 + - 46 DIV 78 AS col2, - COUNT( + col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
3108
-6

skipif mysql # not compatible
query II rowsort label-7489
SELECT ALL + + COUNT ( * ) * + 28 * + 37 + - 46 / 78 AS col2, - COUNT ( + col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
3108
-6

query I rowsort
SELECT DISTINCT col1 * + 86 * col1 FROM tab1
----
16856
189974
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL 76 + - + 51 - COUNT( * ) + - - 21 AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 76 + - + 51 - COUNT ( * ) + - - 21 AS col2 FROM tab0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT col2 + - - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7493
SELECT col2 + - - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND NULL
----

query I rowsort
SELECT - 0 - + + col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - + 23 * - 61 FROM tab2 AS cor0
----
1403
1403
1403

query I rowsort
SELECT ALL + - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT col0 * 34 AS col2 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT col2 * + 72 * - + col0 AS col2 FROM tab2 AS cor0
----
-184320
-313200
-76176

query I rowsort
SELECT - col2 * + col0 * + ( - - 73 ) FROM tab1
----
-357408
-366095
-451724

query II rowsort
SELECT ALL - 80 * + - 72, 0 AS col1 FROM tab0
----
5760
0
5760
0
5760
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7505
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col2, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7505
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col2, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + 58 + - COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + 58 + - COUNT ( * ) FROM tab2
----
55

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + - ( - ( col2 ) ) + - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT ALL 52 DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 52 / + col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7511
SELECT DISTINCT 90, + CAST( - + ( + 69 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
90
-69

skipif mysql # not compatible
query II rowsort label-7511
SELECT DISTINCT 90, + CAST ( - + ( + 69 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
90
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT ALL - col0, CAST( NULL AS SIGNED ) + - col1 col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7512
SELECT ALL - col0, CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * ( + col2 ) NOT BETWEEN - + col1 AND col2
----
97
1
99

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 + - col0 FROM tab2 AS cor0
----
-120
-181
-200

query II rowsort
SELECT DISTINCT 67 AS col1, + col0 + - 28 - + col2 * + 20 * + - col2 * - 48 AS col1 FROM tab2 AS cor0
----
67
-1535964
67
-3229393
67
-507822

query I rowsort
SELECT ALL - 24 * - - 2 + + 12 AS col1 FROM tab2
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT 61 + + COUNT( - col0 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT 61 + + COUNT ( - col0 ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 58 + col1 FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT - 35 * 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43f77db328a3ac98b04bd6aa6e957c46

query II rowsort
SELECT ALL - col1, + col2 * + - col0 AS col2 FROM tab2
----
-51
-1058
-67
-4350
-77
-2560

query I rowsort
SELECT DISTINCT + ( + ( - - col0 ) ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - + SUM( - ( + 97 ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
291

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - + SUM ( - ( + 97 ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
291

query I rowsort
SELECT col1 * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT + col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - + 81 AS col0 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT col1 * - col2 * - + col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT 19 * - col1 AS col2 FROM tab0
----
-1539
-19
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT COUNT( * ) * 20 AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7529
SELECT COUNT ( * ) * 20 AS col2 FROM tab1
----
60

query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 FROM tab2
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + + 87 * col0 col2 FROM tab2
----
10496
11550
6348

query II rowsort
SELECT DISTINCT + col1 AS col1, - 8 * - col1 FROM tab1
----
14
112
47
376
5
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 86, col1 col1 FROM tab1
----
5074
5
5848
47
8256
14

query I rowsort
SELECT ALL + 25 * + col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT col1 * - 67 AS col1 FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7536
SELECT DISTINCT + 92 DIV + SUM( + col2 ) * - - 65 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT + 92 / + SUM ( + col2 ) * - - 65 AS col2 FROM tab0
----
0

query I rowsort
SELECT + - col1 + - 74 * + col2 + 46 AS col0 FROM tab1 AS cor0
----
-4325
-5033
-7072

query II rowsort
SELECT DISTINCT - col2 AS col0, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL COUNT( * ) FROM tab2 WHERE - - 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL COUNT ( * ) FROM tab2 WHERE - - 50 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + MIN( - 77 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-7540
SELECT + MIN ( - 77 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + - + col0 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + - + col0 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( + - col2 ) col2, + 25 col1 FROM tab0 AS cor0
----
10
25
47
25
99
25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 21 - + ( col0 ) AS col1 FROM tab0 AS cor0
----
-66
-76
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7545
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7545
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( CAST ( NULL AS REAL ) AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 35 AS col0 FROM tab1 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL ( - - COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL ( - - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + 11 + + + col0 FROM tab2 AS cor0
----
57
75
86

query I rowsort
SELECT + 15 + 50 * + - 3 AS col1 FROM tab1 AS cor0
----
-135
-135
-135

query I rowsort
SELECT col1 + + 94 AS col1 FROM tab1
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7551
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + - 73 + col0 col1, 49 FROM tab0
----
3446
49
7324
49
817
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7551
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + - 73 + col0 col1, 49 FROM tab0
----
3446
49
7324
49
817
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT + 7 AS col1 FROM tab2 WHERE - + col1 BETWEEN + + CAST( NULL AS SIGNED ) * + - col2 + + 56 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7552
SELECT + 7 AS col1 FROM tab2 WHERE - + col1 BETWEEN + + CAST ( NULL AS INTEGER ) * + - col2 + + 56 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 + - 82 AS col2 FROM tab2
----
-13
22
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + + 98 + + COUNT( * ) FROM tab0 WHERE + col1 <= NULL
----
98

skipif mysql # not compatible
query I rowsort label-7554
SELECT + + 98 + + COUNT ( * ) FROM tab0 WHERE + col1 <= NULL
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT MIN( ALL - 54 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7555
SELECT MIN ( ALL - 54 ) FROM tab2
----
-54

query III rowsort
SELECT * FROM tab2 WHERE - - 29 IS NULL
----

query II rowsort
SELECT + col2 AS col0, - 10 FROM tab1 AS cor0
----
59
-10
68
-10
96
-10

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 + - + col2 FROM tab0 AS cor0
----
1
-100
21
-31
81
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7559
SELECT + COUNT( * ) AS col0, + CAST( - COUNT( * ) AS SIGNED ) DIV + - 82 AS col1 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7559
SELECT + COUNT ( * ) AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) / + - 82 AS col1 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT + + CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT + + CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT ALL + col2 DIV - + ( + - col2 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + col2 / - + ( + - col2 ) AS col1 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 37 - - 7 IS NULL )
----

query I rowsort
SELECT ALL - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 BETWEEN NULL AND + - col0 + - 30 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 88 FROM tab1 cor0 WHERE NOT col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + MIN( DISTINCT - 78 ) AS col2 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7566
SELECT + MIN ( DISTINCT - 78 ) AS col2 FROM tab2 cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 87 / 37 * 77 <> col0 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT ( 25 ) AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
25
3

skipif mysql # not compatible
query II rowsort label-7568
SELECT ( 25 ) AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
25
3

query I rowsort
SELECT + 81 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT MIN( DISTINCT + + 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7570
SELECT MIN ( DISTINCT + + 73 ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL MAX( - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL MAX ( - + col0 ) FROM tab2
----
-46

query II rowsort
SELECT DISTINCT - col2 * - col0 * + col0 AS col0, - col1 * col1 AS col0 FROM tab1
----
249696
-196
426275
-25
563108
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL - MAX( ALL - 64 ) AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - MAX ( ALL - 64 ) AS col1 FROM tab0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 <= NULL
----

query I rowsort
SELECT - 10 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT ALL - + 61 AS col2 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + + MAX( - - 31 ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7577
SELECT + + MAX ( - - 31 ) AS col0 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 AS col2 FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - col0 * - + col2 + 81 + - 68 * - - col2 FROM tab0 AS cor0
----
-2410
271
2952

query II rowsort
SELECT col1 * 57 AS col0, col2 FROM tab0 AS cor0
----
1197
10
4617
47
57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - + SUM( DISTINCT 48 ) AS col1 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7582
SELECT - + SUM ( DISTINCT 48 ) AS col1 FROM tab1 cor0
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / + - col1 + col1 IN ( col2, - 97 * - - col0 )
----

query I rowsort
SELECT DISTINCT - 58 * + col1 FROM tab1
----
-2726
-290
-812

query II rowsort
SELECT ALL - col1 + 17 AS col0, col1 FROM tab0
----
-4
21
-64
81
16
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 58 > - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - SUM( + - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - SUM ( + - col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT + 32 * 71 FROM tab1
----
2272
2272
2272

query II rowsort
SELECT DISTINCT + 3 * - 29 AS col0, 30 * - - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-87
-1380
-87
-1920
-87
-2250

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL col1 DIV + - col0 - + - col1 + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL col1 / + - col0 - + - col1 + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL 79 AS col2 FROM tab1 cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7592
SELECT ALL - 30 * - - col0 + + - 8 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-2618
NULL
-2918
NULL
-458
NULL

skipif mysql # not compatible
query II rowsort label-7592
SELECT ALL - 30 * - - col0 + + - 8 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-2618
NULL
-2918
NULL
-458
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL - - SUM( DISTINCT + - ( col2 ) ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - - SUM ( DISTINCT + - ( col2 ) ) AS col2 FROM tab2 cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 18 * col2 + - 53 * + ( col1 ) FROM tab2
----
23
-2289
40
-3361
58
-2507

query I rowsort
SELECT + ( + + col2 ) * - col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = col2
----

query I rowsort
SELECT + col2 + col2 * - + col1 - + col0 FROM tab1 cor0 WHERE NOT + 53 = - 32
----
-1299
-321
-3219

query I rowsort
SELECT DISTINCT + + 41 * + - 82 FROM tab0 AS cor0
----
-3362

query I rowsort
SELECT - + 24 * + - col1 AS col0 FROM tab2 AS cor0
----
1224
1608
1848

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL = - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT SUM( ALL + 70 ) AS col2, 80 FROM tab2
----
210
80

skipif mysql # not compatible
query II rowsort label-7601
SELECT SUM ( ALL + 70 ) AS col2, 80 FROM tab2
----
210
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT MAX( + - col1 ), + 32 * - 62 AS col1 FROM tab0
----
-1
-1984

skipif mysql # not compatible
query II rowsort label-7602
SELECT MAX ( + - col1 ), + 32 * - 62 AS col1 FROM tab0
----
-1
-1984

query I rowsort
SELECT 4 * - col1 + - col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT + 5 + 83 AS col2 FROM tab0
----
88
88
88

query I rowsort
SELECT + - 96 * - 35 + - + col0 AS col1 FROM tab0 AS cor0
----
3263
3273
3345

query I rowsort
SELECT - col2 + col2 AS col0 FROM tab2 cor0 WHERE 47 + + ( + col0 ) >= - + 94
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 41 BETWEEN ( - - col2 ) AND col2 * + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT - COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7609
SELECT - col1, + col0 - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-7609
SELECT - col1, + col0 - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7611
SELECT - ( + - 52 ) - - - col0 + - CAST( NULL AS SIGNED ) + - col2 AS col2, 40 - + col1 FROM tab2
----
NULL
-11
NULL
-27
NULL
-37

skipif mysql # not compatible
query II rowsort label-7611
SELECT - ( + - 52 ) - - - col0 + - CAST ( NULL AS INTEGER ) + - col2 AS col2, 40 - + col1 FROM tab2
----
NULL
-11
NULL
-27
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL 56 + - - ( + 36 ) DIV - 99 AS col2 FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL 56 + - - ( + 36 ) / - 99 AS col2 FROM tab1
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT + + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT + + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 65 * - col2 AS col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT MIN( - + 81 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT MIN ( - + 81 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 0 + - 68 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

query II rowsort
SELECT ALL col0 AS col0, col1 + - - col0 FROM tab2 AS cor0
----
46
97
64
141
75
142

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT DISTINCT - col2 DIV 1 * - col2 * - col2 * - 98 - - 38 FROM tab0 AS cor0
----
10174692
95089340
98038

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - col2 / 1 * - col2 * - col2 * - 98 - - 38 FROM tab0 AS cor0
----
10174692
95089340
98038

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 39 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT ALL 77 DIV - 7 AS col1 FROM tab2
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL 77 / - 7 AS col1 FROM tab2
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT + ( - col2 ) DIV + col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT + ( - col2 ) / + col0 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT 41 * - COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-7622
SELECT 41 * - COUNT ( * ) AS col0 FROM tab0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7623
SELECT DISTINCT CAST( NULL AS SIGNED ), 62 AS col0 FROM tab1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-7623
SELECT DISTINCT CAST ( NULL AS INTEGER ), 62 AS col0 FROM tab1
----
NULL
62

query II rowsort
SELECT + col2 AS col2, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT DISTINCT + 64 col0, MIN( - 47 ) AS col1 FROM tab1
----
64
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT DISTINCT + 64 col0, MIN ( - 47 ) AS col1 FROM tab1
----
64
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col2, + col0 col0 FROM tab0
----
100
87
2209
15
9801
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7627
SELECT ALL CAST( NULL AS SIGNED ), col0 + col0 AS col2 FROM tab0
----
NULL
174
NULL
194
NULL
30

skipif mysql # not compatible
query II rowsort label-7627
SELECT ALL CAST ( NULL AS INTEGER ), col0 + col0 AS col2 FROM tab0
----
NULL
174
NULL
194
NULL
30

query I rowsort
SELECT ALL 62 * 52 * col1 FROM tab2
----
164424
216008
248248

query I rowsort
SELECT ALL - 91 * + col0 * + 70 FROM tab1
----
-324870
-541450
-579670

query I rowsort
SELECT - 40 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL = col1 * + - col0 - - 20 + + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT DISTINCT col0 DIV - 9 AS col1 FROM tab0 AS cor0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT col0 / - 9 AS col1 FROM tab0 AS cor0
----
-1
-10
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL + COUNT( * ) * + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + COUNT ( * ) * + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
153

query II rowsort
SELECT + col2 AS col0, 50 FROM tab0 AS cor0
----
10
50
47
50
99
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL COUNT( ALL - 69 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL COUNT ( ALL - 69 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7635
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT + + 33 FROM tab0 WHERE NOT + 24 IS NULL
----
33
33
33

query I rowsort
SELECT + 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL ( col0 ) * - col2 AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT DISTINCT 81 DIV col1 * + + col2 AS col0 FROM tab1 AS cor0
----
480
68
944

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT 81 / col1 * + + col2 AS col0 FROM tab1 AS cor0
----
480
68
944

query I rowsort
SELECT DISTINCT + col2 * - - col2 + + col0 * + - col1 FROM tab2 AS cor0
----
-1661
-1817
-3328

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT DISTINCT - col2 DIV - - col0 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - col2 / - - col0 AS col1 FROM tab1 cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT + 91 + + CAST( - + col0 AS SIGNED ) + + col0 * col2 FROM tab2 AS cor0
----
1103
2587
4366

skipif mysql # not compatible
query I rowsort label-7643
SELECT + 91 + + CAST ( - + col0 AS INTEGER ) + + col0 * col2 FROM tab2 AS cor0
----
1103
2587
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL COUNT( - 31 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7644
SELECT ALL COUNT ( - 31 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - ( + col0 ) + - 53 + + col1 AS col1 FROM tab2 AS cor0
----
-40
-48
-61

query II rowsort
SELECT 29 + + - 27 AS col0, 20 FROM tab1 AS cor0
----
2
20
2
20
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7647
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 * col0 + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7647
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 * col0 + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT CAST( + col0 AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7648
SELECT CAST ( + col0 AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7649
SELECT DISTINCT * FROM tab2 cor0 WHERE - 33 <> - col1 + + CAST( NULL AS SIGNED ) + - - col0
----

skipif mysql # not compatible
query III rowsort label-7649
SELECT DISTINCT * FROM tab2 cor0 WHERE - 33 <> - col1 + + CAST ( NULL AS INTEGER ) + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - SUM( 32 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-7650
SELECT - SUM ( 32 ) FROM tab2
----
-96

query III rowsort
SELECT * FROM tab2 WHERE + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 81 col0 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT + + 92 * - CAST( NULL AS SIGNED ) * - 23 FROM tab1 WHERE NULL > - 19 + col2
----

skipif mysql # not compatible
query I rowsort label-7653
SELECT + + 92 * - CAST ( NULL AS INTEGER ) * - 23 FROM tab1 WHERE NULL > - 19 + col2
----

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 AS cor0 WHERE NOT 25 IN ( - 3, + ( - col1 ) )
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7655
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT - 82 * - col2 AS col2 FROM tab0
----
3854
8118
820

query I rowsort
SELECT col2 - - col1 * + col1 AS col0 FROM tab2
----
2624
4547
5969

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ( - col2 ) DIV ( col2 + col0 ) - + col0 * - 62 FROM tab1
----
3162
5270
5642

skipif mysql # not compatible
query I rowsort label-7658
SELECT ( - col2 ) / ( col2 + col0 ) - + col0 * - 62 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col0 * + 84 + - col2 AS col0 FROM tab0
----
1213
7298
8049

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + MIN( ( col0 ) ) AS col0 FROM tab2 WHERE NOT - ( col1 ) <= - col2 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT + MIN ( ( col0 ) ) AS col0 FROM tab2 WHERE NOT - ( col1 ) <= - col2 + + 42
----
NULL

query I rowsort
SELECT 24 + - col2 FROM tab1
----
-35
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT DISTINCT 96 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT 96 / col0 FROM tab0
----
0
1
6

query I rowsort
SELECT - 45 FROM tab0 WHERE ( col0 ) IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT ALL 2 DIV - 49 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 2 / - 49 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + MIN( ALL - 69 ) + COUNT( * ) FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT + MIN ( ALL - 69 ) + COUNT ( * ) FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7668
SELECT * FROM tab1 WHERE NOT + 58 * CAST( NULL AS DECIMAL ) BETWEEN - col0 AND - 45
----

skipif mysql # not compatible
query III rowsort label-7668
SELECT * FROM tab1 WHERE NOT + 58 * CAST ( NULL AS REAL ) BETWEEN - col0 AND - 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT col1 FROM tab1 WHERE ( col2 ) + + CAST( NULL AS SIGNED ) <> + col2 + col2
----

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT col1 FROM tab1 WHERE ( col2 ) + + CAST ( NULL AS INTEGER ) <> + col2 + col2
----

query I rowsort
SELECT + ( + 69 ) AS col1 FROM tab2
----
69
69
69

query I rowsort
SELECT ALL + col2 * - col0 FROM tab2 WHERE col2 * col0 > NULL
----

query I rowsort
SELECT DISTINCT 62 * + col0 + col0 * - col0 FROM tab0 WHERE NULL BETWEEN 41 / 65 AND ( NULL )
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT ( col1 + + col2 ) IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT DISTINCT col0 * + CAST( - col0 AS SIGNED ) + + ( - col1 ) FROM tab1
----
-2615
-7230
-8328

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT col0 * + CAST ( - col0 AS INTEGER ) + + ( - col1 ) FROM tab1
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 * col0 col2 FROM tab2
----
-2369
-4968
-5083

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 69 + + col1 AS col1 FROM tab1
----
-22
-55
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 82 <= col1 * + 10 - col0
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT - 27 * + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( 18 ) )
----

skipif mysql # not compatible
query I rowsort label-7681
SELECT - 27 * + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( 18 ) )
----

query I rowsort
SELECT ALL + ( ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) <= NULL
----

query I rowsort
SELECT 55 * col0 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL COUNT( * ) * 55 FROM tab1 AS cor0 CROSS JOIN tab1
----
495

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL COUNT ( * ) * 55 FROM tab1 AS cor0 CROSS JOIN tab1
----
495

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT + - COUNT( DISTINCT 45 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT + - COUNT ( DISTINCT 45 ) / - COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 91 * + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 * 60 AS col1 FROM tab1 AS cor0
----
5880
5880
5880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT - COUNT( * ) DIV 33 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT - COUNT ( * ) / 33 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE - col0 NOT IN ( col0 * + col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - COUNT( DISTINCT 47 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - COUNT ( DISTINCT 47 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT col1 + + 80 * + 31 FROM tab2 AS cor0
----
2531
2547
2557

query I rowsort
SELECT 1 + - + col2 - 40 * col0 FROM tab0
----
-3489
-3978
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ( - - SUM( DISTINCT + 57 ) ) + 15 col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT ( - - SUM ( DISTINCT + 57 ) ) + 15 col0 FROM tab1
----
72

query I rowsort
SELECT 42 + - col2 AS col0 FROM tab0
----
-5
-57
32

query I rowsort
SELECT DISTINCT + col0 + - + col2 + 81 FROM tab1
----
104
107
36

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( + col1 * - col2 ) BETWEEN - 55 - col0 AND + col0
----
97

query I rowsort
SELECT col0 + + ( + col2 ) * + col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 25 + - - col0 * + col1 AS col1 FROM tab0
----
122
1240
1852

query III rowsort
SELECT * FROM tab2 WHERE - col1 = NULL OR NOT col0 = ( NULL )
----

query I rowsort
SELECT ( + col2 ) + col2 * + col0 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT ALL 85 DIV + col2 - 16 DIV - col0 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL 85 / + col2 - 16 / - col0 AS col1 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT MIN( - col0 ) + 98 * + COUNT( * ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT MIN ( - col0 ) + 98 * + COUNT ( * ) FROM tab2 AS cor0
----
219

query I rowsort
SELECT 27 FROM tab1 cor0 WHERE - ( + 92 ) + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT + COUNT( * ) * 43 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + COUNT ( * ) * 43 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 54 * 53 + 47 * col0 AS col2 FROM tab0 AS cor0
----
3567
6951
7421

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT 11 * - MAX( 55 ) AS col0 FROM tab0 WHERE - ( - 28 ) = ( - col2 + 97 * 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT 11 * - MAX ( 55 ) AS col0 FROM tab0 WHERE - ( - 28 ) = ( - col2 + 97 * 74 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 24 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

query I rowsort
SELECT + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( - ( col1 ) ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - - 51 AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( - 55 )
----

query I rowsort
SELECT ALL col1 / 87 AS col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN - + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col2 FROM tab0 AS cor0
----
77
77
77

query II rowsort
SELECT - + 12 AS col1, 54 FROM tab2 AS cor0
----
-12
54
-12
54
-12
54

query I rowsort
SELECT + col1 * + 21 * + 30 FROM tab2
----
32130
42210
48510

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 70 NOT IN ( col1 * 61 + + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT 41 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT 41 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 < + 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT col0 DIV ( col0 ) col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT col0 / ( col0 ) col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7726
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND CAST( col0 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-7726
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND CAST ( col0 AS INTEGER ) * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT IN ( ( col0 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL - SUM( + - ( - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - SUM ( + - ( - col0 ) ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7729
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-7729
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT MIN( ALL - 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-7730
SELECT MIN ( ALL - 26 ) FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT MIN( ALL 31 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7731
SELECT MIN ( ALL 31 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
34

query I rowsort
SELECT + col2 + + col1 * col0 FROM tab1 cor0 WHERE - 82 * + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + COUNT( * ) * + + COUNT( * ) + 52 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-7733
SELECT + COUNT ( * ) * + + COUNT ( * ) + 52 FROM tab2 cor0
----
61

query I rowsort
SELECT DISTINCT + col1 * + - 32 * - col2 FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - + ( + MIN( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - + ( + MIN ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT col0 * CAST( NULL AS SIGNED ) - 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7736
SELECT col0 * CAST ( NULL AS INTEGER ) - 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + + col0 * + col0 * + col2 FROM tab1 AS cor0
----
-23970816
-25150225
-38291344

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ( + AVG ( DISTINCT col1 ) ) - - COUNT( - col0 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT ( + AVG ( DISTINCT col1 ) ) - - COUNT ( - col0 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + - MIN( DISTINCT col1 ) + COUNT( * ) FROM tab2 WHERE + col2 + - col2 IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-7740
SELECT + - MIN ( DISTINCT col1 ) + COUNT ( * ) FROM tab2 WHERE + col2 + - col2 IS NOT NULL
----
-48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 56 * + col0 BETWEEN 79 - col0 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - COUNT( * ) FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - COUNT ( * ) FROM tab0, tab1 cor0
----
-9

query I rowsort
SELECT + 18 * ( + col1 ) - - 90 FROM tab0
----
108
1548
468

query III rowsort
SELECT * FROM tab1 WHERE col2 + - + 57 IS NULL
----

query I rowsort
SELECT ALL - 19 - + 98 + - + 32 AS col1 FROM tab0
----
-149
-149
-149

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT + + COUNT( DISTINCT col2 ) * CAST( + COUNT( ALL + col2 ) AS SIGNED ) * COUNT( * ) * SUM( DISTINCT + 89 ) + SUM( DISTINCT + col0 ) - 0 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2602

skipif mysql # not compatible
query I rowsort label-7747
SELECT + + COUNT ( DISTINCT col2 ) * CAST ( + COUNT ( ALL + col2 ) AS INTEGER ) * COUNT ( * ) * SUM ( DISTINCT + 89 ) + SUM ( DISTINCT + col0 ) - 0 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2602

query I rowsort
SELECT + col0 * + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT + 86 AS col0 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 + 46 ) <> ( ( - 62 ) * - col0 * - 8 * col2 )
----

query I rowsort
SELECT DISTINCT + ( + 94 ) * - col2 * - col0 AS col1 FROM tab2 AS cor0
----
240640
408900
99452

query I rowsort
SELECT 60 FROM tab0 cor0
----
60
60
60

query II rowsort
SELECT ALL ( col2 ), + 29 * col0 FROM tab0 AS cor0
----
10
2523
47
435
99
2813

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 77 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - COUNT( ALL + 22 ) * - 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - COUNT ( ALL + 22 ) * - 55 FROM tab1
----
165

query II rowsort
SELECT DISTINCT - 84 AS col1, col0 * + col0 - + - col1 AS col1 FROM tab0
----
-84
306
-84
7590
-84
9410

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT ALL + 25 AS col2, MAX( DISTINCT + col2 ) FROM tab2
----
25
58

skipif mysql # not compatible
query II rowsort label-7759
SELECT ALL + 25 AS col2, MAX ( DISTINCT + col2 ) FROM tab2
----
25
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL + MAX( DISTINCT - + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + MAX ( DISTINCT - + col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT ALL + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT ALL ( + + 6 ) + - - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL ( + + 6 ) + - - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 92 > ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL MIN( - - col1 ) * + + COUNT( * ) + - - 24 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL MIN ( - - col1 ) * + + COUNT ( * ) + - - 24 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT col0 + + 46 + + col1 * + + 7 FROM tab1 AS cor0
----
166
195
466

query I rowsort
SELECT ( + col2 ) + + 17 AS col0 FROM tab1 AS cor0
----
113
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT COUNT( * ) + + 3 - 52 + COUNT( * ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7769
SELECT COUNT ( * ) + + 3 - 52 + COUNT ( * ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL - col2 * + - col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( - - col2 ) + + 79 * - + col2 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT DISTINCT - 85 + col1 AS col0 FROM tab1
----
-38
-71
-80

query I rowsort
SELECT ALL + 52 + - 0 AS col1 FROM tab0
----
52
52
52

query I rowsort
SELECT DISTINCT + 58 + + col2 AS col1 FROM tab2
----
116
81
98

query I rowsort
SELECT DISTINCT + col1 - + - col0 * + 24 + - 38 FROM tab1
----
1200
2007
2193

query III rowsort
SELECT ALL * FROM tab1 WHERE 96 IN ( - col0 * - col1 * - col1, - col0 )
----

query I rowsort
SELECT + 46 - 58 FROM tab1 AS cor0
----
-12
-12
-12

query II rowsort
SELECT ALL col2, - 97 FROM tab1 AS cor0
----
59
-97
68
-97
96
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 95 * + col1 AS col0 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL SUM( + col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7781
SELECT ALL SUM ( + col0 ) col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL col0 * + col0 + - col2 AS col1 FROM tab2
----
2093
4056
5567

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > col2 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * col0 col2 FROM tab1
----
4896
8160
8736

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col1 <> 92 - + + 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 + - 53 AS col0 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT + col2 + 59 FROM tab1 cor0
----
118
127
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT MAX( ALL - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7790
SELECT MAX ( ALL - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT + 48 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7791
SELECT + 48 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7792
SELECT - AVG ( DISTINCT ( + + 34 ) ) * - - MAX( - - 18 ) * 6 * + CAST( NULL AS DECIMAL ) * - - 59 + - 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT - AVG ( DISTINCT ( + + 34 ) ) * - - MAX ( - - 18 ) * 6 * + CAST ( NULL AS REAL ) * - - 59 + - 79 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 24 * - - col2 col0 FROM tab0
----
1175
2475
250

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7794
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / 98 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + - col2 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21

query I rowsort
SELECT col2 * - + 58 AS col1 FROM tab0 AS cor0
----
-2726
-5742
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + + MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7801
SELECT + + MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT ALL + - ( - + MAX( DISTINCT col0 ) ) DIV - 19 AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + - ( - + MAX ( DISTINCT col0 ) ) / - 19 AS col2 FROM tab1 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT DISTINCT col2 DIV + + 39 AS col1 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT col2 / + + 39 AS col1 FROM tab1 cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - MAX( - col0 ) col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7804
SELECT - MAX ( - col0 ) col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - SUM( DISTINCT - 16 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - SUM ( DISTINCT - 16 ) FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab1
----
-35

query I rowsort
SELECT ALL ( + + 2 ) * + col1 AS col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ( + COUNT( * ) ) * 31 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7808
SELECT ( + COUNT ( * ) ) * 31 FROM tab2
----
93

query I rowsort
SELECT DISTINCT - col1 * + + ( - 63 ) * col1 AS col1 FROM tab2
----
163863
282807
373527

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ( - 24 ) + + + COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7810
SELECT ( - 24 ) + + + COUNT ( * ) AS col2 FROM tab1
----
-21

query II rowsort
SELECT - col0 + + 97, col1 AS col2 FROM tab0 AS cor0
----
0
1
10
21
82
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT + MAX( ALL - ( - 25 ) ) col2 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7812
SELECT + MAX ( ALL - ( - 25 ) ) col2 FROM tab0
----
25

query II rowsort
SELECT ALL - col2 - 91 AS col0, 60 FROM tab1 AS cor0
----
-150
60
-159
60
-187
60

query I rowsort
SELECT DISTINCT - 67 - ( col0 ) + + + col1 FROM tab0 AS cor0
----
-1
-133
-163

query I rowsort
SELECT DISTINCT + ( + 8 ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL MIN( ALL - ( - + 49 ) ) FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL MIN ( ALL - ( - + 49 ) ) FROM tab2 cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7817
SELECT + COUNT( * ) * - + COUNT( * ) * - CAST( NULL AS SIGNED ) + + + MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT + COUNT ( * ) * - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + + MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT - 49 DIV - ( 44 ) + - - col0 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7818
SELECT - 49 / - ( 44 ) + - - col0 AS col2 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT 96, ( - SUM( DISTINCT - + col0 ) ) AS col1 FROM tab2
----
96
185

skipif mysql # not compatible
query II rowsort label-7819
SELECT 96, ( - SUM ( DISTINCT - + col0 ) ) AS col1 FROM tab2
----
96
185

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - 74 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 25 * - col2 AS col0 FROM tab0
----
-1175
-2475
-250

query II rowsort
SELECT DISTINCT - - 2 AS col2, + 9 AS col2 FROM tab2 AS cor0
----
2
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL - CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL - - COUNT( - - 79 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL - - COUNT ( - - 79 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 <> + col1 * - col2 + col2 * + 77 / + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 77 * - - COUNT( * ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-7828
SELECT 77 * - - COUNT ( * ) FROM tab1
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT ALL - 27 DIV col2 * + 11 + + - col1 + - ( - - col1 ) FROM tab0 AS cor0
----
-162
-2
-64

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - 27 / col2 * + 11 + + - col1 + - ( - - col1 ) FROM tab0 AS cor0
----
-162
-2
-64

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col2 IS NULL
----
-1
-21
-81

query II rowsort
SELECT + - 78 + col0, + col2 FROM tab1 AS cor0
----
-27
96
13
68
7
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 34 AND NULL
----

query I rowsort
SELECT + 4 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
4
4
4

query II rowsort
SELECT + col0 * col0 + - - col2 + + col1 AS col1, - col2 FROM tab1 AS cor0
----
2711
-96
7289
-59
8396
-68

query II rowsort
SELECT ALL - - col0, col1 AS col1 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN col2 + - ( ( - 54 ) ) AND + 11 + + col0 + + 70
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7836
SELECT DISTINCT col1 * - col1 - + col0 + + 18 DIV - col0 AS col1, col2 FROM tab1 AS cor0
----
-110
59
-2300
68
-247
96

skipif mysql # not compatible
query II rowsort label-7836
SELECT DISTINCT col1 * - col1 - + col0 + + 18 / - col0 AS col1, col2 FROM tab1 AS cor0
----
-110
59
-2300
68
-247
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7837
SELECT - COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7838
SELECT DISTINCT + MAX( ALL - - 5 ) + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + MAX ( ALL - - 5 ) + + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + 15 + col1 * col1 NOT BETWEEN + col2 AND - 94
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL MIN( ALL 50 ) + - 92 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL MIN ( ALL 50 ) + - 92 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT SUM( ALL + - 40 ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-7841
SELECT SUM ( ALL + - 40 ) FROM tab2
----
-120

query I rowsort
SELECT DISTINCT - 38 * - - 83 + - col1 FROM tab1
----
-3159
-3168
-3201

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0, - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT + + SUM( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL > + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + + SUM ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL > + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT COUNT( * ) + - 5 col2 FROM tab0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7845
SELECT DISTINCT COUNT ( * ) + - 5 col2 FROM tab0
----
-2

query I rowsort
SELECT col2 * + + col0 * - 95 AS col1 FROM tab2
----
-100510
-243200
-413250

query I rowsort
SELECT ALL col1 * + - 68 FROM tab2
----
-3468
-4556
-5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT 39 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + MIN( ALL - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7850
SELECT + MIN ( ALL - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + 27 * - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-7851
SELECT + 27 * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
243

query I rowsort
SELECT DISTINCT - 99 - + col2 AS col0 FROM tab1 AS cor0
----
-158
-167
-195

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 32 * - + col1 - - - col0 AS col2 FROM tab2 AS cor0
----
-1678
-2219
-2528

onlyif mysql # DIV for integer division: 
query II rowsort label-7855
SELECT DISTINCT - col1 * col0 * ( - + col0 ) * 20 * - col0 AS col1, + col1 DIV - + col1 AS col2 FROM tab0 cor0
----
-18253460
-1
-276571260
-1
-5467500
-1

skipif mysql # not compatible
query II rowsort label-7855
SELECT DISTINCT - col1 * col0 * ( - + col0 ) * 20 * - col0 AS col1, + col1 / - + col1 AS col2 FROM tab0 cor0
----
-18253460
-1
-276571260
-1
-5467500
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 6 AND NULL
----

query I rowsort
SELECT ALL col1 - 71 + + col2 AS col0 FROM tab1 AS cor0
----
-7
39
44

query I rowsort
SELECT DISTINCT - + ( + - 30 ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + MIN( ALL col0 ) * 87 AS col0 FROM tab0 AS cor0
----
1305

skipif mysql # not compatible
query I rowsort label-7859
SELECT + MIN ( ALL col0 ) * 87 AS col0 FROM tab0 AS cor0
----
1305

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 <= - col2
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + 38 AND col1 * - + col0 + + 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT DISTINCT + col2 DIV + - col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + col2 / + - col0 AS col1 FROM tab0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 98 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * 94 col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + 75 ) AS col2 FROM tab2
----
75
75
75

query I rowsort
SELECT ALL + col1 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 tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + col0 * + 40 AS col2 FROM tab0 AS cor0
----
-3880
-48600
-73080

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT SUM( - col2 ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7870
SELECT SUM ( - col2 ) col0 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT + 10 * COUNT( * ) + CAST( + MIN( ALL + 42 ) AS SIGNED ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + 10 * COUNT ( * ) + CAST ( + MIN ( ALL + 42 ) AS INTEGER ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL col1 + - 76 AS col2 FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + - 82 ) FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 * col2
----

query II rowsort
SELECT ALL - col2 AS col1, 22 AS col1 FROM tab0 AS cor0
----
-10
22
-47
22
-99
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7876
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT + - col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 WHERE + col2 + + col2 * + - 42 NOT BETWEEN - 34 AND NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 WHERE + col2 + + col2 * + - 42 NOT BETWEEN - 34 AND NULL
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 77 * - 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT MIN( col1 ) + + COUNT( * ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT MIN ( col1 ) + + COUNT ( * ) AS col1 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT col2 + - + CAST( + + 34 AS SIGNED ) AS col1 FROM tab0
----
-24
13
65

skipif mysql # not compatible
query I rowsort label-7881
SELECT col2 + - + CAST ( + + 34 AS INTEGER ) AS col1 FROM tab0
----
-24
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT MAX( ALL + col1 ) + COUNT( * ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7882
SELECT MAX ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab0
----
84

query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab0 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT - 78 DIV COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7884
SELECT - 78 / COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT DISTINCT 46 * + col2 * 6 + - col0 - + - col2 * + col0 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
309513
41274
94989

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT 46 * + col2 * 6 + - col0 - + - col2 * + col0 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
309513
41274
94989

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7886
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7886
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> - - CAST ( NULL AS REAL )
----

query II rowsort
SELECT - - 33 * - col1 AS col2, + col1 + + - col1 FROM tab1 cor0
----
-1551
0
-165
0
-462
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - - 65 NOT BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT ALL - - col1 - - col0 AS col1 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL - - SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - - SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - col0 * - - col0 * - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - + 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
-7

query I rowsort
SELECT col2 * - col0 * + ( 29 ) + + col1 * + col2 * - - 92 AS col1 FROM tab0 AS cor0
----
-269379
-5910
329799

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ( + + COUNT( * ) ) * COUNT( * ) * SUM( - col2 ) FROM tab2 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-7894
SELECT ( + + COUNT ( * ) ) * COUNT ( * ) * SUM ( - col2 ) FROM tab2 AS cor0
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL + + COUNT( ALL + 64 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + + COUNT ( ALL + 64 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT COUNT( * ), COUNT( * ) * + + 15 * + 27 AS col2 FROM tab2
----
3
1215

skipif mysql # not compatible
query II rowsort label-7896
SELECT COUNT ( * ), COUNT ( * ) * + + 15 * + 27 AS col2 FROM tab2
----
3
1215

query II rowsort
SELECT col0, col2 * + - 36 AS col0 FROM tab0
----
15
-1692
87
-360
97
-3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT + MAX( ALL - - col0 ) / 22 * + - AVG ( 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-7898
SELECT DISTINCT + MAX ( ALL - - col0 ) / 22 * + - AVG ( col1 ) + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col0, + col1 + col2 AS col2 FROM tab0
----
15
128
87
31
97
100

query II rowsort
SELECT DISTINCT - col0 AS col2, + col2 * - + ( + col2 ) FROM tab0
----
-15
-2209
-87
-100
-97
-9801

query I rowsort
SELECT ALL 82 AS col1 FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7902
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT 99 col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7903
SELECT 99 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
99
3

query II rowsort
SELECT ALL + col1 AS col0, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT 54 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + + COUNT( * ) FROM tab0 WHERE NOT - 23 * col2 + + - 93 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT - 23 * col2 + + - 93 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( + + col1 )
----

query I rowsort
SELECT - col1 + - - 83 AS col1 FROM tab0 AS cor0
----
2
62
82

query I rowsort
SELECT DISTINCT + 75 * - 93 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-6975

query I rowsort
SELECT + - col2 * + col0 + + 64 + + - col2 AS col1 FROM tab2 cor0
----
-1017
-2536
-4344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT ALL col1 + + - col0 + + CAST( ( - col0 ) AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1053
-2547
-4358

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL col1 + + - col0 + + CAST ( ( - col0 ) AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1053
-2547
-4358

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + + 4 / - ( + + col2 ) AND + ( + ( + - col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7912
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + + 4 / - ( + + col2 ) AND + ( + ( + - col0 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT COUNT( ALL 41 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7913
SELECT COUNT ( ALL 41 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT + MAX( ALL - + col0 ) * - 63 AS col0 FROM tab0 AS cor0
----
945

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + MAX ( ALL - + col0 ) * - 63 AS col0 FROM tab0 AS cor0
----
945

query I rowsort
SELECT - 2 * - col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL + COUNT( + col2 ) FROM tab1 WHERE - - 65 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + COUNT ( + col2 ) FROM tab1 WHERE - - 65 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + 13 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + - col1 + - - col0 * - col1 * - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + - col1 + - - col0 * - col1 * - col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 58 + - 9 + 77 AS col1 FROM tab2
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7921
SELECT ALL ( + col0 ) * CAST( NULL AS DECIMAL ) * + col2 - 66 - col2, col1 * + 0 col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7921
SELECT ALL ( + col0 ) * CAST ( NULL AS REAL ) * + col2 - 66 - col2, col1 * + 0 col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT + - 59 + 54 AS col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + + col0 * - col2 + - col0 + + + ( - + col0 ) FROM tab0 AS cor0
----
-1044
-735
-9797

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col1 * - + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - MIN( ALL - + 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7927
SELECT - MIN ( ALL - + 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT + - col0 * - - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-2139
-4136
-5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT - + col1 * + - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT - + col1 * + - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT ALL COUNT( * ) DIV + - 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL COUNT ( * ) / + - 30 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * 40 AS col2 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - 80, - 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT - col2 DIV - - 48 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT - col2 / - - 48 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT 49 * + + MAX( + + col0 ) AS col0 FROM tab1
----
4459

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 49 * + + MAX ( + + col0 ) AS col0 FROM tab1
----
4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT - COUNT( * ) * COUNT( - 1 ) DIV + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7935
SELECT - COUNT ( * ) * COUNT ( - 1 ) / + COUNT ( * ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT + col1 DIV col2 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT + col1 / col2 / - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + + 21 * - col1 + - col1 FROM tab2 AS cor0
----
-1122
-1474
-1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7938
SELECT CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT - + col2 AS col2, - 17 AS col2 FROM tab0 AS cor0
----
-10
-17
-47
-17
-99
-17

query I rowsort
SELECT DISTINCT col1 * + + col2 + + - col0 + - 65 * - 87 FROM tab1
----
5865
6948
8760

query II rowsort
SELECT + 67, col2 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7942
SELECT CAST( - COUNT( * ) AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7942
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT ALL col2 AS col0, 57 AS col0 FROM tab0 AS cor0
----
10
57
47
57
99
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0 col0, - col2 col1, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to da0300228958b83adb21d46811b8340e

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT DISTINCT - COUNT( * ) DIV + - 41 * + + 4 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT - COUNT ( * ) / + - 41 * + + 4 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col2 col0 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL 47 + SUM( 39 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + ( - col2 ) - + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL 47 + SUM ( 39 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + ( - col2 ) - + + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7950
SELECT * FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7950
SELECT * FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT col2 + - col2 + 39 AS col0, col1 * - - col1 AS col1, - col0 FROM tab0
----
9 values hashing to 94fa5004c8843e42b6d67ebcf070f3c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col1 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT + col0 + - - 33 + CAST( NULL AS SIGNED ) + + + col1 + col1 * - - 68 * col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + col0 + - - 33 + CAST ( NULL AS INTEGER ) + + + col1 + col1 * - - 68 * col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 44 - - col0 FROM tab2
----
2
20
31

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 62 ) + - 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT ALL + MAX( ALL + 92 ), + COUNT( * ) AS col1 FROM tab2 cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-7957
SELECT ALL + MAX ( ALL + 92 ), + COUNT ( * ) AS col1 FROM tab2 cor0
----
92
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT ALL - + 65 * 73 DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-527

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - + 65 * 73 / + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-527

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT col2 DIV + - 75 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT col2 / + - 75 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT 47 * col2 AS col1 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT DISTINCT col0 * + - 70 + + 40 FROM tab2 AS cor0
----
-3180
-4440
-5210

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT ALL + 88 DIV - - col1 FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + 88 / - - col1 FROM tab1 AS cor0
----
1
17
6

query I rowsort
SELECT ALL - col0 * + - ( + - ( + + 49 ) ) FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT DISTINCT ( 56 ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - COUNT( DISTINCT - col1 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7965
SELECT - COUNT ( DISTINCT - col1 ) col1 FROM tab2
----
-3

query I rowsort
SELECT ALL + 38 * col2 * + - 85 FROM tab0
----
-151810
-319770
-32300

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) - - col1 = NULL
----

query II rowsort
SELECT ALL col2 * - + col0, 55 * - col1 AS col0 FROM tab0
----
-705
-4455
-870
-1155
-9603
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 35 col2 FROM tab1 AS cor0
----
1785
2975
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + MAX( - + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT + MAX ( - + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab1 AS cor0 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7973
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col1 * - ( - - col0 ) + - col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT - + 18 AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 51 + - 13 AS col1 FROM tab1, tab0 AS cor0
----
38

query I rowsort
SELECT ALL col1 + - - col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT col1 + - + 96 AS col0 FROM tab0
----
-15
-75
-95

query III rowsort
SELECT * FROM tab0 WHERE 15 >= 31 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL - 83 + + 48 * + SUM( - col1 ) AS col2 FROM tab2
----
-9443

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - 83 + + 48 * + SUM ( - col1 ) AS col2 FROM tab2
----
-9443

query I rowsort
SELECT ALL 50 + + - ( - col2 ) AS col1 FROM tab2
----
108
73
90

query III rowsort
SELECT ALL * FROM tab1 WHERE + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - + 44 + 74 + col2 AS col2 FROM tab1 AS cor0
----
2210
353
786

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - + COUNT( * ) - 76 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - + COUNT ( * ) - 76 FROM tab0 AS cor0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7985
SELECT ALL + 52 AS col0, - col1 + col0 - - col1 * + col0 * + col0 DIV col0 * - 95 AS col2 FROM tab2 AS cor0
----
52
-222875
52
-468173
52
-477367

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL + 52 AS col0, - col1 + col0 - - col1 * + col0 * + col0 / col0 * - 95 AS col2 FROM tab2 AS cor0
----
52
-222875
52
-468173
52
-477367

query I rowsort
SELECT - col1 * 78 AS col0 FROM tab0 AS cor0
----
-1638
-6318
-78

query I rowsort
SELECT DISTINCT - - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT 21 * - + 5 AS col2 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col2 - - - ( - col0 ) IS NULL
----
59
68
96

query I rowsort
SELECT + - 91 * col0 AS col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT - SUM( - - col1 ) DIV - - COUNT( * ) AS col0 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7991
SELECT - SUM ( - - col1 ) / - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 4 AS col2 FROM tab1 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT ALL - + MAX( DISTINCT + + col2 ) col2, COUNT( * ) FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7995
SELECT ALL - + MAX ( DISTINCT + + col2 ) col2, COUNT ( * ) FROM tab1 AS cor0
----
-96
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 1 * + + 70 < NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT 60 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT 59 * + 45 FROM tab2
----
2655
2655
2655

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT col0 + + 89 DIV - 51 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7999
SELECT col0 + + 89 / - 51 FROM tab0
----
14
86
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8000
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8000
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8001
SELECT * FROM tab1 WHERE NOT - 38 / + CAST( NULL AS SIGNED ) + col2 + - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8001
SELECT * FROM tab1 WHERE NOT - 38 / + CAST ( NULL AS INTEGER ) + col2 + - - col2 IS NULL
----

query II rowsort
SELECT ALL 35 AS col1, - 21 * - - 12 AS col0 FROM tab0
----
35
-252
35
-252
35
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - col0 + + ( 60 ) col0 FROM tab1
----
-17
-23
17

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 59
----

query I rowsort
SELECT DISTINCT col1 + - ( + + col2 ) AS col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) * - 50 / 8 - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + 43 - + 95 + - + COUNT( * ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + 43 - + 95 + - + COUNT ( * ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL 0 * - col0 * + col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL + + COUNT( * ) + - 80 AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + + COUNT ( * ) + - 80 AS col1 FROM tab2 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT col2 + - + col2 - - + col1 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT col2 + - + col2 - - + col1 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 58 + + col0 AS col0 FROM tab1
----
109
143
149

query I rowsort
SELECT + 13 + col0 FROM tab1
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 >= NULL
----
0

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL BETWEEN NULL AND - 49 + col0
----

query II rowsort
SELECT col1 AS col2, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT col2 DIV + - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8018
SELECT col2 / + - col2 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT 60, + col0 FROM tab0 WHERE col1 / + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 - + + 4 col0 FROM tab2
----
55
55
55

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 WHERE NULL >= NULL
----

query II rowsort
SELECT DISTINCT + col2 + ( - 69 ) AS col2, + 34 FROM tab2
----
-11
34
-29
34
-46
34

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col2 FROM tab2 WHERE - + 9 <> col0 + + col1 / - col2
----
81

query I rowsort
SELECT ALL + 41 AS col0 FROM tab0 cor0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 10 FROM tab2 AS cor0
----
460
640
750

query II rowsort
SELECT ALL 29 AS col2, + col2 AS col0 FROM tab0
----
29
10
29
47
29
99

query I rowsort
SELECT - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL + - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + + 93 AS col1 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT DISTINCT COUNT( * ) AS col2, 15 AS col2 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-8032
SELECT DISTINCT COUNT ( * ) AS col2, 15 AS col2 FROM tab0 AS cor0
----
3
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col2 FROM tab0 cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8034
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - col2 + col1 NOT BETWEEN + - col1 + + ( CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8034
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - col2 + col1 NOT BETWEEN + - col1 + + ( CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT SUM( - col0 ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT SUM ( - col0 ) col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 61 + - + 93 - - 11 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT + col0 AS col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 BETWEEN NULL AND - + 74
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 BETWEEN NULL AND - + 74
----
0

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + + 3 * - ( - - 74 ) FROM tab2 WHERE + 61 * col2 IN ( - 13, 68, - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 87 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8044
SELECT DISTINCT + - col2 / + - ( - col2 ) - col2 + col0 * - col0 / - col1 / - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) > 42 * + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + - col2 / + - ( - col2 ) - col2 + col0 * - col0 / - col1 / - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) > 42 * + + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT - col1 * - + col1 / + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT - col1 * - + col1 / + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 = 80 + - 6
----

query I rowsort
SELECT ALL ( 46 ) + - col2 + col0 FROM tab2
----
63
69
70

query I rowsort
SELECT - 97 + + 35 * col1 + + 35 * - 84 AS col0 FROM tab1
----
-1392
-2547
-2862

query I rowsort
SELECT DISTINCT 99 + col0 AS col0 FROM tab1
----
150
184
190

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 43 AS col1 FROM tab2 cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - col1 - + 26 AS col0 FROM tab1 cor0
----
-31
-40
-73

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
20
20
20

query I rowsort
SELECT - 94 * 61 FROM tab1 AS cor0
----
-5734
-5734
-5734

query I rowsort
SELECT ALL + ( 41 ) * - + 20 FROM tab2 AS cor0
----
-820
-820
-820

query I rowsort
SELECT + + 56 * - - 96 + - + col1 AS col0 FROM tab2 cor0
----
5299
5309
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT 1 - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 1 - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col1 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + 15 * - + MIN( col1 ) AS col1 FROM tab2
----
-765

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + 15 * - + MIN ( col1 ) AS col1 FROM tab2
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT COUNT( + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT COUNT ( + col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + AVG ( ALL - col0 ) + 18 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT col2 DIV - - 5 FROM tab1
----
11
13
19

skipif mysql # not compatible
query I rowsort label-8062
SELECT col2 / - - 5 FROM tab1
----
11
13
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - col1
----
-3

skipif mysql # not compatible
query I rowsort label-8063
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - col1
----
-3

query I rowsort
SELECT DISTINCT + 42 * + col1 AS col0 FROM tab0 AS cor0
----
3402
42
882

onlyif mysql # DIV for integer division: 
query II rowsort label-8065
SELECT ALL - + 19 * + 81, 69 DIV col1 AS col0 FROM tab0 AS cor0
----
-1539
0
-1539
3
-1539
69

skipif mysql # not compatible
query II rowsort label-8065
SELECT ALL - + 19 * + 81, 69 / col1 AS col0 FROM tab0 AS cor0
----
-1539
0
-1539
3
-1539
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2 cor0
----
-13
-13
-13

query II rowsort
SELECT - 56 AS col0, - col1 FROM tab0 cor0
----
-56
-1
-56
-21
-56
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT col1 DIV - 4 AS col1 FROM tab0 AS cor0
----
-20
-5
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT col1 / - 4 AS col1 FROM tab0 AS cor0
----
-20
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT - SUM( + 73 ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - SUM ( + 73 ) FROM tab2 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT COUNT( * ) + - 55 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT COUNT ( * ) + - 55 FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8071
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - 32 + CAST( NULL AS SIGNED ) <> col0
----

skipif mysql # not compatible
query III rowsort label-8071
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - 32 + CAST ( NULL AS INTEGER ) <> col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - col2 * - 60 + + + col2 AS col0 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT DISTINCT - 85 + + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + - 13 AS col2 FROM tab1
----
46
55
83

query III rowsort
SELECT DISTINCT col2, col2 * + col2 + + 53 AS col1, 6 AS col0 FROM tab0
----
9 values hashing to 717c66e79c55efa698762465b446e2cf

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT + 40 DIV - col2 + + 79 FROM tab0
----
75
79
79

skipif mysql # not compatible
query I rowsort label-8078
SELECT + 40 / - col2 + + 79 FROM tab0
----
75
79
79

query II rowsort
SELECT DISTINCT - - col1, ( + col2 ) AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT + 77 + - + 86 FROM tab0 AS cor0 WHERE ( NOT + ( col1 ) > - col1 )
----

query I rowsort
SELECT + col1 * + + col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL MIN( ALL - 70 ) * + ( - - 14 ) AS col2 FROM tab1
----
-980

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL MIN ( ALL - 70 ) * + ( - - 14 ) AS col2 FROM tab1
----
-980

query I rowsort
SELECT + col0 * 76 - - col2 + - 55 FROM tab0
----
1132
6567
7416

query I rowsort
SELECT + col2 * - col0 FROM tab0 AS cor0 WHERE col2 * + - col2 * + 65 + + - 13 >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - SUM( ALL + 30 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8085
SELECT - SUM ( ALL + 30 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT DISTINCT col2 DIV - col2 - + + col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT col2 / - col2 - + + col2 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT DISTINCT + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT ALL + - 86 DIV - + COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + - 86 / - + COUNT ( * ) FROM tab0 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT CAST( + + col1 AS SIGNED ) - + col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) - + col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT DISTINCT - SUM( ALL + col2 ) col2, - COUNT( * ) FROM tab0 AS cor0
----
-156
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8090
SELECT DISTINCT - SUM ( ALL + col2 ) col2, - COUNT ( * ) FROM tab0 AS cor0
----
-156
-3

query II rowsort
SELECT col1 AS col1, col2 - + col0 - col1 AS col1 FROM tab0
----
1
1
21
-98
81
-49

query II rowsort
SELECT col0, col2 * + + col2 AS col2 FROM tab1
----
51
9216
85
3481
91
4624

query I rowsort
SELECT + 48 * + - 28 FROM tab0
----
-1344
-1344
-1344

query II rowsort
SELECT ALL 68 AS col2, 98 * + + col2 AS col1 FROM tab1
----
68
5782
68
6664
68
9408

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + col1 BETWEEN - + 94 / - 54 - + col2 AND - 91 / - col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 66 * + ( + - 51 ) AS col0 FROM tab1
----
-3366

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8097
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-8097
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + + col2 + - - col0 / + ( - + col2 ) / 97 * - + ( + 20 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT + COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8099
SELECT + COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + COUNT( * ) * - 42 AS col2 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-8100
SELECT + COUNT ( * ) * - 42 AS col2 FROM tab2
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT + COUNT( * ) + + - CAST( AVG ( ALL + + 71 ) AS SIGNED ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT + COUNT ( * ) + + - CAST ( AVG ( ALL + + 71 ) AS INTEGER ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > col2
----
NULL

query I rowsort
SELECT + 98 * + col1 AS col0 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - SUM( ALL col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - SUM ( ALL col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT - ( 70 ) AS col0 FROM tab2
----
-70
-70
-70

query I rowsort
SELECT col0 + col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * 37 BETWEEN col2 + col2 / 7 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col1 - 36 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( + 55 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + COUNT( * ) * - ( + MAX( ALL col0 ) ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + COUNT ( * ) * - ( + MAX ( ALL col0 ) ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT COUNT( ALL 99 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8111
SELECT COUNT ( ALL 99 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 * + col0 IN ( - 47 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 91 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( 18 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 78 - + col0 IN ( col0 / col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + 67 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( 21 ) * - 57
----

query I rowsort
SELECT - 58 - - 89 AS col2 FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + + 42 col0 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 31 * col1 > ( + col2 ) * col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - COUNT( * ) + 14 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - COUNT ( * ) + 14 FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE 83 < NULL
----

query I rowsort
SELECT ALL 49 - - 49 AS col1 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8126
SELECT DISTINCT COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT - + COUNT( * ) * - 94 col2 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8127
SELECT DISTINCT - + COUNT ( * ) * - 94 col2 FROM tab2 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT - ( - SUM( ALL + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - ( - SUM ( ALL + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 * col0 AS col1 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL - MIN( col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - MIN ( col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE CAST( - 84 AS SIGNED ) + - 7 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( - 84 AS INTEGER ) + - 7 < ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 61 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 AS col2 FROM tab2 WHERE NOT ( NULL ) <> col1 + - col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT DISTINCT + CAST( + + SUM( - 73 ) AS SIGNED ) AS col0 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + CAST ( + + SUM ( - 73 ) AS INTEGER ) AS col0 FROM tab2
----
-219

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT 29 <> + ( + 56 )
----

query I rowsort
SELECT ALL ( - 31 ) * + 1 AS col1 FROM tab1
----
-31
-31
-31

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col0 ) <> 43 + - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL COUNT( - 1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL COUNT ( - 1 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( ( 8 ) + 23 / ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * + 24 col0 FROM tab2
----
240
240
240

query I rowsort
SELECT - col2 * - col1 * - 45 FROM tab0
----
-171315
-4455
-9450

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT - COUNT( * ) * + - 51 AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8143
SELECT - COUNT ( * ) * + - 51 AS col0 FROM tab0 AS cor0
----
153

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + ( - col0 ) + 35 IN ( ( + col1 ) )
----

query I rowsort
SELECT DISTINCT 98 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query II rowsort
SELECT + col2 AS col0, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT COUNT( * ) * - 84 - 91 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-847

skipif mysql # not compatible
query I rowsort label-8149
SELECT COUNT ( * ) * - 84 - 91 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab1 cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL WHERE NOT 14 NOT BETWEEN NULL AND - 66
----
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1 cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL WHERE NOT 14 NOT BETWEEN NULL AND - 66
----
0

query I rowsort
SELECT ALL col1 * + col0 + - - col2 * - col1 FROM tab0 AS cor0
----
-2
-2592
1617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, + col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT col1 * 1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + - col2 AND 41
----
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + 34 * - COUNT( * ) FROM tab0 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 34 * - COUNT ( * ) FROM tab0 cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - 24 + + COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - 24 + + COUNT ( * ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 19 ) > NULL
----

query I rowsort
SELECT DISTINCT - 57 * - + col2 + - col2 * 64 FROM tab2 AS cor0
----
-161
-280
-406

query I rowsort
SELECT - col0 * - col2 + - col2 AS col2 FROM tab2
----
1035
2520
4292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8161
SELECT 67 DIV - 43 + + CAST( col2 AS SIGNED ) + + col1 AS col1 FROM tab1
----
109
114
63

skipif mysql # not compatible
query I rowsort label-8161
SELECT 67 / - 43 + + CAST ( col2 AS INTEGER ) + + col1 AS col1 FROM tab1
----
109
114
63

query I rowsort
SELECT DISTINCT + col1 + - ( + + 15 ) + - col0 - 12 * + 53 * 2 FROM tab1
----
-1324
-1331
-1367

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT ( 25 ) + - COUNT( * ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT ( 25 ) + - COUNT ( * ) AS col2 FROM tab0
----
22

query I rowsort
SELECT - 54 + - col0 AS col1 FROM tab1
----
-105
-139
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col2 * - 35 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 * - 35 BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT col0 * - 67 * + col0 DIV col0 + + 51 FROM tab2
----
-3031
-4237
-4974

skipif mysql # not compatible
query I rowsort label-8166
SELECT col0 * - 67 * + col0 / col0 + + 51 FROM tab2
----
-3031
-4237
-4974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 67 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT + 44 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + col2 + 99 * col1 ) BETWEEN + CAST( NULL AS SIGNED ) + - 1 * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 44 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + col2 + 99 * col1 ) BETWEEN + CAST ( NULL AS INTEGER ) + - 1 * - col1 AND NULL
----

query I rowsort
SELECT ALL col2 - - + col1 - col2 AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL NOT IN ( 96 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( 68 * - - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT DISTINCT 42 col0, + 61 * COUNT( DISTINCT - + col2 ) FROM tab2
----
42
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8173
SELECT DISTINCT 42 col0, + 61 * COUNT ( DISTINCT - + col2 ) FROM tab2
----
42
183

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 / 95 AND NULL
----

query I rowsort
SELECT ALL ( - 23 ) AS col2 FROM tab2 AS cor0
----
-23
-23
-23

query II rowsort
SELECT DISTINCT col1, - col2 + + col1 - + 4 AS col1 FROM tab1 cor0
----
14
-86
47
-25
5
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8178
SELECT - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT 70 AS col2, - col2 * - + 30 AS col2 FROM tab1
----
70
1770
70
2040
70
2880

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT col2 * - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT col2 * - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - 90 IN ( col1 )
----
-15
-87
-97

query II rowsort
SELECT DISTINCT col0, col2 + - + col0 FROM tab0
----
15
32
87
-77
97
2

query I rowsort
SELECT col1 + - - col0 FROM tab2 AS cor0 WHERE NOT + col0 + - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 - + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 col2, 99 - 96 FROM tab0 AS cor0
----
91
3
91
3
91
3

query II rowsort
SELECT ALL - col0 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 + + col2 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - col0 + - col0 - 96 FROM tab1
----
-184
-231
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8191
SELECT * FROM tab0 WHERE + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8191
SELECT * FROM tab0 WHERE + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT - COUNT( + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - COUNT ( + col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 * - col1 * ( - col1 ) FROM tab1 AS cor0
----
-103823
-125
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8195
SELECT + + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8196
SELECT - + COUNT( * ) * SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT - + COUNT ( * ) * SUM ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 98 * - col2 + col1 FROM tab2 AS cor0
----
-2203
-3843
-5617

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - - MIN( DISTINCT + ( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - - MIN ( DISTINCT + ( + col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT - - MAX( ALL + - 79 ) AS col1 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT - - MAX ( ALL + - 79 ) AS col1 FROM tab1 AS cor0
----
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <= 16
----

query I rowsort
SELECT ALL 47 - - col1 AS col2 FROM tab0
----
128
48
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8202
SELECT 99 * CAST( NULL AS DECIMAL ) - + - 39, + col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8202
SELECT 99 * CAST ( NULL AS REAL ) - + - 39, + col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - col2 / + 70 FROM tab2 WHERE - 55 IS NULL
----

query I rowsort
SELECT DISTINCT - 44 - col0 FROM tab2
----
-108
-119
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8205
SELECT ALL + 85 * + col0 * + CAST( NULL AS DECIMAL ) * - 53 + + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + 85 * + col0 * + CAST ( NULL AS REAL ) * - 53 + + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * + col2 + - col2 + + ( - 61 ) AS col0 FROM tab0
----
-21
127
335

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + col2 * + 77 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 2 * col0 * col0 FROM tab2 AS cor0
----
-11250
-4232
-8192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT 62 FROM tab1 WHERE NOT ( + col2 + + ( - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8212
SELECT + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col2 * - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col2 * - + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + MAX( - - 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + MAX ( - - 28 ) FROM tab0
----
28

query I rowsort
SELECT col0 * + 30 FROM tab2
----
1380
1920
2250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 col2, 42 FROM tab2
----
-9
42
-9
42
-9
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + MIN( DISTINCT 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + MIN ( DISTINCT 26 ) FROM tab1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 98 AS col1 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT DISTINCT ( 23 ) FROM tab0
----
23

query I rowsort
SELECT ALL + 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL COUNT( + - 26 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL COUNT ( + - 26 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col0 - - 76 FROM tab1 AS cor0
----
-15
-9
25

query I rowsort
SELECT ALL col2 + 6 AS col2 FROM tab2 AS cor0
----
29
46
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 = - col2
----

query I rowsort
SELECT - ( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND col1 * + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 55 * - col1 + ( + - col0 ) AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 55 * - col1 + ( + - col0 ) AND ( + col2 )
----
0

query I rowsort
SELECT ALL col0 + - 48 - - - col2 AS col1 FROM tab1 AS cor0
----
-22
-25
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT - 86 + - + 89 - + - COUNT( * ) FROM tab0 cor0
----
-172

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 86 + - + 89 - + - COUNT ( * ) FROM tab0 cor0
----
-172

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( + 92 )
----

query I rowsort
SELECT ALL + 43 * - col0 AS col1 FROM tab1
----
-2193
-3655
-3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - - col0 col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL CAST( - 91 AS SIGNED ) + 27 * 29 AS col2 FROM tab2
----
692
692
692

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL CAST ( - 91 AS INTEGER ) + 27 * 29 AS col2 FROM tab2
----
692
692
692

query I rowsort
SELECT DISTINCT - col0 + + 12 FROM tab2
----
-34
-52
-63

query I rowsort
SELECT ALL col1 + + 62 * ( col2 ) * - ( - col0 ) AS col1 FROM tab2
----
158797
269767
65647

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT COUNT( * ) * - COUNT( DISTINCT + - col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8237
SELECT COUNT ( * ) * - COUNT ( DISTINCT + - col0 ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT - 34 * - 42 + + col1 DIV - + 50 AS col0 FROM tab1 AS cor0
----
1428

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - 34 * - 42 + + col1 / - + 50 AS col0 FROM tab1 AS cor0
----
1428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col1 col2 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - 45 * + 87 AS col0 FROM tab0 AS cor0
----
-3915
-3915
-3915

query I rowsort
SELECT + col1 * - - 34 FROM tab1
----
1598
170
476

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 62 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT MAX( DISTINCT - 51 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT MAX ( DISTINCT - 51 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 29 * + + 52 FROM tab2
----
1508
1508
1508

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 79 + + - col1 = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 67 / - + col1 * 54 + + col2 + 40 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 67 / - + col1 * 54 + + col2 + 40 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL - CAST( NULL AS SIGNED ) * - 66 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - CAST ( NULL AS INTEGER ) * - 66 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + MIN( DISTINCT - 41 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8250
SELECT + MIN ( DISTINCT - 41 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-41

query I rowsort
SELECT + col1 + - - ( - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 < - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 col2, col2 FROM tab2 AS cor0
----
-33
23
-33
40
-33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8255
SELECT + COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < NULL OR NULL NOT BETWEEN - ( col2 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT + col1 * col0 + + + 29 DIV - 50 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8257
SELECT + col1 * col0 + + + 29 / - 50 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 43 * - col2 * + col0 FROM tab2 AS cor0
----
110080
187050
45494

query I rowsort
SELECT + col0 * - - col1 - + + col0 AS col0 FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT ALL col2 + - + col2 + col1 DIV 80 DIV col1 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT ALL col2 + - + col2 + col1 / 80 / col1 col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL 3 * - - 48 * col2 * col0 + - - col0 FROM tab0 AS cor0
----
101535
125367
1382929

onlyif mysql # DIV for integer division: 
query II rowsort label-8265
SELECT - col1 AS col2, 89 + - ( + + 33 ) DIV + - col1 AS col1 FROM tab0 AS cor0
----
-1
122
-21
90
-81
89

skipif mysql # not compatible
query II rowsort label-8265
SELECT - col1 AS col2, 89 + - ( + + 33 ) / + - col1 AS col1 FROM tab0 AS cor0
----
-1
122
-21
90
-81
89

query I rowsort
SELECT ALL + + AVG ( ALL + + col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1, - col0 + - + col1 * + - col0, - col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + ( + MAX( - 25 ) ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8268
SELECT + ( + MAX ( - 25 ) ) AS col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL - ( + + 31 ) FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL - col2 * 16 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT + 45 * + COUNT( * ) + - 7 AS col2 FROM tab0 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-8271
SELECT + 45 * + COUNT ( * ) + - 7 AS col2 FROM tab0 AS cor0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8272
SELECT DISTINCT + + col1 * + + col2 AS col1, col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-8272
SELECT DISTINCT + + col1 * + + col2 AS col1, col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT DISTINCT - MIN( - - col0 ) DIV - 60 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - MIN ( - - col0 ) / - 60 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 7 * + col2 AS col0 FROM tab2 AS cor0
----
161
280
406

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( col1 + + 76 / - 31 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + - SUM( + - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8276
SELECT + - SUM ( + - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + - col0 * + - 40 AS col2 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL COUNT( * ) * - COUNT( * ) + + 21 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 21 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1, tab2 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 6 IS NOT NULL
----

query I rowsort
SELECT ALL ( 90 ) FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + COUNT( * ) + COUNT( ALL + col0 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8282
SELECT + COUNT ( * ) + COUNT ( ALL + col0 ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT 21 + + - COUNT( * ) * SUM( ALL - 94 ) FROM tab0 WHERE NOT ( ( NULL ) >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT 21 + + - COUNT ( * ) * SUM ( ALL - 94 ) FROM tab0 WHERE NOT ( ( NULL ) >= NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT ( AVG ( + - CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE + 64 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT ( AVG ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE + 64 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8285
SELECT DISTINCT ( - MAX( ALL + - col0 ) ) + CAST( NULL AS SIGNED ) AS col1, 60 FROM tab1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-8285
SELECT DISTINCT ( - MAX ( ALL + - col0 ) ) + CAST ( NULL AS INTEGER ) AS col1, 60 FROM tab1
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + COUNT( * ) + 56 AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8286
SELECT + COUNT ( * ) + 56 AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8287
SELECT 28 + CAST( NULL AS SIGNED ) AS col0, + ( + col0 ) DIV + 24 AS col1 FROM tab1 AS cor0
----
NULL
2
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-8287
SELECT 28 + CAST ( NULL AS INTEGER ) AS col0, + ( + col0 ) / + 24 AS col1 FROM tab1 AS cor0
----
NULL
2
NULL
3
NULL
3

query I rowsort
SELECT DISTINCT + 99 - 63 AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT 69 * - col1 - col1 FROM tab2 AS cor0
----
-3570
-4690
-5390

query I rowsort
SELECT + col0 * 95 + + col2 FROM tab2 AS cor0
----
4393
6120
7183

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT 23 * col2 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT - col1 * + + col0 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT COUNT( * ), 35 AS col2 FROM tab2
----
3
35

skipif mysql # not compatible
query II rowsort label-8294
SELECT COUNT ( * ), 35 AS col2 FROM tab2
----
3
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + CAST( col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 84 * + + 59 AS col1 FROM tab1
----
4956
4956
4956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8297
SELECT ALL - 23 AS col1, - CAST( ( col1 ) AS SIGNED ) * + col1 + 89 + col1 AS col0 FROM tab0
----
-23
-331
-23
-6391
-23
89

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL - 23 AS col1, - CAST ( ( col1 ) AS INTEGER ) * + col1 + 89 + col1 AS col0 FROM tab0
----
-23
-331
-23
-6391
-23
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + col0 > NULL
----

query I rowsort
SELECT + - 4 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - ( + - 3 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT ALL - 29 DIV - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - 29 / - - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + 24 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

query II rowsort
SELECT ALL + ( ( + 28 ) ) * col0 AS col1, + ( - + 56 ) * - col1 FROM tab0 AS cor0
----
2436
1176
2716
56
420
4536

query I rowsort
SELECT ALL ( - - 16 ) FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT 91 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-8305
SELECT 91 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
273

query II rowsort
SELECT - 99 AS col2, - 29 FROM tab1 AS cor0
----
-99
-29
-99
-29
-99
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8307
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - SUM( DISTINCT + - 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8308
SELECT - SUM ( DISTINCT + - 6 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + SUM( + + 12 ) col2 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8309
SELECT + SUM ( + + 12 ) col2 FROM tab2
----
36

query I rowsort
SELECT DISTINCT col2 * col1 + - 15 * col0 AS col2 FROM tab1
----
-980
1831
579

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8311
SELECT SUM ( col1 ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8312
SELECT * FROM tab2 WHERE NULL <> - CAST( NULL AS SIGNED ) * - + col0
----

skipif mysql # not compatible
query III rowsort label-8312
SELECT * FROM tab2 WHERE NULL <> - CAST ( NULL AS INTEGER ) * - + col0
----

query I rowsort
SELECT ( - 25 ) FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT 50 * + col2 + - + col2 + CAST( NULL AS SIGNED ) * - - col2 + - 73 + - + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT 50 * + col2 + - + col2 + CAST ( NULL AS INTEGER ) * - - col2 + - 73 + - + col0 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 18 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 14 * - 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * - 61 + + col1 + + + 27 col2 FROM tab2 cor0
----
-5630
-5640
-5656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT + ( + 73 ) + 40 - CAST( - - col2 AS SIGNED ) * - + col2 FROM tab2 cor0
----
1713
3477
642

skipif mysql # not compatible
query I rowsort label-8318
SELECT + ( + 73 ) + 40 - CAST ( - - col2 AS INTEGER ) * - + col2 FROM tab2 cor0
----
1713
3477
642

query II rowsort
SELECT DISTINCT col1, + 21 FROM tab0 AS cor0 WHERE NOT col0 + - 76 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT + 33 * + - CAST( NULL AS SIGNED ) + - col2 + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 33 * + - CAST ( NULL AS INTEGER ) + - col2 + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE 46 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 col0 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - COUNT( ALL col2 ) * COUNT( * ) + + - 0 * - 4 - - - 57 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COUNT ( ALL col2 ) * COUNT ( * ) + + - 0 * - 4 - - - 57 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL ( + ( + COUNT( * ) ) ) - 40 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL ( + ( + COUNT ( * ) ) ) - 40 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT 30 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 62 * + + col2 FROM tab0 cor0
----
2914
6138
620

query II rowsort
SELECT + col0 - + col1 + + + col0 AS col2, col2 * col0 * + 71 FROM tab1 AS cor0
----
135
439348
165
356065
88
347616

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL + - SUM( ALL + 5 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + - SUM ( ALL + 5 ) AS col0 FROM tab1 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col0, - 92 FROM tab0 AS cor0
----
1
-92
21
-92
81
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL 5 - + ( COUNT( * ) ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL 5 - + ( COUNT ( * ) ) FROM tab0 AS cor0
----
2

query II rowsort
SELECT ALL + - 12 AS col0, col0 * + col2 AS col0 FROM tab2 AS cor0
----
-12
1058
-12
2560
-12
4350

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT + 84 * + COUNT( * ) DIV COUNT( * ) col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8333
SELECT + 84 * + COUNT ( * ) / COUNT ( * ) col0 FROM tab2 AS cor0
----
84

query II rowsort
SELECT col0, - col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT + SUM( DISTINCT - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + SUM ( DISTINCT - + col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 43 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 89 col1 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL COUNT( ALL + + col2 ) + + MAX( DISTINCT - - col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL COUNT ( ALL + + col2 ) + + MAX ( DISTINCT - - col1 ) FROM tab0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + col0 * + - 35 - 78 * - + col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 91 * - - col2 FROM tab0 AS cor0
----
-4277
-9009
-910

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8342
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8342
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - col2 IS NULL
----

query II rowsort
SELECT ALL col1 AS col1, 12 FROM tab0 AS cor0
----
1
12
21
12
81
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 35
----

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab1 AS cor0 WHERE 76 + + col0 IS NOT NULL
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= + 20
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 65 + + col1 FROM tab0
----
146
66
86

query III rowsort
SELECT * FROM tab1 WHERE ( - 9 - 96 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL col2 + 91 + + + 41 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL col2 + 91 + + + 41 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - ( col2 ) * 34 + col2 AS col0 FROM tab2 AS cor0
----
-114318
-17963
-54360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) >= 71 * + - 38
----

query II rowsort
SELECT DISTINCT - 95 + + - col2, col2 AS col1 FROM tab2 AS cor0
----
-118
23
-135
40
-153
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL - CAST( NULL AS SIGNED ) * + + ( - col1 ) * 93 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8354
SELECT ALL - CAST ( NULL AS INTEGER ) * + + ( - col1 ) * 93 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 * col0 col0, + ( - col2 ) * - ( 9 ) FROM tab2 AS cor0
----
138
207
192
360
225
522

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL 58 * + COUNT( ALL col0 ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL 58 * + COUNT ( ALL col0 ) AS col0 FROM tab1
----
174

query I rowsort
SELECT - 71 + + 39 FROM tab0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - COUNT( * ) * + - 9 + + COUNT( * ) FROM tab0, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8358
SELECT - COUNT ( * ) * + - 9 + + COUNT ( * ) FROM tab0, tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT + AVG ( 30 ) * + + 90 + ( ( - MIN( ALL col2 ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT + AVG ( 30 ) * + + 90 + ( ( - MIN ( ALL col2 ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + 9 col1 FROM tab1 AS cor0 WHERE NOT col1 * - 61 IS NULL
----
49
49
49

query I rowsort
SELECT + col0 * - col1 * - 75 AS col1 FROM tab2
----
175950
369600
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT col2 DIV 19 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8362
SELECT col2 / 19 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 15 col0 FROM tab2
----
-1005
-1155
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-8364
SELECT col2 AS col1, - col2 DIV - col0 AS col0 FROM tab1
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-8364
SELECT col2 AS col1, - col2 / - col0 AS col0 FROM tab1
----
59
0
68
0
96
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8365
SELECT ALL - 89 AS col2, MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-8365
SELECT ALL - 89 AS col2, MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - - MIN( ALL col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT - - MIN ( ALL col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0 + + col2 + 94 + - col0 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - - col0 = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT + ( SUM( ALL + col1 ) ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + ( SUM ( ALL + col1 ) ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col0 ) + + col2 + + col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + col0 + - col0 * + - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8374
SELECT + col0 + - col0 * + - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT col0 * + + 60 + - + col1 FROM tab0 AS cor0
----
5199
5819
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + col0 * + - col1 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT SUM( + col1 ) * 30 + - COUNT( - - ( + col0 ) ) + 98 AS col2 FROM tab1
----
2075

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT SUM ( + col1 ) * 30 + - COUNT ( - - ( + col0 ) ) + 98 AS col2 FROM tab1
----
2075

query I rowsort
SELECT ALL + col1 + + 73 + - - col1 FROM tab1
----
101
167
83

query III rowsort
SELECT * FROM tab1 WHERE ( - 27 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - - 25 FROM tab1
----
-26
-60
-66

query I rowsort
SELECT ALL - 14 + + 62 + + - ( - 28 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT 34 + - + col1 DIV - 13 AS col2 FROM tab2
----
37
39

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT 34 + - + col1 / - 13 AS col2 FROM tab2
----
37
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col1 col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL MIN( - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL MIN ( - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - ( - SUM( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - ( - SUM ( col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL - MIN( 90 ) AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - MIN ( 90 ) AS col2 FROM tab2
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-8390
SELECT - + col1, col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-8390
SELECT - + col1, col1 / + col1 AS col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

query I rowsort
SELECT ALL - 7 * + col2 - col0 AS col0 FROM tab1 AS cor0
----
-498
-567
-723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8392
SELECT ALL + - 33 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + - 33 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-11

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> ( - ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + SUM( + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-8394
SELECT + SUM ( + col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8395
SELECT DISTINCT - COUNT( * ) DIV 96 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT DISTINCT - COUNT ( * ) / 96 col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT col1 * - 81 FROM tab2 AS cor0
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + MIN( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-8398
SELECT + MIN ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col2 * col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT MIN( DISTINCT + col1 ) DIV + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT MIN ( DISTINCT + col1 ) / + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 84 * col0 FROM tab1
----
4284
7140
7644

query I rowsort
SELECT - 28 FROM tab1 WHERE NOT col2 * 79 + - - col1 + col1 > - col0 * col2
----

query II rowsort
SELECT + col0 * - + col1 AS col0, + 10 FROM tab1
----
-425
10
-4277
10
-714
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( 37 ) * + col1 col2 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT + MAX( col1 ) AS col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8406
SELECT + MAX ( col1 ) AS col1 FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - - col2 + - col0 NOT IN ( - col2 + + - col2, col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8408
SELECT ALL 59 DIV MIN( ALL col1 ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL 59 / MIN ( ALL col1 ) AS col1 FROM tab1
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8409
SELECT ALL col2 + col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL col2 + col0 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 51 col1, + col1 AS col1 FROM tab0 AS cor0
----
51
1
51
21
51
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT col0 DIV col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT col0 / col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL COUNT( * ) + + - COUNT( * ) + - MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL COUNT ( * ) + + - COUNT ( * ) + - MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8415
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 66 ) NOT BETWEEN - CAST( + 16 AS DECIMAL ) AND - 15
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 66 ) NOT BETWEEN - CAST ( + 16 AS REAL ) AND - 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8416
SELECT DISTINCT 45 / col1 + + col1 + + CAST( NULL AS SIGNED ) - - - col0 / col2, col1 FROM tab2 WHERE 85 IS NULL
----

skipif mysql # not compatible
query II rowsort label-8416
SELECT DISTINCT 45 / col1 + + col1 + + CAST ( NULL AS INTEGER ) - - - col0 / col2, col1 FROM tab2 WHERE 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL COUNT( * ) * + COUNT( * ) - - - 56 + - 47 AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL COUNT ( * ) * + COUNT ( * ) - - - 56 + - 47 AS col1 FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8418
SELECT col2 DIV - CAST( 89 AS SIGNED ) + - col1 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8418
SELECT col2 / - CAST ( 89 AS INTEGER ) + - col1 AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE + col1 + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + col2 * + col2 + - - col0 FROM tab0
----
178944
2187
9898

onlyif mysql # DIV for integer division: 
query II rowsort label-8421
SELECT DISTINCT + ( - col1 ) DIV - 43 + - 4, + col2 FROM tab1
----
-3
68
-4
59
-4
96

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT + ( - col1 ) / - 43 + - 4, + col2 FROM tab1
----
-3
68
-4
59
-4
96

query I rowsort
SELECT DISTINCT col2 + - + col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * col2 - - 39 FROM tab2
----
-1561
-3325
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL - CAST( 36 AS SIGNED ) + - - MAX( DISTINCT col2 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - CAST ( 36 AS INTEGER ) + - - MAX ( DISTINCT col2 ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + SUM( + 43 ) * 77 FROM tab2 WHERE - 49 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT + SUM ( + 43 ) * 77 FROM tab2 WHERE - 49 >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN NULL AND - - 80
----

query I rowsort
SELECT - + 91 - - - 94 FROM tab2 AS cor0
----
-185
-185
-185

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - + ( + - 96 ) NOT BETWEEN NULL AND + 92
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT - ( - col2 ) DIV - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT - ( - col2 ) / - col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT DISTINCT - + col1 * + col2 * + col1 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT ALL 19 DIV + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL 19 / + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT + 50 * - + COUNT( * ) col2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8433
SELECT DISTINCT + 50 * - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-8434
SELECT DISTINCT + 22 AS col2, + MIN( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, 57, + 67 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8434
SELECT DISTINCT + 22 AS col2, + MIN ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, 57, + 67 )
----
22
NULL

query I rowsort
SELECT ALL + col0 * col0 * 65 - - + col1 AS col0 FROM tab0 AS cor0
----
14706
492006
611586

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT + - MIN( + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + - MIN ( + - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-8437
SELECT ALL col2, ( - 5 ) - col0 + col0 DIV - col1 FROM tab1
----
59
-107
68
-97
96
-59

skipif mysql # not compatible
query II rowsort label-8437
SELECT ALL col2, ( - 5 ) - col0 + col0 / - col1 FROM tab1
----
59
-107
68
-97
96
-59

query I rowsort
SELECT 74 * - + ( - + 63 ) * + + 81 FROM tab2
----
377622
377622
377622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT + + ( ( - + 47 ) ) * + ( - col1 ) + col2 * + 55 + - 24 + - 49 AS col0 FROM tab2 WHERE NOT + 79 IS NULL
----
3589
5746
6266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 AS col1, col1 col1 FROM tab0
----
13
1
13
21
13
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + col2 IS NOT NULL
----

query I rowsort
SELECT ( 79 ) * 63 FROM tab0
----
4977
4977
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT 23 * - SUM( col2 ) FROM tab1
----
-5129

skipif mysql # not compatible
query I rowsort label-8444
SELECT 23 * - SUM ( col2 ) FROM tab1
----
-5129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8445
SELECT DISTINCT 96 * COUNT( * ) * + + 60 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT 96 * COUNT ( * ) * + + 60 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 9 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 ) AND + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 ) AND + col0 * col0
----
0

query I rowsort
SELECT DISTINCT 28 * + col0 + + + col2 FROM tab1 AS cor0
----
1524
2439
2616

query II rowsort
SELECT ALL + - col2 AS col2, 7 FROM tab1 AS cor0
----
-59
7
-68
7
-96
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT ALL col2 * + col1 + 1 - + col1 - + + ( - + col0 ) + + 15 DIV col1 * + + 30 * col2 + + - 84 AS col1 FROM tab2 AS cor0
----
1085
2984
3811

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL col2 * + col1 + 1 - + col1 - + + ( - + col0 ) + + 15 / col1 * + + 30 * col2 + + - 84 AS col1 FROM tab2 AS cor0
----
1085
2984
3811

query I rowsort
SELECT ALL - 73 + - col1 FROM tab1
----
-120
-78
-87

query I rowsort
SELECT + 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + col0 + - 93 AS col2 FROM tab2 AS cor0
----
-18
-29
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
91
91
91

query I rowsort
SELECT DISTINCT - col0 + + + 22 * - col2 FROM tab2 AS cor0
----
-1351
-552
-944

query I rowsort
SELECT ALL + ( + 97 ) AS col1 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - 68 + - 97 AS col2 FROM tab1
----
-165
-165
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + COUNT( * ) - 75 AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8459
SELECT + COUNT ( * ) - 75 AS col0 FROM tab1
----
-72

query II rowsort
SELECT DISTINCT + col0 + + col2 / + 8, 4 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL - MAX( + col0 ) col0 FROM tab1 WHERE + + col1 * col2 IS NOT NULL
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8461
SELECT ALL - MAX ( + col0 ) col0 FROM tab1 WHERE + + col1 * col2 IS NOT NULL
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 37 ) col0 FROM tab2 WHERE NULL > - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT + MAX( ALL col0 ) FROM tab0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab0 WHERE NULL IS NULL
----
97

query I rowsort
SELECT col1 * - 16 * - col0 * + 46 * col1 + - 92 - - + 45 AS col0 FROM tab1 AS cor0
----
147949937
1563953
7357009

query I rowsort
SELECT DISTINCT + col2 - - 82 + - + ( + 63 ) + - - col2 - - 19 FROM tab2 AS cor0
----
118
154
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT - col2 + + + 46 DIV + 25 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8466
SELECT - col2 + + + 46 / + 25 FROM tab2 AS cor0
----
-22
-39
-57

query II rowsort
SELECT DISTINCT + col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + ( + 70 ) FROM tab1 AS cor0
----
70

query I rowsort
SELECT - 99 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT - + 54 * - - 49 DIV 7 * - 2 + + 50 FROM tab2 AS cor0
----
806
806
806

skipif mysql # not compatible
query I rowsort label-8470
SELECT - + 54 * - - 49 / 7 * - 2 + + 50 FROM tab2 AS cor0
----
806
806
806

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 * 93 + - col1 - col0 NOT BETWEEN NULL AND + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col0 + + col2 * - col0 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + + SUM( - - 92 ) AS col1 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8473
SELECT + + SUM ( - - 92 ) AS col1 FROM tab2 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - + SUM( + ( - 64 ) ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8474
SELECT - + SUM ( + ( - 64 ) ) FROM tab2 AS cor0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL + CAST( MAX( ALL + - ( + col0 ) ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8475
SELECT ALL + CAST ( MAX ( ALL + - ( + col0 ) ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT - MAX( DISTINCT - 98 ), MIN( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
98
10

skipif mysql # not compatible
query II rowsort label-8476
SELECT - MAX ( DISTINCT - 98 ), MIN ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
98
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL - + COUNT( - - col2 ) + 37 + - COUNT( DISTINCT + ( + col1 ) ) + COUNT( * ) col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT ALL - + COUNT ( - - col2 ) + 37 + - COUNT ( DISTINCT + ( + col1 ) ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 29 * - 68 + - 55 <> - col2
----

query II rowsort
SELECT col0 AS col1, - col1 AS col2 FROM tab1
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 66 NOT BETWEEN - col2 AND - 92 * 84
----

query I rowsort
SELECT DISTINCT - 40 * + + 16 FROM tab0
----
-640

query I rowsort
SELECT + col1 * col0 + + col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + - 6 + - ( + COUNT( * ) ) * ( - COUNT( * ) ) * + 59 FROM tab1 cor0
----
525

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + - 6 + - ( + COUNT ( * ) ) * ( - COUNT ( * ) ) * + 59 FROM tab1 cor0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT - - MAX( DISTINCT 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-8484
SELECT - - MAX ( DISTINCT 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0, col2 * - col1, + - 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - - col1 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + - col2 IS NOT NULL AND NULL <= + 59 * 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT - col2 * col2 + col0 + + col2 + + col0 DIV - 83 AS col0 FROM tab2 AS cor0
----
-1496
-3231
-460

skipif mysql # not compatible
query I rowsort label-8488
SELECT - col2 * col2 + col0 + + col2 + + col0 / - 83 AS col0 FROM tab2 AS cor0
----
-1496
-3231
-460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL - + CAST( NULL AS SIGNED ) / + col2 + + + ( + col0 ) + - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - + CAST ( NULL AS INTEGER ) / + col2 + + + ( + col0 ) + - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 82 AS col1 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - + SUM( DISTINCT 91 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - + SUM ( DISTINCT 91 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8492
SELECT + CAST( NULL AS SIGNED ) / MIN( - + 16 ) + + 72 * + - 74 / + + 95 AS col1, 97 FROM tab0 AS cor0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8492
SELECT + CAST ( NULL AS INTEGER ) / MIN ( - + 16 ) + + 72 * + - 74 / + + 95 AS col1, 97 FROM tab0 AS cor0
----
NULL
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - 83 + ( + + MIN( ALL 27 ) ) AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8494
SELECT - 83 + ( + + MIN ( ALL 27 ) ) AS col1 FROM tab0 AS cor0
----
-56

query II rowsort
SELECT DISTINCT - col0 + col2, - 49 AS col2 FROM tab0
----
-77
-49
2
-49
32
-49

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8496
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-8496
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT MIN( ALL + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8497
SELECT MIN ( ALL + col1 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT - ( - 39 ) FROM tab1
----
39
39
39

query I rowsort
SELECT ALL + ( + - 67 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT COUNT( * ), - COUNT( * ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8500
SELECT COUNT ( * ), - COUNT ( * ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 32 * + + col1 IS NULL
----

query II rowsort
SELECT ALL + col1, - 28 AS col0 FROM tab0 AS cor0
----
1
-28
21
-28
81
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL 69 * + - col0 * - + col0 * + + 42 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL 69 * + - col0 * - + col0 * + + 42 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + MAX( 63 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8504
SELECT + MAX ( 63 ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - col1 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT + 54 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
1196
2096
3057

query I rowsort
SELECT ALL + col0 * + col1 + - + 52 AS col0 FROM tab2
----
2294
4876
4973

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL 75 + - MIN( ALL - 20 ) AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL 75 + - MIN ( ALL - 20 ) AS col1 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - - col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - 23 + - col2 AS col0 FROM tab0 AS cor0
----
-122
-33
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + 33 + - COUNT( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8511
SELECT + 33 + - COUNT ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT 1 + + col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT + COUNT( * ) col0, + 9 AS col2 FROM tab2
----
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8513
SELECT + COUNT ( * ) col0, + 9 AS col2 FROM tab2
----
3
9

query I rowsort
SELECT col1 * - 98 * + col2 FROM tab2 cor0
----
-114954
-301840
-380828

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - col0
----

query I rowsort
SELECT 45 - - - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-22
-32
-6

query I rowsort
SELECT DISTINCT - + col0 * - col1 + - col2 + - 67 AS col0 FROM tab0 AS cor0
----
-69
1101
1750

query I rowsort
SELECT - 89 * - col2 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT ALL + 18 * - 13 * + + 76 AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-17784
3

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL + 18 * - 13 * + + 76 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-17784
3

query I rowsort
SELECT DISTINCT 64 - 52 + - ( - col0 ) FROM tab0 AS cor0
----
109
27
99

query I rowsort
SELECT - col1 - + col1 * 89 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT 17 - - - 84 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - - col2 - - col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) + - - ( + 75 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - - ( + 75 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT - COUNT( * ) - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT - COUNT ( * ) - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + ( - col0 ) - - - 26 FROM tab2
----
-101
-72
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT - 33 DIV col1 FROM tab0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 33 / col1 FROM tab0
----
-1
-33
0

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT DISTINCT + 46 DIV col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + 46 / col0 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - CAST( NULL AS SIGNED ) * 57 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT - CAST ( NULL AS INTEGER ) * 57 * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + 76 ) * + - col0 * - + col1 * + - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 AS col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT 62, 16 AS col0 FROM tab2 AS cor0
----
62
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT + MIN( + col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + MIN ( + col0 ) AS col2 FROM tab0 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 32 AS col2 FROM tab1 AS cor0
----
-51
32
-85
32
-91
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + - ( col0 ) * - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT - col2 DIV - col0 + - - 54 AS col1 FROM tab1 AS cor0
----
54
54
55

skipif mysql # not compatible
query I rowsort label-8538
SELECT - col2 / - col0 + - - 54 AS col1 FROM tab1 AS cor0
----
54
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 / - + col1 * - + 98 + ( + 91 ) AND ( + - col0 * - - col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 * + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 * + + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - COUNT( * ) FROM tab0 WHERE col1 + + + col0 + + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT - COUNT ( * ) FROM tab0 WHERE col1 + + + col0 + + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - 73 + + - COUNT( * ) AS col2 FROM tab2 WHERE - - col0 IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-8542
SELECT - 73 + + - COUNT ( * ) AS col2 FROM tab2 WHERE - - col0 IS NULL
----
-73

query I rowsort
SELECT - col2 * - col2 + + ( 68 ) FROM tab1
----
3549
4692
9284

query III rowsort
SELECT ALL * FROM tab0 WHERE + 17 * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT + 13 + - + COUNT( * ) + + + 18 col0 FROM tab0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8545
SELECT DISTINCT + 13 + - + COUNT ( * ) + + + 18 col0 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8546
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8547
SELECT CAST( NULL AS DECIMAL ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8547
SELECT CAST ( NULL AS REAL ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( 82 * col0 / col2 / col1 * + col0 + col1 + col0 + + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8549
SELECT ALL - col1, ( + + 11 ) + + + 5 DIV - 44 col1 FROM tab2 AS cor0
----
-51
11
-67
11
-77
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8549
SELECT ALL - col1, ( + + 11 ) + + + 5 / - 44 col1 FROM tab2 AS cor0
----
-51
11
-67
11
-77
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + + MIN( - - 79 ) FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + + MIN ( - - 79 ) FROM tab0 cor0
----
79

query I rowsort
SELECT + col1 + + col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT MAX( DISTINCT col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT - COUNT( * ) * MAX( ALL + col0 ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT - COUNT ( * ) * MAX ( ALL + col0 ) AS col2 FROM tab0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT - 56 DIV col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 56 / col0 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT + col2 DIV 50 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8555
SELECT + col2 / 50 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT + col0 DIV - 72 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT + col0 / - 72 AS col2 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT COUNT( * ) DIV MIN( 56 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT COUNT ( * ) / MIN ( 56 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT + 57 DIV COUNT( * ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8558
SELECT + 57 / COUNT ( * ) AS col0 FROM tab2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT col1 DIV - 58 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT col1 / - 58 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8560
SELECT - 46 DIV + COUNT( * ) col0 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT - 46 / + COUNT ( * ) col0 FROM tab1
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1 * + 12 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT SUM( ALL - col0 ) DIV + 85 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT SUM ( ALL - col0 ) / + 85 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL - col2 * CAST( 9 AS SIGNED ) AS col2 FROM tab0
----
-423
-891
-90

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - col2 * CAST ( 9 AS INTEGER ) AS col2 FROM tab0
----
-423
-891
-90

query I rowsort
SELECT 2 * + 94 FROM tab1
----
188
188
188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 + col1 AND - col1
----

query I rowsort
SELECT 14 * - 52 FROM tab1
----
-728
-728
-728

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( col2 + + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - SUM( DISTINCT + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8570
SELECT - SUM ( DISTINCT + col1 ) FROM tab1
----
-66

query I rowsort
SELECT col2 + 34 FROM tab0
----
133
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + COUNT( col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8572
SELECT + COUNT ( col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT + MIN( DISTINCT - 72 ) col0 FROM tab0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8573
SELECT + MIN ( DISTINCT - 72 ) col0 FROM tab0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT - CAST( 84 AS SIGNED ) FROM tab1
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8574
SELECT - CAST ( 84 AS INTEGER ) FROM tab1
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL 28 * col2 AS col1 FROM tab1 WHERE col0 < - col1 + - ( col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - COUNT( DISTINCT 8 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8577
SELECT - COUNT ( DISTINCT 8 ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab0 WHERE ( + col1 ) BETWEEN 74 * + col2 AND ( + col2 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL < ( + 21 + col0 )
----

query I rowsort
SELECT ALL 31 * + col0 AS col2 FROM tab2 AS cor0
----
1426
1984
2325

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) <= col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 95 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT COUNT( * ) * + MIN( col2 ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8583
SELECT COUNT ( * ) * + MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col1 FROM tab1 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 WHERE 13 NOT BETWEEN ( NULL ) AND ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 WHERE 13 NOT BETWEEN ( NULL ) AND ( 95 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT 65 DIV col2 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT 65 / col2 AS col2 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL ( - CAST( 28 AS SIGNED ) ) AS col0 FROM tab1 WHERE ( + ( 77 ) - col1 ) NOT BETWEEN ( - col2 ) AND - col2 * ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL ( - CAST ( 28 AS INTEGER ) ) AS col0 FROM tab1 WHERE ( + ( 77 ) - col1 ) NOT BETWEEN ( - col2 ) AND - col2 * ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT + 1 * - COUNT( DISTINCT col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT + 1 * - COUNT ( DISTINCT col1 ) FROM tab0
----
-3

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL < - 34 / - col0 + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <> - 99
----

skipif mysql # not compatible
query I rowsort label-8591
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <> - 99
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> + 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT - - 52 DIV - col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-8593
SELECT - - 52 / - col1 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE col1 IN ( 44 * - 17 + ( - 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT + MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE col1 IN ( 44 * - 17 + ( - 16 ) )
----
NULL

query I rowsort
SELECT ALL + 72 * + col1 AS col1 FROM tab0 AS cor0
----
1512
5832
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 26 col0 FROM tab2 cor0
----
1326
1742
2002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + col2 ) ) = NULL
----

query I rowsort
SELECT + col2 * - 71 FROM tab1 AS cor0
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT - MIN( col2 ) * 34 col1 FROM tab0 AS cor0
----
-340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT - MIN ( col2 ) * 34 col1 FROM tab0 AS cor0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + + COUNT( - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8600
SELECT + + COUNT ( - col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL + - CAST( NULL AS SIGNED ) 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-8601
SELECT ALL + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT 42 FROM tab2 WHERE + col1 - - CAST( NULL AS SIGNED ) IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT 42 FROM tab2 WHERE + col1 - - CAST ( NULL AS INTEGER ) IS NULL
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + - ( + col2 ) + 73 FROM tab1 AS cor0
----
-23
14
5

query I rowsort
SELECT - - 93 + - + 17 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL + 54 * - col1 AS col0 FROM tab0 AS cor0
----
-1134
-4374
-54

query I rowsort
SELECT + 58 + - 81 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT col1 + col2 * + - 74 + + ( + col1 ) AS col2 FROM tab2
----
-1600
-2806
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - - MAX( - + col2 ) * - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - - MAX ( - + col2 ) * - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col1
----

query I rowsort
SELECT DISTINCT - ( 67 ) FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - + COUNT( ALL + 61 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8615
SELECT - + COUNT ( ALL + 61 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - col2 AS col2, - col2 AS col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 17 col0 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0 )
----
22
31
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 6 * col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + 52 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT ALL CAST( - 79 AS SIGNED ) col0 FROM tab2 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8620
SELECT ALL CAST ( - 79 AS INTEGER ) col0 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8621
SELECT CAST( 63 AS SIGNED ) DIV - + 95 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT CAST ( 63 AS INTEGER ) / - + 95 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT col1 DIV + + col0 col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8623
SELECT col1 / + + col0 col1 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL 68 * - 71 AS col0 FROM tab2
----
-4828
-4828
-4828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL + 63 * + - CAST( 69 AS SIGNED ) AS col1 FROM tab1
----
-4347
-4347
-4347

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + 63 * + - CAST ( 69 AS INTEGER ) AS col1 FROM tab1
----
-4347
-4347
-4347

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( - col1 ) / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ALL + 74 + - col2 AS col2 FROM tab0
----
-25
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - COUNT( - 47 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8631
SELECT - COUNT ( - 47 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col2 ) NOT IN ( 66 )
----

query I rowsort
SELECT DISTINCT + col2 + - - col2 * - + 72 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT DISTINCT - COUNT( * ) / AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT - COUNT ( * ) / AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 94 + + 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) BETWEEN ( col0 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT ALL - - col2 DIV col2 + col2 * - - ( + + 45 ) FROM tab2 AS cor0
----
1036
1801
2611

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - - col2 / col2 + col2 * - - ( + + 45 ) FROM tab2 AS cor0
----
1036
1801
2611

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - col1 = ( - - 64 + - col1 * 86 )
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 = ( - - 64 + - col1 * 86 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 67 * - col0 * + 79 * - + col2 < - col0
----

query I rowsort
SELECT col1 + 18 * + + col0 FROM tab0
----
1587
1747
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT ALL CAST( NULL AS SIGNED ) + + 18 * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL CAST ( NULL AS INTEGER ) + + 18 * + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 + ( + col1 ) + 73 + + col1 * + col2 + + ( 4 ) FROM tab1
----
1461
3346
403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8644
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT COUNT( * ) + + 1 - + 14 AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8645
SELECT COUNT ( * ) + + 1 - + 14 AS col2 FROM tab1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT ALL 21 + + COUNT( * ) DIV 82 FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN + - col1 AND - - 80 )
----
21

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL 21 + + COUNT ( * ) / 82 FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN + - col1 AND - - 80 )
----
21

query III rowsort
SELECT * FROM tab2 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT 49, 36 + - SUM( ALL - col2 ) AS col2 FROM tab2
----
49
157

skipif mysql # not compatible
query II rowsort label-8648
SELECT 49, 36 + - SUM ( ALL - col2 ) AS col2 FROM tab2
----
49
157

query III rowsort
SELECT * FROM tab2 WHERE 44 >= col2
----
46
51
23
64
77
40

query I rowsort
SELECT ( - - 72 ) FROM tab0
----
72
72
72

query I rowsort
SELECT ALL - col0 + + + col0 + + col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col2 NOT IN ( + col1 * - 74 )
----
14
47
5

query I rowsort
SELECT ALL + ( 6 ) - 98 AS col0 FROM tab1 AS cor0
----
-92
-92
-92

query II rowsort
SELECT DISTINCT - col0 AS col1, + 35 FROM tab0 AS cor0
----
-15
35
-87
35
-97
35

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col2 * 86 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IN ( - - 35, - 47 )
----

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE ( + col1 * - - 63 > col0 * + col1 * col2 )
----

query I rowsort
SELECT ALL 57 AS col1 FROM tab0 AS cor0 WHERE - 34 IS NOT NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 + - col1 + + col0 * + 43 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + - col1 + + col0 * + 43 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8661
SELECT - + MIN( DISTINCT - col1 ) col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8661
SELECT - + MIN ( DISTINCT - col1 ) col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
81
3

query II rowsort
SELECT + col1, + col2 + + + col2 FROM tab2
----
51
46
67
116
77
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8663
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8663
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT 92 AS col1, - 14 AS col2 FROM tab1
----
92
-14
92
-14
92
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8665
SELECT ALL * FROM tab2 WHERE NOT + 2 - CAST( - + col1 AS SIGNED ) + - - col2 NOT IN ( 35 + - - col1 )
----

skipif mysql # not compatible
query III rowsort label-8665
SELECT ALL * FROM tab2 WHERE NOT + 2 - CAST ( - + col1 AS INTEGER ) + - - col2 NOT IN ( 35 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col2 * - + col0 AS col2 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 11 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + 57 - - col2 * 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 98 * + 60 FROM tab0
----
5880
5880
5880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 0 + - col1 * 79 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN 98 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8674
SELECT ALL - - col1 AS col1, - col1 * + ( + - col1 ) * - CAST( + col0 AS SIGNED ) + + + col2 + - + col2 AS col1 FROM tab1 AS cor0
----
14
-9996
47
-201019
5
-2125

skipif mysql # not compatible
query II rowsort label-8674
SELECT ALL - - col1 AS col1, - col1 * + ( + - col1 ) * - CAST ( + col0 AS INTEGER ) + + + col2 + - + col2 AS col1 FROM tab1 AS cor0
----
14
-9996
47
-201019
5
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + + COUNT( ALL + - 1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8675
SELECT + + COUNT ( ALL + - 1 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + + COUNT( 24 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8676
SELECT + + COUNT ( 24 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL - COUNT( * ) + + 53 AS col1 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - COUNT ( * ) + + 53 AS col1 FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8679
SELECT - CAST( - + ( + MAX( - 49 ) ) AS SIGNED ) col2 FROM tab1 cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT - CAST ( - + ( + MAX ( - 49 ) ) AS INTEGER ) col2 FROM tab1 cor0
----
-49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 * + col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8681
SELECT CAST( 40 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT CAST ( 40 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + 71 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 71 / col0 AS col0 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 * + col1 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 * - 15 AS col2, + 43 FROM tab1 cor0
----
-1275
43
-1365
43
-765
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8685
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8685
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + ( + 3 ) * 90 * col0 + - col2 FROM tab0 AS cor0
----
23480
26091
4003

query II rowsort
SELECT DISTINCT 54 + + col0 + + - col2 * - + 71 AS col0, + 85 AS col2 FROM tab2 AS cor0
----
1733
85
2958
85
4247
85

query I rowsort
SELECT col2 * + ( 51 ) FROM tab0
----
2397
5049
510

query I rowsort
SELECT ALL - 29 + + + col1 + + col1 * - 99 AS col1 FROM tab1
----
-1401
-4635
-519

query I rowsort
SELECT col2 - + 77 FROM tab1
----
-18
-9
19

query I rowsort
SELECT - - col2 FROM tab2 WHERE + 44 + + ( + col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 - 20 col0 FROM tab0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + 76 AND ( NULL ) AND NOT - - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE NOT - 21 NOT IN ( + - 45 ) AND NOT - col1 * + + col0 + - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE NOT - 21 NOT IN ( + - 45 ) AND NOT - col1 * + + col0 + - + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + + 95 AS col1 FROM tab2 AS cor0
----
2185
3800
5510

query II rowsort
SELECT col1 + + - col2 * + - col0 AS col2, - col1 * - + 82 AS col0 FROM tab0 AS cor0
----
786
6642
891
1722
9604
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8697
SELECT DISTINCT + 6 col0, col2 * + + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2
----
6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8697
SELECT DISTINCT + 6 col0, col2 * + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2
----
6
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab1 WHERE NOT - - col1 * + 36 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8699
SELECT - - col1, 53 * 7 / - + CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8699
SELECT - - col1, 53 * 7 / - + CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT ALL col0, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT - + SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT - + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT - + 59 DIV - COUNT( * ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8702
SELECT - + 59 / - COUNT ( * ) FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8703
SELECT + COUNT( * ), + COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8703
SELECT + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 28 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 + 15 AND NULL
----

query I rowsort
SELECT ALL + ( col1 ) / - + col0 FROM tab1 WHERE NOT + + col0 <= col0
----

query I rowsort
SELECT DISTINCT ( 51 ) + - - col2 AS col1 FROM tab0
----
150
61
98

query I rowsort
SELECT DISTINCT + ( + 8 ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT 56 + + ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8709
SELECT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT 56 + + ( - col0 ) IS NULL
----
3

query I rowsort
SELECT ALL - ( + ( - - col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - 72 * - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT - 72 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( 11 ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT + - COUNT( * ) + - + COUNT( * ) * - ( - COUNT( * ) ) + + MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT + - COUNT ( * ) + - + COUNT ( * ) * - ( - COUNT ( * ) ) + + MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - 28 FROM tab0 AS cor0 WHERE 49 / - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - MAX( + col2 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8715
SELECT - MAX ( + col2 ) AS col0 FROM tab0 cor0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 * + col2 / + + 26 <= ( + ( - 6 ) + 73 + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8719
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 4 * CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8719
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 4 * CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 15 * + 95 <> ( 21 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 38 + - 11 FROM tab1 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT + + ( + - COUNT( DISTINCT 78 ) ) + - - 42 col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT + + ( + - COUNT ( DISTINCT 78 ) ) + - - 42 col2 FROM tab2 AS cor0
----
41

query I rowsort
SELECT - - col0 - - col0 FROM tab2 WHERE + col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * - - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT MIN( ALL col2 ) col0, COUNT( * ) FROM tab0
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8725
SELECT MIN ( ALL col2 ) col0, COUNT ( * ) FROM tab0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + COUNT( DISTINCT col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8726
SELECT + COUNT ( DISTINCT col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8728
SELECT col1 DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT col1 / - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + col1 * + + 4 FROM tab1
----
188
20
56

query II rowsort
SELECT ALL - - 53, + col0 AS col2 FROM tab1 AS cor0
----
53
51
53
85
53
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT - 34 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT - 34 / + + col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT DISTINCT col2 * col1 DIV - ( + 20 ) FROM tab1 cor0
----
-14
-159
-67

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT col2 * col1 / - ( + 20 ) FROM tab1 cor0
----
-14
-159
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT CAST( - 61 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8734
SELECT CAST ( - 61 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8736
SELECT - COUNT( + - CAST( - - 64 AS SIGNED ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8736
SELECT - COUNT ( + - CAST ( - - 64 AS INTEGER ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 AS col0 FROM tab2
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8738
SELECT + 63 AS col0, ( + CAST( + col0 AS SIGNED ) ) FROM tab0
----
63
15
63
87
63
97

skipif mysql # not compatible
query II rowsort label-8738
SELECT + 63 AS col0, ( + CAST ( + col0 AS INTEGER ) ) FROM tab0
----
63
15
63
87
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL - MAX( + 84 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL - MAX ( + 84 ) FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8740
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) * + col1 * - col2 * + + CAST( ( - col1 ) AS SIGNED ) * - col0 * + col1 - + col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8740
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) * + col1 * - col2 * + + CAST ( ( - col1 ) AS INTEGER ) * - col0 * + col1 - + col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NOT - + 1 IS NOT NULL
----

query I rowsort
SELECT 52 / col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 80 * 63 FROM tab2
----
5040
5040
5040

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8745
SELECT ALL * FROM tab0 WHERE + 52 / - + CAST( NULL AS SIGNED ) * - + col0 + - col2 + + + 69 < NULL
----

skipif mysql # not compatible
query III rowsort label-8745
SELECT ALL * FROM tab0 WHERE + 52 / - + CAST ( NULL AS INTEGER ) * - + col0 + - col2 + + + 69 < NULL
----

query I rowsort
SELECT DISTINCT - 93 * - col1 FROM tab2 AS cor0
----
4743
6231
7161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab0 cor0
----
20
20
20

query II rowsort
SELECT DISTINCT - ( + - col2 ) AS col2, + col2 - col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT 39 - col1 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT ALL col2 * col1 DIV + col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL col2 * col1 / + col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8752
SELECT ALL - - 20 + col2 AS col2, + col0 + col2 * + - CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
43
27025
60
123264
78
225463

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL - - 20 + col2 AS col2, + col0 + col2 * + - CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
43
27025
60
123264
78
225463

query I rowsort
SELECT - - col2 - col2 + 18 * - col2 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + COUNT( * ) * MAX( 60 ) FROM tab2 cor0
----
180

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + COUNT ( * ) * MAX ( 60 ) FROM tab2 cor0
----
180

query I rowsort
SELECT ALL + col0 - - 2 AS col2 FROM tab2
----
48
66
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT + 21 AS col2, MIN( ALL + col0 ) FROM tab0 WHERE - - col2 IS NULL
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8756
SELECT + 21 AS col2, MIN ( ALL + col0 ) FROM tab0 WHERE - - col2 IS NULL
----
21
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT DISTINCT col0 AS col2, - col0 / + + 56 / - + 18 - col0 * CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT col0 AS col2, - col0 / + + 56 / - + 18 - col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + MAX( ALL 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + MAX ( ALL 94 ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL ( + - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL ( + - COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + + 90 AS col0 FROM tab1 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT SUM( ALL + - 57 ) AS col2 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8762
SELECT SUM ( ALL + - 57 ) AS col2 FROM tab2 AS cor0
----
-171

query II rowsort
SELECT col2, col1 - col1 FROM tab0 cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8764
SELECT + COUNT ( + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT - - col0 col0 FROM tab1 AS cor0 WHERE NOT + col2 < - + 14 DIV - 81 + + col2
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8765
SELECT - - col0 col0 FROM tab1 AS cor0 WHERE NOT + col2 < - + 14 / - 81 + + col2
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT col2, + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8768
SELECT + col2 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + col2 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 WHERE NOT - - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8770
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 WHERE NOT - - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT AVG ( - CAST( NULL AS SIGNED ) ) / + 30 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) / + 30 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT 46 * - - SUM( DISTINCT 42 ) + + 8 col1 FROM tab1 AS cor0
----
1940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8772
SELECT 46 * - - SUM ( DISTINCT 42 ) + + 8 col1 FROM tab1 AS cor0
----
1940

query I rowsort
SELECT ALL + 15 * + 71 * 43 * + col1 * + 55 + - ( - 33 ) AS col2 FROM tab1 AS cor0
----
118380108
12593658
35262183

query I rowsort
SELECT ALL - col0 + - col1 * - - col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 * - col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL col1 DIV + + col1 + + + col0 + col2 * - 5 AS col1 FROM tab2 AS cor0
----
-135
-214
-68

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL col1 / + + col1 + + + col0 + col2 * - 5 AS col1 FROM tab2 AS cor0
----
-135
-214
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - + col0 + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL CAST( - 34 AS SIGNED ) FROM tab1 cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL CAST ( - 34 AS INTEGER ) FROM tab1 cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT col0 DIV - - col0 + 96 + + + col1 AS col1 FROM tab2
----
148
164
174

skipif mysql # not compatible
query I rowsort label-8780
SELECT col0 / - - col0 + 96 + + + col1 AS col1 FROM tab2
----
148
164
174

query I rowsort
SELECT 8 + + col0 FROM tab0
----
105
23
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT - col0 DIV - 91 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - col0 / - 91 AS col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + + col0 col0 FROM tab0
----
136
146
64

query II rowsort
SELECT ALL - ( 90 ) + - - col2 AS col0, 26 + + 51 AS col1 FROM tab1
----
-22
77
-31
77
6
77

query II rowsort
SELECT + col0 + + + col1 * + + col0 AS col2, + ( + col1 ) FROM tab2
----
2392
51
4992
77
5100
67

query I rowsort
SELECT 56 + + col2 FROM tab1
----
115
124
152

query I rowsort
SELECT + col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2, + col0 col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + + 6 FROM tab0
----
4
41
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8792
SELECT ALL MIN( DISTINCT col1 ) + + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL MIN ( DISTINCT col1 ) + + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT DISTINCT + 9 + col1 + - col1 + - col0 DIV 70 AS col2 FROM tab2
----
8
9

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + 9 + col1 + - col1 + - col0 / 70 AS col2 FROM tab2
----
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - 16 + - MIN( ALL - + col1 ) AS col0 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-8795
SELECT - 16 + - MIN ( ALL - + col1 ) AS col0 FROM tab1 cor0
----
31

query I rowsort
SELECT - - col1 + - 19 FROM tab0 AS cor0
----
-18
2
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT + CAST( 77 AS SIGNED ) - - col2 FROM tab0 cor0
----
124
176
87

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + CAST ( 77 AS INTEGER ) - - col2 FROM tab0 cor0
----
124
176
87

query II rowsort
SELECT DISTINCT - 0 + - + col1 + 5 * 82 AS col0, + col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT ALL - + 99 AS col1, - 1 AS col0 FROM tab2 AS cor0
----
-99
-1
-99
-1
-99
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT DISTINCT 45 AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
45
-3

skipif mysql # not compatible
query II rowsort label-8800
SELECT DISTINCT 45 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
45
-3

query I rowsort
SELECT DISTINCT - 63 * - 17 AS col1 FROM tab1 AS cor0
----
1071

query III rowsort
SELECT * FROM tab0 cor0 WHERE 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT - 84 * 80 DIV + ( col1 ) FROM tab1 AS cor0
----
-1344
-142
-480

skipif mysql # not compatible
query I rowsort label-8803
SELECT - 84 * 80 / + ( col1 ) FROM tab1 AS cor0
----
-1344
-142
-480

query I rowsort
SELECT + 27 * + + col2 FROM tab1
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL + MIN( ALL col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + MIN ( ALL col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8806
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, 96 AS col2 FROM tab0
----
1
96
21
96
81
96

query II rowsort
SELECT - 85 AS col2, ( col0 ) AS col2 FROM tab0
----
-85
15
-85
87
-85
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8812
SELECT ALL MAX( DISTINCT + - ( CAST( NULL AS DECIMAL ) ) ) * + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL MAX ( DISTINCT + - ( CAST ( NULL AS REAL ) ) ) * + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + col1 * + ( col0 ) FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT 91 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT 91 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - + 29 * + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7116f6a270b1ba7f777399db141b85cf

query II rowsort
SELECT DISTINCT + 20, - 38 - 39 AS col2 FROM tab2 AS cor0
----
20
-77

query I rowsort
SELECT DISTINCT + col0 * - + col0 + + col2 * + - col0 FROM tab2 AS cor0
----
-3174
-6656
-9975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + + SUM( + col2 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 16 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + + SUM ( + col2 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 16 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT ALL col0 DIV 7 * + col0 AS col2 FROM tab1 AS cor0
----
1020
1183
357

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL col0 / 7 * + col0 AS col2 FROM tab1 AS cor0
----
1020
1183
357

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + SUM( - - 18 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8821
SELECT + SUM ( - - 18 ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8822
SELECT - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 + - - 18 AS col2 FROM tab2
----
69
85
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL CAST( + + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT MIN( ALL + - col2 ) + - COUNT( * ) col0 FROM tab0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8825
SELECT DISTINCT MIN ( ALL + - col2 ) + - COUNT ( * ) col0 FROM tab0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8826
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + + col2 * col1 + - 98 + + col1 col0 FROM tab1 AS cor0
----
126252
27637
300373

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ( - - 73 ) + COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8828
SELECT ( - - 73 ) + COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 * + - col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT - 24 * + - COUNT( * ) AS col2 FROM tab2 WHERE + - 82 + 88 BETWEEN NULL AND + - 7
----
0

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - 24 * + - COUNT ( * ) AS col2 FROM tab2 WHERE + - 82 + 88 BETWEEN NULL AND + - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + 85 - + - COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8832
SELECT + 85 - + - COUNT ( * ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT + 13 * col2 - + 42 AS col2 FROM tab1 AS cor0
----
1206
725
842

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + MIN( + - 68 ) AS col0 FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8834
SELECT + MIN ( + - 68 ) AS col0 FROM tab1 cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * - - 17 col2 FROM tab2 AS cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 68 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 48 ) AS col1 FROM tab2 AS cor0
----
48

query II rowsort
SELECT ALL - 12, + col0 AS col0 FROM tab2 AS cor0
----
-12
46
-12
64
-12
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( - ( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( - ( col1 ) ) FROM tab1
----
3

query I rowsort
SELECT + ( - col1 ) FROM tab2 WHERE NOT col1 BETWEEN - 35 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8841
SELECT ALL + col0 AS col2, - 69 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8841
SELECT ALL + col0 AS col2, - 69 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8842
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8842
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1
----
NULL
3

query I rowsort
SELECT ALL + col1 * 85 FROM tab1
----
1190
3995
425

query I rowsort
SELECT ( + col0 ) * + col0 AS col0 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 AS col0, col0 col2 FROM tab1
----
45
51
45
85
45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL SUM( - + col0 ) AS col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL SUM ( - + col0 ) AS col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-199

query I rowsort
SELECT DISTINCT ( - 44 ) FROM tab2 AS cor0
----
-44

query II rowsort
SELECT DISTINCT - 53 AS col2, 0 FROM tab1 AS cor0
----
-53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL > - 22 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL > - 22 ) )
----
0

query I rowsort
SELECT - 76 * + + 26 AS col1 FROM tab0
----
-1976
-1976
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL - COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 80 * + col0 FROM tab1 cor0
----
4080
6800
7280

query I rowsort
SELECT ALL - col0 * col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + MIN( DISTINCT + - 88 ) AS col2 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8854
SELECT + MIN ( DISTINCT + - 88 ) AS col2 FROM tab0 cor0
----
-88

query I rowsort
SELECT + + 11 * col0 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE + 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 + 33 col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT 5 + - col0 + + 47 * + - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-33145
-40972
-451433

query I rowsort
SELECT col1 + + - 32 * - + 12 FROM tab1
----
389
398
431

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 34 * + + col0 < NULL
----

query I rowsort
SELECT ALL - col1 + 21 AS col1 FROM tab0
----
-60
0
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 + + ( - + col0 ) AS col1, - 68 col0 FROM tab0
----
-15
-68
-87
-68
-97
-68

query I rowsort
SELECT 8 + - + col0 + + - col1 AS col1 FROM tab1
----
-130
-57
-82

query I rowsort
SELECT ALL + col0 - + + col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8866
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN + CAST( NULL AS SIGNED ) AND + 16 * - - 7 * + - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-8866
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN + CAST ( NULL AS INTEGER ) AND + 16 * - - 7 * + - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8867
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT - - 16 * - - col2 FROM tab1 AS cor0
----
1088
1536
944

query III rowsort
SELECT * FROM tab1 WHERE + 61 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8870
SELECT DISTINCT * FROM tab1 WHERE - col1 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8870
SELECT DISTINCT * FROM tab1 WHERE - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + + col0 * col0 IS NULL
----

query I rowsort
SELECT + 73 * - col1 AS col1 FROM tab0 cor0
----
-1533
-5913
-73

query I rowsort
SELECT + col0 * + 25 * - + col2 FROM tab1 AS cor0
----
-122400
-125375
-154700

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - COUNT( * ) * 48 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8875
SELECT - COUNT ( * ) * 48 FROM tab0 AS cor0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT + - COUNT( ALL - col1 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + - COUNT ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8877
SELECT * FROM tab0 WHERE NOT col1 BETWEEN col1 + - 83 - - col1 * + col1 AND CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8877
SELECT * FROM tab0 WHERE NOT col1 BETWEEN col1 + - 83 - - col1 * + col1 AND CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL 52 * + col2 AS col2 FROM tab2
----
1196
2080
3016

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - ( + col1 ) ) + - + 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 51 + + - col2 FROM tab0 AS cor0
----
-150
-61
-98

query I rowsort
SELECT DISTINCT + - 50 AS col1 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - COUNT( * ) * - 45 AS col0 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8882
SELECT - COUNT ( * ) * - 45 AS col0 FROM tab2 AS cor0
----
135

query II rowsort
SELECT col1, + col0 + - + 69 AS col0 FROM tab0 AS cor0
----
1
28
21
18
81
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8884
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query III rowsort label-8884
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND + + col2
----

query II rowsort
SELECT - col1 AS col0, + 72 * - 47 AS col1 FROM tab2 AS cor0
----
-51
-3384
-67
-3384
-77
-3384

query I rowsort
SELECT - ( 46 ) FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 20 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, 2 FROM tab0 AS cor0
----
10
2
47
2
99
2

query I rowsort
SELECT ALL - 81 * 68 + col0 AS col1 FROM tab1 AS cor0
----
-5417
-5423
-5457

query I rowsort
SELECT DISTINCT + col2 + + 43 AS col2 FROM tab1
----
102
111
139

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 23 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 WHERE + col0 BETWEEN 78 AND + col2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 16 col0 FROM tab0
----
1392
1552
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 * col1 col2 FROM tab1
----
-126
-423
-45

query I rowsort
SELECT 5 AS col2 FROM tab2 WHERE NULL IS NULL
----
5
5
5

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 86 - + - 76 * - + 93 FROM tab1
----
-6982

query I rowsort
SELECT DISTINCT col1 * - + 53 + - - col2 * - - col1 AS col1 FROM tab2
----
-1001
-1530
335

query III rowsort
SELECT ALL * FROM tab0 WHERE 14 + - 53 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 + + col0, - col1 AS col2 FROM tab1
----
144
-5
147
-14
159
-47

query I rowsort
SELECT ALL - col1 * + 32 * - 59 FROM tab2 AS cor0
----
126496
145376
96288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT 17 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT 17 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + + 50 - - ( + - col1 ) col1 FROM tab2 AS cor0
----
-2347
-4955
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT MAX( + - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8906
SELECT MAX ( + - col0 ) FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT ALL + 40 AS col0, - 79 + SUM( ALL + + col0 ) - + + 22 AS col0 FROM tab0
----
40
98

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL + 40 AS col0, - 79 + SUM ( ALL + + col0 ) - + + 22 AS col0 FROM tab0
----
40
98

query I rowsort
SELECT ALL 77 * + + col0 FROM tab1
----
3927
6545
7007

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col0 ) + + col2 + + 28 + - col2 IN ( col0 * - col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 col1, - col1 AS col0 FROM tab2 cor0
----
87
-51
87
-67
87
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8911
SELECT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 57 <> - + col2 * + + 81 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 56 + 8 IS NULL
----

query I rowsort
SELECT - col1 * col0 + - + col1 * + 80 AS col2 FROM tab0 AS cor0
----
-177
-3507
-7695

query I rowsort
SELECT ALL - col2 * - - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT ALL + COUNT( * ) DIV + 43 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + COUNT ( * ) / + 43 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + col1 - + + 68 AS col1, + col0 * + 77 col0 FROM tab1 AS cor0
----
357
6545
4209
7007
646
3927

query I rowsort
SELECT ALL + 43 * 17 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 * 47 IS NOT NULL
----

query I rowsort
SELECT - - col1 * + - col2 * col2 * - col0 FROM tab0 cor0
----
182700
2683935
950697

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL COUNT( ALL + + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL COUNT ( ALL + + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + ( MIN( ALL col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8923
SELECT + ( MIN ( ALL col1 ) ) FROM tab1
----
5

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL > col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab1
----
83

query I rowsort
SELECT ALL col2 * + + col2 * - col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT - 63 DIV 96 * + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 63 / 96 * + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + ( + + 92 ) * - COUNT( - 54 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-828

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + ( + + 92 ) * - COUNT ( - 54 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 + 17 * col2 * - col1 + col2 col0 FROM tab1
----
-22752
-4956
-54264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT DISTINCT + col0 * + 0 / col2 + - 45 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + col0 * + 0 / col2 + - 45 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 + - + col2, + col1 / + 40, + 29 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT DISTINCT SUM( 84 ) * + 4 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT SUM ( 84 ) * + 4 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + - col0 + - col2 FROM tab1
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT + col0 DIV - col0 + 66 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-8935
SELECT + col0 / - col0 + 66 FROM tab0
----
65
65
65

query II rowsort
SELECT ALL + col0 + col2 AS col2, - 46 AS col1 FROM tab0
----
196
-46
62
-46
97
-46

query I rowsort
SELECT DISTINCT 70 + col1 - - col2 FROM tab0
----
101
170
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + - col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT + 59 - + col1 FROM tab1
----
12
45
54

query II rowsort
SELECT ALL col1, col2 - col0 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

query II rowsort
SELECT + + col0, - col0 + - col1 AS col2 FROM tab1 AS cor0
----
51
-65
85
-90
91
-138

query II rowsort
SELECT DISTINCT - ( - 99 ), + col1 FROM tab0 AS cor0
----
99
1
99
21
99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8944
SELECT COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( + ( + col1 ) * + col0 * + col2, col1, col1, + ( col2 ) + - ( col1 ) )
----

query I rowsort
SELECT ALL - 8 * - ( + col1 ) AS col1 FROM tab1 cor0
----
112
376
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= - 29
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - - ( - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 26 col1 FROM tab0 AS cor0
----
2106
26
546

query I rowsort
SELECT ALL - + 87 * + + col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

query I rowsort
SELECT DISTINCT - 70 FROM tab2 AS cor0 WHERE NOT - col1 * - col0 IS NULL
----
-70

query I rowsort
SELECT - + col2 * + + col0 * col0 AS col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT ALL + 0 DIV - + col2 * - 89 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + 0 / - + col2 * - 89 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - ( + col0 ), + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8955
SELECT - col0 * + col1, ( + + col2 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-8955
SELECT - col0 * + col1, ( + + col2 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1215
NULL
-1827
NULL
-97
NULL

query II rowsort
SELECT + col2, 7 AS col0 FROM tab2
----
23
7
40
7
58
7

query I rowsort
SELECT + 93 * col0 FROM tab2
----
4278
5952
6975

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

query II rowsort
SELECT + col2 AS col1, 32 + col0 FROM tab2
----
23
78
40
96
58
107

query I rowsort
SELECT + 39 * + col0 FROM tab2
----
1794
2496
2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * + - col1 col1 FROM tab2
----
-4488
-5896
-6776

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT + col2 DIV - 41 AS col1 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + col2 / - 41 AS col1 FROM tab1 cor0
----
-1
-2

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT col0 DIV + col2 + - col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-8964
SELECT col0 / + col2 + - col2 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * + col2 * 75 * col0 FROM tab1 AS cor0
----
-1880625
-21812700
-5140800

query I rowsort
SELECT - + 49 * + 78 * 32 + col0 FROM tab1 AS cor0
----
-122213
-122219
-122253

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 55 * + col0 NOT IN ( + - col2 * col1, + 59, + col2, + - col1 * + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + 45 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT + MIN( ALL - 48 ), 34 AS col2 FROM tab2 AS cor0
----
-48
34

skipif mysql # not compatible
query II rowsort label-8970
SELECT + MIN ( ALL - 48 ), 34 AS col2 FROM tab2 AS cor0
----
-48
34

query III rowsort
SELECT ALL * FROM tab2 WHERE 15 + - 9 + - col1 / + - 55 IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 52 * + col2 * col0 - - 30 AS col1 FROM tab2
----
133150
226230
55046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 87 * + col2 - + col2 col1 FROM tab2
----
2029
3517
5055

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT - 25 + - + COUNT( * ) AS col0 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - 25 + - + COUNT ( * ) AS col0 FROM tab2
----
-28

query II rowsort
SELECT DISTINCT - ( - ( - col2 ) ) AS col0, col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col1 + 28 FROM tab0
----
109
29
49

query I rowsort
SELECT DISTINCT + 98 + - col2 FROM tab0
----
-1
51
88

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col0 * col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8980
SELECT SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - col1 col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + MAX( + 66 ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8983
SELECT + MAX ( + 66 ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL 93 * - + 37 * col2 AS col0 FROM tab2 AS cor0
----
-137640
-199578
-79143

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT - COUNT( * ), 70 * + 18 AS col0 FROM tab0 cor0
----
-3
1260

skipif mysql # not compatible
query II rowsort label-8985
SELECT - COUNT ( * ), 70 * + 18 AS col0 FROM tab0 cor0
----
-3
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT + 82 DIV col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + 82 / col0 AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT + col2 + + 92, + col1 FROM tab2 cor0
----
115
51
132
77
150
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8988
SELECT ALL 70 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 70 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + col2 AS col1, col0 * - - col1 AS col1 FROM tab2
----
104
4928
133
5025
69
2346

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT 83 + + 34 DIV 88 FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8990
SELECT 83 + + 34 / 88 FROM tab0
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT ALL col2 * - - col1 + - 16 DIV - - col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL col2 * - - col1 + - 16 / - - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + - SUM( - - 94 ) AS col2 FROM tab0 AS cor0 WHERE col0 / - + 42 IS NOT NULL
----
-282

skipif mysql # not compatible
query I rowsort label-8993
SELECT + - SUM ( - - 94 ) AS col2 FROM tab0 AS cor0 WHERE col0 / - + 42 IS NOT NULL
----
-282

query I rowsort
SELECT col1 + - 51 + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT - SUM( + 57 ) + + ( + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) * + SUM( col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - SUM ( + 57 ) + + ( + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) * + SUM ( col1 ) FROM tab0
----
NULL

query I rowsort
SELECT + 90 - + col2 - 53 + + - col0 * ( - col1 ) FROM tab2
----
2360
4925
5004

query I rowsort
SELECT col1 * - - 64 + + + col2 FROM tab0
----
1354
163
5231

query I rowsort
SELECT DISTINCT - col1 - - 61 FROM tab2 cor0
----
-16
-6
10

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
59
68
96

query I rowsort
SELECT - - AVG ( - 79 ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - 3 AND - col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9001
SELECT col2, + col0 DIV - - col0 AS col1 FROM tab2 cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-9001
SELECT col2, + col0 / - - col0 AS col1 FROM tab2 cor0
----
23
1
40
1
58
1

query I rowsort
SELECT DISTINCT - col2 + - - col2 * - col0 AS col0 FROM tab1
----
-4992
-5074
-6256

query III rowsort
SELECT * FROM tab1 WHERE - 93 + + col2 <> - col2 * - col1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - col2 + + 60 AS col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + col0 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - MIN( ( - 91 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-9008
SELECT - MIN ( ( - 91 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

query I rowsort
SELECT - ( - + 0 ) FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= - col0 - + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT + SUM( DISTINCT + + 64 ) FROM tab1 cor0
----
64

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT + SUM ( DISTINCT + + 64 ) FROM tab1 cor0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9012
SELECT + 18 AS col1, COUNT( * ) DIV COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
18
1

skipif mysql # not compatible
query II rowsort label-9012
SELECT + 18 AS col1, COUNT ( * ) / COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT + CAST( + + MIN( DISTINCT + ( - 61 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9013
SELECT + CAST ( + + MIN ( DISTINCT + ( - 61 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT SUM ( col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - SUM( + + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9015
SELECT - SUM ( + + col0 ) AS col0 FROM tab2
----
-185

query II rowsort
SELECT col0, 50 FROM tab2
----
46
50
64
50
75
50

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 53 AND - + 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + + col1 + 26 col0 FROM tab0
----
144
64
84

query I rowsort
SELECT ALL + col0 * + + col1 AS col0 FROM tab1
----
425
4277
714

query II rowsort
SELECT col0, 87 + - col0 + + ( + 21 ) FROM tab2
----
46
62
64
44
75
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col0 + + 1 col0 FROM tab2
----
142
143
98

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + ( + + ( COUNT( ALL + + ( + 0 ) ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + ( + + ( COUNT ( ALL + + ( + 0 ) ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT + MIN( DISTINCT + + 4 ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT + MIN ( DISTINCT + + 4 ) AS col1 FROM tab1 AS cor0
----
4

query II rowsort
SELECT ALL col1, - 28 AS col0 FROM tab1 AS cor0
----
14
-28
47
-28
5
-28

query III rowsort
SELECT * FROM tab2 WHERE - 89 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * - 36 + 46 - + - 43 FROM tab1 AS cor0
----
2213
2537
3545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL col2 * - CAST( 69 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3243
-6831
-690

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL col2 * - CAST ( 69 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3243
-6831
-690

query I rowsort
SELECT + 52 * + + 24 + - col2 FROM tab0 AS cor0
----
1149
1201
1238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + - col1 - - + 35 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + - col1 - - + 35 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 - 34 AS col1 FROM tab1 AS cor0
----
-39
-48
-81

query I rowsort
SELECT + col1 * col2 - + 67 AS col2 FROM tab2 AS cor0
----
1106
3013
3819

query I rowsort
SELECT ALL + col0 * - ( - + col2 ) * + col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT col2 * + - col0 * + - col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + - 74 * col1 FROM tab0 AS cor0 WHERE - ( + col2 ) NOT BETWEEN NULL AND - col0
----
-1554

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT 33 DIV 16 + col0 AS col0 FROM tab1 AS cor0
----
53
87
93

skipif mysql # not compatible
query I rowsort label-9036
SELECT 33 / 16 + col0 AS col0 FROM tab1 AS cor0
----
53
87
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + MAX( + - ( + - ( + 60 ) ) ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + MAX ( + - ( + - ( + 60 ) ) ) AS col1 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( + - 17 ) FROM tab1
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( 48 ) AS col0 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT SUM( col0 ) FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT SUM ( col0 ) FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT col0 DIV + col0 + - 78 AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT col0 / + col0 + - 78 AS col1 FROM tab0
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT 27 * + col0 IN ( col1 * + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 86 + - 22 * col0 FROM tab1
----
-1208
-1956
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - MAX( ALL 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9047
SELECT - MAX ( ALL 83 ) AS col0 FROM tab1
----
-83

query III rowsort
SELECT * FROM tab0 WHERE ( 47 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 7 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 92 = ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 57 < - col2 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 58 ) IS NOT NULL
----

query I rowsort
SELECT 55 FROM tab1 WHERE NOT col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN 0 * + 14 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9054
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN 0 * + 14 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / + col1 <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT COUNT( * ) * + 1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9056
SELECT COUNT ( * ) * + 1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - 72 AND - col0 + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT - COUNT( * ) * ( - COUNT( DISTINCT - col2 ) ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT - COUNT ( * ) * ( - COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab1
----
9

query I rowsort
SELECT + col2 + + col2 * - col2 AS col2 FROM tab1
----
-3422
-4556
-9120

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 >= + col0 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE 0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 * + col2 AS col1 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL COUNT( * ) + MIN( DISTINCT col0 + col0 ) AS col2 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL COUNT ( * ) + MIN ( DISTINCT col0 + col0 ) AS col2 FROM tab2
----
95

query I rowsort
SELECT ALL - ( 29 ) AS col1 FROM tab1 WHERE col1 * ( col0 ) BETWEEN 83 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9065
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 27 ) AS col1 FROM tab1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 83 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> ( col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( 23 * col0 ) BETWEEN col2 - col0 AND NULL
----

query I rowsort
SELECT + 82 * + col2 AS col2 FROM tab2 cor0
----
1886
3280
4756

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 62 BETWEEN - 79 AND ( 3 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 31 NOT BETWEEN 64 AND ( col0 * 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + col2 + + col2 FROM tab0 WHERE - col2 NOT BETWEEN ( 1 - + col2 * col2 ) AND + CAST( 32 AS SIGNED ) * - col2
----
198
20
94

skipif mysql # not compatible
query I rowsort label-9074
SELECT + col2 + + col2 FROM tab0 WHERE - col2 NOT BETWEEN ( 1 - + col2 * col2 ) AND + CAST ( 32 AS INTEGER ) * - col2
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 87 * - COUNT( + 89 * - 72 ) - - 66 * + 23 FROM tab1
----
1257

skipif mysql # not compatible
query I rowsort label-9075
SELECT 87 * - COUNT ( + 89 * - 72 ) - - 66 * + 23 FROM tab1
----
1257

query I rowsort
SELECT col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT + 19 + - col0 FROM tab0 AS cor0
----
-68
-78
4

query I rowsort
SELECT DISTINCT - + 63 - ( - 40 + - col1 ) AS col0 FROM tab1 AS cor0
----
-18
-9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT - SUM( ALL - col2 ) * + 55 FROM tab0 AS cor0
----
8580

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - SUM ( ALL - col2 ) * + 55 FROM tab0 AS cor0
----
8580

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > 2
----

query I rowsort
SELECT ALL - col2 * + 90 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= col2 / + col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= col2 / + col0 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT MIN( DISTINCT 95 ) / 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 - - 22 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT MIN ( DISTINCT 95 ) / 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 - - 22 ) AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT CAST( + COUNT( ALL + col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9085
SELECT CAST ( + COUNT ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT + col0 DIV - - col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9087
SELECT + col0 / - - col0 AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT 72 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT 72 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT DISTINCT col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT ( + - MAX( 81 ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT ( + - MAX ( 81 ) ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - MIN( col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9092
SELECT - MIN ( col1 ) FROM tab2
----
-51

query I rowsort
SELECT + 14 * 76 FROM tab1
----
1064
1064
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9094
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 99 )
----

query I rowsort
SELECT + 10 - 27 FROM tab0 WHERE NOT + col1 * 79 <> col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 37 ) > NULL
----

query I rowsort
SELECT DISTINCT + 87 * + col1 AS col2 FROM tab0
----
1827
7047
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 83 + col0 )
----

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT SUM( ALL + 19 ) + 14 FROM tab1 AS cor0 WHERE NULL IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT SUM ( ALL + 19 ) + 14 FROM tab1 AS cor0 WHERE NULL IN ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT ALL - 65 DIV COUNT( * ) * - - COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - 65 / COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT DISTINCT + + 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) <= + col0 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9106
SELECT MAX( ALL 82 ) AS col2 FROM tab1 AS cor0 WHERE col1 * + ( col1 ) / - CAST( CAST( NULL AS SIGNED ) / col0 AS DECIMAL ) BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT MAX ( ALL 82 ) AS col2 FROM tab1 AS cor0 WHERE col1 * + ( col1 ) / - CAST ( CAST ( NULL AS INTEGER ) / col0 AS REAL ) BETWEEN NULL AND col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 46 > NULL
----

query II rowsort
SELECT ALL col1, + 38 FROM tab0 AS cor0
----
1
38
21
38
81
38

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 71 * + - 87 ) IN ( col1 )
----
23
40
58

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + COUNT( + col2 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + COUNT ( + col2 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT - + MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - + MIN ( - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT 50 * + 12 + + COUNT( * ) * - 82 FROM tab1 AS cor0
----
354

skipif mysql # not compatible
query I rowsort label-9113
SELECT 50 * + 12 + + COUNT ( * ) * - 82 FROM tab1 AS cor0
----
354

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT MIN( + - 34 ) AS col0 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT MIN ( + - 34 ) AS col0 FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( ALL col2 ) * - ( 27 ) + - COUNT( col0 - + 46 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( ALL col2 ) * - ( 27 ) + - COUNT ( col0 - + 46 ) FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - - MIN( - + col1 ) col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT - - MIN ( - + col1 ) col0 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9118
SELECT 65 / + col0 - + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT 65 / + col0 - + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, + 82 * - col2 FROM tab1 AS cor0
----
51
-7872
85
-4838
91
-5576

query I rowsort
SELECT DISTINCT + col1 * col1 + - 1 AS col2 FROM tab2
----
2600
4488
5928

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col1 / + ( + col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9122
SELECT - COUNT( ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT - COUNT ( ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - MAX( ALL + 27 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9124
SELECT - MAX ( ALL + 27 ) AS col1 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col1 * col1 + - col0 AS col0 FROM tab0
----
-96
354
6546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + - col1 col0 FROM tab1
----
-6
27
36

query I rowsort
SELECT ALL 46 FROM tab1 AS cor0 WHERE NOT col2 * + - 33 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9128
SELECT ALL ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT COUNT( * ) * + 24 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT COUNT ( * ) * + 24 FROM tab0 AS cor0
----
72

query I rowsort
SELECT + ( + col2 ) + + ( + 20 ) AS col0 FROM tab2 cor0
----
43
60
78

query II rowsort
SELECT - col0 + + 90 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-7
99
3
10
75
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT - CAST( + col2 AS SIGNED ) + - 78 + + - col2 FROM tab2 AS cor0
----
-124
-158
-194

skipif mysql # not compatible
query I rowsort label-9132
SELECT - CAST ( + col2 AS INTEGER ) + - 78 + + - col2 FROM tab2 AS cor0
----
-124
-158
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT col1 < - 54 * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9133
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT col1 < - 54 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL + SUM( col0 ) + + COUNT( DISTINCT + 73 ) AS col0 FROM tab0
----
200

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + SUM ( col0 ) + + COUNT ( DISTINCT + 73 ) AS col0 FROM tab0
----
200

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 95 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL - + COUNT( * ) * - 81 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - + COUNT ( * ) * - 81 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT ALL 40 DIV + 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL 40 / + 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT - 98 * + - MIN( - ( + 81 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7938

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - 98 * + - MIN ( - ( + 81 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7938

query I rowsort
SELECT DISTINCT - col2 - + + 3 FROM tab0
----
-102
-13
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT SUM( 96 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9141
SELECT SUM ( 96 ) FROM tab1
----
288

query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0, - ( + col0 ) + + + col1 FROM tab0 AS cor0
----
15
66
87
-66
97
-96

query I rowsort
SELECT ALL - 1 * + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col1 * + 71 AS col2 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT + col0 * + + 9 AS col1 FROM tab1 AS cor0
----
459
765
819

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - - ( - SUM( - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9148
SELECT - - ( - SUM ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - col1 * + 85 AS col0 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 25 + + - 17 + - col1 - - col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( + col0 ) AND + col2 / - 58
----

query I rowsort
SELECT ALL col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT + 99 DIV col1 col0 FROM tab1
----
19
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9154
SELECT + 99 / col1 col0 FROM tab1
----
19
2
7

query I rowsort
SELECT DISTINCT col2 * - 31 * + - col1 FROM tab2
----
120466
36363
95480

query I rowsort
SELECT - col1 * + - col0 * + col0 FROM tab2
----
107916
315392
376875

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( + ( - ( col0 ) ) ) <> - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL + ( - COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + ( - COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT DISTINCT - + col2 DIV - + col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - + col2 / - + col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 51 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT CAST( - MAX( - - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9161
SELECT CAST ( - MAX ( - - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 AS cor0 WHERE ( - col2 * + col1 ) <= ( NULL )
----

query I rowsort
SELECT ALL 99 FROM tab0 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT COUNT( * ) + + 1 AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT COUNT ( * ) + + 1 AS col1 FROM tab1
----
4

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 63 * col0 AS col2 FROM tab0
----
-5481
-6111
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT - col0 + col0 * + + col0 FROM tab0 AS cor0
----
210
7482
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + col1 col0, - col0 + - col0 col1 FROM tab1 AS cor0
----
110
-102
115
-182
64
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - MIN( DISTINCT - - col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-9172
SELECT - MIN ( DISTINCT - - col2 ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT + COUNT( ALL - 1 ) * + MIN( + - col2 ) * - COUNT( * ) FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-9174
SELECT + COUNT ( ALL - 1 ) * + MIN ( + - col2 ) * - COUNT ( * ) FROM tab0
----
891

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( - col1 / + col0 + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( DISTINCT 64 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( DISTINCT 64 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL 51 + 56 * - col1 * col1 AS col1 FROM tab1
----
-10925
-123653
-1349

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( - col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - COUNT( DISTINCT - 98 ) AS col0 FROM tab0 WHERE NULL NOT IN ( + 88, - col2, 18, ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT - COUNT ( DISTINCT - 98 ) AS col0 FROM tab0 WHERE NULL NOT IN ( + 88, - col2, 18, ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + MIN( DISTINCT + + col2 ) - - MAX( col1 ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9180
SELECT + MIN ( DISTINCT + + col2 ) - - MAX ( col1 ) FROM tab2 AS cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + - 16 * + ( 67 ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-1130

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query II rowsort
SELECT ALL 25, 8 AS col2 FROM tab1, tab2 AS cor0
----
18 values hashing to 8bfb5c87fbc4f7845dc19cac084c8eb0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) = NULL
----

query I rowsort
SELECT 32 - + col0 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) * 6 + + 58 IS NULL
----
737
902
9635

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT - col0 >= - 9 * 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT MAX( ALL 7 ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9188
SELECT MAX ( ALL 7 ) AS col1 FROM tab0
----
7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 73 * + col0 <> + 76
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9190
SELECT + COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT - col0 BETWEEN - col2 / - col0 AND - col1 + + col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9190
SELECT + COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT - col0 BETWEEN - col2 / - col0 AND - col1 + + col0
----
3
NULL

query I rowsort
SELECT ALL - 8 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT ( + + col2 ) DIV + ( - ( col2 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT ( + + col2 ) / + ( - ( col2 ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - SUM( + - col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9193
SELECT ALL - SUM ( + - col2 ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL MIN( - - 6 ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL MIN ( - - 6 ) FROM tab0 cor0
----
6

query I rowsort
SELECT col1 * + col2 + + ( + col1 ) + - col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT col1 + - 39 FROM tab0
----
-18
-38
42

query I rowsort
SELECT + + 60 * - - col0 AS col1 FROM tab0 AS cor0
----
5220
5820
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + 69 AS col0 FROM tab2 AS cor0
----
46
69
64
69
75
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + 61 * + 42 * - COUNT( * ) FROM tab1 AS cor0
----
-7686

skipif mysql # not compatible
query I rowsort label-9199
SELECT + 61 * + 42 * - COUNT ( * ) FROM tab1 AS cor0
----
-7686

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 16 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 88, col1 + + 2 AS col1 FROM tab1 AS cor0
----
-88
16
-88
49
-88
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT - 75 * + CAST( NULL AS SIGNED ) * + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT - 75 * + CAST ( NULL AS INTEGER ) * + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 72 col0 FROM tab2 AS cor0
----
112
130
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT - - COUNT( * ) * 21 DIV - COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9205
SELECT - - COUNT ( * ) * 21 / - COUNT ( * ) FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT col0 - + + col1 + - col2 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT 27 - - + COUNT( * ) * - 5 AS col0, - 59 AS col2 FROM tab0
----
12
-59

skipif mysql # not compatible
query II rowsort label-9208
SELECT 27 - - + COUNT ( * ) * - 5 AS col0, - 59 AS col2 FROM tab0
----
12
-59

query I rowsort
SELECT ( ( + - col0 ) ) - + - col0 + + 72 FROM tab1
----
72
72
72

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL - - 4 AS col1 FROM tab2 WHERE - 27 * CAST( + col1 AS SIGNED ) <> + 12
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - - 4 AS col1 FROM tab2 WHERE - 27 * CAST ( + col1 AS INTEGER ) <> + 12
----
4
4
4

query I rowsort
SELECT 38 AS col2 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT 34 + COUNT( * ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9213
SELECT 34 + COUNT ( * ) FROM tab0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 15 + - + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col1 - 8 * + + col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-107
-378
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL + + COUNT( * ) - CAST( - + 65 AS SIGNED ) col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9216
SELECT ALL + + COUNT ( * ) - CAST ( - + 65 AS INTEGER ) col2 FROM tab1 AS cor0
----
68

query I rowsort
SELECT + ( - 11 ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 * + col0 * col0 * + col1 ) IS NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 36 * col1 FROM tab0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT - + MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - + MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + 48 AS col2 FROM tab1 cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL - AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9224
SELECT ALL - col1 col0, CAST( 99 AS SIGNED ) FROM tab2 AS cor0
----
-51
99
-67
99
-77
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9224
SELECT ALL - col1 col0, CAST ( 99 AS INTEGER ) FROM tab2 AS cor0
----
-51
99
-67
99
-77
99

query I rowsort
SELECT + - ( + 89 ) AS col0 FROM tab0 cor0
----
-89
-89
-89

query I rowsort
SELECT - + AVG ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT ( 5 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 / col0 <= + ( col2 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT col1 * + + ( col1 ) * 11 FROM tab0
----
11
4851
72171

query I rowsort
SELECT 33 + col2 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL - COUNT( - ( - col0 ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9231
SELECT ALL - COUNT ( - ( - col0 ) ) col0 FROM tab1
----
-3

query I rowsort
SELECT ALL col1 + - - col0 FROM tab2
----
141
142
97

query I rowsort
SELECT 74 + - - col1 FROM tab2
----
125
141
151

query II rowsort
SELECT DISTINCT + + ( col2 ) AS col1, ( - col1 ) FROM tab2 cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT ( + 42 ) FROM tab2, tab2 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - MIN( DISTINCT ( + - 81 ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9236
SELECT - MIN ( DISTINCT ( + - 81 ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - 23 - + + COUNT( * ) - + 90 AS col0 FROM tab1 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - 23 - + + COUNT ( * ) - + 90 AS col0 FROM tab1 AS cor0
----
-116

query I rowsort
SELECT + + col0 * 10 + - col0 AS col2 FROM tab2 cor0
----
414
576
675

query I rowsort
SELECT + ( + col2 ) + - + col2 / - col2 AS col1 FROM tab2 AS cor0 WHERE - 76 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + - 16
----

query I rowsort
SELECT DISTINCT + col2 * + - 68 * + col0 + - + 37 AS col1 FROM tab1 cor0
----
-332965
-341057
-420821

query III rowsort
SELECT * FROM tab1 WHERE col2 <> ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 + - - 83 AS col2 FROM tab2 WHERE 81 NOT IN ( + 52, col0 )
----
92
92
92

onlyif mysql # DIV for integer division: 
query II rowsort label-9244
SELECT + col0, - 38 DIV + col1 * col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9244
SELECT + col0, - 38 / + col1 * col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT ALL col2 + 94 FROM tab1
----
153
162
190

query I rowsort
SELECT ALL - col0 + - col0 + + col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - MIN( ALL col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9247
SELECT - MIN ( ALL col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL + 31 + 94 FROM tab1
----
125
125
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL + COUNT( * ) - + MAX( ALL CAST( col1 AS SIGNED ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + COUNT ( * ) - + MAX ( ALL CAST ( col1 AS INTEGER ) ) FROM tab0
----
-78

query III rowsort
SELECT * FROM tab2 WHERE - ( + ( + 59 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT + 22 DIV - col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 22 / - col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT + ( - + 41 ) - - col2 AS col2 FROM tab1
----
18
27
55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NULL AND ( - 37 = NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9254
SELECT - - 80 AS col1, - col2 DIV + col1 FROM tab0 AS cor0
----
80
-99
80
0
80
0

skipif mysql # not compatible
query II rowsort label-9254
SELECT - - 80 AS col1, - col2 / + col1 FROM tab0 AS cor0
----
80
-99
80
0
80
0

query I rowsort
SELECT 3 * + col2 * + + col1 FROM tab1
----
4032
885
9588

query I rowsort
SELECT - col1 * + - col1 * + 10 AS col2 FROM tab2
----
26010
44890
59290

query I rowsort
SELECT ( + col2 ) * + - ( 57 ) FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + col2 * col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 * col2 = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT - SUM( - col1 ) DIV + 20 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9260
SELECT - SUM ( - col1 ) / + 20 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT + + ( + ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9262
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT 83 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 37 col2 FROM tab0
----
2997
37
777

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( NOT - col1 * + col0 = - + col0 + - - 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab2
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9267
SELECT - 69 AS col1, CAST( + COUNT( * ) AS SIGNED ) * MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-69
291

skipif mysql # not compatible
query II rowsort label-9267
SELECT - 69 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-69
291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9268
SELECT * FROM tab2 WHERE NOT - CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9268
SELECT * FROM tab2 WHERE NOT - CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + MIN( - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9269
SELECT + MIN ( - - col2 ) FROM tab0
----
10

query II rowsort
SELECT DISTINCT + 61 AS col1, - col1 FROM tab2
----
61
-51
61
-67
61
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * - 19 col1 FROM tab2
----
1015
1348
1527

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 88 * - + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - - COUNT( * ) + - 88 col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9273
SELECT - - COUNT ( * ) + - 88 col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT 94 + - 22 AS col2 FROM tab1 AS cor0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 41 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 38 AS col2 FROM tab1
----
-106
-134
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 93 IS NULL
----

query I rowsort
SELECT ALL 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + col0 + col0 + 53 AS col0 FROM tab0
----
227
247
83

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 75 - col0 * + 18 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
19119
46155
78375

query II rowsort
SELECT ALL - 52 - - col2 AS col1, - col1 * col1 * - col1 * + col1 + - col2 FROM tab1 AS cor0
----
16
4879613
44
38320
7
566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT DISTINCT - - CAST( + 71 AS SIGNED ) * + col0 * col1 * - 36 + - col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-247932
-3105540
-4669812

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - - CAST ( + 71 AS INTEGER ) * + col0 * col1 * - 36 + - col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-247932
-3105540
-4669812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9284
SELECT + - col0 - CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9284
SELECT + - col0 - CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - 98 col2 FROM tab2 AS cor0
----
23
34
52

query I rowsort
SELECT DISTINCT + col1 * - 26 + + col0 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-1416
-2811
-9629

query I rowsort
SELECT 52 - - col1 FROM tab1 AS cor0
----
57
66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT col1 + 5 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT col1 + 5 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 10 FROM tab2
----
61
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL SUM( DISTINCT - + 24 ) AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL SUM ( DISTINCT - + 24 ) AS col0 FROM tab2
----
-24

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - COUNT( * ) * - 81 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - COUNT ( * ) * - 81 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL - MIN( 74 ) * - 89 FROM tab0 AS cor0
----
6586

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - MIN ( 74 ) * - 89 FROM tab0 AS cor0
----
6586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT DISTINCT ( + - COUNT( * ) ) DIV + + MIN( DISTINCT + - ( - + col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT ( + - COUNT ( * ) ) / + + MIN ( DISTINCT + - ( - + col0 ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 57 IN ( + 6 * + col2, col2, - col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 18 * 57 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c436fe82e7eed5cb971cbbef3f7a5e9f

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col1 BETWEEN + col2 + + col0 * - col1 * - - col2 AND + 46
----

query I rowsort
SELECT 20 * - - col0 FROM tab2
----
1280
1500
920

query II rowsort
SELECT 47 AS col1, col1 AS col0 FROM tab1
----
47
14
47
47
47
5

query I rowsort
SELECT ALL - col1 * - + col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - - 35 * ( + MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
3185

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - - 35 * ( + MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
3185

query II rowsort
SELECT - 99 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-99
14
-99
47
-99
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL + col0, - 94 FROM tab2 AS cor0
----
46
-94
64
-94
75
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT ALL + ( - + 43 ), COUNT( * ) col0 FROM tab2 cor0
----
-43
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9309
SELECT ALL + ( - + 43 ), COUNT ( * ) col0 FROM tab2 cor0
----
-43
3

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - 80 IN ( col2 * + - col2 * col0 / + - 27, 47, - 59, - col2, 13 + - ( - + 48 ) )
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9311
SELECT DISTINCT + col0, col2 DIV - - 26 FROM tab2 AS cor0
----
46
0
64
1
75
2

skipif mysql # not compatible
query II rowsort label-9311
SELECT DISTINCT + col0, col2 / - - 26 FROM tab2 AS cor0
----
46
0
64
1
75
2

query I rowsort
SELECT + 82 + col2 FROM tab0 AS cor0
----
129
181
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT DISTINCT col1 + - ( + CAST( NULL AS SIGNED ) ) * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT col1 + - ( + CAST ( NULL AS INTEGER ) ) * col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9314
SELECT DISTINCT * FROM tab1 WHERE + col1 + + 46 + col1 / - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9314
SELECT DISTINCT * FROM tab1 WHERE + col1 + + 46 + col1 / - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col0 ) AND - 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 97 * - col0 * + col0 col1 FROM tab2
----
15892480
31646250
4720796

query I rowsort
SELECT ALL - 82 * 95 + + 3 * col1 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col0 * - col0 + + ( - col1 ) * - col1 * - 75 AS col2 FROM tab0 cor0
----
-40644
-492300
-9484

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= - col1 + - + col2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT COUNT( * ) DIV + - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9321
SELECT COUNT ( * ) / + - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT + 11 + - COUNT( * ) + - 57 DIV + COUNT( * ) AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 11 + - COUNT ( * ) + - 57 / + COUNT ( * ) AS col2 FROM tab1
----
-11

query I rowsort
SELECT DISTINCT 65 + col0 * + ( - col2 ) AS col1 FROM tab1
----
-4831
-4950
-6123

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT col0 DIV - - 92 * - col0 + - + col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9324
SELECT col0 / - - 92 * - col0 + - + col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9325
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( + 2 AS SIGNED ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9325
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( + 2 AS INTEGER ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + ( + 55 ) * - MIN( col2 ) / + 27 * + 40 + + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + ( + 55 ) * - MIN ( col2 ) / + 27 * + 40 + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col2
----
NULL

query I rowsort
SELECT DISTINCT 99 - + - 74 FROM tab2 AS cor0
----
173

query I rowsort
SELECT + 89 * col0 * + + col2 AS col0 FROM tab2 AS cor0
----
227840
387150
94162

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + col1 AS col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 76 BETWEEN + - col0 AND col1
----
51
14
96

query I rowsort
SELECT ALL ( - 52 ) FROM tab0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - + 52 * - - AVG ( - - col1 ) FROM tab1 WHERE ( NOT + 29 < NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9334
SELECT ALL ( + 54 ) col2, col1 + + 49 - col1 DIV + col0 + col2 - + CAST( 14 AS SIGNED ) + col2 * + col2 AS col1 FROM tab1 AS cor0
----
54
3580
54
4774
54
9361

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9334
SELECT ALL ( + 54 ) col2, col1 + + 49 - col1 / + col0 + col2 - + CAST ( 14 AS INTEGER ) + col2 * + col2 AS col1 FROM tab1 AS cor0
----
54
3580
54
4774
54
9361

query I rowsort
SELECT ALL - 51 * + ( - col2 ) FROM tab2 cor0
----
1173
2040
2958

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT DISTINCT 34 * + + col2, 23 * + col1 * - 78 * - col2 AS col1 FROM tab2 AS cor0
----
1360
5525520
1972
6971484
782
2104362

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 AS col2 FROM tab1 WHERE NOT - col0 + + 99 IS NULL
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT ALL - CAST( - - 45 AS SIGNED ) FROM tab0 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL - CAST ( - - 45 AS INTEGER ) FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT + 29, col2 AS col1, + - col2 * + col1 + - col0 AS col2 FROM tab1
----
9 values hashing to 141e22687e2598a799cdb792a385db48

query I rowsort
SELECT ALL col1 + ( - + 48 ) + + col1 + + 14 AS col0 FROM tab1
----
-24
-6
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col1 BETWEEN NULL AND 25
----

query II rowsort
SELECT ALL - col1 + col0, + col2 FROM tab1
----
37
96
44
68
80
59

query I rowsort
SELECT - col0 + - 32 + - col2 + - 2 FROM tab0 AS cor0
----
-131
-230
-96

query I rowsort
SELECT ALL col1 + - + col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9347
SELECT DISTINCT - 88, 18 + + COUNT( * ) col2 FROM tab0 AS cor0
----
-88
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9347
SELECT DISTINCT - 88, 18 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-88
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 - + - ( - + col0 ) col1 FROM tab2 AS cor0
----
-62
-80
-91

query I rowsort
SELECT DISTINCT - + col0 - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT - - col1 * col1 + + col1 * + ( + col0 ) AS col2 FROM tab2 AS cor0
----
10857
4947
9514

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9352
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - 83 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9352
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - 83 IS NULL
----

query I rowsort
SELECT - + col2 * - col1 + + col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 90 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN - col1 AND + ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0, + col1 * + 10 FROM tab0 cor0
----
15
810
87
210
97
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 28, col1 col0 FROM tab2 AS cor0
----
28
51
28
67
28
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 8 col0, 24 FROM tab1 AS cor0
----
8
24
8
24
8
24

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT 66 BETWEEN + - 62 * - 3 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL - SUM( DISTINCT - col1 ) col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9360
SELECT ALL - SUM ( DISTINCT - col1 ) col2 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - - ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9361
SELECT - - ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9362
SELECT + ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT + 15 AS col0 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT - col2 + + 51 AS col1 FROM tab1 AS cor0
----
-17
-45
-8

query I rowsort
SELECT + 20 + + col0 AS col1 FROM tab2
----
66
84
95

query I rowsort
SELECT DISTINCT + 95 + col1 FROM tab1
----
100
109
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9367
SELECT COUNT( * ) * 5 * - COUNT( * ) col1, + 36 * - COUNT( + 98 ) AS col2 FROM tab2
----
-45
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9367
SELECT COUNT ( * ) * 5 * - COUNT ( * ) col1, + 36 * - COUNT ( + 98 ) AS col2 FROM tab2
----
-45
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + 6 + + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9368
SELECT + 6 + + + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + - ( + COUNT( * ) ) + - 19 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-9369
SELECT + - ( + COUNT ( * ) ) + - 19 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + + 10 col0 FROM tab1
----
520
520
520

query I rowsort
SELECT - ( 19 ) AS col2 FROM tab1
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL COUNT( col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL COUNT ( col2 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 AS col2, 95 col1 FROM tab0 AS cor0
----
-10
95
-47
95
-99
95

query II rowsort
SELECT ALL col0 AS col1, col0 - + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

query II rowsort
SELECT DISTINCT col0, - ( + 56 ) AS col2 FROM tab1 cor0
----
51
-56
85
-56
91
-56

query II rowsort
SELECT + col2 AS col0, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9377
SELECT col2 * - - 2 AS col2, + col2 DIV - 27 FROM tab0
----
198
-3
20
0
94
-1

skipif mysql # not compatible
query II rowsort label-9377
SELECT col2 * - - 2 AS col2, + col2 / - 27 FROM tab0
----
198
-3
20
0
94
-1

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - + 85 AS col2 FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 22 + 96 + - + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-9381
SELECT 22 + 96 + - + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
127

query I rowsort
SELECT - 88 FROM tab0 WHERE NOT 12 NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = col0 / - col1
----

skipif mysql # not compatible
query I rowsort label-9384
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = col0 / - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 83 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + - - col1, 72 * - col2 + + 3 AS col1 FROM tab2
----
0
-1653
0
-2877
0
-4173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT DISTINCT COUNT( * ) * - MAX( - + 37 ) * + - COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-330

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT COUNT ( * ) * - MAX ( - + 37 ) * + - COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-330

query I rowsort
SELECT DISTINCT - 84 + + + 32 * - 59 FROM tab2
----
-1972

query I rowsort
SELECT DISTINCT 49 + - col1 * - - col2 AS col0 FROM tab1
----
-1295
-246
-3147

query III rowsort
SELECT * FROM tab2 WHERE 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT - 72 * col1 + 0 + + 93 DIV + col1 + col2 col2 FROM tab1
----
-283
-3315
-906

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT DISTINCT - 72 * col1 + 0 + + 93 / + col1 + col2 col2 FROM tab1
----
-283
-3315
-906

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NOT + 70 * - + 77 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT ( NULL < NULL ) ) )
----

query I rowsort
SELECT ALL + ( + col1 ) * - 20 AS col2 FROM tab2 AS cor0
----
-1020
-1340
-1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * - + 60 col1 FROM tab2 AS cor0
----
-3960
-3960
-3960

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT - 53 IS NOT NULL
----

query I rowsort
SELECT - col1 - col0 - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 1 + col1 <= - 25
----
-185
-79
-95

query I rowsort
SELECT + ( + 16 ) FROM tab1 cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT ALL - - CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL 23 * - + col0 FROM tab0 AS cor0
----
-2001
-2231
-345

query I rowsort
SELECT - - 52 AS col0 FROM tab0 AS cor0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT COUNT( * ) col2, + 90 AS col2 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9403
SELECT COUNT ( * ) col2, + 90 AS col2 FROM tab2 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + MIN( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9404
SELECT + MIN ( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + MAX( - col1 ) col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9405
SELECT + MAX ( - col1 ) col2 FROM tab1 cor0
----
-5

query I rowsort
SELECT - 2 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + + 65 ) FROM tab2 AS cor0 WHERE NOT - ( - 53 ) IS NOT NULL
----

query I rowsort
SELECT ALL 67 * - col1 FROM tab0
----
-1407
-5427
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + col2 col0 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 95 ) col1 FROM tab1
----
-95
-95
-95

query II rowsort
SELECT col0 AS col1, - 67 * - - col1 FROM tab2
----
46
-3417
64
-5159
75
-4489

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT - 72 DIV + + col1 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT - 72 / + + col1 col0 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT + 98 AS col0, + 53 + + col1 AS col1 FROM tab0 AS cor0
----
98
134
98
54
98
74

query I rowsort
SELECT ALL - 42 * + 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 044dec96a0fea68156e2c6f13fce6896

query II rowsort
SELECT - col1 + - 0 AS col2, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9419
SELECT 52, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + + col2 >= - col0
----
52
0

skipif mysql # not compatible
query II rowsort label-9419
SELECT 52, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + + col2 >= - col0
----
52
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col0 ) >= + - col2
----

query I rowsort
SELECT - col1 + + 76 AS col1 FROM tab0 AS cor0
----
-5
55
75

query I rowsort
SELECT 14 + - ( - 73 ) * + col0 FROM tab1 AS cor0
----
3737
6219
6657

query I rowsort
SELECT DISTINCT ( col2 ) + + 41 * - col0 AS col1 FROM tab0 AS cor0
----
-3557
-3878
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - - MIN( ALL + 35 ) FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - - MIN ( ALL + 35 ) FROM tab1 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL MAX( + ( - + 15 ) ) AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL MAX ( + ( - + 15 ) ) AS col1 FROM tab2
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 99 + - col2 + - + col2 col0, - ( + col1 ) AS col0 FROM tab0
----
-99
-1
5
-81
79
-21

query I rowsort
SELECT 57 * - - 95 + col0 * 40 / + 33 / + + col1 AS col2 FROM tab0 WHERE 15 + + - 91 + ( col1 ) / - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 58 * + + COUNT( ALL - - col0 ) AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 58 * + + COUNT ( ALL - - col0 ) AS col1 FROM tab1
----
-174

query I rowsort
SELECT + - 44 AS col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT + 40, SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
40
195

skipif mysql # not compatible
query II rowsort label-9431
SELECT + 40, SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
40
195

query I rowsort
SELECT DISTINCT - 83 - + + col2 FROM tab1
----
-142
-151
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL CAST( - 60 AS SIGNED ) * + col2 * col0 AS col0 FROM tab0
----
-42300
-52200
-576180

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL CAST ( - 60 AS INTEGER ) * + col2 * col0 AS col0 FROM tab0
----
-42300
-52200
-576180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT + ( + CAST( ( col0 ) AS SIGNED ) ) - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-9434
SELECT + ( + CAST ( ( col0 ) AS INTEGER ) ) - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - + ( - 62 ) * + 10 FROM tab2 AS cor0
----
620
620
620

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - - MAX( ALL + - col0 ) + + - COUNT( 1 ) AS col1 FROM tab0 WHERE NOT ( ( NULL ) BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT - - MAX ( ALL + - col0 ) + + - COUNT ( 1 ) AS col1 FROM tab0 WHERE NOT ( ( NULL ) BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT ALL - 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL + - 44 * - col2 AS col1 FROM tab1 AS cor0
----
2596
2992
4224

query II rowsort
SELECT DISTINCT + 71 * - 64 AS col2, 65 - - 5 AS col2 FROM tab2 cor0
----
-4544
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / + 62 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT - ( + 0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 * - - col1 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT COUNT( ALL + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9443
SELECT COUNT ( ALL + col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT DISTINCT COUNT( * ), 44 AS col0 FROM tab0
----
3
44

skipif mysql # not compatible
query II rowsort label-9444
SELECT DISTINCT COUNT ( * ), 44 AS col0 FROM tab0
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - MIN( - + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9445
SELECT - MIN ( - + col1 ) FROM tab0
----
81

query I rowsort
SELECT + ( - 62 ) AS col0 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - MIN( DISTINCT - 92 ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9447
SELECT - MIN ( DISTINCT - 92 ) AS col1 FROM tab1
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( 66 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col2 ) <> ( + 26 - - - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9450
SELECT ALL - 30 AS col2, col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-30
1
-30
1
-30
1

skipif mysql # not compatible
query II rowsort label-9450
SELECT ALL - 30 AS col2, col2 / col2 AS col1 FROM tab1 AS cor0
----
-30
1
-30
1
-30
1

query I rowsort
SELECT + col2 * + 1 * + col0 + + - 6 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
1191
9609
996

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL - MIN( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL - MIN ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT + + 43 / + 62 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + + 43 / + 62 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 82 * col1 * - + col2 + + - col1 * col2 FROM tab2
----
249480
314766
95013

query I rowsort
SELECT col0 * col0 + + - col0 AS col2 FROM tab1
----
2550
7140
8190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9458
SELECT ALL - CAST( NULL AS SIGNED ) * 1 + + 80, - 43 AS col2 FROM tab1
----
NULL
-43
NULL
-43
NULL
-43

skipif mysql # not compatible
query II rowsort label-9458
SELECT ALL - CAST ( NULL AS INTEGER ) * 1 + + 80, - 43 AS col2 FROM tab1
----
NULL
-43
NULL
-43
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL 55 + MIN( ALL + - col1 ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL 55 + MIN ( ALL + - col1 ) AS col2 FROM tab0
----
-26

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN - ( 30 ) AND + - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 < + + 60
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT + + SUM( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + + SUM ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * col2 col2 FROM tab0
----
4183
8811
890

query I rowsort
SELECT ALL - 96 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + SUM( ALL - + ( + col1 ) ) * 51 FROM tab0 AS cor0
----
-5253

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + SUM ( ALL - + ( + col1 ) ) * 51 FROM tab0 AS cor0
----
-5253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT - CAST( - MIN( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9468
SELECT - CAST ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - 36 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-36
-36
-36

query I rowsort
SELECT ALL - - col2 * + + 86 * col1 * col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT - COUNT( * ), ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9471
SELECT - COUNT ( * ), ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= - - col2
----

query I rowsort
SELECT DISTINCT + 50 + 0 FROM tab1
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 <> 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 <> ( - + 4 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9477
SELECT ALL ( ( + ( - 32 ) ) ) + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL ( ( + ( - 32 ) ) ) + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 / + col1 FROM tab2 WHERE NOT - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL + 54 * COUNT( * ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + 54 * COUNT ( * ) FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT ( 58 ), + COUNT( * ) + - MIN( ALL + col1 ) + - - MAX( + col0 ) AS col1 FROM tab2
----
58
27

skipif mysql # not compatible
query II rowsort label-9480
SELECT ( 58 ), + COUNT ( * ) + - MIN ( ALL + col1 ) + - - MAX ( + col0 ) AS col1 FROM tab2
----
58
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9481
SELECT DISTINCT - - 22 * + CAST( NULL AS DECIMAL ) / + col0 + 70 / + + col2 + - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - - 22 * + CAST ( NULL AS REAL ) / + col0 + 70 / + + col2 + - + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * - ( 16 ) FROM tab2 AS cor0
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COUNT( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9483
SELECT COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL ( + 90 ), col0 AS col2 FROM tab2 AS cor0
----
90
46
90
64
90
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT + MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - - 38 - + ( - 60 ) + + + col1 FROM tab1 AS cor0
----
103
112
145

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 53 / - - 92 IS NOT NULL
----

query I rowsort
SELECT + - 36 AS col2 FROM tab0 cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + 0 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT + 0 * + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + SUM( ALL col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9491
SELECT + SUM ( ALL col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT col1 * + - 18 FROM tab1
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT MAX( col2 ) AS col0, 98 + - - 58 * - COUNT( * ) + + SUM( - + 41 ) * + + 37 * - COUNT( + - col2 ) FROM tab0
----
99
13577

skipif mysql # not compatible
query II rowsort label-9493
SELECT MAX ( col2 ) AS col0, 98 + - - 58 * - COUNT ( * ) + + SUM ( - + 41 ) * + + 37 * - COUNT ( + - col2 ) FROM tab0
----
99
13577

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL + COUNT( - 95 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + COUNT ( - 95 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT COUNT( * ) * - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9495
SELECT COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + SUM( ALL - + 85 ) AS col2 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-9498
SELECT + SUM ( ALL - + 85 ) AS col2 FROM tab0
----
-255

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ( + MIN( ALL - + col2 ) ) FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT ( + MIN ( ALL - + col2 ) ) FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + ( + col0 ) / - 15 + + - col0
----

query I rowsort
SELECT DISTINCT + - col1 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + COUNT( DISTINCT - 31 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9504
SELECT + COUNT ( DISTINCT - 31 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9507
SELECT ALL - col0 FROM tab2 WHERE NOT + CAST( + col2 AS DECIMAL ) * - col2 * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL - col0 FROM tab2 WHERE NOT + CAST ( + col2 AS REAL ) * - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT - - 71 AS col0 FROM tab1 WHERE NULL IS NULL
----
71
71
71

query II rowsort
SELECT DISTINCT - - col0 AS col0, 43 * col0 + 64 + + - 89 + + col2 AS col2 FROM tab1 AS cor0
----
51
2264
85
3689
91
3956

query I rowsort
SELECT 23 + - col1 FROM tab2 AS cor0
----
-28
-44
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + + COUNT( DISTINCT - 12 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + + COUNT ( DISTINCT - 12 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT - COUNT( * ) + - - 27 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9512
SELECT - COUNT ( * ) + - - 27 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL CAST( col2 AS SIGNED ) * - col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * - col1 col0 FROM tab0
----
-3078
-38
-798

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - 97 * MAX( DISTINCT 6 ) FROM tab0
----
-582

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - 97 * MAX ( DISTINCT 6 ) FROM tab0
----
-582

query I rowsort
SELECT - col2 - col2 * - ( - col2 * - col1 ) AS col2 FROM tab1
----
128928
17346
217260

query I rowsort
SELECT ALL + 80 * + col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT ALL col1 DIV + 71 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL col1 / + 71 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL COUNT( * ) DIV SUM( DISTINCT - ( 58 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL COUNT ( * ) / SUM ( DISTINCT - ( 58 ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( col2 ) AND ( col1 ) + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9522
SELECT col1 FROM tab2 WHERE + col1 * - CAST( NULL AS DECIMAL ) NOT BETWEEN col2 * - 95 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9522
SELECT col1 FROM tab2 WHERE + col1 * - CAST ( NULL AS REAL ) NOT BETWEEN col2 * - 95 AND NULL
----

query I rowsort
SELECT ALL - col2 - - 18 FROM tab0
----
-29
-81
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL ( COUNT( * ) ) + + 18 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL ( COUNT ( * ) ) + + 18 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + ( ( COUNT( * ) ) ) FROM tab2 WHERE NULL BETWEEN ( ( + col2 ) * + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + ( ( COUNT ( * ) ) ) FROM tab2 WHERE NULL BETWEEN ( ( + col2 ) * + col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT - 78 DIV - COUNT( ALL 46 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-9526
SELECT - 78 / - COUNT ( ALL 46 ) FROM tab0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9527
SELECT CAST( NULL AS DECIMAL ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT CAST ( NULL AS REAL ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) <> col2 / col1 + + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab2 WHERE NOT col0 IS NULL
----
2601
4489
5929

query I rowsort
SELECT ALL - col0 * + ( + col2 * + col1 ) + + 26 FROM tab2
----
-197094
-291424
-53932

query I rowsort
SELECT 68 * + col0 + + col2 * 22 AS col0 FROM tab0
----
2054
6136
8774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + CAST( COUNT( * ) AS SIGNED ) + SUM( DISTINCT - 69 ) FROM tab1 WHERE NOT - 52 + col1 = - 48
----
-66

skipif mysql # not compatible
query I rowsort label-9532
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + SUM ( DISTINCT - 69 ) FROM tab1 WHERE NOT - 52 + col1 = - 48
----
-66

query I rowsort
SELECT + 65 * col2 + col1 AS col0 FROM tab2 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + COUNT( * ) FROM tab0 WHERE ( NULL ) = + col0 - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9534
SELECT + COUNT ( * ) FROM tab0 WHERE ( NULL ) = + col0 - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT - 37 * + COUNT( * ) col1 FROM tab0 WHERE NOT + col1 NOT IN ( col0 * - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT DISTINCT - 37 * + COUNT ( * ) col1 FROM tab0 WHERE NOT + col1 NOT IN ( col0 * - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ( - COUNT( ALL + col2 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9536
SELECT ( - COUNT ( ALL + col2 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 44 + - col2 AS col1 FROM tab2
----
-14
21
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( DISTINCT + 20 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( DISTINCT + 20 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 58 col2 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 84
----

query I rowsort
SELECT - 49 + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - 0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 11 > - col0 * 39 + - col0 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col2 * 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - MIN( + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9545
SELECT - MIN ( + 82 ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NOT - 27 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + MAX( col1 ) FROM tab0 cor0 WHERE ( col0 + + 19 * + 92 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + MAX ( col1 ) FROM tab0 cor0 WHERE ( col0 + + 19 * + 92 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - - 25 + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-9549
SELECT - - 25 + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + MIN( ALL - 24 ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + MIN ( ALL - 24 ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) <= ( - 76 )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9553
SELECT ( col2 ) + + col2 FROM tab0 AS cor0 WHERE col2 < ( CAST( + 69 AS DECIMAL ) )
----
20
94

skipif mysql # not compatible
query I rowsort label-9553
SELECT ( col2 ) + + col2 FROM tab0 AS cor0 WHERE col2 < ( CAST ( + 69 AS REAL ) )
----
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9554
SELECT * FROM tab1 WHERE ( + col0 ) * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9554
SELECT * FROM tab1 WHERE ( + col0 ) * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - - col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL col1 + - col2 + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL col1 + - col2 + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9558
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9558
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT DISTINCT + col1 + + col0 + + 14 DIV + 17 * + col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + col1 + + col0 + + 14 / + 17 * + col0 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT + 22 * col1 DIV 88 col1 FROM tab0
----
0
20
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9560
SELECT + 22 * col1 / 88 col1 FROM tab0
----
0
20
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT + SUM( ALL col0 ) col2 FROM tab0 WHERE NOT ( - 5 * + col1 ) IS NULL
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9561
SELECT DISTINCT + SUM ( ALL col0 ) col2 FROM tab0 WHERE NOT ( - 5 * + col1 ) IS NULL
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT + SUM( col1 ) FROM tab0 WHERE NOT ( NULL ) <= + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + SUM ( col1 ) FROM tab0 WHERE NOT ( NULL ) <= + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - + COUNT( ALL + col1 ) * 10 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - + COUNT ( ALL + col1 ) * 10 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT 79 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9565
SELECT 79 / + col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9566
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9566
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST ( col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + + 35 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col2 + 17 - 92 FROM tab2
----
-17
-35
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) + + + ( - col1 ) * + 37 FROM tab0
----
-134
-3012
-864

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) + + + ( - col1 ) * + 37 FROM tab0
----
-134
-3012
-864

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col0 * 32 >= col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT 59 + - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - 89 )
----
59

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT 59 + - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - 89 )
----
59

query I rowsort
SELECT - col2 * - - 76 + - col1 FROM tab2 AS cor0
----
-1799
-3117
-4475

query I rowsort
SELECT - ( + 42 ) FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT + + COUNT( * ) * 97 DIV COUNT( * ) - 97 * + 3 FROM tab2 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + + COUNT ( * ) * 97 / COUNT ( * ) - 97 * + 3 FROM tab2 AS cor0
----
-194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT MIN( 22 ) DIV SUM( ALL col2 ) + + 37 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT MIN ( 22 ) / SUM ( ALL col2 ) + + 37 FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col0 * col0 * - - 72 AS col0 FROM tab2 AS cor0
----
152352
294912
405000

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - 24 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 - - col0 * col2 ) BETWEEN col2 / col0 AND - 91
----
-72

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - 24 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 - - col0 * col2 ) BETWEEN col2 / col0 AND - 91
----
-72

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - + col0 + - 45 IN ( col0 + - 82 * 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + ( + 76 ) ) * col1 AS col1 FROM tab2 WHERE NOT + + col2 IS NULL
----
-3876
-5092
-5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT CAST( NULL AS SIGNED ) * + MAX( ALL - 69 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT CAST ( NULL AS INTEGER ) * + MAX ( ALL - 69 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - - col1 + 68 * col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - + ( + - 86 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col1 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT CAST( - col2 AS SIGNED ) col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT CAST ( - col2 AS INTEGER ) col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 94 ) col0 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT CAST( - ( + col1 ) AS SIGNED ) * + 77 FROM tab1
----
-1078
-3619
-385

skipif mysql # not compatible
query I rowsort label-9587
SELECT CAST ( - ( + col1 ) AS INTEGER ) * + 77 FROM tab1
----
-1078
-3619
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 7 * col0 * - + 16 col1 FROM tab1
----
-47600
-479024
-79968

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + ( col2 ) * - ( 63 ) ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT DISTINCT - 48 DIV COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT - 48 / COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT - 60 * col2 + 82 * col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND + 6
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + 5 < NULL
----

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + 83 * + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 83 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - - col1 * + col2
----

query I rowsort
SELECT + 0 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9598
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) + - + col2 + 73 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) + - + col2 + 73 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL col2 + - + ( - 6 ) * - col1 * - ( - 97 ) + CAST( - col0 AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
-32005
-43961
-49702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT ALL col2 + - + ( - 6 ) * - col1 * - ( - 97 ) + CAST ( - col0 AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
-32005
-43961
-49702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 12 col1 FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT MAX( DISTINCT + col0 ) FROM tab2 WHERE ( col0 * col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT MAX ( DISTINCT + col0 ) FROM tab2 WHERE ( col0 * col2 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9602
SELECT + col2, - col0 DIV col1 * + col1 FROM tab1
----
59
-85
68
-47
96
-42

skipif mysql # not compatible
query II rowsort label-9602
SELECT + col2, - col0 / col1 * + col1 FROM tab1
----
59
-85
68
-47
96
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT + 21 * 21 * 98 + - COUNT( ALL 70 ) FROM tab2
----
43215

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + 21 * 21 * 98 + - COUNT ( ALL 70 ) FROM tab2
----
43215

query III rowsort
SELECT * FROM tab1 WHERE + col2 * 64 NOT IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT DISTINCT ( - 57 ) AS col2, COUNT( * ) + - - 95 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
-57
0

skipif mysql # not compatible
query II rowsort label-9605
SELECT DISTINCT ( - 57 ) AS col2, COUNT ( * ) + - - 95 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
-57
0

query I rowsort
SELECT + + col1 + + + col1 + - 88 + + col0 + - col1 * - col1 * col2 + col0 FROM tab0 AS cor0
----
207
308471
4538

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + + SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + + SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE col2 * 66 * + 36 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT COUNT( * ) * 35 + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
374

skipif mysql # not compatible
query I rowsort label-9609
SELECT COUNT ( * ) * 35 + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
374

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9610
SELECT DISTINCT + col1 * - col2 AS col1, CAST( NULL AS SIGNED ) / - - col2 + - ( - 16 ) AS col1 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT + col1 * - col2 AS col1, CAST ( NULL AS INTEGER ) / - - col2 + - ( - 16 ) AS col1 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9611
SELECT - CAST( - 74 AS SIGNED ), + col0 FROM tab2 AS cor0
----
74
46
74
64
74
75

skipif mysql # not compatible
query II rowsort label-9611
SELECT - CAST ( - 74 AS INTEGER ), + col0 FROM tab2 AS cor0
----
74
46
74
64
74
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - 25 * 55 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT COUNT( col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9613
SELECT COUNT ( col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( col2 ) * + - 23 + - 25 FROM tab1 AS cor0
----
-1382
-1589
-2233

query II rowsort
SELECT + col0 * - col0 AS col1, col0 FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT + ( 82 ) AS col2, col0 AS col2 FROM tab0 AS cor0
----
82
15
82
87
82
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9618
SELECT + + ( + COUNT( * ) ), + 52 AS col1 FROM tab1 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-9618
SELECT + + ( + COUNT ( * ) ), + 52 AS col1 FROM tab1 AS cor0
----
3
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT - col2 + - 55 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( CAST( NULL AS SIGNED ) ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-9619
SELECT - col2 + - 55 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( CAST ( NULL AS INTEGER ) ) + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + - ( COUNT( * ) ) FROM tab2 WHERE NOT + - 4 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT + - ( COUNT ( * ) ) FROM tab2 WHERE NOT + - 4 < NULL
----
0

query I rowsort
SELECT ALL 69 * + col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL + col2 * - + 90 * col1 FROM tab2
----
-105570
-277200
-349740

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL + - 39 FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + - 39 FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT ALL - col2 + + 50, + col0 FROM tab1
----
-18
91
-46
51
-9
85

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9627
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9627
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + 93 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
93

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + 93 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - ( + 61 ) + - + 27 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 - 73 + - col1 col2 FROM tab1 AS cor0 WHERE 87 IS NOT NULL
----
-108
-66
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 35 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab0 AS cor0 WHERE - 5 <> ( - col2 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT DISTINCT 55 * - + 31 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
-1720
-1792
-1802

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT 55 * - + 31 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
-1720
-1792
-1802

query I rowsort
SELECT 67 FROM tab1 WHERE + + col0 IS NOT NULL
----
67
67
67

query III rowsort
SELECT * FROM tab0 WHERE col1 + 37 + + - 28 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT + 17 / - + ( col0 ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + 17 / - + ( col0 ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT 60 - + + COUNT( * ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT 60 - + + COUNT ( * ) AS col0 FROM tab1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL - col2 + 5 + col1 + + col2 DIV col2 + - col1 AS col1 FROM tab1
----
-53
-62
-90

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - col2 + 5 + col1 + + col2 / col2 + - col1 AS col1 FROM tab1
----
-53
-62
-90

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE 41 + + col1 * + + 12 IS NULL
----

query I rowsort
SELECT DISTINCT 71 * 8 + - + col0 * - col1 * - col2 AS col2 FROM tab1
----
-24507
-290268
-67976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + - 23 col2 FROM tab2 AS cor0
----
-46
-63
-81

query I rowsort
SELECT ALL col2 * col2 + + + 27 + - ( - col1 ) * - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT - + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - 90 ) * - col1 + - col2 + col1 * - - col2 AS col0 FROM tab2
----
5740
9858
9970

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9648
SELECT + col0, col2 * ( 87 ) AS col1 FROM tab0 WHERE NOT - col0 / - + col2 / + - CAST( ( + 44 ) AS DECIMAL ) = - col2
----
15
4089
87
870
97
8613

skipif mysql # not compatible
query II rowsort label-9648
SELECT + col0, col2 * ( 87 ) AS col1 FROM tab0 WHERE NOT - col0 / - + col2 / + - CAST ( ( + 44 ) AS REAL ) = - col2
----
15
4089
87
870
97
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9649
SELECT + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - + 96 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + 33 * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - COUNT( ALL + 82 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9653
SELECT - COUNT ( ALL + 82 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL SUM( 61 ) FROM tab2, tab2 AS cor0
----
549

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL SUM ( 61 ) FROM tab2, tab2 AS cor0
----
549

query I rowsort
SELECT + col0 * - - col0 * + - 2 AS col2 FROM tab2
----
-11250
-4232
-8192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - 85 col2, 1 AS col2 FROM tab1
----
1190
1
3995
1
425
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT - ( - col0 ) / - CAST( NULL AS SIGNED ) * + 3 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT - ( - col0 ) / - CAST ( NULL AS INTEGER ) * + 3 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 17 FROM tab0 WHERE NOT ( NOT 35 <> + col0 )
----
-17
-17
-17

query II rowsort
SELECT - col2 * 68, col1 AS col0 FROM tab0
----
-3196
81
-6732
1
-680
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col2 + - + col1 >= 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT - - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT 20 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT 20 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 * - - 5 * 3 + 23 FROM tab1 AS cor0
----
233
728
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT + col1 DIV + col2 + 45 + + + col2 + - col2 * + + col1 FROM tab2 AS cor0
----
-1103
-2994
-3782

skipif mysql # not compatible
query I rowsort label-9663
SELECT + col1 / + col2 + 45 + + + col2 + - col2 * + + col1 FROM tab2 AS cor0
----
-1103
-2994
-3782

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + - ( - - COUNT( * ) ) + - - COUNT( - col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT + - ( - - COUNT ( * ) ) + - - COUNT ( - col2 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT DISTINCT + col0 FROM tab1 WHERE + 72 IN ( - col0 * - + col0 + + + ( - + col0 ) + - + col1, 57, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + col0 FROM tab1 WHERE + 72 IN ( - col0 * - + col0 + + + ( - + col0 ) + - + col1, 57, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + COUNT( ALL - col2 ) - + ( SUM( col2 ) ) AS col1 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + COUNT ( ALL - col2 ) - + ( SUM ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 38 * SUM( DISTINCT 67 ) AS col1 FROM tab2 AS cor0
----
-2546

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 38 * SUM ( DISTINCT 67 ) AS col1 FROM tab2 AS cor0
----
-2546

query I rowsort
SELECT + + ( + col2 ) * 12 FROM tab0 cor0
----
1188
120
564

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT 67 DIV col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9669
SELECT 67 / col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + col0 + - 31 FROM tab2 AS cor0
----
15
33
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT - + COUNT( * ) - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT - + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 22 + - col0 AS col1 FROM tab0
----
-109
-119
-37

query I rowsort
SELECT ALL - 16 - + col0 + - col2 * + + col2 + - 57 AS col2 FROM tab2
----
-1737
-3512
-648

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9676
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - CAST( 38 AS SIGNED ) * col1 * - - col1 * + col1 + + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9676
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - CAST ( 38 AS INTEGER ) * col1 * - - col1 * + col1 + + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col1 - col2 * col0 + + - col0 + - - ( col2 ) * + col0 * + col2 col2 FROM tab2
----
23128
247741
99622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT col1 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-9679
SELECT col1 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 14
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9682
SELECT ALL CAST( ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL CAST ( ( - CAST ( NULL AS INTEGER ) ) AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( ( + col2 ) * + - 25 + - 71 * + col1 * - col1 * + col1 * - + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL + COUNT( + 41 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + COUNT ( + 41 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT ALL - 77 AS col1, + 45 AS col1 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
-77
45
-77
45
-77
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9688
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9688
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 63 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT - 99 * - COUNT( ( + 93 ) ) + + - 26 FROM tab0
----
271

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT - 99 * - COUNT ( ( + 93 ) ) + + - 26 FROM tab0
----
271

query I rowsort
SELECT - col2 * + col2 + - 99 FROM tab2 WHERE NOT ( col0 ) <= ( + - col1 ) / - + col0 - col2
----
-1699
-3463
-628

query I rowsort
SELECT ALL 64 * + 50 FROM tab0
----
3200
3200
3200

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL NOT IN ( col1, - 15, + 64 / + col2 / - 23 * + 68 + - + col2 / + col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 WHERE NOT ( + + col1 + - + ( - 44 ) - + + col2 * + 54 ) <> - col1
----

query I rowsort
SELECT DISTINCT + col0 + - col2 * + + col0 AS col2 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT + ( - COUNT( DISTINCT - - 72 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + ( - COUNT ( DISTINCT - - 72 ) ) FROM tab1
----
-1

query II rowsort
SELECT ALL col1 + - col0 AS col0, - col0 FROM tab2
----
-8
-75
13
-64
5
-46

query I rowsort
SELECT 32 FROM tab2 WHERE NOT - 91 + - col2 / - 55 * - - 87 IS NULL
----
32
32
32

query II rowsort
SELECT 14 * + col1, col2 AS col0 FROM tab1
----
196
96
658
68
70
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT + COUNT( * ) DIV + 63 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT + COUNT ( * ) / + 63 FROM tab2
----
0

query I rowsort
SELECT 22 * + 49 * - 98 AS col0 FROM tab2
----
-105644
-105644
-105644

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL COUNT( * ) * - + SUM( ALL col2 ) AS col1 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL COUNT ( * ) * - + SUM ( ALL col2 ) AS col1 FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT + MAX( - ( - 29 ) ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + MAX ( - ( - 29 ) ) FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + COUNT( - col2 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + COUNT ( - col2 ) AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + 42 > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 22 * + + 2 + + ( + + col2 ) FROM tab0
----
-34
3
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + - 26 * + COUNT( * ) AS col0 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + - 26 * + COUNT ( * ) AS col0 FROM tab2 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + SUM( + ( ( + + 8 ) ) ) FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + SUM ( + ( ( + + 8 ) ) ) FROM tab2 cor0
----
24

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * + + 88 AS col1 FROM tab1 cor0
----
-1232
-4136
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT DISTINCT 74 / + 9 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT 74 / + 9 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 + + 19 FROM tab1
----
24
33
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 24 * col1 * ( col1 ) col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT ALL - - 57 AS col2, - MAX( - 73 ) AS col0 FROM tab0 AS cor0
----
57
73

skipif mysql # not compatible
query II rowsort label-9716
SELECT ALL - - 57 AS col2, - MAX ( - 73 ) AS col0 FROM tab0 AS cor0
----
57
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * + col1 + col1 col2 FROM tab2 AS cor0
----
3315
4355
5005

query II rowsort
SELECT col1 * - - col0 * - col2 - col1, col1 FROM tab0 AS cor0
----
-18291
21
-57186
81
-9604
1

query I rowsort
SELECT DISTINCT + col2 * - 53 AS col1 FROM tab1 AS cor0
----
-3127
-3604
-5088

query II rowsort
SELECT ( ( - 43 ) ) * col0 - + - col0, - col0 AS col0 FROM tab1
----
-2142
-51
-3570
-85
-3822
-91

query I rowsort
SELECT DISTINCT + - 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 87 + + + 5 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 73 ) <> NULL
----

query I rowsort
SELECT DISTINCT - - 30 AS col2 FROM tab2 cor0
----
30

query I rowsort
SELECT ALL + ( 75 ) FROM tab1 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT ALL + ( 95 ) AS col0, + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-9727
SELECT ALL + ( 95 ) AS col0, + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
95
3

query I rowsort
SELECT DISTINCT - 64 * 24 * + col2 FROM tab2
----
-35328
-61440
-89088

query I rowsort
SELECT ( + 27 ) FROM tab2
----
27
27
27

query II rowsort
SELECT - col0 AS col1, - col0 AS col2 FROM tab0 WHERE NOT - col0 * + col0 * col0 IS NULL
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT ALL col2 * + col0 * - 23 + col2 AS col1 FROM tab1
----
-112512
-115286
-142256

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - col2, + col1, + col0 )
----

query I rowsort
SELECT DISTINCT + 16 * - 74 + + col0 FROM tab0
----
-1087
-1097
-1169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ( CAST( - + col0 AS SIGNED ) ) * + - 83 FROM tab0
----
1245
7221
8051

skipif mysql # not compatible
query I rowsort label-9734
SELECT ( CAST ( - + col0 AS INTEGER ) ) * + - 83 FROM tab0
----
1245
7221
8051

query II rowsort
SELECT DISTINCT col2 AS col1, + 57 * col1 FROM tab1 WHERE NOT NULL IN ( + - 94 * col2 )
----

query I rowsort
SELECT col0 + - + 31 AS col2 FROM tab2 AS cor0
----
15
33
44

query I rowsort
SELECT - 52 + + col0 FROM tab0 AS cor0
----
-37
35
45

query I rowsort
SELECT + 41 + 87 FROM tab0 cor0
----
128
128
128

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + 90 * ( + - ( - COUNT( * ) ) ) - + COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + 90 * ( + - ( - COUNT ( * ) ) ) - + COUNT ( * ) FROM tab1 AS cor0
----
267

query I rowsort
SELECT - + col2 - + + 66 - 7 * - col0 FROM tab0 cor0
----
-8
514
533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 * + col0 col1 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT 3 * + MAX( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT 3 * + MAX ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-45

query III rowsort
SELECT * FROM tab2 cor0 WHERE 52 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT + - ( - CAST( NULL AS SIGNED ) ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT + - ( - CAST ( NULL AS INTEGER ) ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL + 1 * COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9747
SELECT ALL + 1 * COUNT ( * ) col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + - - 41 col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND 46
----
118
118
118

query I rowsort
SELECT + ( + col2 ) + - ( ( col2 ) ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT + 11 + + 12 - 78 * - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT + 11 + + 12 - 78 * - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2 WHERE - + 54 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 66 * + 23, 79 col0 FROM tab0
----
1518
79
1518
79
1518
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT SUM( 35 ) + + MAX( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT SUM ( 35 ) + + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT - 38 * + col0 AS col2 FROM tab2 AS cor0
----
-1748
-2432
-2850

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col1 BETWEEN NULL AND col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 * - 67 + + - col1 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9757
SELECT * FROM tab0 WHERE NOT - ( + CAST( - col2 AS DECIMAL ) ) * + + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9757
SELECT * FROM tab0 WHERE NOT - ( + CAST ( - col2 AS REAL ) ) * + + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - - MAX( - - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9758
SELECT - - MAX ( - - col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT col1, - ( - col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL - col1 AS col1, 56 AS col1 FROM tab0 AS cor0
----
-1
56
-21
56
-81
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ( + 7 ) FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE + 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT DISTINCT + CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + + ( - + 73 ) * ( col1 ) + - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + + ( - + 73 ) * ( col1 ) + - col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 * col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT - 24 * 43 DIV - col1 + ( col2 ) FROM tab1
----
169
265
89

skipif mysql # not compatible
query I rowsort label-9768
SELECT - 24 * 43 / - col1 + ( col2 ) FROM tab1
----
169
265
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + ( 60 ) + - MIN( col2 ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9769
SELECT + ( 60 ) + - MIN ( col2 ) AS col2 FROM tab2
----
37

query I rowsort
SELECT 18 + - 21 FROM tab1
----
-3
-3
-3

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE 66 IN ( - 86 )
----

query I rowsort
SELECT ALL + col1 - - col0 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-197043
-291383
-53907

query I rowsort
SELECT - + col2 + + 62 AS col1 FROM tab2 AS cor0
----
22
39
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT ALL MAX( DISTINCT - 67 ) + 17 DIV + + 26 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL MAX ( DISTINCT - 67 ) + 17 / + + 26 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT + 7 - + 92 * + COUNT( * ) FROM tab0 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT + 7 - + 92 * + COUNT ( * ) FROM tab0 AS cor0
----
-269

query II rowsort
SELECT - col1, 74 * 79 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-14
-81830
-47
-274715
-5
-29225

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 40 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 - 28 + col0 / - - 22 <> - - 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 * - + 3 col2 FROM tab1
----
4032
885
9588

query I rowsort
SELECT + col2 * - 3 AS col2 FROM tab1
----
-177
-204
-288

query II rowsort
SELECT - 50 AS col2, col0 AS col1 FROM tab1
----
-50
51
-50
85
-50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - ( 40 ) * + - COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-9782
SELECT - ( 40 ) * + - COUNT ( * ) FROM tab1
----
120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col1 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col2 * - 3 FROM tab2 AS cor0
----
120
174
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 29 <> - + col1 + - col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - + col2 + + 6 + - - 14 - col0 / col1 * 54 * + 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 68 * + + col2 + + col0 FROM tab0
----
3211
6829
767

query I rowsort
SELECT - 60 + 22 + - col1 FROM tab2
----
-105
-115
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9790
SELECT DISTINCT - col1 * col1 AS col2, CAST( + + col0 AS SIGNED ) FROM tab0
----
-1
97
-441
87
-6561
15

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT - col1 * col1 AS col2, CAST ( + + col0 AS INTEGER ) FROM tab0
----
-1
97
-441
87
-6561
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9791
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL - MAX( + + col2 ) col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9792
SELECT ALL - MAX ( + + col2 ) col1 FROM tab0 cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / + - col2 NOT IN ( - col1, - col0 + 28, col0 + - + col2, - 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9795
SELECT DISTINCT CAST( - 58 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT CAST ( - 58 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - MAX( 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9796
SELECT - MAX ( 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9797
SELECT CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + - ( - SUM( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9798
SELECT + - ( - SUM ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - col2 + - col2 * - 6 FROM tab0
----
235
495
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT + ( COUNT( - col2 ) ) col1, - 96 * - + COUNT( + col0 ) AS col1 FROM tab2
----
3
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9803
SELECT + ( COUNT ( - col2 ) ) col1, - 96 * - + COUNT ( + col0 ) AS col1 FROM tab2
----
3
288

query II rowsort
SELECT DISTINCT col2 + - ( - - 71 ) AS col2, 71 FROM tab0
----
-24
71
-61
71
28
71

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT 93 + + col2 * - 6 AS col0 FROM tab1
----
-261
-315
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT DISTINCT - col1 DIV + + ( + - col0 ) FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - col1 / + + ( + - col0 ) FROM tab0 cor0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + + COUNT( + col1 ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT + + COUNT ( + col1 ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + - 84 + - 98 AS col2 FROM tab2 AS cor0
----
-182
-182
-182

query I rowsort
SELECT - + col1 + - 13 AS col0 FROM tab0 AS cor0
----
-14
-34
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL + col1 + 38 AS col1 FROM tab1
----
43
52
85

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT - 80 - + COUNT( * ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - 80 - + COUNT ( * ) FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + COUNT( ALL - 73 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + COUNT ( ALL - 73 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT - - CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9816
SELECT - - CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - ( + - MIN( DISTINCT - 76 ) ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9817
SELECT - ( + - MIN ( DISTINCT - 76 ) ) AS col1 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - COUNT( * ) * 41 AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9818
SELECT - COUNT ( * ) * 41 AS col1 FROM tab0 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - + COUNT( ALL - + 32 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - + COUNT ( ALL - + 32 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + ( + COUNT( * ) ) + + 6 + - 51 FROM tab1 WHERE NOT - col1 <= - + col2
----
-42

skipif mysql # not compatible
query I rowsort label-9820
SELECT + ( + COUNT ( * ) ) + + 6 + - 51 FROM tab1 WHERE NOT - col1 <= - + col2
----
-42

query II rowsort
SELECT + col0, + 76 * + col1 - + col2 + col1 + + col1 * + - ( + + col2 ) * + 26 FROM tab2
----
46
-26594
64
-74191
75
-95935

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT 96 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT + 5 DIV - - col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 5 / - - col2 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT col1, 3 FROM tab2 AS cor0
----
51
3
67
3
77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - COUNT( * ) * SUM( col1 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-9825
SELECT - COUNT ( * ) * SUM ( col1 ) FROM tab0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT COUNT( * ) * - 16 - - 27 + + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-9826
SELECT COUNT ( * ) * - 16 - - 27 + + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-84

query I rowsort
SELECT 15 * col0 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT + - col2 DIV + - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9828
SELECT + - col2 / + - col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 7 * - col2 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( - col0 )
----
-329
-693
-70

query I rowsort
SELECT DISTINCT + 11 * 35 - + col2 * - col2 FROM tab0 AS cor0
----
10186
2594
485

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT - ( + COUNT( + + 86 ) ) * - - CAST( - COUNT( * ) AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9832
SELECT - ( + COUNT ( + + 86 ) ) * - - CAST ( - COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL + 85 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 74 / col2 - + + 47 FROM tab0 cor0 WHERE ( NOT NULL <= + col2 )
----

query I rowsort
SELECT ALL ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col0 + - 53 FROM tab0 AS cor0
----
-38
34
44

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 > col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL - SUM( DISTINCT + col0 ) + - - SUM( col1 ) FROM tab1
----
-161

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - SUM ( DISTINCT + col0 ) + - - SUM ( col1 ) FROM tab1
----
-161

query I rowsort
SELECT + col0 * + + col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT - - ( - - col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9843
SELECT ALL * FROM tab1 WHERE NOT CAST( col0 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9843
SELECT ALL * FROM tab1 WHERE NOT CAST ( col0 AS REAL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL COUNT( ALL col0 ) + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( ALL col0 ) + 47 FROM tab2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) + + ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 76 ) AS col1 FROM tab2
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT DISTINCT 77 DIV + col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT 77 / + col2 FROM tab2
----
1
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col2 AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - COUNT( DISTINCT - 98 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - COUNT ( DISTINCT - 98 ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, - 64 FROM tab0 AS cor0
----
1
-64
21
-64
81
-64

query I rowsort
SELECT 63 * + - col0 FROM tab0 AS cor0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9855
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT col1 * + - col2 * col0 AS col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT - CAST( + 44 AS SIGNED ) AS col2 FROM tab1
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-9857
SELECT - CAST ( + 44 AS INTEGER ) AS col2 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT col2 * - + col2 + ( 83 ) * + col1 FROM tab2 AS cor0
----
2197
3704
4791

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col2 / 53
----

query I rowsort
SELECT col2 + - col1 * - - col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab0 WHERE + ( col1 ) IS NULL
----

query II rowsort
SELECT ALL - col1 AS col1, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT 36 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT 36 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 12 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + col1 - + + col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - - 50 * + + 52 FROM tab1 AS cor0
----
2600

query I rowsort
SELECT - col0 + - - col2 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE - 31 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 15 - - col2 FROM tab1 AS cor0
----
111
74
83

query II rowsort
SELECT col0, col0 AS col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 76 AND - col2
----

skipif mysql # not compatible
query I rowsort label-9876
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 76 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9877
SELECT DISTINCT + 80 DIV - CAST( - AVG ( ALL col0 ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + 80 / - CAST ( - AVG ( ALL col0 ) AS INTEGER ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN NULL AND - + ( + col2 ) * + + ( col0 ) + - col0 + 86
----

query II rowsort
SELECT DISTINCT - + ( col0 ) AS col1, 59 + - 29 * - 22 AS col2 FROM tab1 AS cor0
----
-51
697
-85
697
-91
697

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT SUM( + + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9880
SELECT SUM ( + + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT + 2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9882
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT col2 DIV 33 * - + col1 FROM tab0
----
-3
-81
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT col2 / 33 * - + col1 FROM tab0
----
-3
-81
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT - COUNT( * ) + + + 22, COUNT( - - col2 ) AS col1 FROM tab0
----
19
3

skipif mysql # not compatible
query II rowsort label-9884
SELECT - COUNT ( * ) + + + 22, COUNT ( - - col2 ) AS col1 FROM tab0
----
19
3

query I rowsort
SELECT ALL + col2 + + col1 + 14 + col2 - - col2 * - ( - 87 ) AS col2 FROM tab0
----
4278
8826
925

query I rowsort
SELECT DISTINCT - - 56 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-3304
-3808
-5376

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT + col1 + - - col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-9889
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT COUNT( DISTINCT + col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL < 58 * + col0 * + 45
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9890
SELECT DISTINCT COUNT ( DISTINCT + col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL < 58 * + col0 * + 45
----
0

query I rowsort
SELECT ALL - - 85 AS col0 FROM tab0 cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col2, + col0 col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT - 36 DIV col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 36 / col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT 98 + + - 78 AS col0 FROM tab0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * + col1 col0 FROM tab0
----
2997
37
777

query I rowsort
SELECT ALL - 75 - - 20 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9897
SELECT + CAST( NULL AS SIGNED ) AS col2, + 92 AS col1 FROM tab1
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-9897
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 92 AS col1 FROM tab1
----
NULL
92
NULL
92
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL + 48 - - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + 48 - - COUNT ( * ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 + + ( + - col2 ) FROM tab1 AS cor0
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 - - col1 col1 FROM tab1 AS cor0
----
45
54
87

query I rowsort
SELECT DISTINCT - + col0 * + - 99 FROM tab2 AS cor0
----
4554
6336
7425

query I rowsort
SELECT ALL + 23 * col2 AS col1 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT ALL + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * - + 77 AS col0 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # DIV for integer division: 
query II rowsort label-9906
SELECT + 4 DIV + col1 AS col2, - col1 FROM tab0
----
0
-21
0
-81
4
-1

skipif mysql # not compatible
query II rowsort label-9906
SELECT + 4 / + col1 AS col2, - col1 FROM tab0
----
0
-21
0
-81
4
-1

query I rowsort
SELECT DISTINCT + - 79 * - + 51 - col0 AS col1 FROM tab2 AS cor0
----
3954
3965
3983

query I rowsort
SELECT DISTINCT col2 + + 76 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + + col1 AS col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT ALL - COUNT( DISTINCT + + 64 ) DIV - 82 * - ( - - 79 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - COUNT ( DISTINCT + + 64 ) / - 82 * - ( - - 79 ) FROM tab1 cor0
----
0

query II rowsort
SELECT col1 AS col0, - 65 + + + ( 48 ) FROM tab2 AS cor0
----
51
-17
67
-17
77
-17

query I rowsort
SELECT - col2 * + - 12 AS col1 FROM tab0 AS cor0
----
1188
120
564

query I rowsort
SELECT - 41 * + col0 FROM tab1
----
-2091
-3485
-3731

query I rowsort
SELECT DISTINCT 89 * - + col1 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT + - MAX( - - col1 ) * - 38 AS col1 FROM tab2 WHERE + 38 + + 42 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT + - MAX ( - - col1 ) * - 38 AS col1 FROM tab2 WHERE + 38 + + 42 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT ALL + 47 + CAST( + 91 AS SIGNED ) FROM tab2
----
138
138
138

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + 47 + CAST ( + 91 AS INTEGER ) FROM tab2
----
138
138
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab1
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - + col2 col0, - col0 AS col1 FROM tab0 WHERE NOT + - col1 + + - col1 + + - col0 IN ( + 60, 70, col2 )
----
-2
-97
-32
-15
77
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + - 22 FROM tab1 cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - MAX( - col2 ) + - - 8 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9922
SELECT - MAX ( - col2 ) + - - 8 FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + - MAX( ALL col0 ) AS col1 FROM tab1 WHERE - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT + - MAX ( ALL col0 ) AS col1 FROM tab1 WHERE - + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) + + + 0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) + + + 0 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL + MIN( col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 48 / - col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL - - COUNT( 80 ) * - + 50 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - - COUNT ( 80 ) * - + 50 FROM tab2 AS cor0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 - + + col1 col0 FROM tab2 AS cor0
----
13
29
3

query II rowsort
SELECT + ( + 98 ) + + col2 AS col1, col1 FROM tab2 AS cor0
----
121
51
138
77
156
67

query I rowsort
SELECT col0 + - + 14 * 84 * + - 11 FROM tab2
----
12982
13000
13011

query III rowsort
SELECT * FROM tab0 WHERE + - col0 - + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL MAX( ALL - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL MAX ( ALL - col0 ) FROM tab2 cor0
----
-46

query I rowsort
SELECT ( - - col2 ) * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + ( 83 ) * + + 42 * - col0 AS col0 FROM tab2 AS cor0 WHERE col0 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT ALL col0 DIV 18 AS col0 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL col0 / 18 AS col0 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT - col2 DIV - + 10 FROM tab2 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-9936
SELECT - col2 / - + 10 FROM tab2 AS cor0
----
2
4
5

query II rowsort
SELECT - col2 AS col2, 24 + col1 AS col1 FROM tab0 AS cor0
----
-10
45
-47
105
-99
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT COUNT( - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9938
SELECT COUNT ( - - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + ( + - ( - - 74 ) ) FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - - col1 + - 0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + ( 36 ) AS col0 FROM tab0
----
123
133
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT DISTINCT MIN( DISTINCT + - 98 ) * + + 54 + + + CAST( NULL AS SIGNED ) * - + 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT MIN ( DISTINCT + - 98 ) * + + 54 + + + CAST ( NULL AS INTEGER ) * - + 57 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT 7 * COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9944
SELECT 7 * COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT col2 * + col2 * + + col2 FROM tab0
----
1000
103823
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT - COUNT( * ) * + 23 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9946
SELECT - COUNT ( * ) * + 23 FROM tab2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9947
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) + col2 / + col0 * - 86 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9947
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) + col2 / + col0 * - 86 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT DISTINCT 1 DIV col0 + + 96 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT 1 / col0 + + 96 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + - 52 * - + 85 + - COUNT( * ) FROM tab0 AS cor0
----
4417

skipif mysql # not compatible
query I rowsort label-9949
SELECT + - 52 * - + 85 + - COUNT ( * ) FROM tab0 AS cor0
----
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT 93 DIV - + col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9950
SELECT 93 / - + col2 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - MIN( + - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT ALL - MIN ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 67 + col2 - 37 + 2 * + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
131
239
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9953
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9953
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9954
SELECT ALL - 75 - + + CAST( NULL AS SIGNED ) + + + col0, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9954
SELECT ALL - 75 - + + CAST ( NULL AS INTEGER ) + + + col0, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9955
SELECT DISTINCT + 38 - + 13 * - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + 38 - + 13 * - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + + MIN( - col2 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9956
SELECT + + MIN ( - col2 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 93 IN ( - - col1 + col1 * - col2, 36, + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT + COUNT( DISTINCT + - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + COUNT ( DISTINCT + - col1 ) FROM tab1 cor0
----
3

query II rowsort
SELECT + 43 * - 70, 67 FROM tab2 WHERE NOT ( + col2 ) <> - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col1 - - - 65 >= + + 53 * - col0 + + 79
----

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL - col2 AS col1, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 71 FROM tab2
----
46
71
64
71
75
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + - 64 * - - COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + - 64 * - - COUNT ( * ) FROM tab2 AS cor0
----
-192

query II rowsort
SELECT ALL col2, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT 0 * col0 - 80 * 72 FROM tab0
----
-5760
-5760
-5760

query III rowsort
SELECT * FROM tab1 WHERE + ( + 3 ) - - 72 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT 51 - COUNT( - col0 ) * + 78 AS col0 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT 51 - COUNT ( - col0 ) * + 78 AS col0 FROM tab0
----
-183

query I rowsort
SELECT DISTINCT 96 + ( col1 ) FROM tab1
----
101
110
143

query I rowsort
SELECT ALL - 90 + + col1 * + col2 FROM tab2
----
1083
2990
3796

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9974
SELECT DISTINCT 7 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE - col2 + - 97 BETWEEN ( NULL ) AND col0 + col1
----

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT 7 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE - col2 + - 97 BETWEEN ( NULL ) AND col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col0 FROM tab0
----
67

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND + 93
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 <= + col1 * 85 + - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 71 + - 37 * COUNT( * ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9978
SELECT 71 + - 37 * COUNT ( * ) FROM tab2
----
-40

query I rowsort
SELECT + 45 + + col1 AS col2 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - AVG ( DISTINCT + col0 ) + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT - AVG ( DISTINCT + col0 ) + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT 34 * SUM( + 13 * col0 ) FROM tab1
----
100334

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT 34 * SUM ( + 13 * col0 ) FROM tab1
----
100334

query I rowsort
SELECT DISTINCT col1 / col0 + - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) <= ( + col0 )
----

query I rowsort
SELECT DISTINCT col1 * - 78 AS col0 FROM tab1
----
-1092
-3666
-390

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - 77 / col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 37 FROM tab0 WHERE - 24 * col2 >= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - col2 * col2 IN ( 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + COUNT( * ) + COUNT( DISTINCT 27 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9987
SELECT + COUNT ( * ) + COUNT ( DISTINCT 27 ) FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + COUNT( * ) + + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + COUNT ( * ) + + 94 FROM tab2
----
97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 66 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT - ( - 36 ) + - ( - col0 ) AS col2 FROM tab1 cor0
----
121
127
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9992
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 42 AS col1 FROM tab2 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 + 98 col0 FROM tab0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL COUNT( ALL 69 ) - SUM( + 64 ) * - ( 31 ) AS col1 FROM tab2 AS cor0
----
5955

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL COUNT ( ALL 69 ) - SUM ( + 64 ) * - ( 31 ) AS col1 FROM tab2 AS cor0
----
5955

query I rowsort
SELECT - ( col1 ) - + col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT - col1 - col1 AS col2 FROM tab2 cor0
----
-102
-134
-154

