sqllogictest
Artifact Content
Not logged in

Artifact 68227199c14d9e840a8ad7b72612b79de38b654d:


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 # no