sqllogictest
Artifact Content
Not logged in

Artifact b51f0915e8373a3c818374cdedb0a1aee6fb719e:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT DISTINCT 19 DIV 18 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT 19 / 18 AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * - col0 col0 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - col1 * - col0 - - col2 FROM tab0 cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT 41 - SUM( - 7 + + 40 * + 77 ) col0 FROM tab2 cor0
----
-9178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3
SELECT 41 - SUM ( - 7 + + 40 * + 77 ) col0 FROM tab2 cor0
----
-9178

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

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

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

query I rowsort
SELECT col0 * ( ( col0 ) * col2 ) + + col2 FROM tab0 AS cor0
----
10622
75700
931590

query I rowsort
SELECT 33 + 1 AS col0 FROM tab2 cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT CAST( NULL AS SIGNED ) / - 93 + 37 * 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT CAST ( NULL AS INTEGER ) / - 93 + 37 * 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 20 + col0 * + col2 FROM tab0 AS cor0 WHERE NOT + col2 <> ( 90 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT MAX( DISTINCT - 78 ) * 71 + COUNT( * ) FROM tab1
----
-5535

skipif mysql # not compatible
query I rowsort label-12
SELECT MAX ( DISTINCT - 78 ) * 71 + COUNT ( * ) FROM tab1
----
-5535

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

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - COUNT ( * ) + 91 FROM tab1
----
88

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 20 + col2 IS NULL
----

query I rowsort
SELECT col2 * + 95 AS col0 FROM tab1 AS cor0
----
5605
6460
9120

query I rowsort
SELECT + col2 * 41 AS col2 FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT + 51 FROM tab1 cor0 WHERE NOT NULL > + col1 + col0
----

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

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT 3 + + col0 <> ( - 61 + + col1 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT CAST( col1 AS SIGNED ) col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( 13 ) AND + 34 * - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-23
SELECT DISTINCT CAST ( col1 AS INTEGER ) col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( 13 ) AND + 34 * - col1
----

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

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( 57 ) <= NULL
----

query I rowsort
SELECT col0 * + col2 * - 75 FROM tab1
----
-367200
-376125
-464100

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 58 ) > ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT col2 * + ( + 26 ) FROM tab0
----
1222
2574
260

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( col0 * 41 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 8 * + 89 BETWEEN ( col2 - col0 ) AND + col0 + ( col0 ) * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT COUNT( + - ( col2 ) ) * 81 AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT COUNT ( + - ( col2 ) ) * 81 AS col2 FROM tab2
----
243

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= ( 94 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-36
SELECT col2 * 62 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT col2 * 62 / - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( 80 ) NOT IN ( - col0 / + 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + - col1 + ( + col0 ) + + 9 FROM tab1 AS cor0
----
-136
-2109
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( 16 ) col1 FROM tab0 AS cor0
----
1296
16
336

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

query II rowsort
SELECT DISTINCT + col1, col1 * + col2 AS col0 FROM tab1 cor0
----
14
1344
47
3196
5
295

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

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

query I rowsort
SELECT 25 AS col0 FROM tab2 WHERE - + ( - col1 ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-51
SELECT 23 + CAST( NULL AS SIGNED ) AS col1, 3 AS col1 FROM tab2
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-51
SELECT 23 + CAST ( NULL AS INTEGER ) AS col1, 3 AS col1 FROM tab2
----
NULL
3
NULL
3
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + COUNT( * ) * - 18 + + 68 AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-52
SELECT + COUNT ( * ) * - 18 + + 68 AS col1 FROM tab1
----
14

query I rowsort
SELECT DISTINCT col0 + + - 93 AS col0 FROM tab0
----
-6
-78
4

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - 98 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = ( - col0 * - 90 )
----

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

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

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

query I rowsort
SELECT ALL + 24 * + col2 AS col1 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT + + 94 - + 52 DIV - COUNT( * ) FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + + 94 - + 52 / - COUNT ( * ) FROM tab2 AS cor0
----
111

query I rowsort
SELECT - col2 - - 36 + - + col0 FROM tab2
----
-33
-68
-97

query I rowsort
SELECT ALL col1 + col0 FROM tab0 WHERE 82 * - + col0 IS NOT NULL
----
108
96
98

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

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

query II rowsort
SELECT ALL - 95, 40 AS col2 FROM tab2 AS cor0
----
-95
40
-95
40
-95
40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-67
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 + - col0 + + CAST( - 63 AS DECIMAL ) NOT BETWEEN col0 * - 19 AND 27
----

skipif mysql # not compatible
query III rowsort label-67
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 + - col0 + + CAST ( - 63 AS REAL ) NOT BETWEEN col0 * - 19 AND 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab2 AS cor0 WHERE NOT ( 61 * - col2 * + col0 ) < NULL
----

query I rowsort
SELECT ALL - col1 * + col1 - + ( + col2 ) FROM tab0 AS cor0
----
-100
-451
-6608

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

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

query II rowsort
SELECT DISTINCT + - col0 AS col1, - 52 AS col1 FROM tab1 cor0
----
-51
-52
-85
-52
-91
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-73
SELECT CAST( NULL AS SIGNED ) AS col2, - 48 AS col2 FROM tab1 AS cor0
----
NULL
-48
NULL
-48
NULL
-48

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

query II rowsort
SELECT col0 AS col1, + 73 AS col2 FROM tab1
----
51
73
85
73
91
73

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

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

query I rowsort
SELECT + col2 * 51 AS col2 FROM tab0
----
2397
5049
510

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

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

query I rowsort
SELECT ALL + + col2 / - 37 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( - col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL - MIN( + col0 ) + - MIN( DISTINCT - 88 ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - MIN ( + col0 ) + - MIN ( DISTINCT - 88 ) AS col2 FROM tab1
----
37

query I rowsort
SELECT DISTINCT - + ( - 9 ) * + 53 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 20 * + 22 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL - - 51 * COUNT( col2 ) AS col2 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL - - 51 * COUNT ( col2 ) AS col2 FROM tab0 cor0
----
153

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-84
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-84
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT + ( + 93 ) * - col2 * + 44 FROM tab1 AS cor0
----
-241428
-278256
-392832

query I rowsort
SELECT - col1 * - - ( + + 11 ) * + - col2 AS col0 FROM tab0 AS cor0
----
1089
2310
41877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT ( AVG ( CAST( + ( - col1 ) AS SIGNED ) ) ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT ( AVG ( CAST ( + ( - col1 ) AS INTEGER ) ) ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT - ( - - 21 ) * + 54 + - SUM( DISTINCT - col2 ) col2 FROM tab0
----
-978

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-90
SELECT DISTINCT - ( - - 21 ) * + 54 + - SUM ( DISTINCT - col2 ) col2 FROM tab0
----
-978

query I rowsort
SELECT DISTINCT 45 * 72 * ( - ( - col2 ) ) FROM tab0
----
152280
320760
32400

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col0 FROM tab2
----
128
150
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT + ( - 50 ) + + MIN( - col2 ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT + ( - 50 ) + + MIN ( - col2 ) FROM tab2
----
-108

query I rowsort
SELECT + col0 - + col0 FROM tab1 WHERE 74 NOT IN ( - ( - - ( col0 ) ), + col0 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - ( - + 40 ) ) + col2 col2 FROM tab0
----
139
50
87

query I rowsort
SELECT + col2 + + + 61 AS col1 FROM tab0 AS cor0
----
108
160
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT - CAST( + + col1 AS SIGNED ) + + col2 FROM tab1 cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-99
SELECT - CAST ( + + col1 AS INTEGER ) + + col2 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - - col2 * - + col1 - + + 64 IN ( + col1, col2 + + + 68 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 * + 86 + col2 BETWEEN - 11 * + col1 + 66 * - + 20 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col0 - + col2 + + + col1 + - col0 ) < col2 * - + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-105
SELECT ALL - + col2 DIV CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL - + col2 / CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-106
SELECT DISTINCT + SUM( 68 ) DIV - COUNT( * ) + 30, COUNT( * ) - 24 col2 FROM tab1 AS cor0
----
-38
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-106
SELECT DISTINCT + SUM ( 68 ) / - COUNT ( * ) + 30, COUNT ( * ) - 24 col2 FROM tab1 AS cor0
----
-38
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT - MAX( - + 47 ) FROM tab0 AS cor0 WHERE - 1 * col1 * 94 + - col0 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - MAX ( - + 47 ) FROM tab0 AS cor0 WHERE - 1 * col1 * 94 + - col0 IS NOT NULL
----
47

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

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

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

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

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

query I rowsort
SELECT + 55 * + + ( col0 ) FROM tab1
----
2805
4675
5005

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

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL COUNT ( * ) / + 64 AS col1 FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + CAST ( - COUNT ( 26 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NOT - 44 + - col1 NOT BETWEEN - - col1 - col1 AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - 93 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT + SUM( DISTINCT - - col1 ) + + - 27 + COUNT( * ) + 93 FROM tab0 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-118
SELECT + SUM ( DISTINCT - - col1 ) + + - 27 + COUNT ( * ) + 93 FROM tab0 AS cor0
----
172

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT - ( - + col0 ) + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + - COUNT( * ) + + - 92 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + - COUNT ( * ) + + - 92 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + col1 * + - col1 + col1 AS col0 FROM tab1
----
-182
-20
-2162

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

query I rowsort
SELECT DISTINCT + 35 + + 93 FROM tab1
----
128

query I rowsort
SELECT DISTINCT - col1 + 23 AS col0 FROM tab0
----
-58
2
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT - 8 DIV SUM( ALL + 96 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT - 8 / SUM ( ALL + 96 ) FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) - col0 AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL - 50 * SUM( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
9250

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 50 * SUM ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
9250

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ALL 28 DIV - 92 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 28 / - 92 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + - 83 * - + col2 + - col0 + + + 43 + 56 + + ( - - col1 ) - col2 * + + 29 AS col2 FROM tab0 cor0
----
17173
314783
5349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - - 24 col2 FROM tab2
----
-696
-696
-696

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

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

query I rowsort
SELECT DISTINCT col0 + - 92 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-41
-7

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-138
SELECT - col1, CAST( NULL AS SIGNED ) - col0 + + - col2 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-138
SELECT - col1, CAST ( NULL AS INTEGER ) - col0 + + - col2 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT + ( MIN( + 2 ) ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-139
SELECT + ( MIN ( + 2 ) ) FROM tab1
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL COUNT( + col2 ) FROM tab0 WHERE - col0 NOT BETWEEN 15 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL COUNT ( + col2 ) FROM tab0 WHERE - col0 NOT BETWEEN 15 AND NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL MAX( DISTINCT - 50 ) FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL MAX ( DISTINCT - 50 ) FROM tab0
----
-50

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE col1 <> - col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT - MAX( ALL 12 ), ( COUNT( * ) ) AS col0 FROM tab2
----
-12
3

skipif mysql # not compatible
query II rowsort label-144
SELECT - MAX ( ALL 12 ), ( COUNT ( * ) ) AS col0 FROM tab2
----
-12
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 * + + col0 * - + 84 col1 FROM tab1
----
141372
235620
252252

query I rowsort
SELECT - 13 * + col1 AS col1 FROM tab0
----
-1053
-13
-273

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT DISTINCT SUM( DISTINCT + + 36 ) DIV COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT SUM ( DISTINCT + + 36 ) / COUNT ( * ) FROM tab0
----
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - ( 44 ) + + + col1 + col2 col1 FROM tab1
----
105
117
162

query I rowsort
SELECT ALL + ( + col0 ) AS col1 FROM tab2 WHERE NOT col1 <= 81
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - COUNT( * ) * COUNT( * ) * - SUM( col1 ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT - COUNT ( * ) * COUNT ( * ) * - SUM ( col1 ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-155
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 + + 25 * + 91 * 20 - - 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + + 25 * + 91 * 20 - - 88 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 23 + + ( + ( + col1 ) ) ) < ( 41 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT - - COUNT( * ) col2, - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-157
SELECT - - COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL - MIN( - + col1 ) + + 8 + - 98 FROM tab1 WHERE + col2 * + - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - MIN ( - + col1 ) + + 8 + - 98 FROM tab1 WHERE + col2 * + - col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT + 21 + - - col2 AS col0 FROM tab1 AS cor0
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-160
SELECT + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL col0 - 45 FROM tab0 AS cor0
----
-30
42
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * 46 - + col0 * - col1 * + col0 AS col2, 99 + col0 + - - col2 + col0 + col0 * 89 * + col1 col0 FROM tab2 AS cor0
----
105800
209008
312448
438859
373425
447532

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT - 55 DIV - col1 FROM tab0 AS cor0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-166
SELECT - 55 / - col1 FROM tab0 AS cor0
----
0
2
55

query I rowsort
SELECT - col1 * + 50 FROM tab0 AS cor0
----
-1050
-4050
-50

query I rowsort
SELECT DISTINCT - 4 * - - col2 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT COUNT( * ) + - + 49 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT COUNT ( * ) + - + 49 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT col0 DIV + + 69 - col1 AS col0 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-170
SELECT col0 / + + 69 - col1 AS col0 FROM tab2
----
-51
-66
-77

query I rowsort
SELECT 44 * - + 4 - 68 + - col0 FROM tab0
----
-259
-331
-341

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

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT DISTINCT 18 * - COUNT( * ), MIN( 77 ) AS col1 FROM tab2
----
-54
77

skipif mysql # not compatible
query II rowsort label-173
SELECT DISTINCT 18 * - COUNT ( * ), MIN ( 77 ) AS col1 FROM tab2
----
-54
77

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

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

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

query II rowsort
SELECT ALL - + 58 * + 36 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
-2088
51
-2088
85
-2088
91

query I rowsort
SELECT DISTINCT col2 + + col1 * - 69 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 3, + 55 * col2, col1 - + 78 * + ( col0 ) * + + col0 * - - col0 )
----

query I rowsort
SELECT - col1 * + ( + 85 ) FROM tab0 AS cor0
----
-1785
-6885
-85

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL ( MIN( DISTINCT ( + col1 ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL ( MIN ( DISTINCT ( + col1 ) ) ) FROM tab2
----
51

query I rowsort
SELECT - col0 + + + ( col0 ) FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 56 NOT BETWEEN + - 19 * + + 80 + + col0 AND NULL
----

query I rowsort
SELECT ALL col0 * - 96 AS col1 FROM tab1
----
-4896
-8160
-8736

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT SUM( - - col2 ) AS col2, 57 FROM tab1
----
223
57

skipif mysql # not compatible
query II rowsort label-187
SELECT SUM ( - - col2 ) AS col2, 57 FROM tab1
----
223
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT + 8 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + 8 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col1 AND - 2 * 97 + - col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT DISTINCT - CAST( 5 AS SIGNED ) FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - CAST ( 5 AS INTEGER ) FROM tab0 cor0
----
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col2 - - ( ( - col2 ) ) * col1 + - ( col0 ) ) = NULL
----

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - col0 + 60 FROM tab0
----
-27
-37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT + 80 * - + 17 + - - COUNT( * ) * + + MIN( DISTINCT - + 44 ) AS col0 FROM tab0
----
-1492

skipif mysql # not compatible
query I rowsort label-197
SELECT + 80 * - + 17 + - - COUNT ( * ) * + + MIN ( DISTINCT - + 44 ) AS col0 FROM tab0
----
-1492

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT + 46 + - - COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + 46 + - - COUNT ( * ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT + 98 + - col2 FROM tab1 AS cor0
----
2
30
39

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT DISTINCT 94 DIV + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT 94 / + col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - 47 AS col1 FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT ALL COUNT( * ) + 40 DIV - ( + COUNT( * ) ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL COUNT ( * ) + 40 / - ( + COUNT ( * ) ) FROM tab1
----
-10

query I rowsort
SELECT ALL + col2 + + col1 + + col0 + + - 35 FROM tab1
----
114
126
171

query I rowsort
SELECT DISTINCT + 0 + - + col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 44 - - + ( 27 ) AS col1 FROM tab1 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 - + 64 col2 FROM tab0 cor0
----
-163
-274
-3871

query I rowsort
SELECT + col1 * + - col2 * + + col2 * - - 10 AS col0 FROM tab2
----
-1232000
-2253880
-269790

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

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

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

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

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

query II rowsort
SELECT ALL col0 AS col0, + 78 FROM tab0
----
15
78
87
78
97
78

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

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

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

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

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 97 DIV + - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-215
SELECT 97 / + - col0 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 61 * 63 NOT IN ( 43, col2, - col2 - - - 81 )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-218
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 28 * - COUNT ( * ) col1 FROM tab1
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-219
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT - ( + - ( 32 ) ) IS NULL
----
3

query I rowsort
SELECT - + 65 AS col2 FROM tab1 WHERE NOT - + col2 IS NULL
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 22 * - col2 <> ( - 68 )
----

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

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

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

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

query II rowsort
SELECT DISTINCT - - 75 AS col2, 23 AS col2 FROM tab2 AS cor0
----
75
23

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

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

query II rowsort
SELECT DISTINCT - col2 * col2, + ( 69 ) AS col2 FROM tab1 AS cor0
----
-3481
69
-4624
69
-9216
69

query II rowsort
SELECT DISTINCT + + col2, + col2 * col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 38 * col0 * + col1 col2 FROM tab1 AS cor0
----
16150
162526
27132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT 81 DIV + COUNT( * ) + - 45 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-230
SELECT 81 / + COUNT ( * ) + - 45 FROM tab2 AS cor0
----
-18

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-232
SELECT - SUM ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
66

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

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

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

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

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

query II rowsort
SELECT - 13 AS col1, + col2 + - 49 FROM tab1 cor0
----
-13
10
-13
19
-13
47

query II rowsort
SELECT ALL + 68 AS col0, + ( col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
68
-98
68
11
68
34

query II rowsort
SELECT ALL - + col2 AS col2, + col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL 19 + - SUM( ALL + ( 16 ) ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL 19 + - SUM ( ALL + ( 16 ) ) FROM tab2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT ALL col0 + + 43 DIV - + col1 col1 FROM tab1
----
48
77
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-240
SELECT ALL col0 + + 43 / - + col1 col1 FROM tab1
----
48
77
91

query I rowsort
SELECT - 61 AS col1 FROM tab1 WHERE - - col2 / + col0 + col1 IS NULL
----

query I rowsort
SELECT - 73 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 54 + + - col0 AS col1 FROM tab0
----
-33
-43
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT + 56 * + col1 + - CAST( + - 18 AS SIGNED ) * + - 42 / CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE + 52 IS NULL
----

skipif mysql # not compatible
query I rowsort label-244
SELECT + 56 * + col1 + - CAST ( + - 18 AS INTEGER ) * + - 42 / CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE + 52 IS NULL
----

query I rowsort
SELECT + 1 * col0 + - 17 + - col1 FROM tab0 cor0
----
-83
49
79

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT COUNT( * ) * - + MAX( DISTINCT - 53 ) * - COUNT( * ) FROM tab0 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT COUNT ( * ) * - + MAX ( DISTINCT - 53 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-477

query II rowsort
SELECT - col2 + - col2, 2 AS col1 FROM tab0 AS cor0
----
-198
2
-20
2
-94
2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab0 WHERE NOT NULL IN ( - col1 - 14 )
----

query I rowsort
SELECT DISTINCT - - 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-254
SELECT CAST( NULL AS SIGNED ) * + + 89 / + 71 / - 27 - - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT CAST ( NULL AS INTEGER ) * + + 89 / + 71 / - 27 - - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 - + + col0 FROM tab1 AS cor0
----
-122
-128
-88

query I rowsort
SELECT - 40 - ( - + col2 ) + + + col1 FROM tab2 AS cor0
----
34
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + SUM( + + col0 ) * - + 96 - + 44 FROM tab1 AS cor0
----
-21836

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + SUM ( + + col0 ) * - + 96 - + 44 FROM tab1 AS cor0
----
-21836

query I rowsort
SELECT + - 54 * - - col0 AS col1 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-259
SELECT ALL col1, col2 DIV col1 DIV + + col1 FROM tab1 AS cor0
----
14
0
47
0
5
2

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL col1, col2 / col1 / + + col1 FROM tab1 AS cor0
----
14
0
47
0
5
2

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

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

query I rowsort
SELECT ALL - 64 * - + ( - + col0 ) AS col2 FROM tab0 cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT SUM( + - 83 ) FROM tab2 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-262
SELECT SUM ( + - 83 ) FROM tab2 cor0
----
-249

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( + 76 ) / + + col2 < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT 25 DIV ( + col0 ) * col2 + + col0 + - col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-264
SELECT 25 / ( + col0 ) * col2 + + col0 + - col2 FROM tab2
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col1 * + - col2 * - - col0 - + 49 + + 84 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT col0 DIV - 43 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-266
SELECT col0 / - 43 FROM tab0
----
-2
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL MAX( ALL 31 ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL MAX ( ALL 31 ) AS col1 FROM tab1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT col2 DIV 37 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-268
SELECT col2 / 37 / - col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-269
SELECT ALL + COUNT ( + col2 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT DISTINCT + COUNT( DISTINCT - + col2 ), + 11 AS col1 FROM tab1 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-270
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ), + 11 AS col1 FROM tab1 AS cor0
----
3
11

query II rowsort
SELECT - 15, col2 FROM tab2 WHERE NOT col0 + + col0 * - col1 NOT BETWEEN + 30 + + 57 AND + - col1 / - 92
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL + MAX( DISTINCT - 64 ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + MAX ( DISTINCT - 64 ) AS col2 FROM tab1
----
-64

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT col1, 97 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
4462
67
7275
77
6208

skipif mysql # not compatible
query II rowsort label-276
SELECT col1, 97 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
4462
67
7275
77
6208

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

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

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

query I rowsort
SELECT ALL ( 5 ) + + + col2 * + - col2 FROM tab0 AS cor0 WHERE NOT col1 - + + 92 < + - 12
----
-2204

query I rowsort
SELECT ALL col0 * - col2 + col2 AS col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT - col0 * - col1 + + col0 AS col0 FROM tab2
----
2392
4992
5100

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

query II rowsort
SELECT ALL col0, - 83 AS col1 FROM tab0
----
15
-83
87
-83
97
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT DISTINCT COUNT( * ) + + + 21 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT COUNT ( * ) + + + 21 AS col2 FROM tab0
----
24

query I rowsort
SELECT DISTINCT col2 * 3 + - col1 + + col0 AS col0 FROM tab2
----
107
182
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT DISTINCT + CAST( - 27 AS SIGNED ) + - col1 FROM tab1
----
-32
-41
-74

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) + - col1 FROM tab1
----
-32
-41
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - COUNT( * ) FROM tab1 WHERE - - 77 + - + 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT - COUNT ( * ) FROM tab1 WHERE - - 77 + - + 69 IS NULL
----
0

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

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

query I rowsort
SELECT + ( col0 ) FROM tab2 AS cor0 WHERE 45 + 97 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-292
SELECT ALL + col1 - - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + col1 - - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT - CAST( + col0 AS SIGNED ) - + col2 AS col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-293
SELECT - CAST ( + col0 AS INTEGER ) - + col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 AS cor0
----
17
17
17

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT ALL - - MAX( DISTINCT - 64 ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-64
3

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL - - MAX ( DISTINCT - 64 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-64
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT DISTINCT - - COUNT( DISTINCT + - 89 ) DIV - COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - - COUNT ( DISTINCT + - 89 ) / - COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
0

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

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

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

query II rowsort
SELECT DISTINCT 71 AS col2, col1 AS col1 FROM tab2
----
71
51
71
67
71
77

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col1 + + col2 <> + - 95
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT COUNT( * ) + - - ( ( + ( + 46 ) ) ) + + - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) + - - ( ( + ( + 46 ) ) ) + + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL - 84 + - COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL - 84 + - COUNT ( * ) FROM tab0
----
-87

query I rowsort
SELECT DISTINCT + 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > 63
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 54 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 < col2
----
87
21
10

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 77 * - + col1
----

query I rowsort
SELECT - + col2 * + col0 + col0 + - 81 FROM tab0 AS cor0
----
-771
-864
-9587

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 18 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 80 AS col2 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT ALL - + col1 + - col0 + - col1 * - col2 FROM tab0 AS cor0
----
1
102
3711

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL + 36 * - COUNT( * ) AS col0 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + 36 * - COUNT ( * ) AS col0 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL + COUNT( * ) + + 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL + COUNT ( * ) + + 80 FROM tab2
----
83

query I rowsort
SELECT 27 * - + 69 FROM tab1
----
-1863
-1863
-1863

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

query I rowsort
SELECT - 27 - 64 FROM tab2
----
-91
-91
-91

query II rowsort
SELECT ALL col1 AS col0, ( + 34 ) * col1 AS col1 FROM tab1
----
14
476
47
1598
5
170

query II rowsort
SELECT DISTINCT col0 + - ( col2 ) AS col1, + col0 AS col1 FROM tab0
----
-2
97
-32
15
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - 86 + - - COUNT( * ) AS col1 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-329
SELECT - 86 + - - COUNT ( * ) AS col1 FROM tab1
----
-83

query I rowsort
SELECT - col1 + - + col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + COUNT( - col2 ) + + - 76 AS col0 FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-331
SELECT + COUNT ( - col2 ) + + - 76 AS col0 FROM tab0 cor0
----
-73

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

query I rowsort
SELECT DISTINCT + 78 - - col2 FROM tab0 AS cor0
----
125
177
88

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

query I rowsort
SELECT + - 59 + 38 FROM tab1 AS cor0
----
-21
-21
-21

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 81 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

query II rowsort
SELECT + col1 * + + col1 + col2 + + 94 AS col1, col2 FROM tab1 AS cor0
----
178
59
2371
68
386
96

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

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

query II rowsort
SELECT DISTINCT - ( + col0 ) * + - col2 * + + col0, + col0 FROM tab1 AS cor0
----
249696
51
426275
85
563108
91

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

query II rowsort
SELECT ALL col0 * 79 AS col2, - 77 AS col0 FROM tab1 AS cor0
----
4029
-77
6715
-77
7189
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT MIN( DISTINCT - CAST( - + col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-344
SELECT MIN ( DISTINCT - CAST ( - + col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col0 * - col2 * 9 FROM tab1 AS cor0
----
-44064
-45135
-55692

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-346
SELECT ALL + COUNT ( * ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT DISTINCT + col0 DIV 95 + col2 col2 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-347
SELECT DISTINCT + col0 / 95 + col2 col2 FROM tab0 AS cor0
----
10
100
47

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT COUNT( DISTINCT + + 1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-348
SELECT COUNT ( DISTINCT + + 1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

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

query II rowsort
SELECT ( + col2 ), 8 FROM tab1
----
59
8
68
8
96
8

query I rowsort
SELECT DISTINCT - ( + ( - ( - + 70 ) ) ) AS col0 FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL + 95 * - COUNT( 51 ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + 95 * - COUNT ( 51 ) FROM tab2
----
-285

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

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( 0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT + 72 DIV 36 DIV ( - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-355
SELECT + 72 / 36 / ( - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 90 * - + col0 AS col0 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT + 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + 55 - col2 * col1 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
-155
-10
-3752
-47
-44
-99

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

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

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

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

query I rowsort
SELECT ALL col1 + - col2 * - col2 AS col0 FROM tab1
----
3486
4671
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + + 90 * - col0 col1 FROM tab0
----
-1359
-7839
-8739

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-366
SELECT * FROM tab1 WHERE NULL >= + - CAST( NULL AS SIGNED ) * - col1 + - col2 + + col0
----

skipif mysql # not compatible
query III rowsort label-366
SELECT * FROM tab1 WHERE NULL >= + - CAST ( NULL AS INTEGER ) * - col1 + - col2 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT + 62 * + col2 DIV + + col2 FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-367
SELECT + 62 * + col2 / + + col2 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT SUM( ALL 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-368
SELECT SUM ( ALL 89 ) FROM tab2
----
267

query I rowsort
SELECT DISTINCT - col0 - + - col0 + - ( + 52 ) + + 15 FROM tab1 WHERE - col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL 42 - - 71 * - COUNT( * ) AS col0 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL 42 - - 71 * - COUNT ( * ) AS col0 FROM tab0
----
-171

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
88

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

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT DISTINCT 94 * - + 50, COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
-4700
0

skipif mysql # not compatible
query II rowsort label-374
SELECT DISTINCT 94 * - + 50, COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
-4700
0

query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

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

query I rowsort
SELECT 93 * - col0 * + + 53 FROM tab1
----
-251379
-418965
-448539

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

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

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 71 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 60 * + col0 AS col2 FROM tab0 AS cor0
----
5220
5820
900

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 35 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 84 AS col0 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # DIV for integer division: 
query II rowsort label-386
SELECT + col0, - 66 DIV + + col0 AS col1 FROM tab0 AS cor0
----
15
-4
87
0
97
0

skipif mysql # not compatible
query II rowsort label-386
SELECT + col0, - 66 / + + col0 AS col1 FROM tab0 AS cor0
----
15
-4
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-387
SELECT - CAST( NULL AS SIGNED ), 21 + - - col2 * col1 DIV - 7 AS col1 FROM tab0
----
NULL
-522
NULL
-9
NULL
7

skipif mysql # not compatible
query II rowsort label-387
SELECT - CAST ( NULL AS INTEGER ), 21 + - - col2 * col1 / - 7 AS col1 FROM tab0
----
NULL
-522
NULL
-9
NULL
7

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - - col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + col2 * - ( - - 25 ) AS col0 FROM tab1
----
-1475
-1700
-2400

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

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

query II rowsort
SELECT - 69, 33 AS col0 FROM tab1 AS cor0
----
-69
33
-69
33
-69
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL OR NULL <= + col0 * + - ( - col1 ) + - - col1 + - col2
----

query I rowsort
SELECT 84 + + + 53 FROM tab1
----
137
137
137

query I rowsort
SELECT ALL - col2 + + + 40 FROM tab0
----
-59
-7
30

query I rowsort
SELECT ALL 86 + + - 68 * + + col0 * + + ( - 18 ) FROM tab1
----
104126
111470
62510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT DISTINCT + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 65 * + 69 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 65 * + 69 IS NOT NULL
----
0

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

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

query I rowsort
SELECT - + col0 FROM tab1 WHERE col0 * - + col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL CAST( + + col1 AS SIGNED ) + - - col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL CAST ( + + col1 AS INTEGER ) + - - col0 FROM tab0
----
108
96
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT ALL + - 3 DIV + 71 + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL + - 3 / + 71 + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - - 54 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + 19 - - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT DISTINCT col1 - 24 DIV - col2 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT col1 - 24 / - col2 FROM tab2 AS cor0
----
52
67
77

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

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

query II rowsort
SELECT + - col0 * + col1, - col1 AS col2 FROM tab2 AS cor0
----
-2346
-51
-4928
-77
-5025
-67

query I rowsort
SELECT - col1 * - + ( - 4 ) FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT ALL - + 49 - - col2 FROM tab0 AS cor0
----
-2
-39
50

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT + COUNT( - col0 ) + 31 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
31

skipif mysql # not compatible
query I rowsort label-416
SELECT + COUNT ( - col0 ) + 31 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
31

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

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

query I rowsort
SELECT DISTINCT - col2 * - + 1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL 34 * - + col0 AS col0 FROM tab1
----
-1734
-2890
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - COUNT( * ) - 62 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-420
SELECT - COUNT ( * ) - 62 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-421
SELECT - ( col0 ) - col0 AS col2, - CAST( + - 37 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-102
51
-170
42
-182
84

skipif mysql # not compatible
query II rowsort label-421
SELECT - ( col0 ) - col0 AS col2, - CAST ( + - 37 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-102
51
-170
42
-182
84

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - ( 69 ) / - + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( + 23 ) col1 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT + - col0 + - ( col1 ) + - + 24 FROM tab1 cor0
----
-114
-162
-89

query I rowsort
SELECT - 93 * - col2 + col1 + col2 + + - col1 AS col1 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-427
SELECT ALL + col2 AS col1, ( CAST( - - ( - 12 ) AS SIGNED ) ) FROM tab2 AS cor0
----
23
-12
40
-12
58
-12

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL + col2 AS col1, ( CAST ( - - ( - 12 ) AS INTEGER ) ) FROM tab2 AS cor0
----
23
-12
40
-12
58
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL - col2 * - 2 * - col2 * - col0 FROM tab2
----
204800
48668
504600

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-435
SELECT * FROM tab2 WHERE NOT + 62 NOT BETWEEN 36 * + CAST( NULL AS SIGNED ) AND - col1 * - col2 + - col1 + col1 / col2
----

skipif mysql # not compatible
query III rowsort label-435
SELECT * FROM tab2 WHERE NOT + 62 NOT BETWEEN 36 * + CAST ( NULL AS INTEGER ) AND - col1 * - col2 + - col1 + col1 / col2
----

query II rowsort
SELECT DISTINCT ( + - col0 ) + 6, col0 AS col1 FROM tab2
----
-40
46
-58
64
-69
75

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

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

query I rowsort
SELECT DISTINCT 25 * + 25 FROM tab0
----
625

query I rowsort
SELECT 89 + - 53 FROM tab2
----
36
36
36

query I rowsort
SELECT + 65 + + + 57 AS col2 FROM tab1
----
122
122
122

query I rowsort
SELECT col2 + 0 FROM tab0 AS cor0
----
10
47
99

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

query III rowsort
SELECT * FROM tab0 WHERE + 22 * + 0 * + 91 + + + 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col1 - - ( - - col2 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT COUNT( * ) + + ( + ( 52 ) ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT COUNT ( * ) + + ( + ( 52 ) ) AS col2 FROM tab1
----
55

query I rowsort
SELECT - col1 + - + col0 + - col0 - col0 + + 76 AS col0 FROM tab2 cor0
----
-113
-193
-216

query II rowsort
SELECT DISTINCT col1 + col0, - col1 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
108
-11
96
-34
98
98

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

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

query I rowsort
SELECT DISTINCT - + 75 - - col0 * - - ( + + col1 ) FROM tab1 AS cor0
----
350
4202
639

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col0 + col0 * - + col0 - + - 86 + + + ( + col2 ) AS col0 FROM tab0
----
-7386
-77
-9127

query I rowsort
SELECT DISTINCT col2 * + 80 * 46 * - col2 FROM tab1
----
-12810080
-17016320
-33914880

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL - MAX( 99 ) + + COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - MAX ( 99 ) + + COUNT ( * ) AS col1 FROM tab0
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL 99 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) > col1 * - col0
----

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 99 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) > col1 * - col0
----

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

query II rowsort
SELECT ALL + col2 * + col1 * col2, col0 FROM tab2 cor0
----
123200
64
225388
75
26979
46

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + MIN( DISTINCT - - 85 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + MIN ( DISTINCT - - 85 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
85

query I rowsort
SELECT ALL - + 91 FROM tab0 cor0
----
-91
-91
-91

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

query II rowsort
SELECT DISTINCT 39, col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
39
37
39
44
39
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL + - SUM( + 56 ) FROM tab0 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + - SUM ( + 56 ) FROM tab0 cor0
----
-168

query I rowsort
SELECT ALL col0 + - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - SUM( + 59 ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-468
SELECT - SUM ( + 59 ) FROM tab0 AS cor0
----
-177

query I rowsort
SELECT DISTINCT 55 - + - col0 * + - 93 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-4223
-5897
-6920

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT + SUM( ALL col2 ) + + + 86 + - 0 FROM tab1
----
309

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT + SUM ( ALL col2 ) + + + 86 + - 0 FROM tab1
----
309

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-471
SELECT - col2 * + + CAST( col0 AS DECIMAL ) AS col0 FROM tab2 WHERE NOT - col2 NOT IN ( 43, col1 * - - 12 )
----

skipif mysql # not compatible
query I rowsort label-471
SELECT - col2 * + + CAST ( col0 AS REAL ) AS col0 FROM tab2 WHERE NOT - col2 NOT IN ( 43, col1 * - - 12 )
----

query I rowsort
SELECT DISTINCT + 31 * - - col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT - ( col2 ) FROM tab1 WHERE NOT - 17 IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 * - + 79 IS NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 WHERE NOT + 60 IS NULL
----
-15
-87
-97

query I rowsort
SELECT + col0 FROM tab0 WHERE - col0 + col0 * + 6 IS NOT NULL
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + - COUNT( * ) + - - COUNT( ALL + 41 ) FROM tab0 WHERE - ( - ( + 9 ) ) + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT + - COUNT ( * ) + - - COUNT ( ALL + 41 ) FROM tab0 WHERE - ( - ( + 9 ) ) + - col0 IS NOT NULL
----
0

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

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

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

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

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

query I rowsort
SELECT - col1 + + 83 FROM tab2 AS cor0
----
16
32
6

query I rowsort
SELECT col1 + - + 3 AS col1 FROM tab2 cor0
----
48
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT - 41 + COUNT( * ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-484
SELECT - 41 + COUNT ( * ) FROM tab0
----
-38

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + ( - 13 ) * - MIN( ALL - 93 ) - + COUNT( * ) + + + 26 FROM tab0 AS cor0
----
-1186

skipif mysql # not compatible
query I rowsort label-489
SELECT + ( - 13 ) * - MIN ( ALL - 93 ) - + COUNT ( * ) + + + 26 FROM tab0 AS cor0
----
-1186

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 43 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - 84 AS col2 FROM tab2 AS cor0
----
130
148
159

query I rowsort
SELECT - 82 - + 33 + + col2 * + 64 FROM tab0 cor0
----
2893
525
6221

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT DISTINCT + SUM( DISTINCT 53 ) AS col2, - 4 FROM tab0
----
53
-4

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT + SUM ( DISTINCT 53 ) AS col2, - 4 FROM tab0
----
53
-4

query I rowsort
SELECT ALL col2 * ( + - 59 ) FROM tab0
----
-2773
-5841
-590

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

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0 WHERE NOT + 9 <> 73
----

skipif mysql # not compatible
query I rowsort label-500
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 WHERE NOT + 9 <> 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT DISTINCT + MIN( + + col0 ) * - 64 AS col1 FROM tab0 AS cor0
----
-960

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT + MIN ( + + col0 ) * - 64 AS col1 FROM tab0 AS cor0
----
-960

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 43 >= ( - ( - col1 ) ) )
----
87
21
10
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 87 * + - COUNT( * ) * - 62 FROM tab0
----
16182

skipif mysql # not compatible
query I rowsort label-504
SELECT 87 * + - COUNT ( * ) * - 62 FROM tab0
----
16182

query I rowsort
SELECT DISTINCT col0 * - col0 + 80 + 43 + col2 AS col2 FROM tab0 AS cor0
----
-55
-7436
-9187

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-506
SELECT ALL + 75 DIV col1 * + CAST( - ( col1 ) AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
-28
-9
40

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + 75 / col1 * + CAST ( - ( col1 ) AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
-28
-9
40

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

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

query I rowsort
SELECT 42 * 8 * + + col0 FROM tab0 AS cor0
----
29232
32592
5040

query I rowsort
SELECT 88 * - col0 AS col2 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + MAX( DISTINCT - 13 ) FROM tab1 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + MAX ( DISTINCT - 13 ) FROM tab1 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 39 + 19 * 24 col0 FROM tab2
----
-1104
-1806
-441

query I rowsort
SELECT col1 + + - col1 AS col2 FROM tab2
----
0
0
0

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

query II rowsort
SELECT ALL - col0 * 85 + + col0 AS col1, - col1 + col1 FROM tab2
----
-3864
0
-5376
0
-6300
0

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

query I rowsort
SELECT - col2 + - - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + - 64 * + col0 + col2 FROM tab2
----
-2870
-3979
-4675

query I rowsort
SELECT DISTINCT + col2 + + ( - col1 ) * col2 FROM tab2
----
-1150
-3040
-3828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL + MIN( ALL + col2 ) FROM tab1 WHERE NOT NULL IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + MIN ( ALL + col2 ) FROM tab1 WHERE NOT NULL IN ( col0 )
----
NULL

query I rowsort
SELECT ALL - 35 + + 73 * 65 AS col1 FROM tab0
----
4710
4710
4710

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

skipif mysql # not compatible
query III rowsort label-523
SELECT ALL * FROM tab2 WHERE + 86 = CAST ( + 82 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-524
SELECT - 43 DIV CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-524
SELECT - 43 / CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 59 * 75 + - 51 AS col0 FROM tab1
----
4374
4374
4374

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

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

query I rowsort
SELECT - 78 * + 39 FROM tab2 WHERE NULL = col0 / col0 + col0 * - 56
----

query I rowsort
SELECT ALL 94 FROM tab1 WHERE col1 * 58 NOT BETWEEN col1 + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT DISTINCT + MIN( DISTINCT col2 ) DIV 48 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + MIN ( DISTINCT col2 ) / 48 FROM tab2
----
0

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

query I rowsort
SELECT + 10 FROM tab1 WHERE - ( col0 ) <> + 25 + - col2
----
10
10
10

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

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

query I rowsort
SELECT ALL - col1 + 72 FROM tab2
----
-5
21
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT ALL + COUNT( * ) DIV 20 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + COUNT ( * ) / 20 AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE NULL BETWEEN ( 57 * col2 ) AND ( + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-539
SELECT CAST( - 51 AS SIGNED ) * - col2 + + 99 / + ( + col0 * + col1 ) FROM tab0 WHERE NOT + 28 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-539
SELECT CAST ( - 51 AS INTEGER ) * - col2 + + 99 / + ( + col0 * + col1 ) FROM tab0 WHERE NOT + 28 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-542
SELECT - ( - CAST( + COUNT( ALL col2 ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-542
SELECT - ( - CAST ( + COUNT ( ALL col2 ) AS INTEGER ) ) FROM tab0
----
3

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

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

query I rowsort
SELECT + ( + 59 ) + - col0 FROM tab1
----
-26
-32
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-545
SELECT DISTINCT + COUNT ( * ) * 11 col0 FROM tab0 cor0
----
33

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

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + SUM ( 17 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT MIN( - 31 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0
----
-31

skipif mysql # not compatible
query I rowsort label-547
SELECT MIN ( - 31 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0
----
-31

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

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

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT ALL - 37 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 37 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 + - col2 ) NOT IN ( 99 )
----

query I rowsort
SELECT ALL - 75 AS col0 FROM tab0 AS cor0 WHERE - col2 * 38 IS NOT NULL
----
-75
-75
-75

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

query I rowsort
SELECT - - col2 * 59 AS col1 FROM tab0 AS cor0
----
2773
5841
590

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - - SUM( DISTINCT 91 ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-556
SELECT - - SUM ( DISTINCT 91 ) AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT col0 / + ( col2 * - col0 ) FROM tab2 AS cor0 WHERE NULL <= ( + 77 )
----

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

skipif mysql # not compatible
query I rowsort label-558
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL - ( + MIN( ALL + 12 ) ) AS col1 FROM tab2 WHERE ( - col2 * 95 + col2 ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - ( + MIN ( ALL + 12 ) ) AS col1 FROM tab2 WHERE ( - col2 * 95 + col2 ) IS NOT NULL
----
-12

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE + 44 + 78 IS NULL
----

query I rowsort
SELECT + 35 - + col2 FROM tab2
----
-23
-5
12

query I rowsort
SELECT 4 * 3 FROM tab0 WHERE ( NULL ) < + ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT + 10 * CAST ( NULL AS INTEGER ) - col2 + + 14 AS col2 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT col0 + + col2 + - col0 * col1 FROM tab2 cor0
----
-2277
-4824
-4892

query I rowsort
SELECT + + col0 * - 61 + col1 FROM tab1 cor0
----
-3097
-5180
-5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - COUNT( * ) + + 60 col1 FROM tab1
----
57

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <> ( col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT IN ( 35 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 58 AS col1, - col0 * - col2 * col0 col0 FROM tab0 AS cor0
----
-58
10575
-58
75690
-58
931491

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT + + col0 + 76 DIV + 84 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-578
SELECT + + col0 + 76 / + 84 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
46
64
75

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col0 FROM tab0 AS cor0
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - MIN( DISTINCT - - 14 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-584
SELECT - MIN ( DISTINCT - - 14 ) FROM tab1 AS cor0
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT ( - COUNT( - 62 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT ( - COUNT ( - 62 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - ( + 96 ) + + col0 * - col1 > ( 78 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-588
SELECT DISTINCT + CAST( - 68 AS SIGNED ), ( + + col0 ) FROM tab2
----
-68
46
-68
64
-68
75

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT + CAST ( - 68 AS INTEGER ), ( + + col0 ) FROM tab2
----
-68
46
-68
64
-68
75

query II rowsort
SELECT - col2 * col2 AS col2, - col1 FROM tab2
----
-1600
-77
-3364
-67
-529
-51

query I rowsort
SELECT ALL - ( col1 ) * - + 99 * col1 AS col2 FROM tab0
----
43659
649539
99

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-592
SELECT ALL SUM( DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL SUM ( DISTINCT + CAST ( CAST ( NULL AS REAL ) AS REAL ) ) FROM tab0
----
NULL

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

skipif mysql # not compatible
query III rowsort label-593
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - + 11 * - col2 AS col0 FROM tab1 cor0
----
1056
649
748

query I rowsort
SELECT ALL + col1 + + 0 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + ( - + ( - 51 ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - MAX( ALL + + 26 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-599
SELECT - MAX ( ALL + + 26 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT - + 3 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - + 3 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

query I rowsort
SELECT - 23 * col2 + + 80 AS col2 FROM tab1 cor0
----
-1277
-1484
-2128

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT + 63 + + COUNT( * ) FROM tab2 AS cor0 WHERE - 52 NOT IN ( - col0, col1 - + ( - 60 ) )
----
66

skipif mysql # not compatible
query I rowsort label-602
SELECT + 63 + + COUNT ( * ) FROM tab2 AS cor0 WHERE - 52 NOT IN ( - col0, col1 - + ( - 60 ) )
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + col0 + + 7 + - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL SUM( ALL - 52 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL SUM ( ALL - 52 ) FROM tab1 AS cor0
----
-156

query I rowsort
SELECT - 54 * 66 + 74 + + col0 AS col2 FROM tab1 AS cor0
----
-3399
-3405
-3439

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + 73 <= col1
----
15

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col0 + - 6 AND ( + 10 / 58 )
----

query I rowsort
SELECT + 45 + - 57 FROM tab2
----
-12
-12
-12

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

query I rowsort
SELECT DISTINCT col0 + + 43 FROM tab0
----
130
140
58

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT DISTINCT + 92 DIV + 93 + + - ( col2 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT + 92 / + 93 + + - ( col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + MIN( ALL - 28 ) - + - COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + MIN ( ALL - 28 ) - + - COUNT ( * ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ( COUNT( DISTINCT - 5 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-615
SELECT ( COUNT ( DISTINCT - 5 ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 24 * + + col0 + - 6 + - 7 + + col2 AS col2 FROM tab2
----
1114
1563
1845

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

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

query II rowsort
SELECT DISTINCT + + 44 AS col2, - 45 FROM tab1 cor0
----
44
-45

query I rowsort
SELECT + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab0 WHERE NOT col2 NOT IN ( - 43, col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab1
----
-55

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

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

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

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

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

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

query I rowsort
SELECT col2 * + 44 FROM tab2
----
1012
1760
2552

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

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

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

query I rowsort
SELECT ALL col2 + + col2 * + 35 + + col2 AS col1 FROM tab2 AS cor0
----
1480
2146
851

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

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT ALL col2 * + col0 + col1 DIV - - col2 FROM tab0
----
706
872
9603

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL col2 * + col0 + col1 / - - col2 FROM tab0
----
706
872
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT - SUM( ALL + + 39 ) * ( + 74 ) FROM tab1 AS cor0
----
-8658

skipif mysql # not compatible
query I rowsort label-635
SELECT - SUM ( ALL + + 39 ) * ( + 74 ) FROM tab1 AS cor0
----
-8658

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL SUM( ALL - col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-636
SELECT ALL SUM ( ALL - col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

query I rowsort
SELECT DISTINCT - + ( col2 ) * - col0 * + 51 - - col1 AS col1 FROM tab0 AS cor0
----
36036
44391
489754

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT + 79 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + 79 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-237

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT COUNT( ALL - col1 ), + COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-640
SELECT COUNT ( ALL - col1 ), + COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-641
SELECT + + COUNT( * ) * - COUNT( * ) AS col0, - 72 * - - 36 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-641
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col0, - 72 * - - 36 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-9
NULL

query I rowsort
SELECT 66 + + col1 AS col2 FROM tab1 cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT ALL + 59 * + + 39 FROM tab0
----
2301
2301
2301

query I rowsort
SELECT - - 77 FROM tab0 WHERE NULL < NULL AND NOT 98 + col1 + col0 / - + col0 + - col2 IS NULL
----

query I rowsort
SELECT col2 + - - col1 AS col0 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT DISTINCT + col2 * - 3 + + + 90 + - col2 DIV - 94 AS col0 FROM tab0
----
-206
-51
60

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + col2 * - 3 + + + 90 + - col2 / - 94 AS col0 FROM tab0
----
-206
-51
60

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

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

query I rowsort
SELECT ALL - + 82 * + col1 * col1 * + + col0 AS col2 FROM tab0 cor0
----
-3146094
-7954
-8070030

query I rowsort
SELECT + 28 + ( + - 89 ) FROM tab0 AS cor0
----
-61
-61
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT - col0 * + col1 DIV col1 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-652
SELECT - col0 * + col1 / col1 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT ALL - ( + MAX( 24 ) ) DIV COUNT( * ) col2 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-653
SELECT ALL - ( + MAX ( 24 ) ) / COUNT ( * ) col2 FROM tab0
----
-8

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

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT MAX ( + - col1 ) FROM tab0
----
-1

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

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

query II rowsort
SELECT DISTINCT + 4 AS col1, - 49 FROM tab1
----
4
-49

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

query I rowsort
SELECT DISTINCT - - col1 * - col1 * - col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ALL + 5 * + col2 AS col0 FROM tab2 AS cor0
----
115
200
290

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT - + CAST( + 1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-661
SELECT - + CAST ( + 1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-664
SELECT ALL MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - 88 NOT IN ( + col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT 31 * - - 65 + + MAX( - 36 ) FROM tab1
----
1979

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT 31 * - - 65 + + MAX ( - 36 ) FROM tab1
----
1979

query I rowsort
SELECT ( - 64 ) + + ( - 13 ) AS col1 FROM tab2
----
-77
-77
-77

query I rowsort
SELECT col1 * + col2 * + - col2 + - 16 FROM tab1
----
-129040
-17421
-217344

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

query I rowsort
SELECT col1 * + 54 + + - ( - - col0 ) FROM tab2 WHERE NOT - + col2 IS NULL
----
2708
3543
4094

query II rowsort
SELECT DISTINCT + 31 + - 76, col1 FROM tab2
----
-45
51
-45
67
-45
77

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

query II rowsort
SELECT col2 * + + 34 AS col0, 56 + + + 63 FROM tab0 AS cor0
----
1598
119
3366
119
340
119

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

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

query I rowsort
SELECT ALL 46 + + + 41 AS col2 FROM tab1
----
87
87
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT 59 * + SUM( 25 ) FROM tab0
----
4425

skipif mysql # not compatible
query I rowsort label-680
SELECT 59 * + SUM ( 25 ) FROM tab0
----
4425

query I rowsort
SELECT + ( col1 ) * + 22 + 77 FROM tab1 AS cor0
----
1111
187
385

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-682
SELECT * FROM tab2 AS cor0 WHERE ( + 69 * 69 IN ( - 25 * + CAST( 21 AS DECIMAL ) + + + col0, CAST( NULL AS DECIMAL ), - col1 * - col1 / 95 - col0 + col1 / + 8 ) )
----

skipif mysql # not compatible
query III rowsort label-682
SELECT * FROM tab2 AS cor0 WHERE ( + 69 * 69 IN ( - 25 * + CAST ( 21 AS REAL ) + + + col0, CAST ( NULL AS REAL ), - col1 * - col1 / 95 - col0 + col1 / + 8 ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT ALL + 53 * COUNT( * ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + 53 * COUNT ( * ) FROM tab2 AS cor0
----
159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT + 38 * - + MAX( 91 ) FROM tab1
----
-3458

skipif mysql # not compatible
query I rowsort label-687
SELECT + 38 * - + MAX ( 91 ) FROM tab1
----
-3458

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT 74 DIV - - 18 AS col2 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-688
SELECT 74 / - - 18 AS col2 FROM tab2
----
4
4
4

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

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

skipif mysql # not compatible
query I rowsort label-690
SELECT + SUM ( + col1 ) AS col1 FROM tab1
----
66

query II rowsort
SELECT DISTINCT + col0 * - ( + col1 ) - - - 72 AS col0, 81 AS col2 FROM tab0
----
-1287
81
-169
81
-1899
81

query I rowsort
SELECT + col0 + + col2 + col0 AS col2 FROM tab0 WHERE + - col0 + - - col2 + col2 * - + 29 = + 22 + + ( + + col1 )
----

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

query II rowsort
SELECT DISTINCT - 58 * - 97 * + + 60 * + 87, col0 FROM tab1 cor0
----
29367720
51
29367720
85
29367720
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + 47, col1 + - + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-698
SELECT - COUNT ( * ) * 41 col2 FROM tab0
----
-123

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

skipif mysql # not compatible
query II rowsort label-699
SELECT + COUNT ( * ) AS col0, MIN ( DISTINCT - + col0 ) * + 50 FROM tab0
----
3
-4850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL 71 / + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 99 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL 71 / + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 99 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 7 AS col0 FROM tab0 cor0
----
7
7
7

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

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

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

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

query I rowsort
SELECT ALL - + 27 * + col1 * + col1 FROM tab1 cor0
----
-5292
-59643
-675

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT + 85 + - col0 DIV col1 + - col2 + 71 * + col0 AS col1 FROM tab0
----
1103
6248
6776

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT + 85 + - col0 / col1 + - col2 + 71 * + col0 AS col1 FROM tab0
----
1103
6248
6776

query I rowsort
SELECT col2 * 34 FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE 5 * + col0 * - - ( + + col0 ) / + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE 5 * + col0 * - - ( + + col0 ) / + + col2 IS NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT 52 * col2 DIV col2 * ( 6 ) FROM tab1
----
312
312
312

skipif mysql # not compatible
query I rowsort label-710
SELECT 52 * col2 / col2 * ( 6 ) FROM tab1
----
312
312
312

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( - col2 ) NOT IN ( + col0, col1 / col1, + 3 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 25 * col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-1064
-1525
-621

query I rowsort
SELECT ALL + 14 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col1 AND - col0 * - + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + - ( + - ( - + COUNT( * ) ) ) + - + MIN( + ( + 1 ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-717
SELECT + - ( + - ( - + COUNT ( * ) ) ) + - + MIN ( + ( + 1 ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT - MIN( + ( 60 ) ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - MIN ( + ( 60 ) ) AS col2 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT col0 * col0 + - col0 * - + col0 AS col0 FROM tab2
----
11250
4232
8192

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

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 - + 37 FROM tab2 AS cor0
----
14
30
40

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT + 93 DIV - 91 - col2 + + + 96 - - col2 * + 74 AS col1 FROM tab0 AS cor0
----
3526
7322
825

skipif mysql # not compatible
query I rowsort label-723
SELECT + 93 / - 91 - col2 + + + 96 - - col2 * + 74 AS col1 FROM tab0 AS cor0
----
3526
7322
825

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-725
SELECT DISTINCT 22 - CAST( NULL AS SIGNED ) col1, 64 AS col2 FROM tab1, tab0 AS cor0
----
NULL
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-725
SELECT DISTINCT 22 - CAST ( NULL AS INTEGER ) col1, 64 AS col2 FROM tab1, tab0 AS cor0
----
NULL
64

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 71 col1 FROM tab1 AS cor0
----
-51
71
-85
71
-91
71

query I rowsort
SELECT - + 49 FROM tab0 AS cor0 WHERE NOT 86 + - - 25 >= col2 * - col0
----

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

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

query I rowsort
SELECT ALL col1 * - col2 FROM tab1 WHERE NOT + 89 IS NULL
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT - 57 DIV + col1 + - 22 FROM tab2 AS cor0
----
-22
-22
-23

skipif mysql # not compatible
query I rowsort label-732
SELECT - 57 / + col1 + - 22 FROM tab2 AS cor0
----
-22
-22
-23

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT col0 DIV ( - col1 ) AS col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-735
SELECT col0 / ( - col1 ) AS col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL SUM( + 14 ) * - - MAX( DISTINCT + col1 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-10206

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL SUM ( + 14 ) * - - MAX ( DISTINCT + col1 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-10206

query I rowsort
SELECT 79 * + col2 * - 27 FROM tab1 cor0
----
-125847
-145044
-204768

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-740
SELECT DISTINCT + MAX ( + + col1 ) col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-741
SELECT DISTINCT * FROM tab0 WHERE - + col1 + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-741
SELECT DISTINCT * FROM tab0 WHERE - + col1 + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT col1 * ( + 73 ) DIV + 9 AS col1 FROM tab2 AS cor0
----
413
543
624

skipif mysql # not compatible
query I rowsort label-742
SELECT col1 * ( + 73 ) / + 9 AS col1 FROM tab2 AS cor0
----
413
543
624

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

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

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

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

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL CAST ( - - 55 AS INTEGER ) FROM tab0 cor0
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT 2 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-746
SELECT 2 / - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - - 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT ALL + col2 * + + 18 - + + 29 DIV col1 FROM tab2
----
1044
414
720

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + col2 * + + 18 - + + 29 / col1 FROM tab2
----
1044
414
720

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

query I rowsort
SELECT ALL + - 44 + + + col0 + col1 AS col2 FROM tab1 AS cor0
----
21
46
94

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

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

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

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + CAST ( - - 40 AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
37

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

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

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

query II rowsort
SELECT ALL col1 AS col0, + col2 * + + 80 FROM tab1 AS cor0
----
14
7680
47
5440
5
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 35 col1 FROM tab0
----
3045
3395
525

query I rowsort
SELECT DISTINCT + 70 / - + ( - - col2 ) FROM tab1 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE col2 * col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - 70 FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT - MAX( + + 76 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-76

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - MAX ( + + 76 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-76

query I rowsort
SELECT ALL + 46 AS col1 FROM tab0 cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-769
SELECT ALL CAST( NULL AS SIGNED ), + col0 - + 54 AS col0 FROM tab2 AS cor0
----
NULL
-8
NULL
10
NULL
21

skipif mysql # not compatible
query II rowsort label-769
SELECT ALL CAST ( NULL AS INTEGER ), + col0 - + 54 AS col0 FROM tab2 AS cor0
----
NULL
-8
NULL
10
NULL
21

query I rowsort
SELECT - col2 * + 79 - - + col0 FROM tab2 AS cor0
----
-1771
-3096
-4507

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

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

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

query I rowsort
SELECT + + 20 * + ( 10 ) * - col1 FROM tab2 cor0
----
-10200
-13400
-15400

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

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

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

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

query I rowsort
SELECT ALL col2 * ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

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

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

query I rowsort
SELECT DISTINCT col0 + + - col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-779
SELECT DISTINCT col2 / + col1, col2 * ( CAST( NULL AS SIGNED ) ) + col0 AS col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-779
SELECT DISTINCT col2 / + col1, col2 * ( CAST ( NULL AS INTEGER ) ) + col0 AS col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

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

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

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

query II rowsort
SELECT + 48 + - col0, col0 AS col1 FROM tab1 AS cor0
----
-3
51
-37
85
-43
91

query I rowsort
SELECT DISTINCT - col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT DISTINCT + - 42 * - + 55 + - - col1, - 38 * col2 FROM tab0 cor0 WHERE NOT + 51 + - col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= 6
----

query I rowsort
SELECT - col2 + + col0 + 58 FROM tab2 cor0
----
75
81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT 41 + + - COUNT( * ) col1 FROM tab2
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-787
SELECT 41 + + - COUNT ( * ) col1 FROM tab2
----
38

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 62 ) - + col1 * + col1 * + col1 col0 FROM tab1 AS cor0
----
-103885
-187
-2806

query I rowsort
SELECT 85 * col2 - 2 * + col0 FROM tab1 AS cor0
----
4845
5598
8058

query I rowsort
SELECT DISTINCT 3 + + + col1 + - col0 FROM tab2 AS cor0
----
-5
16
8

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT 21 * COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-793
SELECT 21 * COUNT ( * ) FROM tab0 AS cor0
----
63

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * + - 3 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 49 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 / - - ( - col1 ) NOT IN ( + 9, + 60, + + col1, col2 + + ( - col0 ) + + 77 / col1 )
----

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

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

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

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

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

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

query II rowsort
SELECT ALL + 29 AS col2, + col0 * - + 73 AS col2 FROM tab1 AS cor0
----
29
-3723
29
-6205
29
-6643

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 = col2
----

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

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL ( MIN ( DISTINCT + + 85 ) ) AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-807
SELECT - ( + CAST( + MAX( ALL + col1 ) AS SIGNED ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-807
SELECT - ( + CAST ( + MAX ( ALL + col1 ) AS INTEGER ) ) FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - 7 + - col2 * col1 IN ( 5 * + 4 * col0 )
----

query I rowsort
SELECT - 98 * ( + - col1 ) FROM tab0 AS cor0
----
2058
7938
98

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

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - + SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col1 * - - 32 - - - col0 + + 52 * col1 AS col0 FROM tab0 cor0
----
-13
1677
6789

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 31 > NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-814
SELECT DISTINCT - CAST( col0 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( - 3 - 5 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( - 3 - 5 ) AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + - 79 )
----

query II rowsort
SELECT ALL col1 * + + 32 + - ( - ( + col2 ) ) * 77, col0 FROM tab0
----
1442
87
6211
15
7655
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT ALL - 26 + + MAX( DISTINCT - + 55 ) * ( + MIN( ALL col1 ) ) * - + 46 * - 57, COUNT( * ) col2 FROM tab0
----
-144236
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-819
SELECT ALL - 26 + + MAX ( DISTINCT - + 55 ) * ( + MIN ( ALL col1 ) ) * - + 46 * - 57, COUNT ( * ) col2 FROM tab0
----
-144236
3

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col1 AND - col0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - col2 col2 FROM tab0
----
-198
-20
-94

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

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

query I rowsort
SELECT + 45 * + + col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0 + + 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT DISTINCT + col2 DIV + + ( + col1 ) col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-825
SELECT DISTINCT + col2 / + + ( + col1 ) col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL - COUNT( * ) * + - 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - COUNT ( * ) * + - 56 FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT ALL - - 54 DIV 73 DIV + COUNT( + col0 ) * 84 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - - 54 / 73 / + COUNT ( + col0 ) * 84 FROM tab1 cor0
----
0

query I rowsort
SELECT - + 75 AS col0 FROM tab2 AS cor0
----
-75
-75
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-829
SELECT ALL MAX ( DISTINCT + 35 ) col0 FROM tab1 AS cor0
----
35

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-832
SELECT + MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 75 <> col2 * - + 37 + - 82 + - ( - col1 ) + - + 14 / + 48 )
----

query I rowsort
SELECT col0 * col0 * + 96 FROM tab1
----
249696
693600
794976

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT + COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT + COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT 59 * + 20 AS col2 FROM tab2 WHERE NOT - 89 + + + col2 - + col0 IS NOT NULL
----

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-842
SELECT + CAST ( 38 AS INTEGER ) FROM tab1
----
38
38
38

query II rowsort
SELECT ALL 66 AS col2, - col2 AS col0 FROM tab2
----
66
-23
66
-40
66
-58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT - col2 DIV + + 8 FROM tab0 cor0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-845
SELECT - col2 / + + 8 FROM tab0 cor0
----
-1
-12
-5

query I rowsort
SELECT 89 * + col0 FROM tab2 AS cor0 WHERE ( col0 BETWEEN - ( + 53 ) AND + 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab1 cor0
----
-4896
-5015
-6188

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

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

query I rowsort
SELECT ALL + 46 AS col1 FROM tab1 AS cor0 WHERE NULL > col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-850
SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col0 * - 90 AS col1 FROM tab1 WHERE NULL IS NULL
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT 24 + - COUNT( * ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT 24 + - COUNT ( * ) AS col0 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL COUNT( * ) + - MAX( + + col0 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL COUNT ( * ) + - MAX ( + + col0 ) AS col2 FROM tab2
----
-72

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

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

query I rowsort
SELECT DISTINCT 24 FROM tab2 cor0 WHERE NULL IS NULL
----
24

query I rowsort
SELECT ALL + - ( col2 ) - - 18 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT ALL col0 * - 56 + - col2 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11284
-7752
-9775

query I rowsort
SELECT + col0 * 62 AS col1 FROM tab2
----
2852
3968
4650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + 81 * + CAST( + + 72 AS SIGNED ) FROM tab2
----
5832
5832
5832

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + 81 * + CAST ( + + 72 AS INTEGER ) FROM tab2
----
5832
5832
5832

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

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

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

skipif mysql # not compatible
query I rowsort label-862
SELECT CAST ( 80 AS INTEGER ) FROM tab1 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT COUNT( * ) DIV 68 + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT COUNT ( * ) / 68 + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 30 col0 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ALL - col0 DIV - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - col0 / - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

query II rowsort
SELECT + 93 AS col2, - col0 FROM tab1 AS cor0
----
93
-51
93
-85
93
-91

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

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT - COUNT ( col0 ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT + + 36 * - - 29 AS col0 FROM tab2 AS cor0
----
1044

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

query I rowsort
SELECT + 8 * + col0 FROM tab2 AS cor0
----
368
512
600

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-872
SELECT + ( + - COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - 93 AS col0 FROM tab0 AS cor0
----
-93
-93
-93

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

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

skipif mysql # not compatible
query I rowsort label-875
SELECT + + COUNT ( * ) FROM tab2 WHERE + col2 + + - 81 IS NULL
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + ( - + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-879
SELECT MIN ( ALL - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT MIN( - - 76 ) + - - 7 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-880
SELECT MIN ( - - 76 ) + - - 7 FROM tab2 AS cor0
----
83

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

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

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

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

query I rowsort
SELECT col0 * col0 + 15 FROM tab1
----
2616
7240
8296

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT - 41 * + - MAX( ALL + col1 ) * - MAX( - col2 ) FROM tab0 WHERE - + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT - 41 * + - MAX ( ALL + col1 ) * - MAX ( - col2 ) FROM tab0 WHERE - + col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT COUNT( * ) AS col2, MIN( DISTINCT - - 11 ) AS col1 FROM tab0
----
3
11

skipif mysql # not compatible
query II rowsort label-887
SELECT COUNT ( * ) AS col2, MIN ( DISTINCT - - 11 ) AS col1 FROM tab0
----
3
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT COUNT( * ) AS col2, MAX( DISTINCT - 40 ) FROM tab1
----
3
-40

skipif mysql # not compatible
query II rowsort label-889
SELECT COUNT ( * ) AS col2, MAX ( DISTINCT - 40 ) FROM tab1
----
3
-40

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

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

query I rowsort
SELECT DISTINCT col2 * col0 - 97 FROM tab2 AS cor0
----
2463
4253
961

query II rowsort
SELECT ALL 82 + col2 * + - col1 * + + 16, + col0 FROM tab2 AS cor0
----
-18686
46
-49198
64
-62094
75

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT COUNT( * ) * 95 FROM tab0 cor0
----
285

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT COUNT ( * ) * 95 FROM tab0 cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + - COUNT( DISTINCT + 41 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-894
SELECT + - COUNT ( DISTINCT + 41 ) AS col2 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL + + COUNT( * ) - + 78 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-69

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + + COUNT ( * ) - + 78 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 - - 20
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL - + 90 * + col2 + - 31 FROM tab0 AS cor0
----
-4261
-8941
-931

query I rowsort
SELECT DISTINCT col1 * + col0 + - - col0 AS col0 FROM tab2 cor0
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 - + col0 col0 FROM tab2 AS cor0 WHERE NOT 46 NOT BETWEEN + 8 * col1 AND NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT ALL 16 * + 1 + col2 DIV 2 FROM tab1 cor0
----
45
50
64

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL 16 * + 1 + col2 / 2 FROM tab1 cor0
----
45
50
64

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

query I rowsort
SELECT DISTINCT 55 FROM tab2 cor0 WHERE - col1 < - col2
----
55

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

query I rowsort
SELECT ( + + ( + + 59 ) ) FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT 78 * - COUNT( * ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-908
SELECT 78 * - COUNT ( * ) FROM tab0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL COUNT( * ) * + - 76 * + COUNT( * ) + + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-678

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL COUNT ( * ) * + - 76 * + COUNT ( * ) + + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-678

query I rowsort
SELECT DISTINCT + 75 * - + 21 FROM tab2
----
-1575

query I rowsort
SELECT ALL 5 * - col2 FROM tab1
----
-295
-340
-480

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-913
SELECT ALL - COUNT( * ) DIV - - 92 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - COUNT ( * ) / - - 92 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT DISTINCT 85 DIV 88 + + 98 DIV + ( col2 ) FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT 85 / 88 + + 98 / + ( col2 ) FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT - + col0 + - - 30 FROM tab2 AS cor0
----
-16
-34
-45

query I rowsort
SELECT ALL + col2 - + col0 + + col1 FROM tab1 AS cor0
----
-21
24
59

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

query I rowsort
SELECT - + 12 * - + 3 FROM tab2 AS cor0
----
36
36
36

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

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

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

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

query I rowsort
SELECT col2 - + - col1 + - col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT + MIN( DISTINCT - 94 ) + + COUNT( * ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + MIN ( DISTINCT - 94 ) + + COUNT ( * ) FROM tab2
----
-91

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 FROM tab0
----
1000
103823
970299

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

onlyif mysql # DIV for integer division: 
query II rowsort label-926
SELECT - col2 + 96 DIV + col2, - col0 + + 76 AS col0 FROM tab2
----
-19
30
-38
12
-57
1

skipif mysql # not compatible
query II rowsort label-926
SELECT - col2 + 96 / + col2, - col0 + + 76 AS col0 FROM tab2
----
-19
30
-38
12
-57
1

query I rowsort
SELECT + col0 + - - col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NOT + ( + 93 ) * + 42 * - col2 + - ( + ( - + col1 ) ) >= NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-930
SELECT SUM( DISTINCT 54 ) * CAST( NULL AS DECIMAL ) * + - 92 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT SUM ( DISTINCT 54 ) * CAST ( NULL AS REAL ) * + - 92 FROM tab2
----
NULL

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

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

query II rowsort
SELECT ALL - + col0 AS col1, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT + 52 AS col2, - MIN( - col0 ) FROM tab2 AS cor0
----
52
75

skipif mysql # not compatible
query II rowsort label-935
SELECT + 52 AS col2, - MIN ( - col0 ) FROM tab2 AS cor0
----
52
75

query I rowsort
SELECT ( + 80 ) * + 9 FROM tab0 AS cor0
----
720
720
720

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-939
SELECT * FROM tab0 WHERE NOT + - col0 * + col1 = CAST( NULL AS SIGNED ) + + 35
----

skipif mysql # not compatible
query III rowsort label-939
SELECT * FROM tab0 WHERE NOT + - col0 * + col1 = CAST ( NULL AS INTEGER ) + + 35
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= 21 * - 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL <> 59 + - col1 + 93
----

query I rowsort
SELECT ALL 35 * + 81 AS col0 FROM tab0
----
2835
2835
2835

query II rowsort
SELECT col0 + 82 AS col2, - 60 AS col1 FROM tab2
----
128
-60
146
-60
157
-60

query I rowsort
SELECT - 88 + + col0 FROM tab0
----
-1
-73
9

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

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

query I rowsort
SELECT 61 * ( col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
143106
300608
306525

query I rowsort
SELECT col0 * + 30 + + + col2 FROM tab0 AS cor0
----
2620
3009
497

query I rowsort
SELECT ALL 8 + 88 AS col2 FROM tab0
----
96
96
96

query I rowsort
SELECT - col0 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-8
13
5

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

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

query I rowsort
SELECT ALL col1 - + + 52 FROM tab1 AS cor0
----
-38
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT col0 DIV + col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT col0 / + col1 FROM tab0 cor0
----
0
4
97

query I rowsort
SELECT - + col2 + 62 FROM tab1 cor0
----
-34
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL + MIN( ALL - 96 ) * - 23 col0 FROM tab2
----
2208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-955
SELECT ALL + MIN ( ALL - 96 ) * - 23 col0 FROM tab2
----
2208

query I rowsort
SELECT - 93 * col1 AS col0 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT DISTINCT + COUNT( * ) * - 79 AS col2, 52 AS col2 FROM tab1
----
-237
52

skipif mysql # not compatible
query II rowsort label-957
SELECT DISTINCT + COUNT ( * ) * - 79 AS col2, 52 AS col2 FROM tab1
----
-237
52

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

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

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

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

query I rowsort
SELECT ALL - + 12 FROM tab2 AS cor0 WHERE - ( 21 ) * + 58 + ( 7 ) - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 + col1
----

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

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

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

query I rowsort
SELECT DISTINCT ( + 30 ) FROM tab0
----
30

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL + SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT ( + MIN( DISTINCT - col0 ) ), - MAX( ALL 91 ) FROM tab1 AS cor0
----
-91
-91

skipif mysql # not compatible
query II rowsort label-970
SELECT ( + MIN ( DISTINCT - col0 ) ), - MAX ( ALL 91 ) FROM tab1 AS cor0
----
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT COUNT( * ) * 30 * - + COUNT( * ) col1 FROM tab2
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-971
SELECT COUNT ( * ) * 30 * - + COUNT ( * ) col1 FROM tab2
----
-270

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

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

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

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

query I rowsort
SELECT ( 53 ) FROM tab0 WHERE + + 52 - - - ( - col1 ) IS NOT NULL
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT DISTINCT - + 94 + + - col1 * col2 DIV col1 * + + col2 * - col2 DIV - col2 FROM tab1 AS cor0
----
-3575
-4718
-9310

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT - + 94 + + - col1 * col2 / col1 * + + col2 * - col2 / - col2 FROM tab1 AS cor0
----
-3575
-4718
-9310

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT col2 + - CAST( - col2 AS SIGNED ) AS col0, + col2 * 66 FROM tab1
----
118
3894
136
4488
192
6336

skipif mysql # not compatible
query II rowsort label-979
SELECT col2 + - CAST ( - col2 AS INTEGER ) AS col0, + col2 * 66 FROM tab1
----
118
3894
136
4488
192
6336

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

query I rowsort
SELECT - col0 FROM tab1 WHERE + + col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + - MIN( 78 ) + + - COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + - MIN ( 78 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + COUNT( * ) - - 93 * + + MIN( ALL col2 ) FROM tab1 AS cor0
----
5490

skipif mysql # not compatible
query I rowsort label-983
SELECT + COUNT ( * ) - - 93 * + + MIN ( ALL col2 ) FROM tab1 AS cor0
----
5490

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL - + col2 DIV 34 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - + col2 / 34 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT - 52 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT - 52 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT ALL - 82 DIV + - col1 + - - col1 * + - 43 AS col0 FROM tab1 AS cor0
----
-199
-2020
-597

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - 82 / + - col1 + - - col1 * + - 43 AS col0 FROM tab1 AS cor0
----
-199
-2020
-597

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

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

query II rowsort
SELECT DISTINCT 36 * - col1 * + ( - - col0 ), col1 FROM tab0
----
-3492
1
-43740
81
-65772
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-992
SELECT ALL * FROM tab0 WHERE NOT ( col1 / + - 6 NOT BETWEEN ( 85 ) * CAST( NULL AS SIGNED ) - + - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-992
SELECT ALL * FROM tab0 WHERE NOT ( col1 / + - 6 NOT BETWEEN ( 85 ) * CAST ( NULL AS INTEGER ) - + - col2 AND NULL )
----

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

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

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

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

query I rowsort
SELECT - col1 * - 22 AS col2 FROM tab2
----
1122
1474
1694

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 49 - col2 FROM tab0
----
-50
2
39

query I rowsort
SELECT ALL 10 * 26 AS col0 FROM tab1 WHERE NULL IS NULL
----
260
260
260

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN col1 + - 48 AND + 62 + - col2
----
87
21
10

query I rowsort
SELECT ALL + 20 + 75 FROM tab2
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL col2 * 58 FROM tab0 WHERE NOT ( + CAST( - 75 AS SIGNED ) ) IS NULL
----
2726
5742
580

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL col2 * 58 FROM tab0 WHERE NOT ( + CAST ( - 75 AS INTEGER ) ) IS NULL
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT DISTINCT - MAX( ALL + 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT - MAX ( ALL + 22 ) FROM tab1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT 83 + - COUNT( * ) * + 96 FROM tab0 WHERE CAST( 20 AS SIGNED ) IS NOT NULL
----
-205

skipif mysql # not compatible
query I rowsort label-1008
SELECT 83 + - COUNT ( * ) * + 96 FROM tab0 WHERE CAST ( 20 AS INTEGER ) IS NOT NULL
----
-205

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

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

query I rowsort
SELECT + col1 * 86 + - col2 AS col1 FROM tab2
----
4363
5704
6582

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + COUNT( DISTINCT 9 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + COUNT ( DISTINCT 9 ) FROM tab1
----
1

query I rowsort
SELECT col0 + col0 AS col1 FROM tab0 WHERE ( - 74 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT + 23 + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 23 + COUNT ( * ) FROM tab2
----
26

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT - COUNT ( * ) * - ( + 24 ) FROM tab2
----
72

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1019
SELECT - COUNT ( * ) * 46 col1 FROM tab2
----
-138

query III rowsort
SELECT ALL * FROM tab2 WHERE 75 NOT BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 48 * 33 FROM tab1
----
1584

query I rowsort
SELECT ALL - col0 * + 39 AS col1 FROM tab2 WHERE ( - col0 + col1 * + col2 ) IN ( + 97 )
----

query I rowsort
SELECT - col1 * + 28 + col2 AS col1 FROM tab2
----
-1405
-1818
-2116

query I rowsort
SELECT + 49 * + 31 + + ( - ( col0 ) ) AS col0 FROM tab0
----
1422
1432
1504

query I rowsort
SELECT - col1 + 17 * ( 69 ) AS col0 FROM tab1
----
1126
1159
1168

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

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

query I rowsort
SELECT 96 * - col2 AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

query I rowsort
SELECT DISTINCT - ( 58 ) / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * 18 + - 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + ( 31 + + col2 ) FROM tab0 AS cor0
----
128
227
93

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab0 WHERE 97 IS NOT NULL
----
210
3807
99

query I rowsort
SELECT + 48 - - col2 FROM tab0
----
147
58
95

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

query I rowsort
SELECT col2 * ( - col1 ) + + 60 FROM tab0
----
-150
-3747
-39

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - + 13 + - 12 * 81 FROM tab1 AS cor0
----
-985
-985
-985

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT ALL - col2 - col1 DIV - 91 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - col2 - col1 / - 91 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT DISTINCT COUNT( * ), 26 AS col1 FROM tab2
----
3
26

skipif mysql # not compatible
query II rowsort label-1041
SELECT DISTINCT COUNT ( * ), 26 AS col1 FROM tab2
----
3
26

query I rowsort
SELECT DISTINCT ( + 63 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN - ( + 86 ) * - 48 AND col2 * - ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + + col2 + + - 83 col2 FROM tab1 AS cor0
----
-10
-19
18

query I rowsort
SELECT DISTINCT - - col0 + - 81 AS col2 FROM tab0 AS cor0
----
-66
16
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT - - 16 + + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE - 72 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT - - 16 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE - 72 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 55 + - 55 <> NULL
----

query I rowsort
SELECT + - 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT + COUNT( * ) * - + COUNT( + + 57 ) * + 37 col0, 57 FROM tab2 AS cor0
----
-333
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1055
SELECT + COUNT ( * ) * - + COUNT ( + + 57 ) * + 37 col0, 57 FROM tab2 AS cor0
----
-333
57

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1057
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 AS col2, - col2 col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT - CAST( NULL AS SIGNED ) * 9 + + - 35 col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1059
SELECT - CAST ( NULL AS INTEGER ) * 9 + + - 35 col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * + - 20 col2 FROM tab0 AS cor0
----
1820
1820
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT - 28, MAX( ALL - - col2 ) col1 FROM tab2 cor0
----
-28
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1061
SELECT - 28, MAX ( ALL - - col2 ) col1 FROM tab2 cor0
----
-28
58

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

query II rowsort
SELECT ALL 93 * + 83, col1 + col0 AS col0 FROM tab2
----
7719
141
7719
142
7719
97

query I rowsort
SELECT - 38 * col2 AS col0 FROM tab0
----
-1786
-3762
-380

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

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

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

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

query I rowsort
SELECT 53 + col1 FROM tab1 WHERE NOT NULL <> 66
----

query I rowsort
SELECT ALL + 63 + - 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1069
SELECT 97 / + + COUNT ( * ) col0 FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1070
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 11 / + - CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-1070
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 11 / + - CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT 90 >= 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 66 * + 32 col2, 8 AS col1 FROM tab0 AS cor0
----
-2031
8
-2091
8
-2111
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT - - ( - + 68 ) * - COUNT( * ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT - - ( - + 68 ) * - COUNT ( * ) FROM tab1 AS cor0
----
204

query I rowsort
SELECT DISTINCT + 16 + - - col2 FROM tab2 AS cor0
----
39
56
74

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

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

query I rowsort
SELECT + 87 * - + col2 + - col1 * col2 FROM tab2 AS cor0
----
-3174
-6560
-8932

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > + col2 - - + col2 + + col1 * 27 + - - col2
----

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

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

query I rowsort
SELECT - + col0 + col2 * + col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT DISTINCT 12 + + col1 FROM tab1
----
17
26
59

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

query II rowsort
SELECT 85 AS col1, + 50 AS col2 FROM tab0
----
85
50
85
50
85
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 AS col2, - col0 * - + col2 * - col2 col2 FROM tab2
----
16
-102400
16
-24334
16
-252300

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + col0 * - 81 IS NULL
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT MAX( + 45 ) col0 FROM tab1
----
45

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

query I rowsort
SELECT + 31 * + col0 - - col0 AS col2 FROM tab2 cor0
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT ALL - + 96 DIV - + COUNT( * ) + + 85 * 52 FROM tab2 AS cor0
----
4452

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - + 96 / - + COUNT ( * ) + + 85 * 52 FROM tab2 AS cor0
----
4452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT + COUNT( ALL + col0 ) - - + 57 + + + 99 AS col0 FROM tab1 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) * + col2 IS NULL )
----
159

skipif mysql # not compatible
query I rowsort label-1090
SELECT + COUNT ( ALL + col0 ) - - + 57 + + + 99 AS col0 FROM tab1 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) * + col2 IS NULL )
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1091
SELECT - col0 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1091
SELECT - col0 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT MIN( ALL 32 ) + + + 41 AS col1 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT MIN ( ALL 32 ) + + + 41 AS col1 FROM tab0
----
73

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

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

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

query I rowsort
SELECT + col1 * - + 44 FROM tab0 AS cor0
----
-3564
-44
-924

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1096
SELECT ALL - MAX ( - col2 ) col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL 58 * 17 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
986
986
986

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT SUM( + 18 ) * - ( 63 ) FROM tab2 AS cor0
----
-3402

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT SUM ( + 18 ) * - ( 63 ) FROM tab2 AS cor0
----
-3402

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL SUM( 6 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL SUM ( 6 ) FROM tab2
----
18

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( + col0 ) / 88 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL COUNT( * ) * - 1 * + - MIN( col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL COUNT ( * ) * - 1 * + - MIN ( col2 ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT 23 * - - 41 * - 3 * + COUNT( * ) AS col0 FROM tab0
----
-8487

skipif mysql # not compatible
query I rowsort label-1103
SELECT 23 * - - 41 * - 3 * + COUNT ( * ) AS col0 FROM tab0
----
-8487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT - SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * - + col1 * - - 93 AS col2 FROM tab2
----
218178
458304
467325

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - SUM( ALL + col2 ) + 90 FROM tab1 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - SUM ( ALL + col2 ) + 90 FROM tab1 AS cor0
----
-133

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1109
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE col1 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE col1 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * ( 74 * col0 ) AS col0 FROM tab0
----
52170
64380
710622

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT 5 - - MAX( DISTINCT - col1 ) * COUNT( * ) FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-1112
SELECT 5 - - MAX ( DISTINCT - col1 ) * COUNT ( * ) FROM tab2
----
-148

query I rowsort
SELECT DISTINCT - 9 * + 15 AS col0 FROM tab1
----
-135

query I rowsort
SELECT ALL + col2 + + 7 FROM tab0
----
106
17
54

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab0 WHERE NOT + 68 IS NULL
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT - ( + COUNT( * ) ) * COUNT( * ) FROM tab2 WHERE NOT NULL IN ( col1 + - col2 / - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( col1 + - col2 / - 74 )
----
0

query I rowsort
SELECT + 0 FROM tab1 WHERE NOT 43 / + 59 IS NULL
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT SUM( + col2 ) col2 FROM tab2 WHERE NOT + 73 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1120
SELECT SUM ( + col2 ) col2 FROM tab2 WHERE NOT + 73 + col2 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - ( - 57 ) FROM tab0
----
57
57
57

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

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

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

query I rowsort
SELECT col1 + + 16 AS col0 FROM tab2
----
67
83
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT DISTINCT - 50 DIV + col2 + col1 AS col1 FROM tab2 WHERE NOT ( col0 - + 45 ) IN ( ( - col0 ) )
----
49
67
76

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - 50 / + col2 + col1 AS col1 FROM tab2 WHERE NOT ( col0 - + 45 ) IN ( ( - col0 ) )
----
49
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT 31 * MIN( + col2 ) FROM tab2
----
713

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT 31 * MIN ( + col2 ) FROM tab2
----
713

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT col1 DIV 41 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1128
SELECT col1 / 41 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT 83 - - col2 FROM tab0
----
130
182
93

query I rowsort
SELECT + col0 * col0 - + 75 * + ( 55 ) FROM tab2
----
-2009
-29
1500

query I rowsort
SELECT + 10 + 69 FROM tab1
----
79
79
79

query I rowsort
SELECT 38 + + col2 AS col0 FROM tab0
----
137
48
85

query I rowsort
SELECT ALL + 84 * ( - col1 * col2 ) + + col1 FROM tab2
----
-258643
-326357
-98481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 46 col0 FROM tab1
----
2162
230
644

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( - 37 / + col1 ) NOT BETWEEN ( NULL ) AND ( + 31 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT ALL col1 DIV - col1 - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL col1 / - col1 - col1 FROM tab0 AS cor0
----
-2
-22
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT - 26 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 26 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 / - col0 IS NULL
----

query I rowsort
SELECT - 65 * - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6c6de2a4ae7d768c80ac67e17b0c56d4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col2 FROM tab2 AS cor0 WHERE ( + ( col2 ) ) NOT IN ( 67 / col2 - col2 )
----
51

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT MAX ( 59 ) AS col1 FROM tab0 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + + col0 / + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT + COUNT( DISTINCT col0 ) DIV 83 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1149
SELECT + COUNT ( DISTINCT col0 ) / 83 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT - 23 DIV - COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT - 23 / - COUNT ( * ) FROM tab0 AS cor0
----
7

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

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

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

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

query I rowsort
SELECT - col2 + ( col2 ) * - 42 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1720
-2494
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + SUM( 23 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + SUM ( 23 ) FROM tab0
----
69

query I rowsort
SELECT - 54 AS col2 FROM tab1 WHERE NOT - 29 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1156
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= + col1 / + CAST( - 49 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1156
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= + col1 / + CAST ( - 49 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 + - 63 FROM tab0 AS cor0
----
-48
24
34

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 87 ) NOT IN ( 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - col1 * col0 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT 31 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT * FROM tab1 WHERE + + 86 IN ( - col0 + - col2 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= 73 * 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col2 FROM tab2 WHERE NULL BETWEEN + + col2 AND ( col0 )
----

query I rowsort
SELECT + col1 + col0 * + + col1 - col2 AS col2 FROM tab2
----
2374
4965
5034

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + - col2 / col0 BETWEEN - col1 AND col1
----
97
1
99

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL IN ( + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - 32 + + 80 * ( 49 ) + + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
4111

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 32 + + 80 * ( 49 ) + + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
4111

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

query I rowsort
SELECT DISTINCT + + col2 + - 90 FROM tab1 AS cor0
----
-22
-31
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT - - 23 + + col0 DIV - - col0 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1171
SELECT - - 23 + + col0 / - - col0 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

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

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

query I rowsort
SELECT DISTINCT 9 * col0 AS col2 FROM tab1 AS cor0
----
459
765
819

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

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

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

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

query I rowsort
SELECT ALL 27 AS col2 FROM tab1 WHERE + - col2 BETWEEN ( + col2 ) AND + 36 / + col2
----

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

query I rowsort
SELECT col2 * + 14 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT ALL COUNT( * ) * - - ( + 88 ) - - 0 DIV COUNT( * ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL COUNT ( * ) * - - ( + 88 ) - - 0 / COUNT ( * ) AS col1 FROM tab2
----
264

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT COUNT ( * ) / - COUNT ( * ) - - 57 FROM tab2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1183
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col2, + 44 FROM tab1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-1183
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col2, + 44 FROM tab1
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT AVG ( + col2 ) * COUNT( * ) + + 94 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT AVG ( + col2 ) * COUNT ( * ) + + 94 FROM tab2 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT + 17 AS col0 FROM tab2 AS cor0 WHERE col0 = 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT 78 - MAX( ALL + - col1 ) FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-1186
SELECT 78 - MAX ( ALL + - col1 ) FROM tab1 cor0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL - MAX( + 43 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1188
SELECT ALL - MAX ( + 43 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + + col1 + - + 16 <> - col0
----

query I rowsort
SELECT - 4 * + 45 * - col1 AS col1 FROM tab1 AS cor0
----
2520
8460
900

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

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 5 / + COUNT ( * ) FROM tab2 cor0
----
1

query I rowsort
SELECT + ( 37 ) * + 2 + col0 FROM tab2 AS cor0 WHERE NOT + ( + col0 ) * col1 IS NULL
----
120
138
149

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT col0 DIV - - col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT col0 / - - col0 FROM tab2 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT ( COUNT( * ) ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT ( COUNT ( * ) ) FROM tab0, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT + 75 * + col1 * - + 12 * 76 * - + col0 DIV - col0 FROM tab2
----
-3488400
-4582800
-5266800

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 75 * + col1 * - + 12 * 76 * - + col0 / - col0 FROM tab2
----
-3488400
-4582800
-5266800

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT ALL + 34 DIV + 96 * col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + 34 / + 96 * col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - - ( + 38 ) + - 35 IN ( - + col0 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT - COUNT( * ) + + 21 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - COUNT ( * ) + + 21 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL - + 8 + - - 57 - + 90 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + - 59 AS col1 FROM tab2 AS cor0
----
-59
-59
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT MIN( ALL - ( - + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-1212
SELECT MIN ( ALL - ( - + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15

query I rowsort
SELECT + col0 - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT MIN( DISTINCT + 57 ) + + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1216
SELECT MIN ( DISTINCT + 57 ) + + COUNT ( * ) FROM tab0 AS cor0
----
60

query II rowsort
SELECT + + 92 + - - 10 AS col0, col0 + + + col1 AS col0 FROM tab1 AS cor0
----
102
138
102
65
102
90

query I rowsort
SELECT DISTINCT 95 + + col0 - - 89 AS col1 FROM tab0 AS cor0
----
199
271
281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1219
SELECT - col1 + + col2 AS col1, CAST( col1 AS SIGNED ) * + col0 col0 FROM tab2 cor0
----
-28
2346
-37
4928
-9
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1219
SELECT - col1 + + col2 AS col1, CAST ( col1 AS INTEGER ) * + col0 col0 FROM tab2 cor0
----
-28
2346
-37
4928
-9
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - col1 + + + 25 AS col2 FROM tab2
----
-2576
-4464
-5904

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN + 7 AND 64
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1225
SELECT 17 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0 * - + col2 + - CAST( + + 90 AS DECIMAL ) / + col0 + - + col2 + + col0 * col2 )
----
51

skipif mysql # not compatible
query I rowsort label-1225
SELECT 17 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0 * - + col2 + - CAST ( + + 90 AS REAL ) / + col0 + - + col2 + + col0 * col2 )
----
51

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

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

query II rowsort
SELECT + col1 * + 32 AS col0, 13 + + col1 * + col0 AS col0 FROM tab0
----
2592
1228
32
110
672
1840

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

query I rowsort
SELECT - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL + CAST( + 56 AS SIGNED ) FROM tab0 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + CAST ( + 56 AS INTEGER ) FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT MIN( + - 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1234
SELECT MIN ( + - 52 ) FROM tab1 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT DISTINCT - col1 DIV - - col0 FROM tab1 cor0 WHERE 48 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - col1 / - - col0 FROM tab1 cor0 WHERE 48 IS NOT NULL
----
0

query II rowsort
SELECT ALL + + 36 + + 32, - col1 AS col1 FROM tab2 AS cor0
----
68
-51
68
-67
68
-77

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NOT - col1 * - 6 <> + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT ( + SUM( - 42 ) ) + COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT ( + SUM ( - 42 ) ) + COUNT ( * ) FROM tab1
----
-123

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT ALL col0 DIV - col1 + ( + col2 ) FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL col0 / - col1 + ( + col2 ) FROM tab1
----
42
67
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT CAST( NULL AS SIGNED ) / - 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT CAST ( NULL AS INTEGER ) / - 51 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - 31 AS col2 FROM tab2
----
1426
1984
2325

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

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

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

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + ( col0 ) * 74 < - col2 + col0 ) )
----
1
21
81

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT DISTINCT - + ( - col0 ) + - 97 DIV - - col2 AS col2 FROM tab0 AS cor0
----
13
78
97

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - + ( - col0 ) + - 97 / - - col2 AS col2 FROM tab0 AS cor0
----
13
78
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT - COUNT( * ) DIV + 52 + + 79 AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - COUNT ( * ) / + 52 + + 79 AS col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT + COUNT( * ) - 83 AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + COUNT ( * ) - 83 AS col0 FROM tab0
----
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1256
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 * - col0 * ( 57 ) ) >= CAST( NULL AS SIGNED ) * + + 32 * - 23
----

skipif mysql # not compatible
query III rowsort label-1256
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 * - col0 * ( 57 ) ) >= CAST ( NULL AS INTEGER ) * + + 32 * - 23
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1257
SELECT col1 AS col2 FROM tab2 cor0 WHERE CAST( col2 AS DECIMAL ) * + + col2 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1257
SELECT col1 AS col2 FROM tab2 cor0 WHERE CAST ( col2 AS REAL ) * + + col2 IS NOT NULL
----
51
67
77

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

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

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

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

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

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

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

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

query II rowsort
SELECT + - col1 AS col1, - 81 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col0 + + + ( col2 ) AS col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab2 cor0
----
25

query I rowsort
SELECT ALL + + col1 * - ( + + col2 ) + + col2 * - - 67 AS col0 FROM tab1 AS cor0
----
1360
3658
5088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT CAST( - + ( - col0 ) AS SIGNED ) + 97 FROM tab0 AS cor0
----
112
184
194

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT CAST ( - + ( - col0 ) AS INTEGER ) + 97 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT 32 DIV + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT 32 / + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT MAX( - ( - 43 ) ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-1271
SELECT MAX ( - ( - 43 ) ) AS col2 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT 2 + - SUM( + 25 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT 2 + - SUM ( + 25 ) FROM tab1
----
-73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( + - 58 )
----

query I rowsort
SELECT ALL + col2 * - ( - 14 ) AS col1 FROM tab1
----
1344
826
952

query I rowsort
SELECT - col2 + - col0 * - col2 FROM tab2
----
1035
2520
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT DISTINCT + col1 DIV 3 AS col1 FROM tab0
----
0
27
7

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + col1 / 3 AS col1 FROM tab0
----
0
27
7

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT NULL < - 27 / 62
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT - CAST( + + 35 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif mysql # not compatible
query I rowsort label-1281
SELECT - CAST ( + + 35 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT COUNT( * ) AS col2, 30 AS col0 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-1282
SELECT COUNT ( * ) AS col2, 30 AS col0 FROM tab0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - COUNT( DISTINCT + 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - COUNT ( DISTINCT + 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT DISTINCT 36 - col1 FROM tab1
----
-11
22
31

query II rowsort
SELECT ALL col0 AS col1, col0 - - col2 - - + col1 * - 6 AS col2 FROM tab0
----
15
-424
87
-29
97
190

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 / - 10 IS NOT NULL
----

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

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

query I rowsort
SELECT - col1 * - - 50 AS col2 FROM tab2 AS cor0
----
-2550
-3350
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT SUM( DISTINCT + 58 ) AS col1 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1291
SELECT SUM ( DISTINCT + 58 ) AS col1 FROM tab0 AS cor0
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1293
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1293
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + SUM( + ( + 66 ) ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1295
SELECT + SUM ( + ( + 66 ) ) FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1296
SELECT ALL - - ( CAST( col1 AS DECIMAL ) ) AS col0, ( - col0 ) - col1 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL - - ( CAST ( col1 AS REAL ) ) AS col0, ( - col0 ) - col1 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT - 3 + + + SUM( DISTINCT + + col1 ) - 14 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - 3 + + + SUM ( DISTINCT + + col1 ) - 14 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 81 * - col0 * + - col1 FROM tab2 cor0
----
-190026
-399168
-407025

query I rowsort
SELECT 45 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - col2 + + + ( + col2 ) FROM tab0 WHERE NOT col0 IS NULL
----
0
0
0

query I rowsort
SELECT + 47 + - - col2 FROM tab1
----
106
115
143

query I rowsort
SELECT ALL 38 + - ( col1 ) * - col1 + - ( - col2 ) FROM tab0 AS cor0
----
138
489
6646

onlyif mysql # DIV for integer division: 
query II rowsort label-1304
SELECT + + col0 + - col2 DIV + - col2, col0 AS col2 FROM tab0 AS cor0
----
16
15
88
87
98
97

skipif mysql # not compatible
query II rowsort label-1304
SELECT + + col0 + - col2 / + - col2, col0 AS col2 FROM tab0 AS cor0
----
16
15
88
87
98
97

query I rowsort
SELECT ALL + + col2 + - + col1 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT - col0 + 97 AS col2, 94 FROM tab0 AS cor0
----
0
94
10
94
82
94

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

query I rowsort
SELECT DISTINCT - 10 + + - col2 FROM tab2 AS cor0
----
-33
-50
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + COUNT( * ) + - + COUNT( * ) * + SUM( - + col0 ) FROM tab1
----
684

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * + SUM ( - + col0 ) FROM tab1
----
684

query I rowsort
SELECT 17 * + col0 AS col2 FROM tab2
----
1088
1275
782

query I rowsort
SELECT DISTINCT ( + col0 ) - + 62 - - col1 FROM tab2
----
35
79
80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT + - ( - COUNT( * ) ), - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-14

skipif mysql # not compatible
query II rowsort label-1313
SELECT + - ( - COUNT ( * ) ), - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-14

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 NOT BETWEEN + col0 + - + 40 AND - + col0 - - + 5 )
----

query I rowsort
SELECT ALL 42 * 3 * 76 AS col1 FROM tab1 cor0 WHERE NOT col2 + 41 * + col2 IS NULL
----
9576
9576
9576

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ALL + - 91 DIV - ( 20 ) AS col0 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + - 91 / - ( 20 ) AS col0 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1320
SELECT ALL - CAST( + + 41 AS SIGNED ) DIV + - col1 FROM tab1 AS cor0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - CAST ( + + 41 AS INTEGER ) / + - col1 FROM tab1 AS cor0
----
0
2
8

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

query I rowsort
SELECT + col0 * + + 83 * 58 AS col2 FROM tab1
----
245514
409190
438074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1323
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - - 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1323
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - - 57 FROM tab1
----
0

query II rowsort
SELECT + 89, 28 FROM tab0 AS cor0 WHERE NOT - 95 - - 19 < + 65
----

query I rowsort
SELECT col2 + col1 * + - col2 * col0 * - col2 FROM tab2 AS cor0
----
1241057
16904158
7884840

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1327
SELECT COUNT ( * ) + - 60 + 51 col2 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 96 ) col1 FROM tab1
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 + + + col2 col2 FROM tab2
----
23
46
40
80
58
116

query I rowsort
SELECT + - 5 * - - col1 AS col2 FROM tab2 cor0
----
-255
-335
-385

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

query II rowsort
SELECT ALL - col0, - 51 AS col0 FROM tab1 AS cor0
----
-51
-51
-85
-51
-91
-51

query I rowsort
SELECT ALL + - 51 + + col0 + - col0 + + - 34 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + 36 * 90 * - + col1 * + + col0 + + + col0 * + col0 FROM tab0 AS cor0
----
-304871
-3936375
-5911911

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + 91 * + COUNT( * ) + + COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 91 * + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - MAX( + 52 ) + 43 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1336
SELECT - MAX ( + 52 ) + 43 FROM tab2
----
-9

query I rowsort
SELECT - 77 + col0 + - col1 * 3 FROM tab2
----
-184
-203
-244

query I rowsort
SELECT col0 * - - 69 + - ( - + col2 ) AS col0 FROM tab0
----
1082
6013
6792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1339
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1339
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----

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

query I rowsort
SELECT ALL - + 53 * col2 * - + col2 FROM tab0 AS cor0
----
117077
519453
5300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT col1 * - 89 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 * 46 * - 55 AND - col2
----

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

query I rowsort
SELECT + 87 * col0 FROM tab2 cor0
----
4002
5568
6525

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab1 WHERE + + col0 + - 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL 13 * + COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL 13 * + COUNT ( * ) AS col1 FROM tab2
----
39

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

query I rowsort
SELECT ALL 58 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT + col1 + + col1 + 2 AS col1 FROM tab0
----
164
4
44

query I rowsort
SELECT - 93 + - 26 FROM tab2 AS cor0
----
-119
-119
-119

query I rowsort
SELECT + col2 + - + 46 FROM tab0 AS cor0
----
-36
1
53

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

query I rowsort
SELECT - - col1 + ( + 94 ) + 6 FROM tab1 AS cor0
----
105
114
147

query I rowsort
SELECT + col2 * + col0 * - + col0 + - col2 + 2 AS col1 FROM tab1 cor0
----
-249790
-426332
-563174

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT ALL + 55 DIV - MAX( - 27 ) + - 75 col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1363
SELECT ALL + 55 / - MAX ( - 27 ) + - 75 col0 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT ALL + col2 + - 45 + - col1 * + 68 FROM tab1 AS cor0
----
-3173
-326
-901

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT + col2 DIV - 42 + + - col2 AS col0 FROM tab0 AS cor0
----
-10
-101
-48

skipif mysql # not compatible
query I rowsort label-1365
SELECT + col2 / - 42 + + - col2 AS col0 FROM tab0 AS cor0
----
-10
-101
-48

query I rowsort
SELECT DISTINCT 82 * + 40 * + + 72 + 88 AS col2 FROM tab0
----
236248

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT - 37 - - 80 - - + SUM( ALL - - col2 ) - - 50 * COUNT( ALL + col2 ) FROM tab1
----
416

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - 37 - - 80 - - + SUM ( ALL - - col2 ) - - 50 * COUNT ( ALL + col2 ) FROM tab1
----
416

query II rowsort
SELECT DISTINCT col0 - 73 + 69 - col0 AS col0, - 49 + - - 31 FROM tab1
----
-4
-18

query III rowsort
SELECT ALL col2 AS col1, col2, - 0 - - col1 AS col2 FROM tab0
----
9 values hashing to 19822982343c64bec0094f24ddc4829b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab1 WHERE + col2 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab1 WHERE + col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT DISTINCT - COUNT( * ), - MAX( DISTINCT - col2 ) col1 FROM tab2
----
-3
23

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

query I rowsort
SELECT 25 - + 3 FROM tab2
----
22
22
22

query I rowsort
SELECT - + col2 + + col0 + + - 44 * - col1 * 68 AS col0 FROM tab1 AS cor0
----
140647
14986
41843

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

skipif mysql # not compatible
query II rowsort label-1374
SELECT ALL + COUNT ( * ) AS col2, 9 FROM tab0 cor0
----
3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT COUNT( * ) AS col0, - 90 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
3
-90

skipif mysql # not compatible
query II rowsort label-1375
SELECT COUNT ( * ) AS col0, - 90 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
3
-90

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1377
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - - col2 AS SIGNED ) / ( col0 ) + col1 / - 69 = NULL
----

skipif mysql # not compatible
query III rowsort label-1377
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) / ( col0 ) + col1 / - 69 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1378
SELECT - CAST( + col0 AS SIGNED ) col2, + 48 * + - col2 AS col2 FROM tab2
----
-46
-1104
-64
-1920
-75
-2784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT - CAST ( + col0 AS INTEGER ) col2, + 48 * + - col2 AS col2 FROM tab2
----
-46
-1104
-64
-1920
-75
-2784

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN ( 64 ) + 67 AND 58
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL MAX( 1 ) * + COUNT( - 36 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL MAX ( 1 ) * + COUNT ( - 36 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * - 70 = NULL
----

query I rowsort
SELECT DISTINCT - 9 * - col2 FROM tab2
----
207
360
522

query I rowsort
SELECT ALL + 10 FROM tab2 WHERE NOT NULL > + 90
----

query II rowsort
SELECT col0 AS col1, ( col2 ) FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - 65 * + col1 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT ALL + 41 * - + col2 FROM tab0
----
-1927
-4059
-410

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - - 94 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT + 92 DIV - COUNT( * ) col2 FROM tab1
----
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT DISTINCT - col0 * col2 DIV - col0 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - col0 * col2 / - col0 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 21 + + - col1 FROM tab0 AS cor0
----
-102
-22
-42

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

query I rowsort
SELECT ALL - 37 AS col2 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
-110
-115
-64

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

query I rowsort
SELECT - 72 - + col1 FROM tab2 cor0
----
-123
-139
-149

query I rowsort
SELECT + + col0 + - - col0 + col2 FROM tab2 cor0
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT - COUNT( * ) + - ( + - 48 ) + + - SUM( - col0 ) FROM tab2 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT - COUNT ( * ) + - ( + - 48 ) + + - SUM ( - col0 ) FROM tab2 AS cor0
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT ALL 34 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL AND NOT ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL 34 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL AND NOT ( - col1 ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT col2 + + col1 DIV col2 DIV 32 * - - col0 + 13 + ( + col1 ) AS col0 FROM tab2
----
130
138
87

skipif mysql # not compatible
query I rowsort label-1403
SELECT col2 + + col1 / col2 / 32 * - - col0 + 13 + ( + col1 ) AS col0 FROM tab2
----
130
138
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT AVG ( - col0 ) + - COUNT( * ) FROM tab0 WHERE NULL NOT IN ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT AVG ( - col0 ) + - COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( + 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL COUNT( * ) - - 22 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL COUNT ( * ) - - 22 FROM tab2
----
25

query I rowsort
SELECT ALL 16 * - - 18 FROM tab0, tab0 AS cor0
----
9 values hashing to 82e6883532c12893988dd7590283fd3b

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT - - COUNT( DISTINCT ( + - ( - 71 ) ) ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - - COUNT ( DISTINCT ( + - ( - 71 ) ) ) AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 WHERE NOT + - 23 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 46 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT - CAST( NULL AS SIGNED ) / - 34 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1410
SELECT - CAST ( NULL AS INTEGER ) / - 34 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col0 ) / ( - 47 ) AS col0, col2 col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1412
SELECT + + col0, + 82 * col1 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
51
1149
85
411
91
3855

skipif mysql # not compatible
query II rowsort label-1412
SELECT + + col0, + 82 * col1 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
51
1149
85
411
91
3855

query II rowsort
SELECT + + col1 AS col1, 62 + - col0 FROM tab1 cor0
----
14
11
47
-29
5
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - - ( + + COUNT( DISTINCT + 61 ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1414
SELECT - - ( + + COUNT ( DISTINCT + 61 ) ) AS col0 FROM tab2 AS cor0
----
1

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

query III rowsort
SELECT + - 35 AS col2, + 65 AS col2, 1 FROM tab0 AS cor0
----
9 values hashing to d39ea345da2723e2dc8ec3669532fcf0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT - 32 + - + COUNT( * ) * + - 48 DIV - 24 col0 FROM tab2 cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1417
SELECT - 32 + - + COUNT ( * ) * + - 48 / - 24 col0 FROM tab2 cor0
----
-38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT + col1 DIV + ( - + 64 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT + col1 / + ( - + 64 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1420
SELECT + - col0 DIV - 54 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
0
96
1
59
1
68

skipif mysql # not compatible
query II rowsort label-1420
SELECT + - col0 / - 54 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
0
96
1
59
1
68

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT + + COUNT( * ) AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT + + COUNT ( * ) AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1426
SELECT ALL - CAST ( + + col0 AS INTEGER ) col1 FROM tab0
----
-15
-87
-97

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT - 90 col0, MAX( col2 ) FROM tab2 AS cor0
----
-90
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1431
SELECT - 90 col0, MAX ( col2 ) FROM tab2 AS cor0
----
-90
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 col0, + col0 * + + col1 + + col0 FROM tab2 AS cor0
----
47
2392
47
4992
47
5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1433
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) DIV COUNT( * ) FROM tab1 cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-1433
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) / COUNT ( * ) FROM tab1 cor0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT 81 + + MIN( + - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT 81 + + MIN ( + - col2 ) FROM tab2
----
23

query I rowsort
SELECT 7 - + col2 AS col1 FROM tab2
----
-16
-33
-51

query I rowsort
SELECT ALL + 41 - + - 30 * - col0 FROM tab1
----
-1489
-2509
-2689

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT MAX( DISTINCT - 22 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT MAX ( DISTINCT - 22 ) FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - + COUNT( * ) + AVG ( ALL - 95 ) FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - + COUNT ( * ) + AVG ( ALL - 95 ) FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1441
SELECT ALL - ( - col1 ) col2, + ( - CAST( + col1 AS SIGNED ) ) * col0 * - - col1 FROM tab1 AS cor0
----
14
-9996
47
-201019
5
-2125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1441
SELECT ALL - ( - col1 ) col2, + ( - CAST ( + col1 AS INTEGER ) ) * col0 * - - col1 FROM tab1 AS cor0
----
14
-9996
47
-201019
5
-2125

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 16 < + + 19
----

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

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

query II rowsort
SELECT DISTINCT + col0 AS col0, 48 FROM tab1 cor0
----
51
48
85
48
91
48

query I rowsort
SELECT ALL - col1 * + + col2 + - 59 AS col2 FROM tab2 cor0
----
-1232
-3139
-3945

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

skipif mysql # not compatible
query I rowsort label-1447
SELECT - MAX ( DISTINCT 34 ) AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + 3 + col1 AS col2 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL 72 * + + COUNT( col1 ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL 72 * + + COUNT ( col1 ) FROM tab1
----
216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 57 NOT BETWEEN 60 AND col0 )
----

query I rowsort
SELECT ALL - 14 + + - col2 AS col2 FROM tab1
----
-110
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT - CAST( + col1 AS SIGNED ) * 97 AS col0 FROM tab0
----
-2037
-7857
-97

skipif mysql # not compatible
query I rowsort label-1452
SELECT - CAST ( + col1 AS INTEGER ) * 97 AS col0 FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT DISTINCT + 8 FROM tab0 WHERE NOT + + 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( - + col1 ) + 58 NOT IN ( col2, col2, - - col2, - 91 - 42 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab2 WHERE + 13 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1456
SELECT + 85 + - ( COUNT( * ) ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT + 85 + - ( COUNT ( * ) ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, ( + - col0 ) FROM tab1
----
51
-51
85
-85
91
-91

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

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT COUNT ( * ) * 20 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 71 * + col2 AS col1 FROM tab1 AS cor0
----
-4189
-4828
-6816

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

skipif mysql # not compatible
query II rowsort label-1460
SELECT + + COUNT ( * ), + 28 * - 6 AS col1 FROM tab1 AS cor0
----
3
-168

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

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

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

query II rowsort
SELECT DISTINCT - 35 + - col0 + col2 AS col1, - 74 AS col1 FROM tab1
----
-58
-74
-61
-74
10
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL + ( - + CAST( + 19 AS SIGNED ) ) - + col1 * + ( col1 ) FROM tab1
----
-215
-2228
-44

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + ( - + CAST ( + 19 AS INTEGER ) ) - + col1 * + ( col1 ) FROM tab1
----
-215
-2228
-44

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1465
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - + ( - - 74 ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL - SUM( + + 27 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - SUM ( + + 27 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - ( - 37 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 59 ) + 15 + + 55 * + - col2 BETWEEN 78 AND NULL
----
37
37
37

query I rowsort
SELECT DISTINCT + 58 * - - col0 + - ( + 36 ) AS col0 FROM tab2 cor0
----
2632
3676
4314

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT 3 + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
54
-96
88
-59
94
-68

query I rowsort
SELECT 41 FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT DISTINCT + 29 * + COUNT( * ) AS col0, + 44 col1 FROM tab2 AS cor0
----
87
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1473
SELECT DISTINCT + 29 * + COUNT ( * ) AS col0, + 44 col1 FROM tab2 AS cor0
----
87
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) + 67 AS col1 FROM tab1 AS cor0
----
20
53
62

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) + 67 AS col1 FROM tab1 AS cor0
----
20
53
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 79
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + col0 / + - ( + col0 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - - 54 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + SUM( ALL - 93 ) AS col0 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-1479
SELECT + SUM ( ALL - 93 ) AS col0 FROM tab2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - COUNT( * ) * + - 59 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-1480
SELECT - COUNT ( * ) * + - 59 FROM tab0
----
177

query II rowsort
SELECT - 44, + 73 + - + ( + col0 ) - + - 77 AS col0 FROM tab1
----
-44
59
-44
65
-44
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col0 FROM tab0 WHERE + + 98 NOT IN ( ( - + col0 ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col0 FROM tab0 WHERE + + 98 NOT IN ( ( - + col0 ) )
----
10
47
99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col2 + - ( + 77 ) FROM tab0 AS cor0
----
-124
-176
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1488
SELECT + CAST( NULL AS SIGNED ) + col1, 59 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-1488
SELECT + CAST ( NULL AS INTEGER ) + col1, 59 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
59
NULL
59

query I rowsort
SELECT col1 / col1 FROM tab0 AS cor0 WHERE - 15 IS NULL
----

query I rowsort
SELECT DISTINCT 94 + + + col2 * ( + + col0 ) AS col1 FROM tab0 AS cor0
----
799
964
9697

query I rowsort
SELECT + - ( + 74 ) + - ( - col1 ) FROM tab1 cor0
----
-27
-60
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL - 35 * - 51 + - COUNT( * ) AS col0 FROM tab2
----
1782

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - 35 * - 51 + - COUNT ( * ) AS col0 FROM tab2
----
1782

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

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

query II rowsort
SELECT DISTINCT - + 28 AS col0, + col2 * col1 AS col2 FROM tab1 WHERE NOT - col1 * + + col2 + - - 73 * + - 10 * - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT + COUNT( * ) * ( - MAX( DISTINCT + 80 ) ) + 62 - + COUNT( * ) + COUNT( + col2 ) * + - ( + 28 ) FROM tab2 WHERE 58 < + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT + COUNT ( * ) * ( - MAX ( DISTINCT + 80 ) ) + 62 - + COUNT ( * ) + COUNT ( + col2 ) * + - ( + 28 ) FROM tab2 WHERE 58 < + 16
----
NULL

query II rowsort
SELECT 21 AS col0, - col0 * + - col0 AS col1 FROM tab2
----
21
2116
21
4096
21
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NOT + col1 / + + 71 IN ( 4 / - + col0 * - col1 + 54, CAST( - 9 AS SIGNED ) )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NOT + col1 / + + 71 IN ( 4 / - + col0 * - col1 + 54, CAST ( - 9 AS INTEGER ) )
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1499
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) col0 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1500
SELECT CAST ( - 31 AS INTEGER ) AS col2 FROM tab0
----
-31
-31
-31

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

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

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

query I rowsort
SELECT - col2 * + ( - col2 ) - - - col2 AS col1 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT ALL col2 * + ( - - 47 ) + col0 FROM tab1 AS cor0
----
2858
3287
4563

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

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

query I rowsort
SELECT DISTINCT 54 - - col2 FROM tab2
----
112
77
94

query I rowsort
SELECT col2 + + 16 FROM tab0
----
115
26
63

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT - 66 * + MIN( - - 61 ) col1 FROM tab2 AS cor0
----
-4026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1511
SELECT - 66 * + MIN ( - - 61 ) col1 FROM tab2 AS cor0
----
-4026

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + 3 = NULL
----

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

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

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

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

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

query I rowsort
SELECT - ( 52 ) AS col1 FROM tab1
----
-52
-52
-52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT MIN( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1519
SELECT MIN ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2
----
-58

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

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

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

query I rowsort
SELECT DISTINCT - 63 * - col2 FROM tab1
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT MIN( ALL - 12 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1523
SELECT MIN ( ALL - 12 ) AS col2 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col1 AS col1, ( - col2 ) col1 FROM tab1
----
1344
-96
295
-59
3196
-68

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

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

skipif mysql # not compatible
query I rowsort label-1526
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-9

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + COUNT ( * ) / + - 67 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT - COUNT( * ) + MAX( - col1 ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - COUNT ( * ) + MAX ( - col1 ) FROM tab2 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL - - ( + 67 ) + SUM( ALL - + col2 ) + + 89 AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - - ( + 67 ) + SUM ( ALL - + col2 ) + + 89 AS col0 FROM tab1 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT 90 * - col2 + 65 DIV col2 * + col1 + 80 FROM tab1
----
-5225
-6040
-8560

skipif mysql # not compatible
query I rowsort label-1530
SELECT 90 * - col2 + 65 / col2 * + col1 + 80 FROM tab1
----
-5225
-6040
-8560

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT 80 + 53 + - SUM( DISTINCT + + 7 ) AS col0 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-1531
SELECT 80 + 53 + - SUM ( DISTINCT + + 7 ) AS col0 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + COUNT( * ) * + 23 + 84 + + 9 * - - 56 * - + 81 AS col1 FROM tab1
----
-40671

skipif mysql # not compatible
query I rowsort label-1532
SELECT + COUNT ( * ) * + 23 + 84 + + 9 * - - 56 * - + 81 AS col1 FROM tab1
----
-40671

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT DISTINCT + 19 + - + SUM( + col1 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + 19 + - + SUM ( + col1 ) FROM tab0
----
-84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1535
SELECT ALL CAST( + 2 AS SIGNED ), - 80 AS col0 FROM tab1
----
2
-80
2
-80
2
-80

skipif mysql # not compatible
query II rowsort label-1535
SELECT ALL CAST ( + 2 AS INTEGER ), - 80 AS col0 FROM tab1
----
2
-80
2
-80
2
-80

query III rowsort
SELECT * FROM tab1 WHERE - 72 + - 17 - - ( + + 31 ) >= - 34
----

query I rowsort
SELECT DISTINCT 9 FROM tab1 WHERE NOT + ( + + col2 ) BETWEEN + + 51 AND - - ( - 74 )
----
9

query II rowsort
SELECT - 11 + - 9 AS col2, col0 FROM tab0
----
-20
15
-20
87
-20
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT COUNT( DISTINCT - 11 ) * CAST( + ( + COUNT( * ) ) AS SIGNED ) + - MIN( DISTINCT 43 ) + - - COUNT( ALL - 79 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-1539
SELECT COUNT ( DISTINCT - 11 ) * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) + - MIN ( DISTINCT 43 ) + - - COUNT ( ALL - 79 ) FROM tab2
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT MAX( ALL col1 ) * - + 6 FROM tab2 AS cor0
----
-462

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT MAX ( ALL col1 ) * - + 6 FROM tab2 AS cor0
----
-462

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

query I rowsort
SELECT ALL col0 + + - 67 FROM tab0 AS cor0
----
-52
20
30

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - - col2 AS col1, col2 FROM tab2 cor0
----
23
23
40
40
58
58

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

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

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

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

query I rowsort
SELECT 43 * - - col0 FROM tab1 AS cor0
----
2193
3655
3913

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

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

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

query II rowsort
SELECT ALL - col0, + 48 + + ( + col0 ) AS col1 FROM tab2
----
-46
94
-64
112
-75
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT col2 DIV + 82 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1556
SELECT col2 / + 82 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT BETWEEN - col2 AND - - col2
----
15
81
47
97
1
99

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

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

query I rowsort
SELECT ALL - col1 * ( + - 25 ) FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1560
SELECT ALL 3 DIV - COUNT( ALL - 77 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL 3 / - COUNT ( ALL - 77 ) AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT - COUNT( * ) * + - 20 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - COUNT ( * ) * + - 20 FROM tab0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT ALL 70 DIV - 55 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL 70 / - 55 FROM tab2
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1564
SELECT ALL - - 98 AS col2, COUNT( * ) DIV + 21 FROM tab0 AS cor0
----
98
0

skipif mysql # not compatible
query II rowsort label-1564
SELECT ALL - - 98 AS col2, COUNT ( * ) / + 21 FROM tab0 AS cor0
----
98
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, 77 * 75 FROM tab1 AS cor0
----
51
5775
85
5775
91
5775

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( * ) FROM tab1 cor0 WHERE 32 > - + 54
----
-3
3

skipif mysql # not compatible
query II rowsort label-1566
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 cor0 WHERE 32 > - + 54
----
-3
3

query I rowsort
SELECT ALL - + col0 * + + 18 AS col2 FROM tab1 AS cor0
----
-1530
-1638
-918

query I rowsort
SELECT - 83 * - col1 AS col0 FROM tab1 cor0
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - 13 * - - MAX( - col2 ) FROM tab2
----
299

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - 13 * - - MAX ( - col2 ) FROM tab2
----
299

query III rowsort
SELECT + col2 AS col2, - col0 * 19 * col1 AS col1, - - ( - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 7354235863ce46640683e82a99779e0a

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

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

query I rowsort
SELECT ALL + col1 + + col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
110
115
64

query I rowsort
SELECT ALL - 61 + - + col2 FROM tab0 AS cor0
----
-108
-160
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - COUNT( * ) + - - COUNT( ALL - col2 ) * - 62 AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - COUNT ( * ) + - - COUNT ( ALL - col2 ) * - 62 AS col2 FROM tab2 AS cor0
----
-189

query I rowsort
SELECT ALL col0 * - col1 + + col0 + + col1 FROM tab1
----
-335
-4139
-649

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

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

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

query I rowsort
SELECT - col0 + - 30 * + col2 FROM tab2 AS cor0
----
-1264
-1815
-736

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

skipif mysql # not compatible
query I rowsort label-1579
SELECT - - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT 79 * - 95 AS col2 FROM tab0
----
-7505
-7505
-7505

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT ( col1 ) NOT IN ( col0 * - 1 )
----

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

query I rowsort
SELECT + 72 AS col0 FROM tab0 WHERE NULL BETWEEN ( + 74 ) AND ( col0 )
----

query I rowsort
SELECT - ( 48 ) AS col2 FROM tab1 WHERE + col2 = NULL
----

query I rowsort
SELECT ALL - col2 + 34 AS col1 FROM tab1
----
-25
-34
-62

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

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

query I rowsort
SELECT ALL + col0 - - 74 * col1 AS col0 FROM tab1
----
1087
3569
455

query I rowsort
SELECT + col2 * + 20 + ( 85 + 85 * 94 ) AS col0 FROM tab0
----
10055
8275
9015

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT - MAX( ALL col1 ) + COUNT( * ) AS col1 FROM tab2 WHERE NULL < + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - MAX ( ALL col1 ) + COUNT ( * ) AS col1 FROM tab2 WHERE NULL < + 85
----
NULL

query I rowsort
SELECT ALL + col2 + col0 * - 95 AS col1 FROM tab2
----
-4347
-6040
-7067

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL - COUNT( 7 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - COUNT ( 7 ) FROM tab2
----
-3

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 18 ) <= - col1
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 30 * - 88 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 75 ) <> col2
----

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT col1 BETWEEN ( NULL ) AND ( col2 )
----
21
81

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

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

query I rowsort
SELECT DISTINCT col1 + ( + 53 ) AS col1 FROM tab1 cor0
----
100
58
67

query I rowsort
SELECT ( 70 ) FROM tab2 AS cor0 WHERE NOT ( - 54 ) > col0
----
70
70
70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1607
SELECT DISTINCT * FROM tab1 WHERE CAST( - col2 AS SIGNED ) * + 80 BETWEEN 6 + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1607
SELECT DISTINCT * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) * + 80 BETWEEN 6 + col1 AND NULL
----

query I rowsort
SELECT ALL ( col1 ) * 34 AS col2 FROM tab0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT - ( + CAST( - ( AVG ( DISTINCT 95 ) ) AS SIGNED ) ) col2 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1609
SELECT - ( + CAST ( - ( AVG ( DISTINCT 95 ) ) AS INTEGER ) ) col2 FROM tab1
----
95

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

query I rowsort
SELECT DISTINCT + 70 * - 61 FROM tab2
----
-4270

query I rowsort
SELECT ALL + 42 * - col0 AS col1 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL MAX( ALL col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL MAX ( ALL col1 ) FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( - col2 + col2 ) = col2 + 68
----

skipif mysql # not compatible
query I rowsort label-1614
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( - col2 + col2 ) = col2 + 68
----

query I rowsort
SELECT DISTINCT - + col0 + - 64 FROM tab0 AS cor0
----
-151
-161
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE NULL = ( - col0 * 73 + col0 )
----

query I rowsort
SELECT DISTINCT + 13 * col2 AS col1 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + + MIN( ( - col2 ) ) + + 15 AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + + MIN ( ( - col2 ) ) + + 15 AS col0 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + + col1 * + 89 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT ALL - ( CAST( + col0 AS SIGNED ) ) * 1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - ( CAST ( + col0 AS INTEGER ) ) * 1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL + COUNT( * ) + + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 93 FROM tab0
----
103
140
192

query I rowsort
SELECT DISTINCT col0 * - col2 - + 21 * col2 FROM tab2
----
-1541
-3400
-5568

query I rowsort
SELECT ALL - 18 FROM tab0 WHERE col2 IS NOT NULL
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT ALL - CAST( + col1 AS SIGNED ) + - col1 AS col1 FROM tab2 WHERE col1 + + 37 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL - CAST ( + col1 AS INTEGER ) + - col1 AS col1 FROM tab2 WHERE col1 + + 37 IS NULL
----

query I rowsort
SELECT - col2 + + col2 * + 70 FROM tab0
----
3243
6831
690

query I rowsort
SELECT - 31 + - col0 - col0 AS col1 FROM tab1
----
-133
-201
-213

query I rowsort
SELECT 80 + + col1 + col0 AS col0 FROM tab2
----
177
221
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ( 48 ) * 40 + - col0 DIV col1 FROM tab1
----
1903
1917
1919

skipif mysql # not compatible
query I rowsort label-1632
SELECT ( 48 ) * 40 + - col0 / col1 FROM tab1
----
1903
1917
1919

query I rowsort
SELECT + 68 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL IN ( CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT + 38 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT + 38 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = col2
----
0

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab0 AS cor0 WHERE NOT col2 * - ( col0 ) + col2 * + col0 IS NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT + 58 DIV + col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 58 / + col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT 34 * ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 89 * - col2 - col1
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= 60
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT DISTINCT COUNT( * ) AS col2, - 30 FROM tab0
----
3
-30

skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT COUNT ( * ) AS col2, - 30 FROM tab0
----
3
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ( COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1642
SELECT ( COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL - COUNT( col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - COUNT ( col2 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1644
SELECT ALL 11, + ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
11
-46
11
-64
11
-75

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL 11, + ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
11
-46
11
-64
11
-75

query I rowsort
SELECT col2 / - 62 FROM tab2 AS cor0 WHERE NOT ( 89 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 90 ) = 43 + col0 * - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1648
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1648
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT MAX( + 13 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 73
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1649
SELECT MAX ( + 13 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 73
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 - col1 AS col0 FROM tab1 AS cor0
----
-14
-65
-47
-138
-5
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL - + SUM( ALL + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NOT NULL BETWEEN 33 AND + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1653
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NOT NULL BETWEEN 33 AND + col0
----

query I rowsort
SELECT DISTINCT - col1 + + 65 * - - 50 + - + col2 AS col2 FROM tab2
----
3125
3133
3176

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + - 76 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - COUNT( ALL - 81 ) * COUNT( * ) * + 46 col2 FROM tab1
----
-414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1657
SELECT - COUNT ( ALL - 81 ) * COUNT ( * ) * + 46 col2 FROM tab1
----
-414

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab1 WHERE ( NULL ) < + 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT - 58 DIV + 29 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1659
SELECT - 58 / + 29 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - - MIN( DISTINCT - col1 ) * + 20 FROM tab2 cor0
----
-1540

skipif mysql # not compatible
query I rowsort label-1660
SELECT - - MIN ( DISTINCT - col1 ) * + 20 FROM tab2 cor0
----
-1540

query I rowsort
SELECT + col2 * col0 + 60 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 33
----

query I rowsort
SELECT ALL - 25 + + 89 AS col0 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + 36 + 3 AS col2 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 30 IS NULL
----

query II rowsort
SELECT DISTINCT 62, col1 AS col1 FROM tab1
----
62
14
62
47
62
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT + ( - + col0 ) + + col0 - + + ( - CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT + ( - + col0 ) + + col0 - + + ( - CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + 15 + MIN( - col1 ) AS col0 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 15 + MIN ( - col1 ) AS col0 FROM tab2
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1668
SELECT DISTINCT col2 * + 61 + - 48 AS col1 FROM tab2 WHERE NOT + col0 + + 17 IN ( - col2 + - CAST( NULL AS DECIMAL ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT col2 * + 61 + - 48 AS col1 FROM tab2 WHERE NOT + col0 + + 17 IN ( - col2 + - CAST ( NULL AS REAL ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT 27 + COUNT( * ) AS col2 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT 27 + COUNT ( * ) AS col2 FROM tab1 cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 11 ) col1 FROM tab2 AS cor0 WHERE + col2 > + + col1 * 55
----

query I rowsort
SELECT - - col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 78 + col1 ) <= + col2 + col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT MIN( col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-1673
SELECT MIN ( col0 ) AS col2 FROM tab0 cor0
----
15

query I rowsort
SELECT ALL col0 * + 11 AS col2 FROM tab0 AS cor0
----
1067
165
957

query I rowsort
SELECT DISTINCT + + col0 * + col0 * + ( + 13 ) + - - col1 AS col2 FROM tab1 AS cor0
----
107700
33827
93930

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + col2 DIV + col2 + - + col0 + - ( - col2 ) * col1 FROM tab2 AS cor0
----
1128
3017
3812

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + col2 / + col2 + - + col0 + - ( - col2 ) * col1 FROM tab2 AS cor0
----
1128
3017
3812

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT DISTINCT - + col1 DIV col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 < + + col2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - + col1 / col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 < + + col2
----
22
39
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col1 AND + - col2
----
64
64
64

query I rowsort
SELECT ALL 20 FROM tab1 AS cor0 WHERE - 84 * 25 BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - + - col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + 50 <= ( - - 42 / + - 94 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1683
SELECT 86 * - - 16 * - ( + ( col1 ) ) DIV - + CAST( + col1 AS SIGNED ) - col2 FROM tab2
----
1318
1336
1353

skipif mysql # not compatible
query I rowsort label-1683
SELECT 86 * - - 16 * - ( + ( col1 ) ) / - + CAST ( + col1 AS INTEGER ) - col2 FROM tab2
----
1318
1336
1353

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab0 AS cor0 WHERE NOT 7 IN ( col0 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT DISTINCT 25 AS col2, COUNT( * ) FROM tab2 cor0
----
25
3

skipif mysql # not compatible
query II rowsort label-1685
SELECT DISTINCT 25 AS col2, COUNT ( * ) FROM tab2 cor0
----
25
3

query I rowsort
SELECT DISTINCT - 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 87 * + - col2 + + col2 + + 58 + 19 * + 20 * + col0 AS col2 FROM tab0 cor0
----
33998
45630
9894

query I rowsort
SELECT + col0 * col1 / + col0 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT 81 * + col1 * + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT ALL + + 65 DIV col1 * - 93 AS col1 FROM tab2 AS cor0
----
-93
0
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + + 65 / col1 * - 93 AS col1 FROM tab2 AS cor0
----
-93
0
0

query I rowsort
SELECT DISTINCT - - col2 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1000
103823
970299

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT ALL 82 DIV + + col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL 82 / + + col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + + 7 / - - col2 + + ( ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 76 AND - 24
----

query I rowsort
SELECT ALL - 64 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - 91 + + col1 IS NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - + MAX( ALL + col0 ) + COUNT( + + col2 ) AS col1 FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - + MAX ( ALL + col0 ) + COUNT ( + + col2 ) AS col1 FROM tab1 cor0
----
-88

query I rowsort
SELECT ALL - 45 AS col2 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT + 54 DIV + COUNT( ALL col2 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 54 / + COUNT ( ALL col2 ) FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-1698
SELECT DISTINCT col2 + + ( - col2 ) + col0, + col2 * 13 DIV + - 98 AS col0 FROM tab2
----
46
-3
64
-5
75
-7

skipif mysql # not compatible
query II rowsort label-1698
SELECT DISTINCT col2 + + ( - col2 ) + col0, + col2 * 13 / + - 98 AS col0 FROM tab2
----
46
-3
64
-5
75
-7

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 WHERE NOT - + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + 21 DIV 31 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 21 / 31 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT col2, + ( col2 ) AS col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + + col0 AND ( + - col2 * - ( - 95 ) )
----

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 33 * + col2 col1 FROM tab1
----
105468
44352
9735

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
99

query I rowsort
SELECT ALL + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT - + CAST( NULL AS SIGNED ) + + col0 + + col0 + + 8 * + col0 * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT - + CAST ( NULL AS INTEGER ) + + col0 + + col0 + + 8 * + col0 * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 + - col2 AS col0, 44 FROM tab1 AS cor0
----
-45
44
23
44
26
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + + 54 + + - COUNT( - col2 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1712
SELECT + + 54 + + - COUNT ( - col2 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT col2 * + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 90 * - - col2 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL 58 + CAST( col1 AS SIGNED ) + + + 2 col1 FROM tab2 AS cor0
----
111
127
137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1715
SELECT ALL 58 + CAST ( col1 AS INTEGER ) + + + 2 col1 FROM tab2 AS cor0
----
111
127
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + - MIN( ALL + + 27 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1716
SELECT + - MIN ( ALL + + 27 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + col1 * + col2 * + col1 * - col2 + - 59 * 10 + + col0 * + 22 AS col0 FROM tab2 AS cor0
----
-1375507
-15099936
-9485582

query I rowsort
SELECT col2 + + + 41 AS col2 FROM tab0
----
140
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT 92 + - COUNT( * ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT 92 + - COUNT ( * ) AS col0 FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE - 5 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 * 46 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT col1 DIV - 15 FROM tab1
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1723
SELECT col1 / - 15 FROM tab1
----
-3
0
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( + - col0 * - - col0 + - col0 ) IN ( + 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT MIN( DISTINCT 64 ) AS col0 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT MIN ( DISTINCT 64 ) AS col0 FROM tab2
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + 69 NOT BETWEEN col2 AND + - col0
----

query I rowsort
SELECT ALL col2 * 39 AS col1 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT ALL MAX( DISTINCT + col0 ) DIV 41 AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL MAX ( DISTINCT + col0 ) / 41 AS col1 FROM tab1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10
10
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + + col1 * + + 10 NOT IN ( - col1, - 89 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1731
SELECT + col1 * col2 DIV + - col0 AS col0, + 12 FROM tab2 AS cor0
----
-25
12
-48
12
-51
12

skipif mysql # not compatible
query II rowsort label-1731
SELECT + col1 * col2 / + - col0 AS col0, + 12 FROM tab2 AS cor0
----
-25
12
-48
12
-51
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT CAST( NULL AS SIGNED ) / col1 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT CAST ( NULL AS INTEGER ) / col1 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * - - col2 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 85 * col0 * - 42 * col1 ) = + col0 + 88 * - - ( + 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1737
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1738
SELECT * FROM tab2 AS cor0 WHERE NOT ( 12 + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1738
SELECT * FROM tab2 AS cor0 WHERE NOT ( 12 + - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT - + 50 + - + 12 * + ( - - CAST( col1 AS SIGNED ) ) + - col0 AS col2 FROM tab0 cor0
----
-1037
-159
-389

skipif mysql # not compatible
query I rowsort label-1740
SELECT - + 50 + - + 12 * + ( - - CAST ( col1 AS INTEGER ) ) + - col0 AS col2 FROM tab0 cor0
----
-1037
-159
-389

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT DISTINCT - col2 DIV - 55 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT - col2 / - 55 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 53 + + 12 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - + col1 + col1 * - 33 FROM tab2 AS cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT DISTINCT - 54 AS col1, 92 * COUNT( * ) FROM tab1 cor0
----
-54
276

skipif mysql # not compatible
query II rowsort label-1744
SELECT DISTINCT - 54 AS col1, 92 * COUNT ( * ) FROM tab1 cor0
----
-54
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL + COUNT( * ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + COUNT ( * ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col2 + 42 AS col2 FROM tab1
----
101
110
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 + - 87 col0, + col0 + + 45 AS col2 FROM tab0
----
-57
132
-57
142
-57
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT ( + col2 ) DIV - - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT ( + col2 ) / - - 92 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE 56 + + - col2 + col1 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE - col2 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT ALL + CAST( + 95 AS SIGNED ) + col0 FROM tab1 AS cor0
----
146
180
186

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + CAST ( + 95 AS INTEGER ) + col0 FROM tab1 AS cor0
----
146
180
186

query I rowsort
SELECT + ( - col2 ) * - col0 + - - col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL 2 * - - CAST( 27 AS SIGNED ) col1 FROM tab2
----
54
54
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT ALL 2 * - - CAST ( 27 AS INTEGER ) col1 FROM tab2
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT - - col0 * + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1754
SELECT - - col0 * + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1755
SELECT 48 * + 74 / + col1 / - 65 / - + 10 + + 78 FROM tab2 cor0 WHERE 69 / - CAST( - - col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1755
SELECT 48 * + 74 / + col1 / - 65 / - + 10 + + 78 FROM tab2 cor0 WHERE 69 / - CAST ( - - col0 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1756
SELECT + col2 AS col1, 36 - col2 * + - CAST( NULL AS SIGNED ) + + 52 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1756
SELECT + col2 AS col1, 36 - col2 * + - CAST ( NULL AS INTEGER ) + + 52 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT + - MIN( ALL + + col0 ) * ( - COUNT( * ) ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1758
SELECT + - MIN ( ALL + + col0 ) * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL SUM( - 74 ) AS col0 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL SUM ( - 74 ) AS col0 FROM tab2 AS cor0
----
-222

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 + + - 49 col2 FROM tab1 cor0
----
59
36
68
42
96
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL 32 * CAST( NULL AS SIGNED ) * + col2 / col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 32 * CAST ( NULL AS INTEGER ) * + col2 / col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 35 * + - col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT - col2 - - col0 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1764
SELECT - col2 - - col0 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) < NULL
----

query II rowsort
SELECT ALL col2 * - 58, 67 AS col2 FROM tab1
----
-3422
67
-3944
67
-5568
67

query I rowsort
SELECT + 9 * + col2 * - col1 FROM tab0
----
-1890
-34263
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ( - COUNT( ALL + 86 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1767
SELECT ( - COUNT ( ALL + 86 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 44 * + COUNT( * ) * - 38 AS col1 FROM tab0
----
5016

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 44 * + COUNT ( * ) * - 38 AS col1 FROM tab0
----
5016

query III rowsort
SELECT ALL * FROM tab2 WHERE - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1771
SELECT + AVG ( DISTINCT + - col2 ) * CAST( NULL AS SIGNED ) * - COUNT( ALL col0 ), + 55 * + 92 AS col0 FROM tab0
----
NULL
5060

skipif mysql # not compatible
query II rowsort label-1771
SELECT + AVG ( DISTINCT + - col2 ) * CAST ( NULL AS INTEGER ) * - COUNT ( ALL col0 ), + 55 * + 92 AS col0 FROM tab0
----
NULL
5060

query II rowsort
SELECT - - col2 AS col2, - col0 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
59
-7310
68
-8372
96
-2652

query II rowsort
SELECT ALL - col2 AS col0, 70 FROM tab0 AS cor0
----
-10
70
-47
70
-99
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 82 NOT BETWEEN + col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 >= NULL OR NOT NULL = ( + + col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - - 96 FROM tab1 AS cor0
----
155
164
192

query I rowsort
SELECT ALL col0 + 44 FROM tab0 cor0
----
131
141
59

query I rowsort
SELECT DISTINCT + col0 * + - 58 AS col0 FROM tab2
----
-2668
-3712
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - COUNT( * ) + + + 82 + - - 91 AS col0 FROM tab2
----
170

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - COUNT ( * ) + + + 82 + - - 91 AS col0 FROM tab2
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT ALL - MAX( - + 36 ) * 70 DIV 39 * + 63 FROM tab1
----
4032

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - MAX ( - + 36 ) * 70 / 39 * + 63 FROM tab1
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL COUNT( * ) + - 4 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL COUNT ( * ) + - 4 AS col0 FROM tab1
----
-1

query I rowsort
SELECT col2 + - col1 - + 16 FROM tab2
----
-25
-44
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT DISTINCT - col0 DIV - + 14 AS col0 FROM tab0
----
1
6

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - col0 / - + 14 AS col0 FROM tab0
----
1
6

query III rowsort
SELECT * FROM tab0 WHERE + - 33 + - 55 IS NULL
----

query I rowsort
SELECT 11 + - 56 AS col0 FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT ALL + MIN( ALL - - col2 ) DIV - ( + ( + MAX( col0 ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + MIN ( ALL - - col2 ) / - ( + ( + MAX ( col0 ) ) ) FROM tab0
----
0

query I rowsort
SELECT col2 + col1 + - col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT + ( - 54 ) * + CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE + 6 / col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1789
SELECT + ( - 54 ) * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE + 6 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1790
SELECT ALL col0 AS col2, - ( + CAST( - col2 AS SIGNED ) ) FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-1790
SELECT ALL col0 AS col2, - ( + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 34 AS col0 FROM tab1 WHERE + 24 + - col0 >= NULL
----

query II rowsort
SELECT + col2 - + 89 AS col1, col0 * + - col2 * 49 FROM tab2
----
-31
-213150
-49
-125440
-66
-51842

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + col1 / - 39 * + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL - SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1797
SELECT ALL 90, + CAST( col0 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1797
SELECT ALL 90, + CAST ( col0 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT 82 * MIN( DISTINCT - + ( col0 ) ) FROM tab0 AS cor0
----
-7954

skipif mysql # not compatible
query I rowsort label-1798
SELECT 82 * MIN ( DISTINCT - + ( col0 ) ) FROM tab0 AS cor0
----
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - + 2 + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT 63 + 38 NOT BETWEEN NULL AND + - col0 * 22
----
-2

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - + 2 + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT 63 + 38 NOT BETWEEN NULL AND + - col0 * 22
----
-2

query I rowsort
SELECT + 34 + col1 FROM tab1 WHERE NOT - ( + 11 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + + col0 ) / - - col1 / - col2 + + col1 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1802
SELECT DISTINCT * FROM tab0 WHERE - + col2 / CAST( - col1 AS SIGNED ) - ( 53 ) <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1802
SELECT DISTINCT * FROM tab0 WHERE - + col2 / CAST ( - col1 AS INTEGER ) - ( 53 ) <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + MIN( ALL ( - 55 ) ) col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT ALL + MIN ( ALL ( - 55 ) ) col0 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT - + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL col1 AS col1, col1 AS col2 FROM tab1 cor0
----
14
14
47
47
5
5

query II rowsort
SELECT + col2 AS col2, ( + col1 ) AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - - col2 * - - 65 FROM tab2 AS cor0
----
1495
2600
3770

query I rowsort
SELECT ALL + col0 + - 71 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT DISTINCT + 6 + + + col0 * col2 * - - col0 AS col0 FROM tab0 AS cor0
----
10581
75696
931497

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > - 4
----

query I rowsort
SELECT ALL + col1 + col2 + + - 17 AS col1 FROM tab0
----
111
14
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + + COUNT( * ) FROM tab2 WHERE NOT col2 NOT IN ( + col0, col1, + - 84 * - - col0 * + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT col2 NOT IN ( + col0, col1, + - 84 * - - col0 * + 28 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT 1 * 30 DIV ( - + 38 ) DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT 1 * 30 / ( - + 38 ) / col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT + col1 * + 73 DIV 88 DIV - - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT + col1 * + 73 / 88 / - - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + - ( 20 ) FROM tab1 WHERE NULL IS NULL
----
-20
-20
-20

query I rowsort
SELECT + col2 * - col0 - + 62 AS col2 FROM tab1
----
-4958
-5077
-6250

query I rowsort
SELECT + + 86 - 70 AS col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL - col0 * + - 43 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
111843
310675
356083

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL - col0 * + - 43 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
111843
310675
356083

query I rowsort
SELECT 31 * - - col2 * - col2 - + + col2 FROM tab1 AS cor0
----
-107970
-143412
-285792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT ALL + - 0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + - 0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT - COUNT( * ) AS col0, 48 col1 FROM tab0 AS cor0 WHERE NULL > ( - + col1 ) - - col1
----
0
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1821
SELECT - COUNT ( * ) AS col0, 48 col1 FROM tab0 AS cor0 WHERE NULL > ( - + col1 ) - - col1
----
0
48

query I rowsort
SELECT DISTINCT 69 * - col1 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col0 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1825
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - - ( + + ( + col0 ) ) * - 20 * col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-1825
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - - ( + + ( + col0 ) ) * - 20 * col2 >= NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 * - col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col2, col0 col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT - - SUM( + - col2 ) AS col1, + 16 col2 FROM tab0 AS cor0
----
-156
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1828
SELECT - - SUM ( + - col2 ) AS col1, + 16 col2 FROM tab0 AS cor0
----
-156
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT ALL col0 DIV + 65 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL col0 / + 65 AS col0 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT COUNT( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + - col1 - 26 = + - 5 / + col0 + - col0 / + - 79 * 95 + - col1 + - col0 + - - col0 / - col2 * - col1 * - 66 * 1
----
3

skipif mysql # not compatible
query I rowsort label-1830
SELECT COUNT ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + - col1 - 26 = + - 5 / + col0 + - col0 / + - 79 * 95 + - col1 + - col0 + - - col0 / - col2 * - col1 * - 66 * 1
----
3

query I rowsort
SELECT ALL + ( 18 ) AS col0 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1832
SELECT + col1 DIV + col2, + 34 - + col1 DIV - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
1
34
1
35
2
35

skipif mysql # not compatible
query II rowsort label-1832
SELECT + col1 / + col2, + 34 - + col1 / - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
1
34
1
35
2
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT col0 DIV - - 99 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT col0 / - - 99 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + ( + + col2 ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT - AVG ( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT - col2 * - col2 > - col1 + - 11 / + + 25
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + col0 + - - col2 / col2 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + - 67 + MAX( ALL + col2 ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + - 67 + MAX ( ALL + col2 ) FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + - col2 * 64 AS col1 FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL + CAST( - col0 AS SIGNED ) + + col1 FROM tab1 cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + CAST ( - col0 AS INTEGER ) + + col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # DIV for integer division: 
query II rowsort label-1842
SELECT DISTINCT col2 col0, col2 DIV - - col0 AS col2 FROM tab0
----
10
0
47
3
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1842
SELECT DISTINCT col2 col0, col2 / - - col0 AS col2 FROM tab0
----
10
0
47
3
99
1

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT ALL col0 + 18 AS col0 FROM tab1 AS cor0
----
103
109
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + ( col2 ) * - - col2 + - 30 IN ( + CAST( + col2 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-1845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + ( col2 ) * - - col2 + - 30 IN ( + CAST ( + col2 AS INTEGER ) * - col2 )
----

query I rowsort
SELECT ALL + col1 + + + 32 - + 52 AS col1 FROM tab0 AS cor0
----
-19
1
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL + 65 + CAST( NULL AS SIGNED ) - + - 28 + + CAST( + col0 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-1847
SELECT ALL + 65 + CAST ( NULL AS INTEGER ) - + - 28 + + CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - + 29 + - - COUNT( * ) AS col0 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - + 29 + - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT COUNT( + col2 ) + MAX( col2 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1849
SELECT COUNT ( + col2 ) + MAX ( col2 ) FROM tab2 AS cor0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT + - col1 DIV + col0 + - - col1 DIV - col2 AS col0 FROM tab2 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT + - col1 / + col0 + - - col1 / - col2 AS col0 FROM tab2 cor0
----
-1
-2
-3

query I rowsort
SELECT - col0 * + col1 - + - col0 + + col1 - 22 AS col1 FROM tab2 AS cor0
----
-2271
-4809
-4905

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1852
SELECT + CAST( NULL AS DECIMAL ) + + + col1 AS col2, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-1852
SELECT + CAST ( NULL AS REAL ) + + + col1 AS col2, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - 33 + + COUNT( * ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1854
SELECT - 33 + + COUNT ( * ) AS col0 FROM tab2
----
-30

query I rowsort
SELECT DISTINCT col0 - - + col2 * + + col0 AS col0 FROM tab1
----
4947
5100
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT ALL - 55 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - 55 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - 0 + - 58 FROM tab2 cor0
----
-18
-35
0

query I rowsort
SELECT ALL - 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1859
SELECT + CAST( - 72 AS SIGNED ) FROM tab2
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1859
SELECT + CAST ( - 72 AS INTEGER ) FROM tab2
----
-72
-72
-72

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + 5 * col1 AS col0 FROM tab0
----
105
405
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 82 / col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - + col2 + col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1864
SELECT * FROM tab2 AS cor0 WHERE NOT 67 + - CAST( 61 AS SIGNED ) + 30 + col0 * - col0 * + col2 NOT BETWEEN col0 + - + col1 AND - + 47
----

skipif mysql # not compatible
query III rowsort label-1864
SELECT * FROM tab2 AS cor0 WHERE NOT 67 + - CAST ( 61 AS INTEGER ) + 30 + col0 * - col0 * + col2 NOT BETWEEN col0 + - + col1 AND - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + - COUNT( * ) * + 34 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1865
SELECT + - COUNT ( * ) * + 34 FROM tab0 AS cor0
----
-102

query I rowsort
SELECT ALL - + col2 * - col2 + 17 + + 92 FROM tab0 AS cor0
----
209
2318
9910

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1867
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-1867
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 82 col2 FROM tab2 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT DISTINCT - col1 DIV + + col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT - col1 / + + col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT - col0 DIV - 34 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - col0 / - 34 AS col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + SUM( - + 10 ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1871
SELECT + SUM ( - + 10 ) AS col0 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT - MIN( DISTINCT + 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT - MIN ( DISTINCT + 56 ) FROM tab2
----
-56

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT COUNT( DISTINCT 69 ) * - MAX( DISTINCT - 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT COUNT ( DISTINCT 69 ) * - MAX ( DISTINCT - 78 ) FROM tab1
----
78

query III rowsort
SELECT * FROM tab0 WHERE NOT - 86 * col0 * - col0 = NULL
----

query II rowsort
SELECT + 3 AS col1, 62 AS col0 FROM tab2 cor0
----
3
62
3
62
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - - SUM( ALL - + 52 ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1877
SELECT - - SUM ( ALL - + 52 ) AS col0 FROM tab1 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT - - col0 * + CAST( col2 AS SIGNED ) * + col1 + col0 + - 84 AS col1 FROM tab2 AS cor0 WHERE - col1 * + - 52 IS NOT NULL
----
197100
291441
53920

skipif mysql # not compatible
query I rowsort label-1878
SELECT - - col0 * + CAST ( col2 AS INTEGER ) * + col1 + col0 + - 84 AS col1 FROM tab2 AS cor0 WHERE - col1 * + - 52 IS NOT NULL
----
197100
291441
53920

query I rowsort
SELECT ALL 98 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT + 45 + + SUM( - col2 ) + - - SUM( - col2 ) DIV + 94 AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 45 + + SUM ( - col2 ) + - - SUM ( - col2 ) / + 94 AS col0 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( 67, 29 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + ( + - col0 ) + 57 * - - col0
----

query I rowsort
SELECT - - col2 - col1 AS col2 FROM tab0 AS cor0 WHERE - 12 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT SUM( ALL + 92 ) AS col1, + 89 * - COUNT( + col1 ) FROM tab0 AS cor0
----
276
-267

skipif mysql # not compatible
query II rowsort label-1885
SELECT SUM ( ALL + 92 ) AS col1, + 89 * - COUNT ( + col1 ) FROM tab0 AS cor0
----
276
-267

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT - + 22 DIV - 18, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-1886
SELECT - + 22 / - 18, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1887
SELECT - + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL ( + + col0 ) + + ( - col1 ) AS col2 FROM tab0 cor0
----
-66
66
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1889
SELECT ALL - col2 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - col2 - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 43 * + - 32 + + + 31, 22 AS col2 FROM tab2
----
-1345
22
-1345
22
-1345
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + + MAX( + col0 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT + + MAX ( + col0 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1892
SELECT * FROM tab1 WHERE + CAST( + - col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1892
SELECT * FROM tab1 WHERE + CAST ( + - col1 AS INTEGER ) = NULL
----

query I rowsort
SELECT - 84 - - col1 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT - 69 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + col1 * - col1 + - + col2 < NULL
----

query I rowsort
SELECT DISTINCT ( - + ( - + col1 ) ) - + 63 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL 98 - + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL 98 - + COUNT ( * ) FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT - MAX( - 62 ) - ( + 61 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1898
SELECT - MAX ( - 62 ) - ( + 61 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - 0 * 95 FROM tab2
----
0

query I rowsort
SELECT - + col0 * - col1 * - col1 - ( + 48 ) + + col2 FROM tab0 WHERE NULL IS NULL
----
-38405
-46
-98416

query I rowsort
SELECT ALL - 38 * + - ( + col1 ) + col0 - + col0 AS col2 FROM tab2 AS cor0
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + + MIN( 17 ) AS col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL + + MIN ( 17 ) AS col2 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT DISTINCT - MAX( DISTINCT + + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - MAX ( DISTINCT + + col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1904
SELECT DISTINCT COUNT( * ) * + 15 + - - 55 + + - ( - CAST( - + COUNT( - 56 ) AS SIGNED ) ) DIV + 92 + - - ( + COUNT( * ) ) - - 34 AS col2 FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT COUNT ( * ) * + 15 + - - 55 + + - ( - CAST ( - + COUNT ( - 56 ) AS INTEGER ) ) / + 92 + - - ( + COUNT ( * ) ) - - 34 AS col2 FROM tab0 AS cor0
----
137

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT + CAST( + - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1906
SELECT + CAST ( + - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + col1 * + - ( col2 ), - 31 AS col0 FROM tab2
----
-1173
-31
-3080
-31
-3886
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - MAX( ALL - 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - MAX ( ALL - 84 ) FROM tab1
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 IS NULL
----

query I rowsort
SELECT + col0 * + + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT 64 DIV - 22 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1911
SELECT 64 / - 22 FROM tab2
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * - col2 col1 FROM tab0
----
-2585
-5445
-550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT COUNT( * ) DIV + + ( - - COUNT( * ) ), + 50 col1 FROM tab2
----
1
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1913
SELECT COUNT ( * ) / + + ( - - COUNT ( * ) ), + 50 col1 FROM tab2
----
1
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL + 72 * + CAST( 42 AS SIGNED ) FROM tab2
----
3024
3024
3024

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 72 * + CAST ( 42 AS INTEGER ) FROM tab2
----
3024
3024
3024

query II rowsort
SELECT - 77 AS col2, col2 * + 35 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + col1 + - col0
----
-77
1645
-77
3465
-77
350

query I rowsort
SELECT - col2 + + - 97 * - + 96 FROM tab0 AS cor0
----
9213
9265
9302

onlyif mysql # DIV for integer division: 
query II rowsort label-1917
SELECT DISTINCT - col2 DIV - + col0 + + col0 AS col0, 25 FROM tab2 AS cor0
----
46
25
64
25
75
25

skipif mysql # not compatible
query II rowsort label-1917
SELECT DISTINCT - col2 / - + col0 + + col0 AS col0, 25 FROM tab2 AS cor0
----
46
25
64
25
75
25

query II rowsort
SELECT DISTINCT - ( col2 ) + + + col2, 18 AS col2 FROM tab1 AS cor0
----
0
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT - col2 DIV + col0 - - col0 AS col1 FROM tab0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - col2 / + col0 - - col0 AS col1 FROM tab0
----
12
87
96

query I rowsort
SELECT + ( - - ( col2 ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + ( col1 )
----

query II rowsort
SELECT col1, + col1 + - 75 * + - col1 AS col1 FROM tab1 AS cor0
----
14
1064
47
3572
5
380

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col0 <= + + 38 / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1924
SELECT ALL CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1924
SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + - col2 ) - - + col0 * + col1 col0, col0 AS col1 FROM tab0 AS cor0
----
1262
15
1837
87
196
97

query I rowsort
SELECT DISTINCT - - 42 AS col0 FROM tab1 cor0
----
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col2 IN ( ( + - 91 ) + - col2, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1928
SELECT DISTINCT + 2 DIV - - 88 + - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + 2 / - - 88 + - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT 37 + - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT 37 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 34 + + + col2 < ( + col1 )
----
64
77
40

query II rowsort
SELECT 86 * + col2, - col0 AS col2 FROM tab2
----
1978
-46
3440
-64
4988
-75

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT 92 - + + 7 * col0 / - 21 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 + - - 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 29 AND + - col1 + - - col2 - + col2 / - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col2 + + col0 + - 46 > + 73 * + 34 * - - col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28, + col2 col1 FROM tab1
----
28
59
28
68
28
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1937
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 AS col2, 87 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
-4437
NULL
-7395
NULL
-7917

skipif mysql # not compatible
query II rowsort label-1937
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 AS col2, 87 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
-4437
NULL
-7395
NULL
-7917

query I rowsort
SELECT - + 62 FROM tab0 cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + + 66 >= ( 39 * - 21 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + - 64 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT - - 56 + 20 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT + col1 + + - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT col0 + - col1 + - - col1 DIV + col1 FROM tab2 AS cor0
----
-12
-4
9

skipif mysql # not compatible
query I rowsort label-1944
SELECT col0 + - col1 + - - col1 / + col1 FROM tab2 AS cor0
----
-12
-4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + COUNT( - - col0 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1945
SELECT + COUNT ( - - col0 ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - COUNT( * ) * + + 91 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1946
SELECT - COUNT ( * ) * + + 91 FROM tab0
----
-273

query I rowsort
SELECT ALL 0 * + - 97 * ( - - col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 64 AS col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL + CAST( col1 AS SIGNED ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1949
SELECT ALL + CAST ( col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT ALL - col0 * + + col0 + + - 64 FROM tab2 WHERE NOT + CAST( - 70 AS SIGNED ) >= CAST( 75 AS SIGNED )
----
-2180
-4160
-5689

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - col0 * + + col0 + + - 64 FROM tab2 WHERE NOT + CAST ( - 70 AS INTEGER ) >= CAST ( 75 AS INTEGER )
----
-2180
-4160
-5689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT + CAST( - 80 AS SIGNED ) + + col2 col1 FROM tab1
----
-12
-21
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT + CAST ( - 80 AS INTEGER ) + + col2 col1 FROM tab1
----
-12
-21
16

query I rowsort
SELECT - col0 + - 51 AS col1 FROM tab2
----
-115
-126
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + SUM( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + SUM ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - 24 + 19 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-1954
SELECT - 24 + 19 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL MIN( + 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL MIN ( + 38 ) FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT 95 DIV - - 22 + - col1 + col0 FROM tab1 AS cor0
----
41
48
84

skipif mysql # not compatible
query I rowsort label-1956
SELECT 95 / - - 22 + - col1 + col0 FROM tab1 AS cor0
----
41
48
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT DISTINCT + 78 * COUNT( * ) + - + COUNT( * ) + - 73 * + COUNT( * ) AS col1, + 6 FROM tab1 AS cor0
----
12
6

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT + 78 * COUNT ( * ) + - + COUNT ( * ) + - 73 * + COUNT ( * ) AS col1, + 6 FROM tab1 AS cor0
----
12
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT AVG ( col2 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + 72 + + ( 29 ) * - + col1 FROM tab1
----
-1291
-334
-73

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE + col1 + - col0 NOT BETWEEN + ( - - col0 ) AND - 21
----
-59
-68
-96

query II rowsort
SELECT col0, + 27 FROM tab2
----
46
27
64
27
75
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT - col0, + col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 AND - 45 AND NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 5 >= 77
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT + MAX( col1 ) col2, 20 AS col0 FROM tab1 AS cor0
----
47
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1967
SELECT + MAX ( col1 ) col2, 20 AS col0 FROM tab1 AS cor0
----
47
20

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE - col0 NOT IN ( + - col2, col0, + 60, - 10 )
----
51
67
77

query I rowsort
SELECT DISTINCT 93 * - - col1 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT SUM( DISTINCT + 79 ) FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1970
SELECT SUM ( DISTINCT + 79 ) FROM tab2 cor0
----
79

query I rowsort
SELECT ( - 85 ) + + 45 AS col2 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT - col0 * - 76 + - + col1 AS col1 FROM tab0
----
1059
6591
7371

query I rowsort
SELECT ALL col0 + + + ( + col0 ) FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1974
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col0 * + - col2 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT ALL + 80 DIV - 22 + + 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + 80 / - 22 + + 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - - COUNT( * ) * + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - - COUNT ( * ) * + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

query I rowsort
SELECT ALL col2 - + col2 - + 81 AS col0 FROM tab2
----
-81
-81
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + + col2 < ( 57 )
----

query II rowsort
SELECT ALL - col2 * - + col0 * - - ( + col2 ), + col1 FROM tab2 AS cor0
----
102400
77
24334
51
252300
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT + - MAX( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1981
SELECT + - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1982
SELECT + + 23 + + SUM( ALL - CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT + + 23 + + SUM ( ALL - CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + + col2 * + + 47 NOT BETWEEN + col0 * 13 AND + 72 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - COUNT( ALL - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1984
SELECT - COUNT ( ALL - col2 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + 53 * - + col2 AS col1 FROM tab2 cor0
----
-1219
-2120
-3074

query II rowsort
SELECT DISTINCT + 64 AS col2, - ( + col0 ) - ( + + col2 ) FROM tab1
----
64
-144
64
-147
64
-159

query I rowsort
SELECT ( col1 ) + - col1 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT DISTINCT - 34 DIV - + col0 + ( + 95 ) + + + 35 AS col1 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT - 34 / - + col0 + ( + 95 ) + + + 35 AS col1 FROM tab2 AS cor0
----
130

query II rowsort
SELECT DISTINCT - col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - + 47 + + + MAX( ALL - 83 ) + + MAX( 38 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1992
SELECT - + 47 + + + MAX ( ALL - 83 ) + + MAX ( 38 ) AS col2 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - ( + 73 ) FROM tab0, tab1 AS cor0 WHERE + 22 BETWEEN 6 AND + 82
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT + col0 BETWEEN - ( - + col1 ) * ( + col2 ) AND - col0
----
51
67
77

query I rowsort
SELECT 15 * + - col1 AS col2 FROM tab0
----
-1215
-15
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT DISTINCT CAST( - ( col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT CAST ( - ( col2 ) AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + col0 * 55 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1999
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2, 12 AS col1 FROM tab2 AS cor0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-1999
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2, 12 AS col1 FROM tab2 AS cor0
----
NULL
12

query II rowsort
SELECT ALL col2 + - - col1 * + 24 AS col2, - ( - 93 ) FROM tab0
----
123
93
1991
93
514
93

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 33 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 * - + col1 * - 75 * + + 83 * 44 + + 28 FROM tab1 AS cor0
----
-368121572
-80800472
-875384372

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2004
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + 15 >= + - 25 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2004
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + 15 >= + - 25 - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 62 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col2 * + + col1 AS col0 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL + col0 * - col0 * - col1 AS col2 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2009
SELECT DISTINCT + MAX( DISTINCT - 6 ) DIV + - ( + 84 ) AS col0, COUNT( * ) AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-2009
SELECT DISTINCT + MAX ( DISTINCT - 6 ) / + - ( + 84 ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
0
3

query I rowsort
SELECT ALL - col0 * 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT DISTINCT + col1 DIV + col2 * + 21 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + col1 / + col2 * + 21 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT MAX( - ( - 69 ) ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2013
SELECT MAX ( - ( - 69 ) ) FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT 29 DIV - 24 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 29 / - 24 AS col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2015
SELECT col1 DIV + - col0 * col2, 38 AS col2 FROM tab1
----
0
38
0
38
0
38

skipif mysql # not compatible
query II rowsort label-2015
SELECT col1 / + - col0 * col2, 38 AS col2 FROM tab1
----
0
38
0
38
0
38

query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT DISTINCT col2 + + col2 * CAST( + 38 AS SIGNED ) AS col1 FROM tab1 cor0
----
2301
2652
3744

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT col2 + + col2 * CAST ( + 38 AS INTEGER ) AS col1 FROM tab1 cor0
----
2301
2652
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT - + col1 DIV 54 + - + 18 + + col0 AS col1 FROM tab0 AS cor0
----
-4
69
79

skipif mysql # not compatible
query I rowsort label-2018
SELECT - + col1 / 54 + - + 18 + + col0 AS col1 FROM tab0 AS cor0
----
-4
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + 19 * + MIN( + + 36 ) + MIN( col1 ) * 93 col0 FROM tab2
----
5427

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2019
SELECT ALL + 19 * + MIN ( + + 36 ) + MIN ( col1 ) * 93 col0 FROM tab2
----
5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT - 16 + + col1 * - CAST( - col2 AS SIGNED ) + 10 FROM tab0
----
204
3801
93

skipif mysql # not compatible
query I rowsort label-2020
SELECT - 16 + + col1 * - CAST ( - col2 AS INTEGER ) + 10 FROM tab0
----
204
3801
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab1
----
54
54
54

query I rowsort
SELECT + 83 + + col1 FROM tab1
----
130
88
97

query I rowsort
SELECT ALL + col0 * - - 37 - + 78 AS col2 FROM tab1
----
1809
3067
3289

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + + col1 ) + - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT ALL - col0 * col1 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - col0 * col1 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - - col0 + + + 64 * - + 29 * - - col1 * + 25 AS col0 FROM tab0 AS cor0
----
-3758334
-46496
-974466

query I rowsort
SELECT 73 - col1 * 43 - - col1 FROM tab1
----
-137
-1901
-515

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 48 <= - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT ALL CAST( 79 AS SIGNED ) AS col0 FROM tab0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL CAST ( 79 AS INTEGER ) AS col0 FROM tab0
----
79
79
79

query I rowsort
SELECT + + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT DISTINCT ( + 54 ) + + COUNT( * ), - 40 * + 6 + 2 AS col2 FROM tab1 WHERE + 98 / - col2 + - + col1 - + col1 + - 92 IS NULL
----
54
-238

skipif mysql # not compatible
query II rowsort label-2031
SELECT DISTINCT ( + 54 ) + + COUNT ( * ), - 40 * + 6 + 2 AS col2 FROM tab1 WHERE + 98 / - col2 + - + col1 - + col1 + - 92 IS NULL
----
54
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT DISTINCT col0 * - + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT col0 * - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT ALL - 6 * col1 FROM tab2 AS cor0
----
-306
-402
-462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2034
SELECT + - col1 * + 38 AS col2, CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1938
1173
-2546
3886
-2926
3080

skipif mysql # not compatible
query II rowsort label-2034
SELECT + - col1 * + 38 AS col2, CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1938
1173
-2546
3886
-2926
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 44 ) col1 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT + col2 DIV col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT + col2 / col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2037
SELECT MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ALL 61 * col0 FROM tab2
----
2806
3904
4575

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL < - col0 * + col0 * + col1 )
----

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE 64 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 * col0 - col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 78 * + + col0 AS col1 FROM tab1 AS cor0
----
3978
6630
7098

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + ( 94 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT + ( COUNT( * ) ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + ( COUNT ( * ) ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * - 77 FROM tab0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT - 75 FROM tab0 WHERE ( 41 / ( CAST( NULL AS SIGNED ) ) + col1 / + col1 ) NOT IN ( + col2 * 63 )
----

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - 75 FROM tab0 WHERE ( 41 / ( CAST ( NULL AS INTEGER ) ) + col1 / + col1 ) NOT IN ( + col2 * 63 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + col2 + col0 NOT IN ( - 69 + + col2 * - col2 )
----
1
21
81

query I rowsort
SELECT 38 * - col0 AS col2 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - MAX( DISTINCT - col2 ) * COUNT( * ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2049
SELECT - MAX ( DISTINCT - col2 ) * COUNT ( * ) AS col2 FROM tab2
----
69

query I rowsort
SELECT DISTINCT - col2 + + 77 FROM tab2
----
19
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - MIN( + col1 ) FROM tab1 WHERE ( - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT - MIN ( + col1 ) FROM tab1 WHERE ( - col1 ) <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - 28 + + 62 AS col1 FROM tab1
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2053
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS REAL ) AND - col2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND + ( - 3 ) * 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT col2 + CAST( - col1 + + 61 AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( col0 / col1 ) > ( col0 )
----
115
143
82

skipif mysql # not compatible
query I rowsort label-2055
SELECT col2 + CAST ( - col1 + + 61 AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( col0 / col1 ) > ( col0 )
----
115
143
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL COUNT( * ) * SUM( DISTINCT + 78 ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL COUNT ( * ) * SUM ( DISTINCT + 78 ) FROM tab0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT col0 NOT IN ( + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT col0 NOT IN ( + 18 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + 39 FROM tab1
----
-2301
-2652
-3744

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 48 < ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * ( - ( col2 ) ) FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 29 + + 0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + 90 + - col0 col0 FROM tab1
----
5309
5315
5349

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL 39 * - COUNT( col2 ) - - MAX( ALL col2 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL 39 * - COUNT ( col2 ) - - MAX ( ALL col2 ) FROM tab2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT col0 DIV 62 col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT col0 / 62 col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL + COUNT( * ) DIV 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + COUNT ( * ) / 57 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT - col0 BETWEEN NULL AND col1 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT - col0 BETWEEN NULL AND col1 / - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT + MIN( col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - 99 + col0 FROM tab2 AS cor0
----
-24
-35
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2071
SELECT - COUNT( DISTINCT - 95 ) * - CAST( NULL AS DECIMAL ) + 11 * 10 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT - COUNT ( DISTINCT - 95 ) * - CAST ( NULL AS REAL ) + 11 * 10 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT CAST( + ( + col2 ) AS SIGNED ) * ( - ( 79 ) ) + col0 FROM tab1 AS cor0
----
-4576
-5281
-7533

skipif mysql # not compatible
query I rowsort label-2072
SELECT CAST ( + ( + col2 ) AS INTEGER ) * ( - ( 79 ) ) + col0 FROM tab1 AS cor0
----
-4576
-5281
-7533

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2073
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2073
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND ( col2 * - 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - 58 + MIN( 57 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 58 + MIN ( 57 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
-1

query I rowsort
SELECT ALL + col0 - col1 AS col2 FROM tab1 WHERE - col2 NOT IN ( + col0 )
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT DISTINCT col2 + + col2 DIV col0 AS col1 FROM tab1 WHERE col1 <> - col2 DIV 39
----
59
68
97

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT col2 + + col2 / col0 AS col1 FROM tab1 WHERE col1 <> - col2 / 39
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT MIN( 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
46

skipif mysql # not compatible
query I rowsort label-2078
SELECT MIN ( 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL + MIN( ALL col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + MIN ( ALL col2 ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2080
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 91 * - 29 FROM tab2
----
-2639
-2639
-2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT 7 FROM tab2 AS cor0 WHERE NOT CAST( - 25 AS SIGNED ) IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT 7 FROM tab2 AS cor0 WHERE NOT CAST ( - 25 AS INTEGER ) IS NULL
----
7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 64 ) NOT BETWEEN col0 AND + col0 / ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL MIN( ALL 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL MIN ( ALL 0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col1 + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col1 + + col1 * - ( + 49 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ( - COUNT( + col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2087
SELECT ( - COUNT ( + col0 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 17 * - col1 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT 29 * - col0 * - col2 FROM tab2
----
126150
30682
74240

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + SUM( ALL + 3 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2090
SELECT + SUM ( ALL + 3 ) AS col1 FROM tab0
----
9

query I rowsort
SELECT - col0 * + + col1 * - col2 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL col2 * + + 22 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL col2 * + + 22 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( + col0 ) col2 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT - ( - 94 ) AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT ALL col0 * 85 AS col1 FROM tab0 WHERE - col1 = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT - MIN( ALL - 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - MIN ( ALL - 74 ) FROM tab2
----
74

query I rowsort
SELECT + col0 * + ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT + 38 * - SUM( 5 ) + + COUNT( * ) * + CAST( - 74 AS SIGNED ) col2 FROM tab1 AS cor0
----
-792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2098
SELECT + 38 * - SUM ( 5 ) + + COUNT ( * ) * + CAST ( - 74 AS INTEGER ) col2 FROM tab1 AS cor0
----
-792

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( col1 - - col2 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + 11 col1 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2101
SELECT ALL CAST( NULL AS DECIMAL ) * + + col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL CAST ( NULL AS REAL ) * + + col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( - col1 ) + ( 69 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT - ( - MIN( DISTINCT 71 ) ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - ( - MIN ( DISTINCT 71 ) ) AS col0 FROM tab2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT DISTINCT col2 DIV + - col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT col2 / + - col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab0 AS cor0 WHERE NOT ( 33 ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 49 * + 95 ) < 69 OR NOT NULL NOT BETWEEN ( NULL ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2107
SELECT ALL + + CAST( NULL AS DECIMAL ) * ( 18 ) + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2107
SELECT ALL + + CAST ( NULL AS REAL ) * ( 18 ) + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - 71 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - 71 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT + - ( - ( + col2 ) ) + + col0 AS col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL + col2 + + 72 * col2 FROM tab0 AS cor0
----
3431
7227
730

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col1 + 28
----

query I rowsort
SELECT col1 * - col1 + + 42 AS col1 FROM tab0
----
-399
-6519
41

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE + + col1 + + + 97 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 8 - - - col2 * col2 * + col2 AS col2 FROM tab1
----
-205371
-314424
-884728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT - 77 + + + CAST( AVG ( + col1 ) AS SIGNED ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 77 + + + CAST ( AVG ( + col1 ) AS INTEGER ) FROM tab0
----
-43

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * + col1 + - 22 ) IS NULL
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT DISTINCT + - 48 - - 9 AS col0, ( + + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2119
SELECT DISTINCT + - 48 - - 9 AS col0, ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-39
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - col1 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) * + 3 col0 FROM tab0
----
-261
-291
-45

query II rowsort
SELECT col2 * - col2 * - 98, col2 FROM tab0
----
216482
47
960498
99
9800
10

query I rowsort
SELECT - 98 AS col0 FROM tab2 WHERE NOT + col0 + - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL + - MAX( - 65 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
65

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL + - MAX ( - 65 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
65

query I rowsort
SELECT ( + col1 ) + col2 + - col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL + - MIN( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + - MIN ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 10 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 col1 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2131
SELECT + MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + 64 DIV + col1 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2132
SELECT + 64 / + col1 col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + 76 + 91 * 12 FROM tab2 AS cor0 WHERE NOT col1 * - 46 + - col1 IS NULL
----
1168
1168
1168

query II rowsort
SELECT ( col0 ) AS col1, + 42 AS col2 FROM tab0
----
15
42
87
42
97
42

query I rowsort
SELECT ALL - col0 * + col2 + + - col0 * - + col2 + - col2 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( + 29 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 AS col1, 5 FROM tab0
----
15
5
87
5
97
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + col2 + + + 99 + - col2 BETWEEN 82 AND 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 49 * + - col0 AS col0 FROM tab0
----
-4263
-4753
-735

query II rowsort
SELECT DISTINCT 85 AS col0, col0 + col0 FROM tab2
----
85
128
85
150
85
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT col0 DIV 63 FROM tab0 WHERE NOT ( NOT ( col2 + + col0 IS NOT NULL ) )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2141
SELECT col0 / 63 FROM tab0 WHERE NOT ( NOT ( col2 + + col0 IS NOT NULL ) )
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT DISTINCT + ( - CAST( + 76 AS SIGNED ) ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + ( - CAST ( + 76 AS INTEGER ) ) FROM tab1
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab2 AS cor0
----
68
68
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 70 )
----

query III rowsort
SELECT - col1 AS col1, - 43 AS col2, 43 AS col2 FROM tab1 AS cor0
----
9 values hashing to 436a4f2dd45881739fd232d297fe6116

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - - MAX( ALL col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2147
SELECT - - MAX ( ALL col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + - col0 + + 27 AS col0 FROM tab2 AS cor0
----
-19
-37
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL - MAX( - + 9 ) + + 88 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - MAX ( - + 9 ) + + 88 FROM tab1 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 54 + ( - col0 ) FROM tab0
----
-33
-43
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + + COUNT( * ) + + 2 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2152
SELECT + + COUNT ( * ) + + 2 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + - 72 AS col1 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - - col0 * + col1 - - 12 AS col1 FROM tab0 AS cor0
----
109
1227
1839

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( col2 * 17 <= ( - col1 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-2155
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( col2 * 17 <= ( - col1 ) ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT COUNT( * ) + + ( COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT COUNT ( * ) + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT col1 + + col0 FROM tab2 WHERE NULL IS NULL
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE - 15 IS NULL
----

query I rowsort
SELECT - 69 AS col2 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col1 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + col1 / col1 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 col1, col2 AS col0 FROM tab1
----
33
59
33
68
33
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 26 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col1, + 64 FROM tab1 AS cor0
----
-59
64
-68
64
-96
64

query I rowsort
SELECT ALL - + 27 * + col1 * col0 FROM tab1 AS cor0
----
-11475
-115479
-19278

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT COUNT( + - 15 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2167
SELECT COUNT ( + - 15 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 79 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + 58
----

query II rowsort
SELECT - col0, col1 * - - ( + col1 ) AS col2 FROM tab1
----
-51
196
-85
25
-91
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT 88 * - - COUNT( * ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-2170
SELECT 88 * - - COUNT ( * ) AS col1 FROM tab0
----
264

query I rowsort
SELECT DISTINCT 64 + 13 AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col0 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 91 ) col1 FROM tab2
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT 76 * + col0 + - - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT 76 * + col0 + - - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 65 / - col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + COUNT( * ) + - - COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2176
SELECT + COUNT ( * ) + - - COUNT ( * ) col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + - 32 FROM tab1 WHERE + 41 > - - col1
----
-32

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col2 / + col2 IS NOT NULL
----
1
21
81

query II rowsort
SELECT - col1 AS col0, col0 + 3 AS col2 FROM tab1
----
-14
54
-47
94
-5
88

query I rowsort
SELECT ALL + 58 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT - MIN( ALL + - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2181
SELECT - MIN ( ALL + - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT - + SUM( DISTINCT + 20 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - + SUM ( DISTINCT + 20 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT 28 - + COUNT( - col2 ) AS col2 FROM tab2 WHERE NOT + col2 >= + col0 * 2
----
25

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT 28 - + COUNT ( - col2 ) AS col2 FROM tab2 WHERE NOT + col2 >= + col0 * 2
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 col1, + 63 AS col0 FROM tab0 AS cor0
----
-49
63

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT col1 + + 27 * - - col1 AS col0 FROM tab1 cor0
----
1316
140
392

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2188
SELECT + 56 AS col2, - MIN( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2188
SELECT + 56 AS col2, - MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT MAX( ALL 84 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2189
SELECT MAX ( ALL 84 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL col1 + + 84 FROM tab2 AS cor0
----
135
151
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 83, - col0 col2 FROM tab2 AS cor0
----
83
-46
83
-64
83
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT 2 + col0 DIV - ( col0 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2192
SELECT 2 + col0 / - ( col0 ) AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT + col0 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + MIN( ALL + 65 ) AS col2 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2195
SELECT + MIN ( ALL + 65 ) AS col2 FROM tab0 AS cor0
----
65

query I rowsort
SELECT - + 3 * + - 16 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + - 69 AS col1 FROM tab2 cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT - CAST( NULL AS SIGNED ) + SUM( DISTINCT + 84 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + 84 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 = + col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 20
----

query I rowsort
SELECT DISTINCT - - col1 + + 11 - + col2 AS col2 FROM tab0 AS cor0
----
-87
22
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT CAST( NULL AS SIGNED ) + 92 - - col2 - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT CAST ( NULL AS INTEGER ) + 92 - - col2 - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT + 49 * - COUNT( * ) + MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 49 * - COUNT ( * ) + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 57 + + 64 FROM tab2 AS cor0
----
121
121
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2206
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), - 43 - - 56 + + - col1 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-2206
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), - 43 - - 56 + + - col1 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NOT 20 IS NULL
----
58
58
58

query I rowsort
SELECT ALL - 54 + + col1 * 10 AS col1 FROM tab2 AS cor0
----
456
616
716

query I rowsort
SELECT DISTINCT + - 84 * - - 99 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1 * + - 55 + + 50 + + - 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT 8 DIV 80 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT 8 / 80 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - 44 + - col2 + 88 IS NULL OR + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT + MIN( DISTINCT - ( 2 ) ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + MIN ( DISTINCT - ( 2 ) ) AS col2 FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 48 * col2 AS col0, col0 / col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + - ( - + col0 ) + + col0, + col1, - + 31 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT ALL 86 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 86 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT - col1 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT - col1 / - - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - col1 ) + - + col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL - MAX( ( + 80 ) ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - MAX ( ( + 80 ) ) AS col0 FROM tab1 AS cor0
----
-80

query II rowsort
SELECT DISTINCT 97, col2 AS col0 FROM tab1
----
97
59
97
68
97
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2224
SELECT 16 * COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-2224
SELECT 16 * COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT 2 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT 2 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT + SUM( + 36 ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + SUM ( + 36 ) FROM tab0 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT MAX( DISTINCT - 14 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT MAX ( DISTINCT - 14 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - col1 * col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT + + ( + col2 ) + + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT col2 * - - CAST( + col1 AS SIGNED ) + + 87 AS col1 FROM tab1 AS cor0
----
1431
3283
382

skipif mysql # not compatible
query I rowsort label-2230
SELECT col2 * - - CAST ( + col1 AS INTEGER ) + + 87 AS col1 FROM tab1 AS cor0
----
1431
3283
382

query I rowsort
SELECT + - col2 * - + ( + col0 ) * + col1 * - col2 * - 66 FROM tab1 AS cor0
----
1305271968
434294784
97642050

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - col0 * - col2, - col2, ( + 1 ), - col1 / - + ( 27 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ( SUM( ALL - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( SUM ( ALL - col1 ) ) FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT ALL col2 * col2 DIV col0 FROM tab0
----
1
101
147

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL col2 * col2 / col0 FROM tab0
----
1
101
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT col2 AS col0, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL - 69 * col0 FROM tab0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2238
SELECT + COUNT( * ), - CAST( NULL AS DECIMAL ) * CAST( NULL AS DECIMAL ) col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2238
SELECT + COUNT ( * ), - CAST ( NULL AS REAL ) * CAST ( NULL AS REAL ) col2 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT MIN( - - ( - col1 ) ) * - - ( - - 35 ) FROM tab2 cor0
----
-2695

skipif mysql # not compatible
query I rowsort label-2239
SELECT MIN ( - - ( - col1 ) ) * - - ( - - 35 ) FROM tab2 cor0
----
-2695

query I rowsort
SELECT ALL + + 52 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT - - 15 DIV - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - 15 / - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT DISTINCT - col1 DIV + 1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - col1 / + 1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col1 + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL - COUNT( * ) / - - ( - + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - COUNT ( * ) / - - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 82 * + col2 + + - col2 + col0 AS col1 FROM tab1 AS cor0
----
4864
5599
7827

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT + col2 + - - ( - 41 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT + SUM( + + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + SUM ( + + col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT 76 / - - 62 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= ( + col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 + + + col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + - col1 * col1 + 21 AS col2 FROM tab2 AS cor0
----
-2580
-4468
-5908

onlyif mysql # DIV for integer division: 
query II rowsort label-2253
SELECT DISTINCT + col1 DIV + ( - 7 ), col1 FROM tab1
----
-2
14
-6
47
0
5

skipif mysql # not compatible
query II rowsort label-2253
SELECT DISTINCT + col1 / + ( - 7 ), col1 FROM tab1
----
-2
14
-6
47
0
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 25 * - 89 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT ALL - CAST( + + 96 AS SIGNED ) AS col0 FROM tab0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - CAST ( + + 96 AS INTEGER ) AS col0 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT ( + 4 ) AS col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2257
SELECT + COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT ALL + col2 - + col0 * col0 AS col0 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT col2 * col2 + + col0 AS col2 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT - 17 + - + col2 AS col1 FROM tab2
----
-40
-57
-75

query I rowsort
SELECT ALL + 63 * - 93 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 - - col1 + + + 73 AS col0 FROM tab0
----
115
235
75

query I rowsort
SELECT - + col1 * col0 FROM tab2 WHERE NULL >= col0 + - col2
----

query I rowsort
SELECT ALL + 87 AS col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - 87 * - + col2 + 9 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 58 NOT BETWEEN ( NULL ) AND - 91
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 34 * + col1 <= col0 * + - 57
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT - ( + + col2 ) DIV - + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2269
SELECT - ( + + col2 ) / - + col0 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col1 + - 90 BETWEEN + col2 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - - col2 * - col0 AS col0 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab2
----
46
64
75

query I rowsort
SELECT ( + 59 ) AS col0 FROM tab2
----
59
59
59

query I rowsort
SELECT ( + 84 ) AS col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT 36 * - col0 AS col1 FROM tab0 AS cor0
----
-3132
-3492
-540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2276
SELECT + + col2 * 37 * + CAST( NULL AS SIGNED ) / - 77 * col2 AS col1, ( + col2 ) * + col0 * - + col0 col1 FROM tab2 AS cor0
----
NULL
-163840
NULL
-326250
NULL
-48668

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2276
SELECT + + col2 * 37 * + CAST ( NULL AS INTEGER ) / - 77 * col2 AS col1, ( + col2 ) * + col0 * - + col0 col1 FROM tab2 AS cor0
----
NULL
-163840
NULL
-326250
NULL
-48668

query II rowsort
SELECT - 39 AS col0, - ( - - 32 ) FROM tab2 AS cor0
----
-39
-32
-39
-32
-39
-32

query I rowsort
SELECT DISTINCT + - col0 * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT + 89 + - + COUNT( - col1 ) col2 FROM tab2
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT DISTINCT + 89 + - + COUNT ( - col1 ) col2 FROM tab2
----
86

query III rowsort
SELECT * FROM tab2 WHERE - + 67 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, ( + col1 ) FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - + 65 IS NULL OR - - col0 * - col1 * + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 + - - 94 - - 42 + - col1 * + col0 + col0 FROM tab1 AS cor0
----
-145
-3982
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - + COUNT( * ) + - 49 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2284
SELECT - + COUNT ( * ) + - 49 FROM tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + + col0 * + col2 col1 FROM tab2 AS cor0
----
1068
2570
4360

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 52 * COUNT( * ) + + - 77 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2287
SELECT 52 * COUNT ( * ) + + - 77 FROM tab1 AS cor0
----
79

query II rowsort
SELECT + 64, col1 AS col0 FROM tab2 AS cor0
----
64
51
64
67
64
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL + + MIN( - col2 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + + MIN ( - col2 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-93

query II rowsort
SELECT ALL + col0 + + - col2 + - ( + col1 ) AS col0, ( + 71 ) - - col1 FROM tab1 cor0
----
-24
118
-59
85
21
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT DISTINCT 95 DIV MAX( - - col1 ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2291
SELECT DISTINCT 95 / MAX ( - - col1 ) col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT + SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + SUM ( ALL col2 ) FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT 9 + + 65 * - col2 FROM tab1 AS cor0
----
-3826
-4411
-6231

query I rowsort
SELECT DISTINCT col2 * 33 * + 10 * - col0 AS col2 FROM tab2 AS cor0
----
-1435500
-349140
-844800

query I rowsort
SELECT DISTINCT - - 29 + col1 * - - 73 AS col1 FROM tab1 AS cor0
----
1051
3460
394

query I rowsort
SELECT ALL - ( + ( - col2 ) ) * col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2300
SELECT ALL - col0 * - CAST( - col2 AS SIGNED ), - col1 + + 77 AS col1 FROM tab2 cor0
----
-1058
26
-2560
0
-4350
10

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL - col0 * - CAST ( - col2 AS INTEGER ), - col1 + + 77 AS col1 FROM tab2 cor0
----
-1058
26
-2560
0
-4350
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT ( col1 >= + + col2 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2303
SELECT ALL 5 DIV + col1, col0 FROM tab1
----
0
51
0
91
1
85

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL 5 / + col1, col0 FROM tab1
----
0
51
0
91
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL + COUNT( ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL + COUNT ( ( - col0 ) ) FROM tab0
----
3

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE NOT col0 * col1 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + SUM( DISTINCT 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2306
SELECT + SUM ( DISTINCT 97 ) FROM tab2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - 34 * + - 69 * - ( 92 ) / - 38 + CAST( NULL AS SIGNED ) * - 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 34 * + - 69 * - ( 92 ) / - 38 + CAST ( NULL AS INTEGER ) * - 64 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT 89 DIV - 10 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-2308
SELECT 89 / - 10 FROM tab1
----
-8
-8
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 98 = - - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + 5 * col0 BETWEEN + 89 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + - col2 + + 46 * + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + - col2 + + 46 * + col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 37 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL - ( col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL SUM( - + col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL SUM ( - + col0 ) FROM tab1 cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 * + - col1 - + col1 BETWEEN ( + + ( - col2 ) / + + col1 / + 78 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2318
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 * + - col1 - + col1 BETWEEN ( + + ( - col2 ) / + + col1 / + 78 ) AND NULL
----

query I rowsort
SELECT + 59 + + ( 11 ) AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL COUNT( * ) + + 23 AS col0 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL COUNT ( * ) + + 23 AS col0 FROM tab2 cor0
----
26

query I rowsort
SELECT DISTINCT + 8 + + col1 AS col1 FROM tab1 AS cor0
----
13
22
55

query II rowsort
SELECT - ( - col1 ) + + col1, col0 + - 92 + 45 AS col2 FROM tab0 AS cor0
----
162
-32
2
50
42
40

query I rowsort
SELECT ALL - 91 + + 58 + + + col0 FROM tab1
----
18
52
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT DISTINCT 51 DIV col2 + + + col1 * - col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT 51 / col2 + + + col1 * - col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col0 + 36 FROM tab2
----
100
111
82

query I rowsort
SELECT ALL 96 + + + ( + col0 ) AS col0 FROM tab1
----
147
181
187

query I rowsort
SELECT ALL 24 - + - 9 AS col0 FROM tab0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - COUNT( * ) * + 11 + + 12 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2328
SELECT - COUNT ( * ) * + 11 + + 12 FROM tab2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT - col2 DIV - col1 + 6 AS col2 FROM tab0
----
105
6
6

skipif mysql # not compatible
query I rowsort label-2329
SELECT - col2 / - col1 + 6 AS col2 FROM tab0
----
105
6
6

query I rowsort
SELECT ALL col2 / - col1 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - col2 * 19 - + + col1 AS col2 FROM tab2
----
-1094
-442
-773

query I rowsort
SELECT DISTINCT 78 * + + col1 AS col2 FROM tab1
----
1092
3666
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL CAST( NULL AS SIGNED ) - 39 - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL CAST ( NULL AS INTEGER ) - 39 - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT 10 * + + col1 DIV col1 col0 FROM tab1
----
10
10
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT 10 * + + col1 / col1 col0 FROM tab1
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT + 91 * - + 19 * - COUNT( * ) FROM tab0
----
5187

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + 91 * - + 19 * - COUNT ( * ) FROM tab0
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT + - COUNT( * ) * + ( - 26 ) AS col0 FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + - COUNT ( * ) * + ( - 26 ) AS col0 FROM tab1 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + COUNT( * ) * + SUM( ALL + col2 ) - - SUM( - - col0 ) col2 FROM tab2 AS cor0
----
548

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2337
SELECT + COUNT ( * ) * + SUM ( ALL + col2 ) - - SUM ( - - col0 ) col2 FROM tab2 AS cor0
----
548

query I rowsort
SELECT ALL - 63 * - col0 AS col0 FROM tab0 AS cor0
----
5481
6111
945

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 > + - 12 - - 76
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2341
SELECT - CAST( - CAST( + col2 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2341
SELECT - CAST ( - CAST ( + col2 AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
14
47
5

query II rowsort
SELECT col2, + col0 * + - ( - col1 ) + + - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
2323
40
4888
58
4967

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2344
SELECT - 64 * - - ( - 76 ) - - col2 - + + col1 DIV CAST( + ( - - 19 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
4885
4900
4919

skipif mysql # not compatible
query I rowsort label-2344
SELECT - 64 * - - ( - 76 ) - - col2 - + + col1 / CAST ( + ( - - 19 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
4885
4900
4919

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + 48 * - COUNT( * ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 48 * - COUNT ( * ) AS col1 FROM tab2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL MAX( DISTINCT - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL MAX ( DISTINCT - 96 ) FROM tab0
----
-96

query I rowsort
SELECT ALL + + 19 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
19
19
19

onlyif mysql # DIV for integer division: 
query II rowsort label-2348
SELECT ALL + col0 DIV 45 * + - col2, 94 AS col0 FROM tab1 AS cor0
----
-136
94
-59
94
-96
94

skipif mysql # not compatible
query II rowsort label-2348
SELECT ALL + col0 / 45 * + - col2, 94 AS col0 FROM tab1 AS cor0
----
-136
94
-59
94
-96
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT - + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2349
SELECT - + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 + + 18 AS col2 FROM tab2
----
64
82
93

query I rowsort
SELECT ALL - 99 * - 61 * col2 AS col0 FROM tab2 AS cor0
----
138897
241560
350262

query I rowsort
SELECT + + 10 AS col1 FROM tab0 cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT DISTINCT - col0 DIV + - col1 + - 32 DIV + col0 + - + 6 AS col0 FROM tab1 AS cor0
----
-3
-5
11

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - col0 / + - col1 + - 32 / + col0 + - + 6 AS col0 FROM tab1 AS cor0
----
-3
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL + 60 + - COUNT( DISTINCT + 34 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + 60 + - COUNT ( DISTINCT + 34 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT ( - + 32 ) * col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT DISTINCT + - col1 * + 17 + + col0 FROM tab0 cor0
----
-1362
-270
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT + 22 * 65 + - col1 + + col1 + - - col1 DIV - ( 80 ) + 49 AS col0 FROM tab2 AS cor0
----
1479

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + 22 * 65 + - col1 + + col1 + - - col1 / - ( 80 ) + 49 AS col0 FROM tab2 AS cor0
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL - 76 + + COUNT( * ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 76 + + COUNT ( * ) FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + col1 - - col1 * + col0 - + - col2 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0, tab2 AS cor0
----
1

query I rowsort
SELECT ALL - 30 - - 97 FROM tab0
----
67
67
67

query I rowsort
SELECT DISTINCT col1 * + col2 * 68 AS col1 FROM tab1
----
20060
217328
91392

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - COUNT( * ) + 83 col2 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2364
SELECT - COUNT ( * ) + 83 col2 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL SUM( + col2 ) - + COUNT( * ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL SUM ( + col2 ) - + COUNT ( * ) FROM tab1
----
220

query II rowsort
SELECT col1, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT 67 * - + col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT DISTINCT 67 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8
21
3

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT 67 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8
21
3

query I rowsort
SELECT DISTINCT + + ( + + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col1, col2 FROM tab2
----
-52
23
-52
40
-52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + SUM( 84 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2371
SELECT + SUM ( 84 ) FROM tab2
----
252

query I rowsort
SELECT ALL - ( - col0 ) * - - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT 17 * - COUNT( * ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2373
SELECT 17 * - COUNT ( * ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col2 + + 84 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col2 + + 84 > - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 13 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL + COUNT( * ) * + 93 AS col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + COUNT ( * ) * + 93 AS col0 FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL SUM( 52 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL SUM ( 52 ) FROM tab1 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2378
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 * + CAST( - col2 AS SIGNED ) * + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2378
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 * + CAST ( - col2 AS INTEGER ) * + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, - 93 - 21 * - + col0 AS col2 FROM tab0 AS cor0
----
15
222
87
1734
97
1944

query I rowsort
SELECT + ( + 3 ) * - col2 FROM tab0 AS cor0
----
-141
-297
-30

query II rowsort
SELECT ALL + 59, 64 AS col0 FROM tab1 AS cor0
----
59
64
59
64
59
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT COUNT( DISTINCT 14 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT COUNT ( DISTINCT 14 ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + MAX( + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + MAX ( + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - col2 AND col0
----
NULL

query I rowsort
SELECT 54 * 21 AS col0 FROM tab0 AS cor0
----
1134
1134
1134

query I rowsort
SELECT DISTINCT col2 * - 83 * + 66 * - col1 FROM tab0
----
1150380
20854746
542322

query I rowsort
SELECT ALL + 24 * col0 FROM tab0
----
2088
2328
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT ( + MAX( - + col1 ) ) * + + CAST( - COUNT( * ) AS SIGNED ) - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT ( + MAX ( - + col1 ) ) * + + CAST ( - COUNT ( * ) AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT MIN( - + 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-2389
SELECT MIN ( - + 90 ) FROM tab0
----
-90

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2391
SELECT ALL + AVG ( + - col1 ) + + 86 AS col0 FROM tab0 WHERE NOT + - CAST( NULL AS DECIMAL ) + + col0 >= - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL + AVG ( + - col1 ) + + 86 AS col0 FROM tab0 WHERE NOT + - CAST ( NULL AS REAL ) + + col0 >= - 6
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - + COUNT( * ) + COUNT( * ) FROM tab0 WHERE ( NULL BETWEEN NULL AND + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT - + COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE ( NULL BETWEEN NULL AND + col0 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + - 63 FROM tab2 cor0
----
-17
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT 98 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2396
SELECT 98 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2397
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) + - col1 / - ( + ( col2 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) + - col1 / - ( + ( col2 ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + + MAX( ALL + 57 ) AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + + MAX ( ALL + 57 ) AS col0 FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL + 68 + + + 36 * - col1 + - col0 FROM tab0 AS cor0
----
-2863
-65
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 91 + + col2 AS col2, 36 * - - 35 col1 FROM tab0
----
101
1260
138
1260
190
1260

query I rowsort
SELECT DISTINCT col2 * - + col1 - - - col0 + - col1 FROM tab1
----
-1409
-3334
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT ALL 74 DIV - col1 + - - 36 AS col2 FROM tab2
----
35
35
36

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 74 / - col1 + - - 36 AS col2 FROM tab2
----
35
35
36

query III rowsort
SELECT ALL * FROM tab0 WHERE - 68 * + + col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 54 * - col2 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2406
SELECT + col0 DIV + CAST( + 30 AS SIGNED ) AS col0, 70 AS col1 FROM tab1 cor0
----
1
70
2
70
3
70

skipif mysql # not compatible
query II rowsort label-2406
SELECT + col0 / + CAST ( + 30 AS INTEGER ) AS col0, 70 AS col1 FROM tab1 cor0
----
1
70
2
70
3
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT + + 92 * - MIN( DISTINCT col2 ) + + COUNT( * ) - - COUNT( - - 93 ) + + COUNT( * ) FROM tab2 AS cor0
----
-2107

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + + 92 * - MIN ( DISTINCT col2 ) + + COUNT ( * ) - - COUNT ( - - 93 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-2107

query I rowsort
SELECT + - col0 * - 98 + + col1 AS col2 FROM tab2 AS cor0
----
4559
6349
7417

query I rowsort
SELECT - + 79 AS col1 FROM tab0 AS cor0
----
-79
-79
-79

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT + - 60 AS col0 FROM tab0 cor0
----
-60
-60
-60

query I rowsort
SELECT 91 * + + ( - + col2 ) FROM tab2
----
-2093
-3640
-5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT - 63 + 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-2414
SELECT DISTINCT - 63 + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 76 + + - col0 - + col2 AS col2 FROM tab2
----
-28
-57
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + COUNT( * ) DIV - COUNT( - col1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + COUNT ( * ) / - COUNT ( - col1 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT - + ( - - col2 ) AS col0 FROM tab0 WHERE + + 46 * + 0 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * + col2 AS col0, - col0 * + col1 - col0 AS col1 FROM tab2
----
1600
-4992
3364
-5100
529
-2392

query III rowsort
SELECT * FROM tab2 WHERE - - col2 BETWEEN NULL AND - - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + MAX( ALL + + 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + MAX ( ALL + + 92 ) FROM tab2
----
92

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 26 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + col0 + - 21 FROM tab1
----
-66
2
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT ALL + COUNT( * ) - - - COUNT( DISTINCT + col2 ) AS col1, - 43 FROM tab2 AS cor0
----
0
-43

skipif mysql # not compatible
query II rowsort label-2425
SELECT ALL + COUNT ( * ) - - - COUNT ( DISTINCT + col2 ) AS col1, - 43 FROM tab2 AS cor0
----
0
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT + - col1 DIV - col1 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2426
SELECT + - col1 / - col1 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - + COUNT( + - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - + COUNT ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT - CAST( NULL AS SIGNED ) / - col1 + + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT - CAST ( NULL AS INTEGER ) / - col1 + + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL + - 21 + col2 FROM tab2 AS cor0
----
19
2
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col0 * - col0 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL 25 * - col1 + + 26 + - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2432
SELECT ALL 25 * - col1 + + 26 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 61 * col2 * - 33 FROM tab0
----
-199287
-20130
-94611

query II rowsort
SELECT ALL + 98 AS col2, - col2 - + col1 * col0 FROM tab0
----
98
-1262
98
-1837
98
-196

query I rowsort
SELECT - ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - ( + + col1 ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL - MAX( - + 80 ) * - COUNT( * ) AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - MAX ( - + 80 ) * - COUNT ( * ) AS col1 FROM tab1
----
-240

query I rowsort
SELECT 54 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query II rowsort
SELECT ALL + + col1 AS col2, 33 - - col2 AS col2 FROM tab0 AS cor0 WHERE 85 * 72 / col2 * - col1 * + 21 IS NOT NULL
----
1
132
21
43
81
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 83 col2 FROM tab0 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - + 88 * - + 30 - COUNT( * ) FROM tab0 cor0
----
2637

skipif mysql # not compatible
query I rowsort label-2443
SELECT - + 88 * - + 30 - COUNT ( * ) FROM tab0 cor0
----
2637

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 93 + + - 30 IS NULL
----

query I rowsort
SELECT - - col2 / - col1 AS col0 FROM tab0 AS cor0 WHERE + 46 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT + - COUNT( * ) FROM tab1 WHERE + col2 * + - col0 BETWEEN NULL AND + + col2 * - col1 * - - col0 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT + - COUNT ( * ) FROM tab1 WHERE + col2 * + - col0 BETWEEN NULL AND + + col2 * - col1 * - - col0 + + col2
----
0

query I rowsort
SELECT + col1 + + col2 + - + col0 * - - col1 + - col1 AS col0 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + - 29 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT col0 * - 5 + 33 * - 32 - + col1 DIV + - 67 * + col0 AS col2 FROM tab1
----
-1311
-1481
-1511

skipif mysql # not compatible
query I rowsort label-2449
SELECT col0 * - 5 + 33 * - 32 - + col1 / + - 67 * + col0 AS col2 FROM tab1
----
-1311
-1481
-1511

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT - COUNT( * ) + 89 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - COUNT ( * ) + 89 FROM tab2
----
86

query I rowsort
SELECT + - 62 * + - col1 * + + 68 + + 28 AS col1 FROM tab1 AS cor0
----
198180
21108
59052

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 < - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 - - col0 AS col0 FROM tab1
----
101
107
67

query I rowsort
SELECT col1 - - 51 AS col2 FROM tab2
----
102
118
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT CAST( NULL AS SIGNED ) * - + 52 * - col0 - + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT CAST ( NULL AS INTEGER ) * - + 52 * - col0 - + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - 23 - + COUNT( * ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - 23 - + COUNT ( * ) FROM tab1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2458
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col2 <> + + 94 * - 69 * 7 + - 12
----

skipif mysql # not compatible
query III rowsort label-2458
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col2 <> + + 94 * - 69 * 7 + - 12
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2459
SELECT DISTINCT - 49 DIV - col1 - - col0 - col2, + col1 + - 56 AS col0 FROM tab0 cor0
----
-32
25
47
-55
79
-35

skipif mysql # not compatible
query II rowsort label-2459
SELECT DISTINCT - 49 / - col1 - - col0 - col2, + col1 + - 56 AS col0 FROM tab0 cor0
----
-32
25
47
-55
79
-35

query I rowsort
SELECT ALL + col1 - - + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT COUNT( * ) * 81 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT COUNT ( * ) * 81 FROM tab2 AS cor0
----
243

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 76 + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1, 0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2464
SELECT + + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 5 * 62 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT MAX( DISTINCT - ( - + col0 ) ) * - 67 + 42 FROM tab2 cor0
----
-4983

skipif mysql # not compatible
query I rowsort label-2466
SELECT MAX ( DISTINCT - ( - + col0 ) ) * - 67 + 42 FROM tab2 cor0
----
-4983

query I rowsort
SELECT - col1 * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT ALL - col0 DIV - ( 13 ) FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - col0 / - ( 13 ) FROM tab2
----
3
4
5

query I rowsort
SELECT + col2 + col0 AS col1 FROM tab2 WHERE NOT - + col2 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT + SUM( ALL - col2 ) col1 FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT DISTINCT + SUM ( ALL - col2 ) col1 FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - MAX( ALL col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2472
SELECT - MAX ( ALL col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT - ( COUNT( + - 25 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2473
SELECT - ( COUNT ( + - 25 ) ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - COUNT( DISTINCT - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT + col0 = 12
----
-3

skipif mysql # not compatible
query I rowsort label-2475
SELECT - COUNT ( DISTINCT - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT + col0 = 12
----
-3

query I rowsort
SELECT col0 * + + col1 - 1 AS col0 FROM tab0 AS cor0
----
1214
1826
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + MAX( + - 37 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2477
SELECT + MAX ( + - 37 ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + ( 37 ) AS col2 FROM tab0
----
37

query I rowsort
SELECT DISTINCT 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - 2, + col0 * + - col0 AS col0 FROM tab2 AS cor0
----
-2
-2116
-2
-4096
-2
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT - COUNT( * ) + + 91 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT - COUNT ( * ) + + 91 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT ( - 24 ) + - 82, col1 FROM tab1 AS cor0
----
-106
14
-106
47
-106
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT + col0 DIV - - 42 + - col2 AS col0 FROM tab0 AS cor0
----
-47
-8
-97

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + col0 / - - 42 + - col2 AS col0 FROM tab0 AS cor0
----
-47
-8
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT COUNT( * ), + 19 col1 FROM tab2 AS cor0
----
3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2485
SELECT COUNT ( * ), + 19 col1 FROM tab2 AS cor0
----
3
19

query I rowsort
SELECT ALL + ( + 39 ) AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL 95 + - 90 FROM tab0
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT ALL + - 53, SUM( DISTINCT 92 ) AS col1 FROM tab2 WHERE NOT 37 IS NULL
----
-53
92

skipif mysql # not compatible
query II rowsort label-2488
SELECT ALL + - 53, SUM ( DISTINCT 92 ) AS col1 FROM tab2 WHERE NOT 37 IS NULL
----
-53
92

query I rowsort
SELECT + - col0 FROM tab1 WHERE - 94 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 * col2 * + 70 - - col2 >= + col2 * - ( + - col0 ) * col1 + + col2 * + - col1 * + + col1
----

query I rowsort
SELECT DISTINCT 97 + - col2 FROM tab2 AS cor0
----
39
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - SUM( + col0 ) * 7 FROM tab2 AS cor0 WHERE + 36 IS NOT NULL AND ( NULL ) IS NULL
----
-1295

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - SUM ( + col0 ) * 7 FROM tab2 AS cor0 WHERE + 36 IS NOT NULL AND ( NULL ) IS NULL
----
-1295

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2493
SELECT + SUM( ALL - col0 ) + + 74 DIV 25, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-225
3

skipif mysql # not compatible
query II rowsort label-2493
SELECT + SUM ( ALL - col0 ) + + 74 / 25, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-225
3

query I rowsort
SELECT ALL 2 * + col2 + - + 77 AS col1 FROM tab2
----
-31
3
39

query I rowsort
SELECT DISTINCT - 57 - - - ( - 54 ) * + col0 * - col0 AS col2 FROM tab0
----
-12207
-408783
-508143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL col2 * - 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-2496
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2497
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 3 * + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL + - SUM( ALL - col1 ) * 74 col1, + 38 AS col0 FROM tab1 AS cor0
----
4884
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2499
SELECT ALL + - SUM ( ALL - col1 ) * 74 col1, + 38 AS col0 FROM tab1 AS cor0
----
4884
38

query I rowsort
SELECT + col1 * + + ( - + col2 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT DISTINCT + - col1 DIV - 4 AS col0 FROM tab0 AS cor0
----
0
20
5

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + - col1 / - 4 AS col0 FROM tab0 AS cor0
----
0
20
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + 22 * - - 14 + - + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT + 80 * - col1 AS col1 FROM tab1 WHERE NOT - + 83 IS NULL
----
-1120
-3760
-400

query II rowsort
SELECT DISTINCT 24, 70 + col0 AS col1 FROM tab2
----
24
116
24
134
24
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT 46 DIV - 7 AS col0 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2508
SELECT 46 / - 7 AS col0 FROM tab2
----
-6
-6
-6

query II rowsort
SELECT ALL ( + - col2 ) * ( col2 ) AS col0, ( 76 ) FROM tab2
----
-1600
76
-3364
76
-529
76

query I rowsort
SELECT DISTINCT + col2 * + col1 * - - 96 FROM tab1
----
129024
28320
306816

query II rowsort
SELECT ALL col0, + col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2512
SELECT ALL COUNT( * ) AS col2, 47 AS col2 FROM tab0
----
3
47

skipif mysql # not compatible
query II rowsort label-2512
SELECT ALL COUNT ( * ) AS col2, 47 AS col2 FROM tab0
----
3
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT CAST( - MIN( + 47 ) AS SIGNED ) AS col1 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2513
SELECT CAST ( - MIN ( + 47 ) AS INTEGER ) AS col1 FROM tab2
----
-47

query II rowsort
SELECT col1, col2 * - col0 + + col1 * - 48 FROM tab1
----
14
-5568
47
-8444
5
-5255

query II rowsort
SELECT col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT 69 FROM tab2 cor0 WHERE NOT ( + col2 / + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT COUNT( + - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( + - col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2 WHERE NOT + + 49 NOT BETWEEN NULL AND - col2 / - col2
----

query I rowsort
SELECT + col2 * + + 26 * + col1 AS col2 FROM tab1
----
34944
7670
83096

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT col0 - ( col2 ) * + col0 * - 63 AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col0 * - 21, 91, - ( + col0 ) * 20 - + + col0 / + + ( col0 ) )
----
161344
274125
66700

query I rowsort
SELECT + col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE + 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT DISTINCT + 69 + 79 DIV - col1 + + col1 FROM tab0 AS cor0
----
-9
150
87

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + 69 + 79 / - col1 + + col1 FROM tab0 AS cor0
----
-9
150
87

query I rowsort
SELECT + ( - 42 ) * + - 55 + + + col1 AS col2 FROM tab2 AS cor0
----
2361
2377
2387

query I rowsort
SELECT - - 79 + ( - col1 ) FROM tab1 AS cor0
----
32
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + + SUM( + 36 ) + - SUM( + 98 ) AS col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + + SUM ( + 36 ) + - SUM ( + 98 ) AS col2 FROM tab0 AS cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 54 col0 FROM tab2
----
-3
13
23

query I rowsort
SELECT DISTINCT col2 - + 6 FROM tab2
----
17
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT - 37 / ( - 89 ) * - CAST( NULL AS SIGNED ) + 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 37 / ( - 89 ) * - CAST ( NULL AS INTEGER ) + 85 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT - MIN( ALL col2 ) + + + COUNT( * ) * - + COUNT( * ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - MIN ( ALL col2 ) + + + COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT + 21 AS col0, - COUNT( * ) FROM tab2
----
21
-3

skipif mysql # not compatible
query II rowsort label-2531
SELECT + 21 AS col0, - COUNT ( * ) FROM tab2
----
21
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT * FROM tab0 WHERE - - col2 + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2532
SELECT * FROM tab0 WHERE - - col2 + + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab1 WHERE NULL > ( 98 ) + - - col1 / + col1 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + + col2 * 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col0, - col0 * col0 FROM tab2 AS cor0
----
-46
-2116
-64
-4096
-75
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + MIN( 80 ) FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + MIN ( 80 ) FROM tab1 cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 66 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 66 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * - - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT ALL - col0 * + col0 + col0 * - col2 DIV + col2 FROM tab2 AS cor0
----
-2162
-4160
-5700

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - col0 * + col0 + col0 * - col2 / + col2 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT DISTINCT - col2 + - - col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL 25 - MAX( ALL col0 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL 25 - MAX ( ALL col0 ) FROM tab1
----
-66

query I rowsort
SELECT ALL 5 AS col0 FROM tab0 WHERE - ( col2 ) IN ( - 6 * 38 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL - col1 DIV + col0 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - col1 / + col0 + - col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + 46 * col2 + col0 AS col1 FROM tab1
----
2799
3219
4467

query I rowsort
SELECT - col1 - + ( + col1 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + ( + col1 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / col0 + 2 / + col2 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT 69 - - col1 NOT BETWEEN col0 + col0 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT 69 - - col1 NOT BETWEEN col0 + col0 AND - col2
----
0

query I rowsort
SELECT ALL + ( - 48 ) AS col0 FROM tab0
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col1 BETWEEN col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 88 * col0 AS col1 FROM tab2 WHERE NOT col0 + 41 / 73 NOT BETWEEN ( NULL ) AND ( 69 )
----

query I rowsort
SELECT - col0 - 69 AS col1 FROM tab1
----
-120
-154
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT SUM( DISTINCT - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-2554
SELECT SUM ( DISTINCT - 53 ) FROM tab2
----
-53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 66 * - 97 IN ( + 14 / col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE 16 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2557
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) + - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2558
SELECT * FROM tab0 WHERE 37 + - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2558
SELECT * FROM tab0 WHERE 37 + - CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col2 + 50 * - 79 AS col0 FROM tab1
----
-4009
-4018
-4046

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT SUM( DISTINCT 89 ) - + 10 AS col1 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT SUM ( DISTINCT 89 ) - + 10 AS col1 FROM tab2
----
79

query I rowsort
SELECT ALL col2 * ( + ( ( 88 ) ) ) + + ( - 47 ) * 78 AS col1 FROM tab0
----
-2786
470
5046

query I rowsort
SELECT col0 + - 40 AS col1 FROM tab1
----
11
45
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT col2 * CAST( NULL AS SIGNED ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2563
SELECT col2 * CAST ( NULL AS INTEGER ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 FROM tab2 AS cor0 WHERE NOT + 13 * col1 - - col2 IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT 41 * COUNT( * ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2565
SELECT 41 * COUNT ( * ) FROM tab0 AS cor0
----
123

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + 84 / col1 NOT IN ( col0 * ( col0 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT + SUM( DISTINCT col1 ) * + 54 AS col1 FROM tab2
----
10530

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + SUM ( DISTINCT col1 ) * + 54 AS col1 FROM tab2
----
10530

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT SUM( + ( - col1 ) ) + COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT SUM ( + ( - col1 ) ) + COUNT ( * ) FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT + SUM( + col0 ) + MAX( 44 ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2569
SELECT + SUM ( + col0 ) + MAX ( 44 ) AS col2 FROM tab0
----
243

query I rowsort
SELECT 87 * - 79 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to ed0dced2045c1b26d10cc38224417ef0

query I rowsort
SELECT + - 95 AS col1 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT - - 70 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT - - 70 / - col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - col0 + + 14 FROM tab0 AS cor0
----
-1
-73
-83

query I rowsort
SELECT + - 64 AS col2 FROM tab0 cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + 12 + col0 FROM tab1 AS cor0
----
103
63
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 9 + 14 AS col2 FROM tab2 AS cor0
----
473
617
707

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT ALL + col2 - - + ( + 73 ) + col1 DIV - 29 FROM tab0
----
118
172
83

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + col2 - - + ( + 73 ) + col1 / - 29 FROM tab0
----
118
172
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 12 ) IS NOT NULL OR NULL > ( - col0 ) - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN + col0 / col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col2 + + - col1 AS col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 NOT BETWEEN 63 * + 86 AND NULL
----

query I rowsort
SELECT + 10 AS col0 FROM tab2 WHERE + ( 47 ) NOT BETWEEN 36 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT ALL 76 DIV + - 21 AS col1 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL 76 / + - 21 AS col1 FROM tab1
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - 21 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - COUNT( * ) + 79 + + 31 FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-2587
SELECT - COUNT ( * ) + 79 + + 31 FROM tab2
----
107

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + - 46 AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) = + 57 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( + 95 )
----

query I rowsort
SELECT - col2 * ( + 22 ) FROM tab0
----
-1034
-2178
-220

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * 5 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2594
SELECT + col0 AS col2, - col1 DIV 4 - - col0 col1 FROM tab0 cor0
----
15
-5
87
82
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2594
SELECT + col0 AS col2, - col1 / 4 - - col0 col1 FROM tab0 cor0
----
15
-5
87
82
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT ALL - CAST( - - ( + - ( COUNT( * ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - CAST ( - - ( + - ( COUNT ( * ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT + - 25 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
-25
59
-25
68
-25
96

query I rowsort
SELECT DISTINCT ( + + 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT col0 * + - ( 55 ) * col0 FROM tab0 cor0
----
-12375
-416295
-517495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0 WHERE NOT - 41 < ( + + col2 + 26 / + col0 )
----

skipif mysql # not compatible
query I rowsort label-2599
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0 WHERE NOT - 41 < ( + + col2 + 26 / + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + + col2 * - - col0 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * - + col1 col1 FROM tab2
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2602
SELECT DISTINCT * FROM tab0 WHERE NULL > ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2602
SELECT DISTINCT * FROM tab0 WHERE NULL > ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 28 * col0 * + - 22 AS col1 FROM tab0
----
-53592
-59752
-9240

query I rowsort
SELECT + 76 * - col2 AS col1 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT - COUNT( - ( + + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2605
SELECT - COUNT ( - ( + + col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT - col2 * - 1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL + ( CAST( - + 74 AS SIGNED ) ) FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + ( CAST ( - + 74 AS INTEGER ) ) FROM tab2
----
-74
-74
-74

query I rowsort
SELECT + col1 * + - col0 + 7 AS col0 FROM tab0
----
-1208
-1820
-90

query I rowsort
SELECT ALL col2 * 36 * + col1 AS col2 FROM tab0
----
137052
3564
7560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * 12 + 89 col1 FROM tab1
----
1229
1229
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT - MAX( 42 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - MAX ( 42 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
30

query I rowsort
SELECT ALL - 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL AND NOT col2 < + - col1 * 41
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + 27 + + + 23 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + MAX( - 20 ) + 39 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2616
SELECT + MAX ( - 20 ) + 39 FROM tab1 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2617
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) <= ( + CAST( - + ( col1 ) AS SIGNED ) + col0 )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-2617
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) <= ( + CAST ( - + ( col1 ) AS INTEGER ) + col0 )
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL COUNT( * ) - + + 97 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL COUNT ( * ) - + + 97 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT 45 + - - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2619
SELECT 45 + - - COUNT ( * ) FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2620
SELECT ALL CAST( col0 AS SIGNED ) DIV - col1 - - 56 FROM tab0
----
-41
52
56

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL CAST ( col0 AS INTEGER ) / - col1 - - 56 FROM tab0
----
-41
52
56

query II rowsort
SELECT col1, 90 FROM tab0
----
1
90
21
90
81
90

query III rowsort
SELECT * FROM tab2 WHERE ( ( col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT + 65 * + MAX( ALL + col2 * col1 ) AS col1 FROM tab0 WHERE ( NOT - col2 BETWEEN ( + 57 / 60 + col0 ) AND NULL )
----
247455

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + 65 * + MAX ( ALL + col2 * col1 ) AS col1 FROM tab0 WHERE ( NOT - col2 BETWEEN ( + 57 / 60 + col0 ) AND NULL )
----
247455

query II rowsort
SELECT DISTINCT 99 AS col0, + col0 * - 45 FROM tab2
----
99
-2070
99
-2880
99
-3375

query III rowsort
SELECT * FROM tab2 WHERE + 36 * + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT + + col1 DIV - + 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT + + col1 / - + 92 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - col0 * + col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab0 WHERE ( + - ( - col2 ) * + col2 - - 91 + - col2 ) = col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( - 6 * col1 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 99 * - - 61 * + col1 * - col0 ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL CAST( - col0 AS SIGNED ) + + 67 + + + 52 * + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL CAST ( - col0 AS INTEGER ) + + 67 + + + 52 * + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2633
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT DISTINCT + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 98 FROM tab1 cor0
----
98
98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2635
SELECT ALL - 77 FROM tab2 AS cor0 WHERE - 66 + - 6 - + col0 * + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - 77 FROM tab2 AS cor0 WHERE - 66 + - 6 - + col0 * + + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL - 1 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - 1 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT COUNT( * ) * + 34 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT COUNT ( * ) * + 34 FROM tab1 AS cor0
----
102

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT COUNT( * ) * 67 col1 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2640
SELECT DISTINCT COUNT ( * ) * 67 col1 FROM tab2
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + 22 * col0 FROM tab1 AS cor0
----
1122
1870
2002

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT - 6 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - 6 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT col0 + - + col1 * 46 AS col0 FROM tab0
----
-3711
-879
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col0 FROM tab2
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 88 col0 FROM tab1 cor0
----
-5192
-5984
-8448

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT + 72 DIV col1 * + col2 FROM tab1 AS cor0
----
480
68
826

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 72 / col1 * + col2 FROM tab1 AS cor0
----
480
68
826

query I rowsort
SELECT + - col1 * col1 - col2 - + col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE col1 / 84 * + - 73 BETWEEN NULL AND - col1 / - 18
----

query I rowsort
SELECT + + col1 * + ( + + col1 ) AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2654
SELECT DISTINCT - MIN( DISTINCT + col2 ) + ( - SUM( col0 ) ) * ( + + 18 ), CAST( - - COUNT( * ) AS SIGNED ) * ( 68 DIV - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-4145
-66

skipif mysql # not compatible
query II rowsort label-2654
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + ( - SUM ( col0 ) ) * ( + + 18 ), CAST ( - - COUNT ( * ) AS INTEGER ) * ( 68 / - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-4145
-66

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col0 >= 32 - + 43 + + col0 + - col2 * - col0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 / + col2 * + col2 + + 4 AS col1 FROM tab2 cor0 WHERE - col0 IN ( col2, - col1 )
----

query I rowsort
SELECT + + 42 - + col2 AS col0 FROM tab0 AS cor0
----
-5
-57
32

query I rowsort
SELECT col0 * ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + col1 * + 88 * - 39 FROM tab0
----
-277945
-3333
-72062

query I rowsort
SELECT DISTINCT - 2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 98 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( + 98 ) FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - col1 ) FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + ( 10 ) AS col0 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT + - col2 + 90 + - col2 AS col2 FROM tab0 AS cor0
----
-108
-4
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MIN( DISTINCT + 24 ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2668
SELECT MIN ( DISTINCT + 24 ) AS col0 FROM tab2
----
24

query I rowsort
SELECT col2 + + 65 + + + col1 FROM tab1
----
129
175
180

query II rowsort
SELECT 28 + - col0 AS col1, 52 AS col0 FROM tab0
----
-59
52
-69
52
13
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL ( + SUM( - - ( col0 ) ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL ( + SUM ( - - ( col0 ) ) ) AS col1 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 14 * - 54 + - 45 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + col0 ) AS col2, + col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL + 40 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2 cor0
----
-55

query I rowsort
SELECT ( + + 5 ) FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + MAX( DISTINCT - - col0 ) + - + 53 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + MAX ( DISTINCT - - col0 ) + - + 53 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL < + - col2
----

query I rowsort
SELECT ALL 94 * col0 AS col2 FROM tab2
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL BETWEEN col0 + - col1 AND 59 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN col0 + - col1 AND 59 * - col2
----
0

query I rowsort
SELECT DISTINCT - col2 * + + col0 * - col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT col0 * - + 80 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT + col2 * - col2 FROM tab1 WHERE NOT - - 97 <> + col1 * - col1
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) * 71 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT + 71 * col2 DIV 17 AS col1 FROM tab0 cor0
----
196
41
413

skipif mysql # not compatible
query I rowsort label-2686
SELECT + 71 * col2 / 17 AS col1 FROM tab0 cor0
----
196
41
413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT + 84 * + - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1176
-3948
-420

skipif mysql # not compatible
query I rowsort label-2687
SELECT + 84 * + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1176
-3948
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + 8 col1 FROM tab1
----
640
640
640

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT DISTINCT - ( COUNT( * ) ) * - 43 AS col1, 69 AS col0 FROM tab0
----
129
69

skipif mysql # not compatible
query II rowsort label-2689
SELECT DISTINCT - ( COUNT ( * ) ) * - 43 AS col1, 69 AS col0 FROM tab0
----
129
69

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT + 53 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - COUNT( * ) + 69 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - COUNT ( * ) + 69 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT + - COUNT( * ) DIV MAX( - col1 ) * + - SUM( DISTINCT + - col2 ) + - 59 AS col1 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + - COUNT ( * ) / MAX ( - col1 ) * + - SUM ( DISTINCT + - col2 ) + - 59 AS col1 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT 38 * - - COUNT( * ) * 10 + + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
1231

skipif mysql # not compatible
query I rowsort label-2694
SELECT 38 * - - COUNT ( * ) * 10 + + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
1231

query I rowsort
SELECT - ( ( - 39 ) ) * col2 * + col1 FROM tab0 AS cor0
----
148473
3861
8190

query II rowsort
SELECT DISTINCT - col2, + col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT ALL 22, + col1 FROM tab2
----
22
51
22
67
22
77

query III rowsort
SELECT * FROM tab1 WHERE - 21 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * col2 * + - col2 * - 60 FROM tab2 WHERE 16 <= + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT DISTINCT - COUNT( * ) AS col1, + 2 AS col0 FROM tab2
----
-3
2

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT - COUNT ( * ) AS col1, + 2 AS col0 FROM tab2
----
-3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2703
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0 * - - col1, CAST( NULL AS SIGNED ) / - col2, - 53 )
----

skipif mysql # not compatible
query III rowsort label-2703
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0 * - - col1, CAST ( NULL AS INTEGER ) / - col2, - 53 )
----

query I rowsort
SELECT - 12 * + 12 - + + 58 AS col2 FROM tab1 AS cor0
----
-202
-202
-202

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT 48 - + 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2706
SELECT - - 88 * + - col0 AS col0, col0 DIV - col1 FROM tab0 AS cor0
----
-1320
0
-7656
-4
-8536
-97

skipif mysql # not compatible
query II rowsort label-2706
SELECT - - 88 * + - col0 AS col0, col0 / - col1 FROM tab0 AS cor0
----
-1320
0
-7656
-4
-8536
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col2 ) <= col0
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2708
SELECT + + col1 AS col1, - col2 + + 72 + - - 2 + col0 + + 69 + col0 DIV col2 AS col1 FROM tab1 WHERE NOT + col2 < - 35 * + col1
----
14
98
47
167
5
170

skipif mysql # not compatible
query II rowsort label-2708
SELECT + + col1 AS col1, - col2 + + 72 + - - 2 + col0 + + 69 + col0 / col2 AS col1 FROM tab1 WHERE NOT + col2 < - 35 * + col1
----
14
98
47
167
5
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COUNT( col2 ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( col2 ) * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT MAX( - 41 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2711
SELECT MAX ( - 41 ) FROM tab0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT DISTINCT - + CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col1 * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT + 48 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + 48 / col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT ALL + col1 * + + 55 + - + col2 + + col2 DIV - + ( 35 ) FROM tab1 AS cor0
----
215
2516
672

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + col1 * + + 55 + - + col2 + + col2 / - + ( 35 ) FROM tab1 AS cor0
----
215
2516
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + 73 col2, + 27 FROM tab0 cor0
----
154
27
74
27
94
27

query I rowsort
SELECT ALL col1 * - col1 - + 9 + - 14 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-2624
-4512
-5952

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) * - col0 + + col1 + + col0 FROM tab2
----
-2198
-4710
-4816

query I rowsort
SELECT ALL + ( col2 ) * col0 + 68 FROM tab1
----
4964
5083
6256

query I rowsort
SELECT 79 + + - col0 AS col1 FROM tab1
----
-12
-6
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT ( - COUNT( * ) ) * 29 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT ( - COUNT ( * ) ) * 29 AS col0 FROM tab0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL + col0 DIV + 95 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2722
SELECT ALL + col0 / + 95 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 5 + - + col0 FROM tab0
----
-10
-82
-92

query I rowsort
SELECT ( - col0 ) * - - col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = + + col1
----
0

query I rowsort
SELECT + 61 - col1 AS col1 FROM tab1
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT - + COUNT( * ) * - 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
756

skipif mysql # not compatible
query I rowsort label-2727
SELECT - + COUNT ( * ) * - 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
756

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - col0 + + col2 DIV 69 * - - col0 * + + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2728
SELECT - col0 + + col2 / 69 * - - col0 * + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT DISTINCT - - col1 * - - col1 + - 49 * col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < col1 + + 98
----

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT - - col1 * - - col1 + - 49 * col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < col1 + + 98
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT ALL 61 AS col2, SUM( - col1 ) * SUM( + col1 ) FROM tab0 AS cor0
----
61
-10609

skipif mysql # not compatible
query II rowsort label-2730
SELECT ALL 61 AS col2, SUM ( - col1 ) * SUM ( + col1 ) FROM tab0 AS cor0
----
61
-10609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT - - COUNT( * ) DIV + MIN( - + 10 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT - - COUNT ( * ) / + MIN ( - + 10 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col2 * - col0 * 20 + + - 11 * 64, col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT 46 + - - 21 + col1 + - col2 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT - col0 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT - col0 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 <= + - col2 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2736
SELECT * FROM tab2 WHERE NOT col0 + + col2 + + ( col0 ) + CAST( NULL AS SIGNED ) + - col2 + col0 * + - col2 * 27 BETWEEN + + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2736
SELECT * FROM tab2 WHERE NOT col0 + + col2 + + ( col0 ) + CAST ( NULL AS INTEGER ) + - col2 + col0 * + - col2 * 27 BETWEEN + + col1 AND ( NULL )
----

query I rowsort
SELECT - 1 * + 22 AS col1 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col0 * + 3 FROM tab0
----
261
291
45

query I rowsort
SELECT col1 * - - col0 * + col0 AS col2 FROM tab1
----
36125
36414
389207

query III rowsort
SELECT ALL * FROM tab2 WHERE + 13 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col2 NOT IN ( + - col0 + + 21, - col2, col1 )
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 27 NOT BETWEEN col2 - - col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 * 37 AS col1 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT - ( + 62 ) col1, + COUNT( - col2 ) FROM tab0 AS cor0
----
-62
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2744
SELECT - ( + 62 ) col1, + COUNT ( - col2 ) FROM tab0 AS cor0
----
-62
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2746
SELECT SUM ( + col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL - 69 * col1 + 16 AS col0, col1 AS col2 FROM tab1
----
-3227
47
-329
5
-950
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2748
SELECT + CAST( NULL AS SIGNED ), MIN( + 8 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2748
SELECT + CAST ( NULL AS INTEGER ), MIN ( + 8 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
8

query I rowsort
SELECT DISTINCT - - 1 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2750
SELECT + - col1 DIV + + col0 + col0 DIV + col0 AS col2, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-2750
SELECT + - col1 / + + col0 + col0 / + col0 AS col2, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT + 81 DIV + 75 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2751
SELECT + 81 / + 75 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2752
SELECT 35 col0, col2 DIV - 63 col2 FROM tab0 cor0
----
35
-1
35
0
35
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2752
SELECT 35 col0, col2 / - 63 col2 FROM tab0 cor0
----
35
-1
35
0
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 61 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 61 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - COUNT( * ) - + - 29 AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - COUNT ( * ) - + - 29 AS col0 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT 34 * - 12 + - COUNT( * ) FROM tab1
----
-411

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT 34 * - 12 + - COUNT ( * ) FROM tab1
----
-411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + 59 - col2 col0 FROM tab2
----
3718
3736
3753

query II rowsort
SELECT col1 + col1 AS col0, - col1 AS col0 FROM tab0
----
162
-81
2
-1
42
-21

query II rowsort
SELECT + 27 + - - col0 AS col2, - col2 * - 92 AS col2 FROM tab2 AS cor0
----
102
5336
73
2116
91
3680

query I rowsort
SELECT - col2 + 10 * col2 FROM tab0 AS cor0
----
423
891
90

query I rowsort
SELECT + col2 + ( - 66 ) AS col2 FROM tab1 cor0
----
-7
2
30

query I rowsort
SELECT 50 * + col0 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + COUNT( + + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2763
SELECT + COUNT ( + + col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) >= col0
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) >= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + + MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2765
SELECT + + MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - - MIN( + 24 ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2766
SELECT - - MIN ( + 24 ) AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL 4 * col0 FROM tab2 AS cor0 WHERE NOT ( + col1 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 * + 63 * 84 * - 22 - - 16 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND + col0 / - col2 / + ( + 0 )
----

query II rowsort
SELECT DISTINCT + col0 AS col1, ( + col1 ) AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL SUM( + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL SUM ( + col1 ) AS col2 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col0 col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT + col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT + 35 AS col0, + COUNT( * ) * - 43 AS col2 FROM tab1
----
35
-129

skipif mysql # not compatible
query II rowsort label-2774
SELECT + 35 AS col0, + COUNT ( * ) * - 43 AS col2 FROM tab1
----
35
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT + col1 DIV + 88 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT + col1 / + 88 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - COUNT( DISTINCT - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2777
SELECT - COUNT ( DISTINCT - col1 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 + col2 col0 FROM tab2
----
12
29
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2779
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 40 * + - col1 + - CAST( NULL AS SIGNED ) * + col2 * + col2 + - col0 + + col1 - - col0 * - col0 * + - col0 + + - col0
----

skipif mysql # not compatible
query III rowsort label-2779
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 40 * + - col1 + - CAST ( NULL AS INTEGER ) * + col2 * + col2 + - col0 + + col1 - - col0 * - col0 * + - col0 + + - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT + - 50 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT - 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query II rowsort
SELECT + col0 + - col1 AS col2, + col2 - col0 AS col0 FROM tab2 AS cor0
----
-13
-24
-5
-23
8
-17

query I rowsort
SELECT DISTINCT + + 32 FROM tab0 AS cor0 WHERE - col0 + 11 + - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 79 * - - ( + - col2 ) FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT + 60 + col1 AS col0 FROM tab2 AS cor0
----
111
127
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT - 64 + + + ( - - CAST( - CAST( + 50 AS SIGNED ) AS SIGNED ) ) col2 FROM tab0 AS cor0
----
-114
-114
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT - 64 + + + ( - - CAST ( - CAST ( + 50 AS INTEGER ) AS INTEGER ) ) col2 FROM tab0 AS cor0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT 31 + - col1 - col0 AS col1 FROM tab2 AS cor0
----
-110
-111
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - MAX( ALL + 31 ) FROM tab2 WHERE NULL BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT - MAX ( ALL + 31 ) FROM tab2 WHERE NULL BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT col2 * - - col1 + 45 FROM tab2
----
1218
3125
3931

query I rowsort
SELECT + + 69 AS col1 FROM tab1 WHERE - 65 * - 65 IS NOT NULL
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2792
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CAST( - + MIN( ( + + 49 ) ) AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CAST ( - + MIN ( ( + + 49 ) ) AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + + col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * col2 + - - col2 = + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT + 48 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-2256
-4752
-480

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 48 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-2256
-4752
-480

query I rowsort
SELECT + col1 * - 79 AS col0 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT DISTINCT - 49 - + col0 FROM tab1
----
-100
-134
-140

query I rowsort
SELECT ALL + 16 * - - col1 FROM tab0
----
1296
16
336

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + 73 * - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col1, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL CAST( NULL AS SIGNED ) / + + 23 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-2801
SELECT ALL CAST ( NULL AS INTEGER ) / + + 23 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2802
SELECT DISTINCT + col0 DIV col1 * - col2, col1 FROM tab2 AS cor0
----
-58
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-2802
SELECT DISTINCT + col0 / col1 * - col2, col1 FROM tab2 AS cor0
----
-58
67
0
51
0
77

query I rowsort
SELECT + ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - - 81 * - 3 + col2 FROM tab2 AS cor0
----
-185
-203
-220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2805
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2805
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + CAST ( - - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE 18 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 25 - - col0 + - + col2 + - + 17 FROM tab1
----
59
-16
68
-19
96
-87

query I rowsort
SELECT ALL - - 68 AS col2 FROM tab0 WHERE - - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2, 16 AS col2 FROM tab0
----
10
16
47
16
99
16

query I rowsort
SELECT DISTINCT + 11 * - col1 FROM tab2 AS cor0
----
-561
-737
-847

query II rowsort
SELECT col0 * - col0, + col1 AS col1 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

query I rowsort
SELECT DISTINCT 9 + + + col0 + + col0 * + + 40 FROM tab1 AS cor0
----
2100
3494
3740

query II rowsort
SELECT ALL - 22 * + - col1, ( col1 ) FROM tab1 AS cor0
----
1034
47
110
5
308
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 col2 FROM tab1 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 3 * - - col2 + + + 26 col2 FROM tab2 AS cor0
----
-148
-43
-94

query I rowsort
SELECT + col1 * - - col2 + + 78 - + 95 FROM tab1 AS cor0 WHERE - col2 + + + 69 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 76 = + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + COUNT( * ) + + COUNT( * ) FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( + col2 ) - col0 - - - ( 99 ) FROM tab0
----
-176
-67
-97

query I rowsort
SELECT DISTINCT col2 * col1 - col0 AS col0 FROM tab0
----
123
2
3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT + MIN( DISTINCT + + CAST( + 41 AS SIGNED ) ) + + - 28 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + MIN ( DISTINCT + + CAST ( + 41 AS INTEGER ) ) + + - 28 FROM tab0
----
13

query III rowsort
SELECT ALL * FROM tab0 WHERE - 14 * - col2 + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT ALL 27 * - + 8, + COUNT( * ) AS col0 FROM tab2
----
-216
3

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL 27 * - + 8, + COUNT ( * ) AS col0 FROM tab2
----
-216
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT 66 - + ( + COUNT( * ) ) col1 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT DISTINCT 66 - + ( + COUNT ( * ) ) col1 FROM tab2
----
63

query I rowsort
SELECT DISTINCT 98 - + + 30 FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 98 * + 99 FROM tab1
----
9702
9702
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT + CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT + CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT 62 / + 66 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL - SUM( ALL - + 45 ) AS col2 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - SUM ( ALL - + 45 ) AS col2 FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL - + MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - + MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + ( - - ( col2 ) ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - col2 * + - col1 AS col2 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE - - 15 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - 86 * - COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - 86 * - COUNT ( * ) FROM tab1
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 53 + 96 FROM tab2 AS cor0
----
149
149
149

query I rowsort
SELECT ALL - 14 - + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2a7372b2a5340e0ece267daab1d14255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2839
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - 94 + - + 87 * col0 AS col1 FROM tab1 AS cor0
----
-4343
-7301
-7823

query I rowsort
SELECT col2 / + 44 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL + 31 + - SUM( ALL - 46 ) + - CAST( NULL AS SIGNED ) * 83 + 51 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + 31 + - SUM ( ALL - 46 ) + - CAST ( NULL AS INTEGER ) * 83 + 51 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - 79 ) * col1 + + + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
-1041
-305
-3575

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + + col1 * + + CAST( + col0 AS SIGNED ) + - 26 + + 16 - - 66 AS col1 FROM tab1 AS cor0
----
4333
481
770

skipif mysql # not compatible
query I rowsort label-2845
SELECT + + col1 * + + CAST ( + col0 AS INTEGER ) + - 26 + + 16 - - 66 AS col1 FROM tab1 AS cor0
----
4333
481
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL - COUNT( DISTINCT - col1 ) - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - COUNT ( DISTINCT - col1 ) - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - col1 + + - ( col1 ) FROM tab2
----
-102
-134
-154

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col2 + - + col1
----

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab1
----
53

query II rowsort
SELECT DISTINCT + col2 AS col0, + 40 FROM tab0
----
10
40
47
40
99
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT + + 23 + + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
14

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + + 23 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
14

query I rowsort
SELECT + 46 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - + col0 + - 1 + - - col1 - - col1 * - 10 * - col1 AS col1 FROM tab0 AS cor0
----
-87
4343
65675

query I rowsort
SELECT ALL - col0 * 35 + + 9 AS col2 FROM tab1 AS cor0
----
-1776
-2966
-3176

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 82 + + col1 FROM tab1 AS cor0
----
129
87
96

query II rowsort
SELECT + col0 * - 69, col1 FROM tab0 AS cor0
----
-1035
81
-6003
21
-6693
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2858
SELECT ALL + - ( + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * - ( + COUNT( * ) ), MAX( DISTINCT - col1 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-2858
SELECT ALL + - ( + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * - ( + COUNT ( * ) ), MAX ( DISTINCT - col1 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT 0 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT 0 * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT - 67 * - + COUNT( * ) AS col0, - 55 * - ( 0 ) AS col1 FROM tab0 AS cor0
----
201
0

skipif mysql # not compatible
query II rowsort label-2860
SELECT - 67 * - + COUNT ( * ) AS col0, - 55 * - ( 0 ) AS col1 FROM tab0 AS cor0
----
201
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - MIN( ALL 42 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2861
SELECT - MIN ( ALL 42 ) AS col0 FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL + 47 * + COUNT( * ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + 47 * + COUNT ( * ) AS col2 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 14 * + - col2 AS col0 FROM tab0
----
1386
140
658

query I rowsort
SELECT DISTINCT 2 * - 13 * 38 * - + col0 FROM tab0
----
14820
85956
95836

query I rowsort
SELECT DISTINCT col1 + - 38 + + - col1 + + 3 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - - 58 + + - ( - MAX( ALL - + col0 ) ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2866
SELECT - - 58 + + - ( - MAX ( ALL - + col0 ) ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( - + 42 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( - + 42 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT col0 col0 FROM tab2 WHERE col1 / col0 + - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2869
SELECT col0 col0 FROM tab2 WHERE col1 / col0 + - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL + MAX( col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + MAX ( col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2871
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + 36 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 - + + col0 * + + 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + - SUM( DISTINCT - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-2875
SELECT + - SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT - col2 * col2 - - col0 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT + COUNT( * ) - - 26 + + COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2877
SELECT + COUNT ( * ) - - 26 + + COUNT ( * ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL MIN( + - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col1 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT col2 * 45 FROM tab1
----
2655
3060
4320

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < - col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT COUNT( * ) * - - MIN( col2 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2885
SELECT COUNT ( * ) * - - MIN ( col2 ) AS col0 FROM tab1
----
177

query I rowsort
SELECT ALL - col0 + - 46 + + col0 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col0 ) col0, 1 FROM tab1 AS cor0
----
51
1
85
1
91
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2888
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col0 DIV + - col1 AS col0 FROM tab0 cor0
----
NULL
0
NULL
4
NULL
97

skipif mysql # not compatible
query II rowsort label-2888
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col0 / + - col1 AS col0 FROM tab0 cor0
----
NULL
0
NULL
4
NULL
97

query I rowsort
SELECT DISTINCT 54 + col1 FROM tab2 AS cor0
----
105
121
131

query I rowsort
SELECT col0 + + + col0 AS col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2891
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= NULL AND ( - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-2891
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= NULL AND ( - CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + col1 + col0 DIV col0 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2892
SELECT + col1 + col0 / col0 AS col0 FROM tab2
----
52
68
78

query I rowsort
SELECT ALL - 86 + - 78 FROM tab0
----
-164
-164
-164

query III rowsort
SELECT * FROM tab0 WHERE + col0 < - 43
----

query II rowsort
SELECT col2 + - 63 * + col0 AS col1, - col1 AS col0 FROM tab2
----
-2875
-51
-3992
-77
-4667
-67

query I rowsort
SELECT - 10 + - col2 * + col0 AS col0 FROM tab0
----
-715
-880
-9613

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT COUNT( * ) + + COUNT( * ) * - MIN( ALL + 4 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2897
SELECT COUNT ( * ) + + COUNT ( * ) * - MIN ( ALL + 4 ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 70 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - + 24 AS col2 FROM tab0
----
-14
23
75

query I rowsort
SELECT ALL - + col2 - - + col2 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT 51, - col0 + - col0 AS col0 FROM tab2 cor0
----
51
-128
51
-150
51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL - COUNT( * ) + 50 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col1
----
50

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - COUNT ( * ) + 50 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT - COUNT( * ) * + 88 AS col0 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT - COUNT ( * ) * + 88 AS col0 FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2906
SELECT COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 58 * + - col0 col1 FROM tab1
----
150858
419050
480298

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL + COUNT( DISTINCT 14 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT ALL + COUNT ( DISTINCT 14 ) col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + MAX( DISTINCT + - 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2909
SELECT + MAX ( DISTINCT + - 82 ) FROM tab1
----
-82

query I rowsort
SELECT DISTINCT - ( - 47 ) FROM tab0
----
47

query I rowsort
SELECT - - 1 * + ( - + 61 ) FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - - MIN( + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2912
SELECT - - MIN ( + col0 ) FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
NULL

query I rowsort
SELECT - + 77 * + 0 * - - 65 * - - 75 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * col1 * - 80 FROM tab0 AS cor0
----
146160
7760
97200

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 34 / - 45 * + col1 IS NULL
----
51
85
91

query I rowsort
SELECT + + col0 * + col1 + 42 FROM tab0 AS cor0
----
1257
139
1869

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT CAST( NULL AS SIGNED ) + + + col0 + 81 * - 29 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-2919
SELECT CAST ( NULL AS INTEGER ) + + + col0 + 81 * - 29 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 72 + + - col1 FROM tab1 AS cor0
----
-119
-77
-86

query I rowsort
SELECT DISTINCT - col0 + + 45 * 18 FROM tab0 AS cor0
----
713
723
795

query I rowsort
SELECT ALL - + 25 + + + col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + MIN( DISTINCT 64 ) AS col0 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2923
SELECT + MIN ( DISTINCT 64 ) AS col0 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL + col0 + - 56 AS col0 FROM tab1 AS cor0
----
-5
29
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - + col1 NOT IN ( - + col2 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + + 57 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 43 * - 40 - - ( - col2 ) * - - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 - col2 AS col1, 1 + 23 * - col1 AS col2 FROM tab2
----
0
-1172
0
-1540
0
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + MAX( DISTINCT - col2 ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT ALL + MAX ( DISTINCT - col2 ) col1 FROM tab0
----
-10

query I rowsort
SELECT - + col0 + col2 * - col0 FROM tab0 AS cor0
----
-720
-957
-9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 + + + ( - - col2 ) * + 69 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT - ( col2 ) + - col1 * col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT - ( col2 ) + - col1 * col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - - 41 ) * col0 FROM tab2 AS cor0
----
1886
2624
3075

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 19 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + 29 col0 FROM tab0 AS cor0
----
-58
-68
14

query I rowsort
SELECT ALL 94 + + ( - 94 ) + - 3 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT col1 * col1 * col2 AS col1 FROM tab0
----
308367
4410
99

query II rowsort
SELECT ALL - 18 * col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-1206
67
-1386
77
-918
51

query I rowsort
SELECT + col0 * - - col2 - - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT ALL - + ( + + 81 ) FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + 44 * - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-2024
-2816
-3300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL + 55 / + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + 55 / + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT MAX( + - col1 ), - 26 * 81 AS col1 FROM tab0 cor0
----
-1
-2106

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT MAX ( + - col1 ), - 26 * 81 AS col1 FROM tab0 cor0
----
-1
-2106

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) NOT IN ( - 50 / col0, 56, + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT - col2 * - - CAST( - 27 AS SIGNED ) AS col2 FROM tab2
----
1080
1566
621

skipif mysql # not compatible
query I rowsort label-2947
SELECT - col2 * - - CAST ( - 27 AS INTEGER ) AS col2 FROM tab2
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + SUM( + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + SUM ( + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - ( - COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2949
SELECT ALL - ( - COUNT ( * ) ) col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 74 - + col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT + COUNT( ALL + col1 ) AS col2 FROM tab1 WHERE col2 IN ( + ( - col1 ) * - 43 + - CAST( + col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col2 FROM tab1 WHERE col2 IN ( + ( - col1 ) * - 43 + - CAST ( + col2 AS INTEGER ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * 17 col0 FROM tab1
----
34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + 41 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( col0 + 86 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( col0 + 86 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 + 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query III rowsort label-2959
SELECT ALL * FROM tab1 WHERE NOT + ( + 16 ) DIV col1 BETWEEN NULL AND - col1 + col1
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-2959
SELECT ALL * FROM tab1 WHERE NOT + ( + 16 ) / col1 BETWEEN NULL AND - col1 + col1
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2960
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( col1 / - CAST( NULL AS DECIMAL ) ) AND ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-2960
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( col1 / - CAST ( NULL AS REAL ) ) AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 22 + COUNT( * ) AS col0 FROM tab2 WHERE col1 < ( + 37 )
----
22

skipif mysql # not compatible
query I rowsort label-2961
SELECT 22 + COUNT ( * ) AS col0 FROM tab2 WHERE col1 < ( + 37 )
----
22

query I rowsort
SELECT ( - col1 ) * 58 FROM tab1
----
-2726
-290
-812

query I rowsort
SELECT ( 13 ) * col1 FROM tab2
----
1001
663
871

query I rowsort
SELECT col1 * - 53 FROM tab1
----
-2491
-265
-742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * col1 col1 FROM tab1
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT 84 + COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT 84 + COUNT ( * ) AS col1 FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT + 74 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT + 74 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT - 13 + + CAST( NULL AS SIGNED ) * 52 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT - 13 + + CAST ( NULL AS INTEGER ) * 52 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 30 * 48 FROM tab0
----
1440
1440
1440

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + MIN( DISTINCT col1 ) * COUNT( * ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-2971
SELECT + MIN ( DISTINCT col1 ) * COUNT ( * ) AS col2 FROM tab2
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + 58 col0 FROM tab0
----
754
754
754

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT + MIN( col1 ) * MAX( + col0 ) AS col1 FROM tab1
----
455

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + MIN ( col1 ) * MAX ( + col0 ) AS col1 FROM tab1
----
455

query I rowsort
SELECT ( - col1 ) * col2 AS col1 FROM tab0 WHERE + col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL <> ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( + 77 )
----
0

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT - 47 * 69 FROM tab1 WHERE NOT ( col0 ) NOT IN ( CAST( + 0 AS SIGNED ) / - col0 )
----

skipif mysql # not compatible
query I rowsort label-2977
SELECT - 47 * 69 FROM tab1 WHERE NOT ( col0 ) NOT IN ( CAST ( + 0 AS INTEGER ) / - col0 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( 91 + + col2 ) IN ( col2 )
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( col2 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT COUNT( * ) - + 9 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT COUNT ( * ) - + 9 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

query I rowsort
SELECT col0 + - 98 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
-1
-11
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2982
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 74 ) * col2 col2 FROM tab0
----
3478
7326
740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( col1 * 99 ) col2 FROM tab1 WHERE 72 * + col1 IS NULL
----

query I rowsort
SELECT col0 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 45 BETWEEN + col0 AND ( + col1 )
----
-1827
-97

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * col1 )
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT ALL - - 14 DIV + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - - 14 / + COUNT ( * ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( 27 ) AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT ALL + COUNT( * ) * SUM( - 37 DIV - col1 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + COUNT ( * ) * SUM ( - 37 / - col1 ) AS col1 FROM tab1 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 35 col2 FROM tab1 AS cor0
----
-1785
-2975
-3185

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2996
SELECT + + col1 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab1 WHERE NOT ( NULL ) IN ( + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2998
SELECT + CAST( + 85 AS SIGNED ) DIV col1 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT + CAST ( + 85 AS INTEGER ) / col1 col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) = col2 OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NULL ) < - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + 55 * COUNT( * ) * 11 AS col0 FROM tab0
----
1815

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 55 * COUNT ( * ) * 11 AS col0 FROM tab0
----
1815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT CAST( NULL AS SIGNED ) * 35 / + 59 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 35 / + 59 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 21 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col1 + - 91 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + COUNT( * ) + 30 * - 64 FROM tab0
----
-1917

skipif mysql # not compatible
query I rowsort label-3005
SELECT + COUNT ( * ) + 30 * - 64 FROM tab0
----
-1917

query I rowsort
SELECT DISTINCT col1 + + - 85 FROM tab1 AS cor0
----
-38
-71
-80

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + col2 col2 FROM tab0 AS cor0
----
131
42
79

query I rowsort
SELECT + - ( + - col2 ) * - 16 AS col0 FROM tab1 cor0
----
-1088
-1536
-944

query I rowsort
SELECT + col2 * - col1 + - 61 FROM tab1 AS cor0
----
-1405
-3257
-356

query I rowsort
SELECT DISTINCT + 74 + - col1 FROM tab2 AS cor0
----
-3
23
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > ( - + 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 2 BETWEEN - col2 + + col1 AND + 69 * - col0 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 76 - - col0 + + 0 col2 FROM tab0 AS cor0
----
-61
11
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( - col1 ) / + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + ( + - 27 ) * col2 AS col1 FROM tab1 cor0
----
-1598
-1883
-2606

query I rowsort
SELECT DISTINCT - 42 - + - 37 FROM tab2
----
-5

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= ( + col2 + + 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 * + col2 + 23 * col0 ) BETWEEN col0 AND + 19 * col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( 16 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE col0 >= ( ( col1 ) ) * - col1 + col1 / - col1
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( 42 / + col2 ) AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT MIN( DISTINCT + col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT MIN ( DISTINCT + col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL 27 - + - 4 - - 68 DIV col2 col1 FROM tab0
----
31
32
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT ALL 27 - + - 4 - - 68 / col2 col1 FROM tab0
----
31
32
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3025
SELECT DISTINCT + - ( - MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) ) * + 65 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + - ( - MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) ) * + 65 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + col1 + - col0 * 48 FROM tab2 AS cor0
----
-2111
-2931
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3027
SELECT 69 * + COUNT( * ) DIV - CAST( COUNT( * ) AS SIGNED ) + 51 + + 76 AS col1 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3027
SELECT 69 * + COUNT ( * ) / - CAST ( COUNT ( * ) AS INTEGER ) + 51 + + 76 AS col1 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL ( 39 ) FROM tab0 AS cor0 WHERE NOT col0 + ( col0 ) * + 76 = ( + ( + col0 ) )
----
39
39
39

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> 9
----

query I rowsort
SELECT + col2 * - 30 FROM tab1 AS cor0
----
-1770
-2040
-2880

query I rowsort
SELECT DISTINCT col0 + + 15 AS col2 FROM tab0 AS cor0 WHERE NOT col1 <> + col2
----

query I rowsort
SELECT + 18 * - 48 + - col2 AS col0 FROM tab1 AS cor0
----
-923
-932
-960

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 28 * - - 85 ) IS NOT NULL OR + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col2 - - col0 <= - 86
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT MIN( + col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3035
SELECT MIN ( + col0 ) AS col0 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT COUNT( * ) * - 62 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3036
SELECT COUNT ( * ) * - 62 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-183

query II rowsort
SELECT 10 AS col2, 70 AS col1 FROM tab1 AS cor0
----
10
70
10
70
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL 8 * - COUNT( + col1 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL 8 * - COUNT ( + col1 ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT SUM( - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT SUM ( - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + - 83 AS col2 FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 + + col0 * + + col0 + col0 BETWEEN 85 AND + col0 + + col2
----

query I rowsort
SELECT DISTINCT + + col1 * + + 78 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT ALL col0 * col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * col1 * - col0 ) IS NULL
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT + col0 DIV - 63 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT + col0 / - 63 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 WHERE NOT + - col1 > NULL
----

query II rowsort
SELECT 33, - 6 AS col0 FROM tab0
----
33
-6
33
-6
33
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( * ) * - - ( + - 41 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( * ) * - - ( + - 41 ) FROM tab2
----
-123

query I rowsort
SELECT DISTINCT 34 * - col2 * - col0 FROM tab0
----
23970
29580
326502

query I rowsort
SELECT DISTINCT 73 * + col2 AS col2 FROM tab0
----
3431
7227
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( - + 10 ) ) + + - col0 + + + ( 16 ) * col2 col2 FROM tab2 AS cor0
----
332
586
863

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) + - col2 > 67
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT ALL + 97 DIV - col2 + + + col1 + - + col1 + - col2 * - col0 AS col2 FROM tab1 cor0
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + 97 / - col2 + + + col1 + - + col1 + - col2 * - col0 AS col2 FROM tab1 cor0
----
4895
5014
6187

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - MAX( col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3056
SELECT - MAX ( col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT MAX( - + 7 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-3057
SELECT MAX ( - + 7 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + SUM( + - 77 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-3059
SELECT + SUM ( + - 77 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

query I rowsort
SELECT DISTINCT - - 71 FROM tab2 cor0
----
71

query I rowsort
SELECT DISTINCT - col1 + 1 * col1 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT DISTINCT - + 52 * - col2 * + 39 + col2 FROM tab1 AS cor0
----
119711
137972
194784

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL BETWEEN NULL AND ( col0 ) )
----

query I rowsort
SELECT ALL col0 * + - col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) BETWEEN - 57 * - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 32 - - 74 FROM tab0
----
106

query I rowsort
SELECT ALL ( - col2 ) - - col0 AS col0 FROM tab2
----
17
23
24

query II rowsort
SELECT DISTINCT - col2 + + - 81 + - - col0 AS col2, - col1 * + - col0 FROM tab0
----
-113
1215
-4
1827
-83
97

query III rowsort
SELECT * FROM tab0 WHERE col1 + - 49 NOT IN ( + 5 + + + col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, - 6 * + col1 FROM tab0
----
10
-126
47
-486
99
-6

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( + + col1 * ( - - col2 ) + - 15 ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + col1 ) / - - 16 * col1 + - col1 - + - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + - MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 95 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + - MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 95 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL + COUNT( * ) * - 64 col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3078
SELECT ALL + COUNT ( * ) * - 64 col0 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT + + 43 * - - ( + col2 ) FROM tab2 AS cor0
----
1720
2494
989

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 / - - ( + 46 ) BETWEEN + col0 AND ( col2 )
----
46
64
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - + ( - ( + 99 ) ), + col1 * + 35 * col1 )
----

query I rowsort
SELECT DISTINCT - 10 FROM tab1 WHERE ( + 38 ) = NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 92 AS col1 FROM tab1
----
-143
-177
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT CAST( - col1 AS SIGNED ) * - col2 * 70 + - + ( col2 ) FROM tab0
----
14690
266443
6831

skipif mysql # not compatible
query I rowsort label-3084
SELECT CAST ( - col1 AS INTEGER ) * - col2 * 70 + - + ( col2 ) FROM tab0
----
14690
266443
6831

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 28 - - col2 / + 5 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - - col2 * + + 64 AS col2 FROM tab2
----
163840
278400
67712

query II rowsort
SELECT ALL + 48 AS col2, 88 AS col2 FROM tab1
----
48
88
48
88
48
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT DISTINCT - 45 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - 45 / + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + + 7 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab0
----
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * - col1 col1 FROM tab1 AS cor0
----
1246
4183
445

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 49 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + 48 AS col2 FROM tab0 AS cor0
----
-39
-49
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 34 IN ( col1 * - col0, ( - 77 ) )
----

query I rowsort
SELECT ALL - - col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT col0 + - col1 + - col1 FROM tab0
----
-147
45
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL - col1 * col2 DIV 12 + + col1 * + col0 FROM tab0 cor0
----
1810
89
898

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - col1 * col2 / 12 + + col1 * + col0 FROM tab0 cor0
----
1810
89
898

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT + + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3099
SELECT + + col0 / + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

query II rowsort
SELECT ALL col0 + + - col2 + col1 - - col0 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
120
-46
159
-75
165
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT - col2 DIV - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT - col2 / - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 81 AS col2 FROM tab1 AS cor0
----
-4779
-5508
-7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3103
SELECT - COUNT( * ) + - - 99 DIV - 4 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
-24

skipif mysql # not compatible
query I rowsort label-3103
SELECT - COUNT ( * ) + - - 99 / - 4 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
-24

query I rowsort
SELECT DISTINCT - 5 + 99 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL - 65 * - - col1 AS col1 FROM tab1 AS cor0
----
-3055
-325
-910

query I rowsort
SELECT + 32 - col0 AS col0 FROM tab2 AS cor0
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT COUNT( * ) - - ( + ( - COUNT( * ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3107
SELECT COUNT ( * ) - - ( + ( - COUNT ( * ) ) ) FROM tab0
----
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 13 * - col1 FROM tab0
----
-1053
-13
-273

query II rowsort
SELECT ALL ( + - col0 ), - col1 + 19 AS col1 FROM tab2
----
-46
-32
-64
-58
-75
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT + + 14 * + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT + + 14 * + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT - MAX( ( + col2 ) ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - MAX ( ( + col2 ) ) AS col2 FROM tab2 cor0
----
-58

query I rowsort
SELECT ALL - 9 AS col0 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT COUNT ( col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - ( + COUNT( * ) ) * - + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3116
SELECT - ( + COUNT ( * ) ) * - + COUNT ( * ) col1 FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 NOT IN ( + col2, + col1, - 75 + 93 )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, 13 AS col0 FROM tab2
----
-23
13
-40
13
-58
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + 27 BETWEEN - col0 AND - 99 - + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3121
SELECT + 70 AS col2, col2 DIV + 45 AS col2 FROM tab2 AS cor0
----
70
0
70
0
70
1

skipif mysql # not compatible
query II rowsort label-3121
SELECT + 70 AS col2, col2 / + 45 AS col2 FROM tab2 AS cor0
----
70
0
70
0
70
1

query II rowsort
SELECT DISTINCT col2 AS col0, + 40 * - - col2 AS col0 FROM tab1 cor0
----
59
2360
68
2720
96
3840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3123
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST( 71 AS SIGNED ) - - + 42 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3123
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( 71 AS INTEGER ) - - + 42 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab2 AS cor0 WHERE NOT 80 * - col1 BETWEEN NULL AND col1 * - + col0
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - SUM( ALL - col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - SUM ( ALL - col1 ) AS col1 FROM tab2 cor0
----
195

query I rowsort
SELECT col1 + - 40 FROM tab2 AS cor0
----
11
27
37

query I rowsort
SELECT 17 * - - col2 + + 50 FROM tab2
----
1036
441
730

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT 4 + 99 + - COUNT( * ) AS col1 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-3129
SELECT 4 + 99 + - COUNT ( * ) AS col1 FROM tab2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT - col1 FROM tab1 WHERE - + col0 * - col1 + - CAST( NULL AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3130
SELECT - col1 FROM tab1 WHERE - + col0 * - col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT COUNT( * ) + - COUNT( 65 ) + + MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3131
SELECT COUNT ( * ) + - COUNT ( 65 ) + + MAX ( - + col2 ) FROM tab1
----
-59

query I rowsort
SELECT col0 * - col2 + + 27 FROM tab2
----
-1031
-2533
-4323

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT + 72 DIV + col0 + + ( + col1 ) - - col2 AS col2 FROM tab1
----
111
115
64

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 72 / + col0 + + ( + col1 ) - - col2 AS col2 FROM tab1
----
111
115
64

query II rowsort
SELECT ALL + + col1 * + 65, col0 FROM tab2 AS cor0
----
3315
46
4355
75
5005
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT - ( + 86 ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT - ( + 86 ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col2 * + col0 col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT ALL - 67 * + - col0 FROM tab2
----
3082
4288
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3138
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE - 99 + + col0 NOT BETWEEN - CAST( - + 90 AS DECIMAL ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-3138
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - 99 + + col0 NOT BETWEEN - CAST ( - + 90 AS REAL ) AND NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1 * - + 43
----

query I rowsort
SELECT DISTINCT - + ( - + 7 ) * + col1 + + col2 FROM tab1 AS cor0
----
194
397
94

query I rowsort
SELECT DISTINCT - 22 + - 53 FROM tab0 AS cor0 WHERE NOT 37 * - - 56 <= + col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL 20 * + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL 20 * + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-180

query I rowsort
SELECT DISTINCT 97 * - 73 + ( + 31 ) + - - col1 FROM tab2 AS cor0
----
-6973
-6983
-6999

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - COUNT( ALL - col1 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3144
SELECT - COUNT ( ALL - col1 ) col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - MAX( 85 ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - MAX ( 85 ) FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( DISTINCT + 18 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( DISTINCT + 18 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - ( + - col2 ) FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT - col1 * - col1, col0 AS col2 FROM tab2
----
2601
46
4489
75
5929
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + MAX( ALL + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3149
SELECT + MAX ( ALL + - col2 ) FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 > - + col1 - - col2
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + 80 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - + 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT ALL - col2 * + + col1 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3155
SELECT ALL + COUNT( DISTINCT col2 ) / - + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + COUNT ( DISTINCT col2 ) / - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 + - col2, col0 * + - col0 + - col2 col2 FROM tab0 cor0
----
-15
-272
-67
-9508
22
-7579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3158
SELECT ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) <> ( + - 59 ) + ( + ( + + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 * - - col0 col2 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT - ( - 77 ) FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT ALL + col1 + + 42 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT DISTINCT - 35 + + col0 FROM tab0 AS cor0
----
-20
52
62

query I rowsort
SELECT ALL + 99 FROM tab2 WHERE NOT + col1 + 60 < + col2
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT ALL col0 + - + col1 * col1 DIV + 87 - + col1 AS col1 FROM tab2
----
-34
-43
-81

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL col0 + - + col1 * col1 / + 87 - + col1 AS col1 FROM tab2
----
-34
-43
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL - MIN( + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - MIN ( + col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + col0 * + + 62 * col1 * 88 + 33 - + + 59
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( 99, col1, - col1 ) )
----

query II rowsort
SELECT ALL + col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT 19 + - col1 * col1 + + 5 + + - col0 FROM tab0 AS cor0
----
-504
-6552
-74

query I rowsort
SELECT ALL + 20 + - 92 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3173
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT 52 + 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
71

query I rowsort
SELECT - 49 * col1 + col1 AS col0 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT - - 64 AS col0 FROM tab1 WHERE NULL BETWEEN - - col0 AND 52 + + col2
----

query II rowsort
SELECT ALL + - 3 - - - col0 * 85 + - col1, 9 + - - 25 AS col2 FROM tab0 AS cor0
----
-1359
34
-7419
34
-8249
34

query I rowsort
SELECT + col1 * + + 45 + col2 - + col0 AS col0 FROM tab2 AS cor0
----
2272
2998
3441

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + col1 * 25 DIV col2 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-99
42

skipif mysql # not compatible
query I rowsort label-3179
SELECT + col1 * 25 / col2 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-99
42

query I rowsort
SELECT + 8 * + - col2 - - + col0 AS col0 FROM tab0 AS cor0
----
-361
-695
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT col0 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT col0 / + - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col2 AS col1, + col1 col0 FROM tab2 AS cor0
----
-1600
77
-3364
67
-529
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - + COUNT( * ) * - 67 AS col2 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - + COUNT ( * ) * - 67 AS col2 FROM tab1 AS cor0
----
201

query I rowsort
SELECT DISTINCT 80 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( 38 ) * 87 + + col0 - - col2 * + + col1 FROM tab1 AS cor0
----
-19
-1911
-2926

query I rowsort
SELECT + + 50 * + col2 + 76 AS col1 FROM tab2 AS cor0
----
1226
2076
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + MAX( - + 76 ) * + 67 AS col1 FROM tab2 cor0
----
-5092

skipif mysql # not compatible
query I rowsort label-3187
SELECT + MAX ( - + 76 ) * + 67 AS col1 FROM tab2 cor0
----
-5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2 AS cor0 WHERE NOT 70 IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT - col1 * 26 FROM tab1 AS cor0
----
-1222
-130
-364

query I rowsort
SELECT ( 89 ) AS col0 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT MIN( ALL - - ( - col2 ) ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT MIN ( ALL - - ( - col2 ) ) col0 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 11 * + - col1 + - col2 <= ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT CAST( 36 AS SIGNED ) FROM tab0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3193
SELECT CAST ( 36 AS INTEGER ) FROM tab0
----
36
36
36

query II rowsort
SELECT DISTINCT + + col0 * col1 + - - 68, col0 AS col1 FROM tab1 AS cor0
----
4345
91
493
85
782
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - 97 + + + ( + COUNT( * ) ) * 65 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( - col1 AS SIGNED ) AND - + ( + 6 )
----
-97

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 97 + + + ( + COUNT ( * ) ) * 65 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( - col1 AS INTEGER ) AND - + ( + 6 )
----
-97

query II rowsort
SELECT ALL 40 AS col2, 81 AS col1 FROM tab1 AS cor0
----
40
81
40
81
40
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3197
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT ALL + col0 * + - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( - 97 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3200
SELECT ALL - col2 + + + 52 + - + CAST( NULL AS DECIMAL ) + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL - col2 + + + 52 + - + CAST ( NULL AS REAL ) + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3201
SELECT DISTINCT - col0 DIV - - col2, 93 AS col1 FROM tab1 AS cor0
----
-1
93
0
93

skipif mysql # not compatible
query II rowsort label-3201
SELECT DISTINCT - col0 / - - col2, 93 AS col1 FROM tab1 AS cor0
----
-1
93
0
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT DISTINCT col0 + - + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT col0 + - + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 44 AS col1 FROM tab2 AS cor0 WHERE ( + + ( - col1 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + 67 + + + 59 FROM tab2 AS cor0
----
126

query I rowsort
SELECT - 57 FROM tab0 cor0 WHERE 93 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT MAX( DISTINCT + col0 ) + - + COUNT( * ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3206
SELECT MAX ( DISTINCT + col0 ) + - + COUNT ( * ) AS col1 FROM tab1
----
88

query II rowsort
SELECT ALL - col2 * - 48 AS col2, + 25 + 0 AS col1 FROM tab2
----
1104
25
1920
25
2784
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3208
SELECT + + col2 FROM tab0 WHERE + + CAST( NULL AS DECIMAL ) + - ( col2 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3208
SELECT + + col2 FROM tab0 WHERE + + CAST ( NULL AS REAL ) + - ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 27 + COUNT( * ) - - COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3209
SELECT 27 + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT DISTINCT + col1 * + + col0 + - col1 AS col2 FROM tab0
----
1134
1806
96

query I rowsort
SELECT - 18 + + 46 FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 74 AS col1 FROM tab1
----
4366
5032
7104

query I rowsort
SELECT 75 * col2 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT ALL 10 AS col0 FROM tab1 cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT + CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3216
SELECT + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + col0 + + ( - + 68 ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 - - col2 + 45 * - 0 col1 FROM tab0
----
-26
-63
26

query I rowsort
SELECT - 3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 76 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 IN ( - col1 * - col1 + + col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT SUM( + 72 ) AS col0 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT SUM ( + 72 ) AS col0 FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + - COUNT( - col2 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3224
SELECT DISTINCT + - COUNT ( - col2 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * - 29 * + 37 FROM tab2 AS cor0
----
-54723
-71891
-82621

query I rowsort
SELECT - AVG ( - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3227
SELECT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT + ( - 67 ) * 51 AS col2 FROM tab1 AS cor0
----
-3417
-3417
-3417

query II rowsort
SELECT + 38 * + col1 * col1, 70 AS col0 FROM tab2 AS cor0
----
170582
70
225302
70
98838
70

query I rowsort
SELECT 33 * - 67 AS col2 FROM tab2
----
-2211
-2211
-2211

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT COUNT( DISTINCT 39 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT COUNT ( DISTINCT 39 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT - 91 * + col1 * + col0 AS col1 FROM tab0
----
-110565
-166257
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT - SUM( ( col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - SUM ( ( col2 ) ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 + + - col1 - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT DISTINCT + ( CAST( - col1 AS SIGNED ) ) * + ( + - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3237
SELECT DISTINCT + ( CAST ( - col1 AS INTEGER ) ) * + ( + - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT 90 DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 90 / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 83 * - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 83 * - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-249

query II rowsort
SELECT DISTINCT - col2 * 85 AS col0, - col0 * ( - + col0 ) * - + col2 + - 72 FROM tab1 AS cor0
----
-5015
-426347
-5780
-563180
-8160
-249768

query II rowsort
SELECT col1 * + + ( - 14 ) * + 28 + - 22, 30 AS col1 FROM tab0
----
-31774
30
-414
30
-8254
30

query I rowsort
SELECT DISTINCT - col2 * 43 + - 70 * + - col0 / - - ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL = - 60
----

query II rowsort
SELECT col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3245
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 69 + 45 AS col1 FROM tab0 AS cor0
----
-24
-24
-24

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT ALL - col2 + - 26 FROM tab2 AS cor0
----
-49
-66
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - - 66 - ( - + COUNT( * ) ) + 55 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - - 66 - ( - + COUNT ( * ) ) + 55 FROM tab2 AS cor0
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 + col2 * + + col1 AS col1, + col2 - + - col1 col0 FROM tab2 AS cor0
----
1147
74
3054
117
3860
125

query II rowsort
SELECT col2 AS col2, 83 FROM tab2
----
23
83
40
83
58
83

query I rowsort
SELECT DISTINCT 43 + 6 AS col2 FROM tab1
----
49

query I rowsort
SELECT 58 - + + col1 FROM tab2
----
-19
-9
7

query I rowsort
SELECT AVG ( + 93 ) FROM tab0 WHERE - 67 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0, + col0 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT * FROM tab2 WHERE 66 + + - col2 IS NULL
----

query I rowsort
SELECT ALL + 40 - + 99 AS col2 FROM tab2
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT - col1 * + col0 * + col2 + + col2 / + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT - col1 * + col0 * + col2 + + col2 / + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + - col1 * + 5 AS col2 FROM tab0 AS cor0
----
-104
-115
-452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL - - col2 - + CAST( - - CAST( + col1 AS SIGNED ) AS SIGNED ) - col1 * - 36 * - col1 AS col2 FROM tab0 AS cor0
----
-15887
-236230
62

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL - - col2 - + CAST ( - - CAST ( + col1 AS INTEGER ) AS INTEGER ) - col1 * - 36 * - col1 AS col2 FROM tab0 AS cor0
----
-15887
-236230
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 64 + 27 + - - 4 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col2 FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT + 2 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT + 2 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT COUNT( * ) * - + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT COUNT ( * ) * - + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col1 FROM tab0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 95 ) col0 FROM tab1
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT - SUM( - CAST( - - 99 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3267
SELECT - SUM ( - CAST ( - - 99 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
297

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 - - - 39 AND + col0
----

query I rowsort
SELECT + 7 + - 9 AS col1 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT + 40 * 88 + 52, col1 AS col2 FROM tab1
----
3572
14
3572
47
3572
5

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - - col1 NOT IN ( + - col2 * + 29 * col1 + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query III rowsort label-3272
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - col1 * - col1 AND + col2 DIV - col1 * - + col0
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-3272
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - col1 * - col1 AND + col2 / - col1 * - + col0
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 < col2
----

query I rowsort
SELECT ALL 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT - + CAST( + 70 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - + CAST ( + 70 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3276
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + ( - - 91 ) + - col1 AS col1 FROM tab2 AS cor0
----
-142
-158
-168

query I rowsort
SELECT col0 + - 84 FROM tab1 AS cor0
----
-33
1
7

query II rowsort
SELECT DISTINCT col0 * - - col0 + 70 AS col0, - 69 FROM tab0
----
295
-69
7639
-69
9479
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + 96 + - 63 + - - MAX( ALL col2 ) FROM tab2 WHERE - - 26 BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 96 + - 63 + - - MAX ( ALL col2 ) FROM tab2 WHERE - - 26 BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 15 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col0 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 4 + col1, 87 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT MIN( + 61 ) * 4 AS col0 FROM tab0
----
244

skipif mysql # not compatible
query I rowsort label-3284
SELECT MIN ( + 61 ) * 4 AS col0 FROM tab0
----
244

query I rowsort
SELECT 17 * + 19 * - + col1 FROM tab0
----
-26163
-323
-6783

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - + 91 AND NULL
----

query I rowsort
SELECT ALL col0 - + 72 AS col2 FROM tab0
----
-57
15
25

query I rowsort
SELECT DISTINCT 26 - - 82 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT COUNT( * ) * - 29 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3289
SELECT COUNT ( * ) * - 29 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT + COUNT( + col1 ) * + - 76 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + COUNT ( + col1 ) * + - 76 FROM tab1 AS cor0
----
-228

query II rowsort
SELECT col0 AS col2, 46 AS col0 FROM tab0 AS cor0
----
15
46
87
46
97
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT - 56 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3292
SELECT - 56 / col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT col2 DIV 83 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT col2 / 83 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + ( - + col2 ) - - - col2 AS col1 FROM tab0 WHERE NULL NOT IN ( + col0, ( + col1 ) + - col0 * - col2 + - - ( col2 ) - - + 29 * + ( - 64 ) * - col1 - - - col2 * - 39 )
----

query I rowsort
SELECT DISTINCT 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT - COUNT( * ), 67 AS col1 FROM tab0 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-3296
SELECT - COUNT ( * ), 67 AS col1 FROM tab0 AS cor0
----
-3
67

query I rowsort
SELECT - - col0 * col1 + + - col2 AS col1 FROM tab0 cor0
----
-2
1168
1817

query I rowsort
SELECT - 22 * - - ( - col1 ) FROM tab1 AS cor0
----
1034
110
308

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3299
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( - + 74 AS SIGNED ) IN ( 85, + 20, col0 + + CAST( NULL AS SIGNED ), - - 23 + - - 47 )
----

skipif mysql # not compatible
query III rowsort label-3299
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( - + 74 AS INTEGER ) IN ( 85, + 20, col0 + + CAST ( NULL AS INTEGER ), - - 23 + - - 47 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3300
SELECT DISTINCT + 44 AS col2, col2 DIV col2 + + col0 - + + col0 FROM tab1 AS cor0
----
44
1

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT + 44 AS col2, col2 / col2 + + col0 - + + col0 FROM tab1 AS cor0
----
44
1

query I rowsort
SELECT DISTINCT AVG ( - ( col1 ) ) FROM tab0 AS cor0 WHERE ( + col2 IS NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 - - col2 + - + col1 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - 5 + - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - 5 + - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
-5

query I rowsort
SELECT DISTINCT + ( - 95 ) FROM tab0
----
-95

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE 25 * + + col2 + - 44 <= NULL
----

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col0, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT - 50 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT 11 + - 36 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT 11 + - 36 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 53 + - col2 AS col0, - col2 FROM tab0 AS cor0
----
-46
-99
43
-10
6
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL - - ( - MAX( ALL ( ( + 76 ) ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - - ( - MAX ( ALL ( ( + 76 ) ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT DISTINCT - CAST( + 61 AS SIGNED ) * + col0 + col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - CAST ( + 61 AS INTEGER ) * + col0 + col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - SUM( + 33 ) * - 69 AS col0 FROM tab2 AS cor0
----
6831

skipif mysql # not compatible
query I rowsort label-3312
SELECT - SUM ( + 33 ) * - 69 AS col0 FROM tab2 AS cor0
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + MIN( ALL 83 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + MIN ( ALL 83 ) FROM tab1 AS cor0
----
83

query I rowsort
SELECT DISTINCT - col0 * - col0 + + 63 AS col2 FROM tab0 AS cor0
----
288
7632
9472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT - - 11 - - 43 - - col0 FROM tab1 AS cor0
----
105
139
145

query I rowsort
SELECT + col0 * 80 + + - 53 + - col2 * - col0 * - - col2 - + col1 AS col0 FROM tab0 AS cor0
----
15586
34201
958403

query I rowsort
SELECT DISTINCT - 71 + - 90 AS col0 FROM tab0
----
-161

query I rowsort
SELECT DISTINCT 90 - 74 AS col0 FROM tab2
----
16

query I rowsort
SELECT ALL - col2 - col2 - 59 * 90 AS col2 FROM tab1
----
-5428
-5446
-5502

query I rowsort
SELECT DISTINCT + 39 * - col1 * - col1 * - 97 AS col2 FROM tab0
----
-1668303
-24820263
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( 99 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3322
SELECT COUNT ( 99 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3323
SELECT + col0 * - - 27 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT + col0 * - - 27 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT ALL - 19 + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 * - - col0 + + - col0 * - - col2 col1 FROM tab1
----
14
-2295
47
2093
5
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT COUNT( * ) * - + AVG ( + + 72 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT COUNT ( * ) * - + AVG ( + + 72 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 74 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT ALL + - col1 * col0 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + - col1 * col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - col0 * - - 19 AS col1 FROM tab0 AS cor0
----
-1843
-23085
-34713

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> - 31 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL MAX( + + 82 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL MAX ( + + 82 ) FROM tab0
----
82

query II rowsort
SELECT DISTINCT + col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab2 WHERE + - col2 <> + 43 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + MIN( ALL - col1 ) + + 22 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-3335
SELECT + MIN ( ALL - col1 ) + + 22 FROM tab0
----
-59

query I rowsort
SELECT ALL + 45 * + col2 FROM tab1
----
2655
3060
4320

query III rowsort
SELECT * FROM tab1 WHERE + - 82 >= - col0
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT col1 + + - col1 + - + col0 * + 34 * - 73 + - 21 DIV - 65 col0 FROM tab2
----
114172
158848
186150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3338
SELECT col1 + + - col1 + - + col0 * + 34 * - 73 + - 21 / - 65 col0 FROM tab2
----
114172
158848
186150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT + COUNT( * ) DIV - + MIN( 92 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT + COUNT ( * ) / - + MIN ( 92 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + - col0 * + col0 + + 41 FROM tab0 cor0
----
-3334
-658462
-912632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3341
SELECT - col2 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-3341
SELECT - col2 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT + 48 - 25 AS col1 FROM tab0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + - 48 >= col1 + col1
----

skipif mysql # not compatible
query I rowsort label-3343
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + - 48 >= col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL MIN( ALL + - 16 ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL MIN ( ALL + - 16 ) AS col1 FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3345
SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 * - 97 + - CAST( NULL AS SIGNED ) / - - col0 + - col0 + - - 2 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3345
SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 * - 97 + - CAST ( NULL AS INTEGER ) / - - col0 + - col0 + - - 2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 42 * - + 46 * + col1 col2 FROM tab1 AS cor0
----
-2596608
-569940
-6174672

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col1 + - ( + 86 ) AS col0 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT DISTINCT - 99 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * ( - col0 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col0 * 79 AS col0 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 < - + col1 + - 96
----
15
81
47
87
21
10

query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 0 * - + 67 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT ALL - + col2 DIV ( - - 51 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - + col2 / ( - - 51 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT ALL COUNT( * ) + + 37 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL COUNT ( * ) + + 37 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL SUM( DISTINCT - + 39 ) * + + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL SUM ( DISTINCT - + 39 ) * + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT DISTINCT - col0 DIV + col0 + + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - col0 / + col0 + + col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - MAX( + 83 ) FROM tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3363
SELECT - MAX ( + 83 ) FROM tab1 cor0
----
-83

query I rowsort
SELECT - ( + col1 ) * - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + 78 + - - col1 AS col1 FROM tab1
----
125
83
92

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE 42 NOT BETWEEN NULL AND + ( - col2 )
----
-51
-85
-91

query I rowsort
SELECT + col0 * + col0 FROM tab2 WHERE ( + - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - + 24 FROM tab0 WHERE NOT - - col0 + col2 IS NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + SUM( ALL - 58 ) AS col2 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-3369
SELECT + SUM ( ALL - 58 ) AS col2 FROM tab0
----
-174

query I rowsort
SELECT ( 60 ) AS col1 FROM tab1
----
60
60
60

query II rowsort
SELECT ALL - 86 * - + 62 + + - 70 AS col1, col2 * + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3372
SELECT * FROM tab1 WHERE - + ( + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND - + col1
----

skipif mysql # not compatible
query III rowsort label-3372
SELECT * FROM tab1 WHERE - + ( + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT col1 DIV - 14 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT col1 / - 14 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT + - CAST( NULL AS SIGNED ) + - + 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + - CAST ( NULL AS INTEGER ) + - + 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 32 + 67 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL 24 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 * col1 * + 30 * + col2 + + col0 col1 FROM tab2 AS cor0
----
1201264
1515615
457516

query I rowsort
SELECT col0 + - col2 * - 69 + 74 FROM tab2 cor0
----
1707
2898
4151

query I rowsort
SELECT ALL - - 59 + col2 AS col2 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT DISTINCT 75 / + col1 + - 26 FROM tab2 WHERE NULL IN ( + col2, col0 + col2, col0, col0 / col2 * - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL + 0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 * col1 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + + 48 AS col1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3384
SELECT DISTINCT col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3384
SELECT DISTINCT col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT - col0 DIV - - 59 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT - col0 / - - 59 AS col1 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3386
SELECT + + col0, col0 * - - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-3386
SELECT + + col0, col0 * - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - COUNT( ALL + 9 ) AS col0 FROM tab1, tab2 AS cor0 WHERE + + 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - COUNT ( ALL + 9 ) AS col0 FROM tab1, tab2 AS cor0 WHERE + + 50 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - MAX( + - col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3388
SELECT - MAX ( + - col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - + MIN( ALL + 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - + MIN ( ALL + 55 ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE NOT NULL <= - col0 * - col0 * - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT 31 DIV - - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-3391
SELECT 31 / - - COUNT ( * ) FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL SUM( + + 92 ) AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL SUM ( + + 92 ) AS col0 FROM tab1
----
276

query I rowsort
SELECT DISTINCT - - 3 + + 33 - + + col0 + - - ( col1 ) * + 0 * 94 FROM tab2 AS cor0
----
-10
-28
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + - COUNT( DISTINCT 38 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3394
SELECT + - COUNT ( DISTINCT 38 ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + MAX( DISTINCT + 73 ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + MAX ( DISTINCT + 73 ) AS col1 FROM tab0 AS cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN + + col1 * + col2 AND + 35 - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + - 31 * - 59 + + ( + 31 ) + + ( - col0 ) + + - 93 FROM tab2 AS cor0
----
1692
1703
1721

query I rowsort
SELECT - 88 + + ( + col0 ) FROM tab2
----
-13
-24
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + COUNT( 15 ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + COUNT ( 15 ) * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3401
SELECT + CAST( NULL AS SIGNED ) + - 58, - 48 AS col2 FROM tab0
----
NULL
-48
NULL
-48
NULL
-48

skipif mysql # not compatible
query II rowsort label-3401
SELECT + CAST ( NULL AS INTEGER ) + - 58, - 48 AS col2 FROM tab0
----
NULL
-48
NULL
-48
NULL
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col2 + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab1
----
102
170
182

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 47 + 25 col2 FROM tab0
----
1012
3832
72

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3407
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col1, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT ALL - - col2 + - col2 AS col0, + 22 * - col2 + - + col1 FROM tab2 AS cor0
----
0
-1343
0
-557
0
-957

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + 42 + - + 2 * col0 * + + col0
----

query II rowsort
SELECT DISTINCT - - col2 + 81, col2 AS col1 FROM tab1 AS cor0
----
140
59
149
68
177
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - COUNT( * ) + - 11 + - + COUNT( * ) * - 26 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3411
SELECT - COUNT ( * ) + - 11 + - + COUNT ( * ) * - 26 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - - SUM( - 66 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-594

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - - SUM ( - 66 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-594

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 17 > - 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3415
SELECT col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT 74 AS col0, + col1 * 43 FROM tab2
----
74
2193
74
2881
74
3311

query I rowsort
SELECT ALL - + 6 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT ( ( - - col1 ) ) AS col0 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col1 col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-196
-2209
-25

query II rowsort
SELECT - col2, col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL CAST( NULL AS SIGNED ) * + col1 * + 90 * + col0 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 * + 90 * + col0 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + col1 col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - col0 + - col2 + 33 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col0, 99 FROM tab2 AS cor0
----
-46
99
-64
99
-75
99

query II rowsort
SELECT col2 AS col1, + col2 + - - col1 - + 61 FROM tab2 cor0
----
23
13
40
56
58
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col2 - - col2 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - col0 ) * 44 FROM tab2 WHERE NOT - 90 IS NOT NULL
----

query II rowsort
SELECT 54 * + + col2 AS col1, 93 AS col1 FROM tab2
----
1242
93
2160
93
3132
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3429
SELECT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3429
SELECT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL - + col2 + + col2 * - col2 FROM tab0 cor0
----
-110
-2256
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + SUM( DISTINCT - + 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3432
SELECT + SUM ( DISTINCT - + 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT + - MIN( - col1 ) + - ( + 62 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + - MIN ( - col1 ) + - ( + 62 ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - MAX( - 29 ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3434
SELECT - MAX ( - 29 ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL + col1 * + - 15 FROM tab1
----
-210
-705
-75

query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 - + 82 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

query I rowsort
SELECT ALL col2 * - + ( + 39 ) FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT - 84 + + col0 FROM tab0 AS cor0
----
-69
13
3

query I rowsort
SELECT 16 + - col0 AS col1 FROM tab1 AS cor0
----
-35
-69
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT col2 * + ( 96 ) AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> + - col2
----

skipif mysql # not compatible
query I rowsort label-3442
SELECT col2 * + ( 96 ) AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> + - col2
----

query I rowsort
SELECT DISTINCT 78 + - - col1 FROM tab2 AS cor0
----
129
145
155

query I rowsort
SELECT + + ( - - col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT + col0 * + col1 AS col2, col0 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + + + col0 + - 38 FROM tab2 AS cor0
----
103
104
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT ALL col2 DIV - 95 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL col2 / - 95 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT - col2 * 27 BETWEEN col2 AND NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT DISTINCT CAST( 22 AS SIGNED ) DIV CAST( + col0 AS SIGNED ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT CAST ( 22 AS INTEGER ) / CAST ( + col0 AS INTEGER ) FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE ( 75 * - col1 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - COUNT( * ) - 1 AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3451
SELECT - COUNT ( * ) - 1 AS col2 FROM tab2
----
-4

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 3 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - SUM( col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - SUM ( col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3454
SELECT * FROM tab2 WHERE ( - CAST( ( - col1 ) AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3454
SELECT * FROM tab2 WHERE ( - CAST ( ( - col1 ) AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + 8 + + col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 65 ) >= + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL COUNT( * ) + MIN( DISTINCT - col1 ) FROM tab2 WHERE NOT col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL COUNT ( * ) + MIN ( DISTINCT - col1 ) FROM tab2 WHERE NOT col2 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( 8 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 24 ) NOT BETWEEN NULL AND ( - col2 * + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT 12 * COUNT( * ) AS col0 FROM tab1 WHERE NOT 44 + - 40 NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT 12 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT 44 + - 40 NOT IN ( + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT DISTINCT - col0 * + 2 + 12 FROM tab2 AS cor0
----
-116
-138
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - SUM( ALL - 92 ) AS col0 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3465
SELECT - SUM ( ALL - 92 ) AS col0 FROM tab1 AS cor0
----
276

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT 23 * 85 FROM tab2
----
1955
1955
1955

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col2 * 91 - - col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 BETWEEN ( + col2 ) AND - 23
----

query I rowsort
SELECT 0 + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3472
SELECT * FROM tab2 cor0 WHERE ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3472
SELECT * FROM tab2 cor0 WHERE ( CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + col1 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT ALL - col1 + - 88 FROM tab0 AS cor0
----
-109
-169
-89

query I rowsort
SELECT DISTINCT ( + col2 ) / col0 AS col0 FROM tab1 AS cor0 WHERE ( - col1 * + col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + 71 FROM tab2 AS cor0
----
117
135
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 4 ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + MIN( DISTINCT + + ( - col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3479
SELECT + MIN ( DISTINCT + + ( - col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col1 + - col0 FROM tab0 WHERE + col2 + + 47 > - 61
----
-66
-96
66

query I rowsort
SELECT ALL 62 - col2 + + col0 AS col2 FROM tab2
----
79
85
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT COUNT( * ) + - ( 37 ) AS col0 FROM tab0 WHERE NULL < + CAST( NULL AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3483
SELECT COUNT ( * ) + - ( 37 ) AS col0 FROM tab0 WHERE NULL < + CAST ( NULL AS INTEGER )
----
-37

query I rowsort
SELECT + 98 * - col0 FROM tab0 WHERE NULL BETWEEN - 15 AND - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 < NULL AND NOT ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL col2 * col0 + + ( 94 ) DIV - 27 FROM tab2 AS cor0
----
1055
2557
4347

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL col2 * col0 + + ( 94 ) / - 27 FROM tab2 AS cor0
----
1055
2557
4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MIN( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( ( - ( + 24 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - COUNT( * ) * + - 74 AS col0 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-3489
SELECT - COUNT ( * ) * + - 74 AS col0 FROM tab1
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - - col1 * col2 - - + col2 FROM tab2 cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + 60 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + 60 IS NOT NULL
----
0

query I rowsort
SELECT - + 80 * + col2 + 69 * col2 FROM tab1 AS cor0
----
-1056
-649
-748

query I rowsort
SELECT ALL + + col2 * + + col0 AS col1 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT ALL CAST( 91 AS SIGNED ) FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL CAST ( 91 AS INTEGER ) FROM tab2 AS cor0
----
91
91
91

query II rowsort
SELECT + 74 AS col2, col1 AS col1 FROM tab0 cor0
----
74
1
74
21
74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - MIN( - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - MIN ( - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT ALL + 11 + col1 FROM tab1 WHERE NOT + 6 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT + MIN( ALL + col2 ) FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT + MIN ( ALL + col2 ) FROM tab1 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab1 WHERE NOT + + 12 * 14 + col0 <> + col1
----

query I rowsort
SELECT col2 * + col0 * - col2 AS col0 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 77 NOT BETWEEN - ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL 53 * MIN( ALL - - col2 ) AS col0 FROM tab1
----
3127

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL 53 * MIN ( ALL - - col2 ) AS col0 FROM tab1
----
3127

query I rowsort
SELECT DISTINCT + ( + col0 ) * - - col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col0 * + - 92 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 86 + + col1 AS col0 FROM tab1 cor0
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3507
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * + 33 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT col1 FROM tab1 AS cor0 WHERE col2 IN ( + + CAST( - 51 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3510
SELECT col1 FROM tab1 AS cor0 WHERE col2 IN ( + + CAST ( - 51 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 89 / + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3512
SELECT - - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 26 + + col0 > ( + col1 + + 16 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) NOT BETWEEN ( + ( - col0 ) ) AND col0 * + ( 94 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 73 + 14 AS col1 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL col1 - + col0 * + CAST( NULL AS SIGNED ) / + - 42 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL col1 - + col0 * + CAST ( NULL AS INTEGER ) / + - 42 + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 26 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 90 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT - col1 + + + ( - col1 ) DIV + ( - 56 ) AS col0 FROM tab2
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-3519
SELECT - col1 + + + ( - col1 ) / + ( - 56 ) AS col0 FROM tab2
----
-51
-66
-76

query III rowsort
SELECT * FROM tab2 WHERE col2 - - + col1 + - - 95 + + - 70 * - ( col2 + 33 ) * 91 <> col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * 16 AS col1 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT + 25 + 5 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col2 FROM tab1 AS cor0
----
40

query II rowsort
SELECT - + col1, + 74 AS col1 FROM tab0 AS cor0
----
-1
74
-21
74
-81
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3525
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, col1 * - 44 * - col0 FROM tab0 AS cor0
----
NULL
4268
NULL
53460
NULL
80388

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, col1 * - 44 * - col0 FROM tab0 AS cor0
----
NULL
4268
NULL
53460
NULL
80388

query II rowsort
SELECT DISTINCT 25, col0 AS col2 FROM tab2 AS cor0
----
25
46
25
64
25
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - col2 * + 88 * col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 12 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT DISTINCT 71 * + COUNT( * ) + - + 99 DIV - - 23 FROM tab0 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT 71 * + COUNT ( * ) + - + 99 / - - 23 FROM tab0 AS cor0
----
209

query I rowsort
SELECT DISTINCT 55 FROM tab2 AS cor0 WHERE NOT col1 <= 91 + col2
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - col1 * + - col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT + 29 * - col1 * - + col1 AS col1 FROM tab2
----
130181
171941
75429

query II rowsort
SELECT DISTINCT col0 * + + ( + col1 ) AS col2, + col1 AS col2 FROM tab0
----
1215
81
1827
21
97
1

query II rowsort
SELECT ALL + ( col0 ) * col2, + col1 FROM tab0
----
705
81
870
21
9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL + col0 DIV - 59 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + col0 / - 59 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3536
SELECT CAST( CAST( col0 AS SIGNED ) AS SIGNED ) + + col2 DIV + col1 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3536
SELECT CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) + + col2 / + col1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT col2 * + + col2 DIV + - col2 col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT DISTINCT col2 * + + col2 / + - col2 col2 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT + 30 DIV - 66 * + 47 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + 30 / - 66 * + 47 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT ALL - ( + + col2 ) DIV - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - ( + + col2 ) / - col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 75 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 73 col2 FROM tab1 cor0
----
26
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 5 * SUM( - + 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2205

skipif mysql # not compatible
query I rowsort label-3543
SELECT 5 * SUM ( - + 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + + SUM( - + 57 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-513

skipif mysql # not compatible
query I rowsort label-3544
SELECT + + SUM ( - + 57 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT + COUNT( * ) - - MIN( ALL 61 ) * - 37 AS col2, + 27 AS col0 FROM tab0
----
-2254
27

skipif mysql # not compatible
query II rowsort label-3545
SELECT + COUNT ( * ) - - MIN ( ALL 61 ) * - 37 AS col2, + 27 AS col0 FROM tab0
----
-2254
27

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * - col1 + col2 + + col1 * + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL - MIN( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT + col0 + 25 DIV - 32 FROM tab2 AS cor0 WHERE 56 DIV - 62 + + 35 + col1 + + col1 * col0 * - - col1 DIV - col2 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + col0 + 25 / - 32 FROM tab2 AS cor0 WHERE 56 / - 62 + + 35 + col1 + + col1 * col0 * - - col1 / - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 32 + - col1 - col1 FROM tab2 AS cor0
----
-134
-166
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 31 col0 FROM tab1
----
28
37
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 + + - col1 col0 FROM tab0
----
-52
28
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3553
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + ( - CAST ( NULL AS REAL ) ) - + col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, 68 FROM tab2
----
51
68
67
68
77
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - 3 - + MAX( - ( - 21 ) ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 3 - + MAX ( - ( - 21 ) ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL MIN( DISTINCT - 17 ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL MIN ( DISTINCT - 17 ) AS col2 FROM tab1
----
-17

query I rowsort
SELECT ALL - - ( 37 ) AS col2 FROM tab1 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 = + ( - - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3558
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 = + ( - - col2 )
----
3

query I rowsort
SELECT ALL + - 33 * - col1 FROM tab1 AS cor0
----
1551
165
462

query II rowsort
SELECT ALL + col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL MIN( ALL + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL MIN ( ALL + - col2 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT + - 13 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + - 13 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab0 cor0
----
-47

query II rowsort
SELECT + col2 AS col2, 34 AS col0 FROM tab1 cor0
----
59
34
68
34
96
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3566
SELECT ALL - 1 AS col0, + col2 DIV - CAST( - 80 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

skipif mysql # not compatible
query II rowsort label-3566
SELECT ALL - 1 AS col0, + col2 / - CAST ( - 80 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * - - col2 * + col2 - + - ( - col2 ) * + + col0 col0 FROM tab1 AS cor0
----
-300900
-426972
-474912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT - col2 + CAST( col0 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - col2 + CAST ( col0 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT DISTINCT + + col2 * - col0 + ( col0 ) FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + 96 * - + COUNT( * ) AS col1 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + 96 * - + COUNT ( * ) AS col1 FROM tab2
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 * - + col2 * - col1 col0, + col2 FROM tab1
----
116928
96
25665
59
278052
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 75 < + col1 + - + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - + 52 ) FROM tab0 WHERE col2 <= - col1 + + + 83
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + col0 col2 FROM tab2 WHERE NULL IS NULL
----
3864
5376
6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT DISTINCT + 50 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + 50 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 89 AS col0 FROM tab1 AS cor0 WHERE 27 < - 72
----

query I rowsort
SELECT + + col2 + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 21 col1, col1 * - ( - col1 ) FROM tab2
----
21
2601
21
4489
21
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT + 44 * + - 72 AS col0 FROM tab1
----
-3168
-3168
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

query I rowsort
SELECT ALL ( + 97 ) AS col2 FROM tab0 cor0
----
97
97
97

query II rowsort
SELECT - + col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3584
SELECT - - COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3584
SELECT - - COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT + col2 * - 41 FROM tab0 AS cor0
----
-1927
-4059
-410

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 65 IS NULL )
----

query I rowsort
SELECT - + 12 - + col0 AS col0 FROM tab0 AS cor0
----
-109
-27
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT 49 * + + 63 >= NULL )
----

query I rowsort
SELECT ALL + 63 + + 17 * col0 AS col1 FROM tab2
----
1151
1338
845

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL - ( MIN( - 46 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - ( MIN ( - 46 ) ) FROM tab2
----
46

query I rowsort
SELECT ALL col2 * - 87 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT - MAX( ALL - 92 ) AS col1, + COUNT( * ) col2 FROM tab2
----
92
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3593
SELECT - MAX ( ALL - 92 ) AS col1, + COUNT ( * ) col2 FROM tab2
----
92
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - ( + - col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= + + col0 + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT ALL + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT MIN( DISTINCT + 57 ) FROM tab2, tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3597
SELECT MIN ( DISTINCT + 57 ) FROM tab2, tab1 AS cor0
----
57

query I rowsort
SELECT ( - ( + 97 ) ) FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( + col1 * - col1 )
----

query I rowsort
SELECT ALL + + 98 * - 6 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-29974
-49975
-53461

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 4 / + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT SUM( ALL col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 9 + - col2 FROM tab2 cor0
----
-14
-31
-49

query I rowsort
SELECT DISTINCT col1 * - + col1 * col2 FROM tab1 cor0
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3606
SELECT ALL COUNT( * ), CAST( NULL AS SIGNED ) col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3606
SELECT ALL COUNT ( * ), CAST ( NULL AS INTEGER ) col0 FROM tab0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + 63 * 20 + - + col0 DIV col0 * + + col1 AS col2 FROM tab2
----
1183
1193
1209

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 63 * 20 + - + col0 / col0 * + + col1 AS col2 FROM tab2
----
1183
1193
1209

query I rowsort
SELECT - 15 + + col0 FROM tab2
----
31
49
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3609
SELECT + - CAST( - COUNT( * ) AS SIGNED ) + - 81 FROM tab2 WHERE - col0 IS NOT NULL
----
-78

skipif mysql # not compatible
query I rowsort label-3609
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) + - 81 FROM tab2 WHERE - col0 IS NOT NULL
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT + COUNT( * ) AS col2, - 55 + - SUM( - - 18 ) + - COUNT( * ) + + - 43 FROM tab2
----
3
-155

skipif mysql # not compatible
query II rowsort label-3610
SELECT + COUNT ( * ) AS col2, - 55 + - SUM ( - - 18 ) + - COUNT ( * ) + + - 43 FROM tab2
----
3
-155

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT MIN( ALL col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3612
SELECT MIN ( ALL col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col0 * - col1 - - - 73 + - 24 FROM tab0
----
-1312
-1924
-194

query III rowsort
SELECT * FROM tab2 WHERE + ( - 59 ) * 4 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 27 / + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL + + 69 DIV MAX( col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + + 69 / MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND col1 / col1 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3621
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT + 53 AS col1, 78 + + col2 FROM tab1
----
53
137
53
146
53
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT + MIN( + 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + MIN ( + 91 ) FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - MAX( ALL 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3624
SELECT - MAX ( ALL 45 ) FROM tab2
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT ALL COUNT( * ) DIV - - 8 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL COUNT ( * ) / - - 8 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT MAX( ALL + + col0 ) * - 32 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2912

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT MAX ( ALL + + col0 ) * - 32 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT 65 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3629
SELECT col0 AS col2, + ( col2 ) DIV + col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3629
SELECT col0 AS col2, + ( col2 ) / + col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3630
SELECT CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3630
SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT + CAST( - 76 AS SIGNED ) * + ( + + col2 ) FROM tab2 AS cor0
----
-1748
-3040
-4408

skipif mysql # not compatible
query I rowsort label-3631
SELECT + CAST ( - 76 AS INTEGER ) * + ( + + col2 ) FROM tab2 AS cor0
----
-1748
-3040
-4408

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT + col1 * 33 DIV - - col1 AS col0 FROM tab2
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3632
SELECT + col1 * 33 / - - col1 AS col0 FROM tab2
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - SUM( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3633
SELECT - SUM ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + 55 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + 55 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT DISTINCT + 31 DIV + 25 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + 31 / + 25 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - - MIN( ALL + 33 ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-3636
SELECT - - MIN ( ALL + 33 ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + SUM( DISTINCT - ( - col2 ) ) col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3637
SELECT + SUM ( DISTINCT - ( - col2 ) ) col2 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT ALL - COUNT( * ), + COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3638
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0
----
-3
3

query III rowsort
SELECT * FROM tab2 WHERE NULL > col0 * + 21 - - 21 + - col0 + - 95 + - col0 + + ( col2 )
----

query I rowsort
SELECT col0 + 59 AS col1 FROM tab2
----
105
123
134

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT + - ( COUNT( * ) ) - COUNT( * ) - - - COUNT( * ) AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT + - ( COUNT ( * ) ) - COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL + 64 - + 10 FROM tab2
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + + col1 col0 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - MAX( DISTINCT + 17 ) col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3645
SELECT ALL - MAX ( DISTINCT + 17 ) col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - 74 * col1 * + col0 FROM tab0 AS cor0
----
-135198
-7178
-89910

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-3647
SELECT - MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

query I rowsort
SELECT + col0 * ( col0 ) * + col1 * - col0 + 52 * - - col2 FROM tab0 AS cor0
----
-13828043
-270931
-907525

query I rowsort
SELECT DISTINCT - ( - 92 ) AS col2 FROM tab0 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT SUM( + 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT SUM ( + 98 ) FROM tab1
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3651
SELECT * FROM tab2 WHERE NOT - 57 * 62 / CAST( col0 AS SIGNED ) / 7 + col0 + + - col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-3651
SELECT * FROM tab2 WHERE NOT - 57 * 62 / CAST ( col0 AS INTEGER ) / 7 + col0 + + - col0 > NULL
----

query II rowsort
SELECT ALL + 18 * - col0 AS col0, - ( - - col0 ) + - col2 AS col2 FROM tab0
----
-1566
-97
-1746
-196
-270
-62

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = - + col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( + - 65, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 85 * - - col1 AS col0 FROM tab1
----
1190
3995
425

query I rowsort
SELECT col1 * + 80 AS col2 FROM tab0
----
1680
6480
80

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( - 5 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( col2 ) FROM tab0 WHERE NOT + 58 * + + col2 NOT BETWEEN + - col2 AND 84 + - + col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18 * + col0 col2, col1 + + col0 AS col0 FROM tab1
----
1530
90
1638
138
918
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + col2 AND ( - 20 * col2 / + 12 * - col2 / + - col1 )
----

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 AND ( - 20 * col2 / + 12 * - col2 / + - col1 )
----

query I rowsort
SELECT ALL - - col1 + - - col0 FROM tab0 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT CAST( CAST( + + 95 AS SIGNED ) AS SIGNED ) FROM tab0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-3662
SELECT CAST ( CAST ( + + 95 AS INTEGER ) AS INTEGER ) FROM tab0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * - col2 col0 FROM tab2
----
-230
-400
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT DISTINCT + col0 DIV - 38 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + col0 / - 38 AS col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT col2 DIV 63 * - + col1 * + col0 FROM tab0
----
-97
0
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT col2 / 63 * - + col1 * + col0 FROM tab0
----
-97
0
0

query II rowsort
SELECT - 52 AS col1, 65 * 26 AS col0 FROM tab0 AS cor0
----
-52
1690
-52
1690
-52
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( * ) + - 27 + + 96 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) + - 27 + + 96 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT COUNT( * ) * - - ( 22 ) + - 20 col2 FROM tab0 WHERE NULL <= NULL
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3669
SELECT COUNT ( * ) * - - ( 22 ) + - 20 col2 FROM tab0 WHERE NULL <= NULL
----
-20

query I rowsort
SELECT col0 + 17 AS col2 FROM tab2
----
63
81
92

query I rowsort
SELECT DISTINCT col2 + + - col0 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + 58 + + COUNT( * ) * - COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 58 + + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
49

query II rowsort
SELECT DISTINCT col0 - + col0, + col1 * - + col0 AS col2 FROM tab2
----
0
-2346
0
-4928
0
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT - ( CAST( NULL AS SIGNED ) ) BETWEEN - col1 AND - + col0
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) BETWEEN - col1 AND - + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 91 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT DISTINCT 23 DIV COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT 23 / COUNT ( * ) FROM tab0
----
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + - col2 + - col2 - 59 AS col0 FROM tab2
----
1091
2981
3769

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + 34 < - 20 AND NOT col0 * - 68 <= NULL
----

query I rowsort
SELECT ALL - col0 + ( + + 4 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + COUNT( + col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3683
SELECT + COUNT ( + col1 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL - CAST( + MAX( DISTINCT col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - CAST ( + MAX ( DISTINCT col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT + col2 DIV 58 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3686
SELECT + col2 / 58 AS col0 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - 93 col2 FROM tab0
----
1
-93
21
-93
81
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3688
SELECT ALL - CAST( NULL AS DECIMAL ) * - 8 / - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - CAST ( NULL AS REAL ) * - 8 / - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 31 * - col1 AS col2 FROM tab1
----
1457
155
434

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE + 61 < 82
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 5 * - col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - + 78 + + - ( + COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-3692
SELECT - + 78 + + - ( + COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT - col1 / - col2 / - CAST( - - col0 AS SIGNED ) * - + col2 + - 49 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - col1 / - col2 / - CAST ( - - col0 AS INTEGER ) * - + col2 + - 49 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 45 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-3915
-4365
-675

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + + ( COUNT( ALL col2 ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3696
SELECT + + ( COUNT ( ALL col2 ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * - + 21 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1071
-1407
-1617

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3698
SELECT - col2, CAST( NULL AS DECIMAL ) * col0 * ( - col1 ) * - col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-3698
SELECT - col2, CAST ( NULL AS REAL ) * col0 * ( - col1 ) * - col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND - 72
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3701
SELECT ALL * FROM tab1 cor0 WHERE - col1 BETWEEN CAST( NULL AS DECIMAL ) AND col0 + + col2 + + col0 + + + 85
----

skipif mysql # not compatible
query III rowsort label-3701
SELECT ALL * FROM tab1 cor0 WHERE - col1 BETWEEN CAST ( NULL AS REAL ) AND col0 + + col2 + + col0 + + + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - ( - + 58 ) * COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - ( - + 58 ) * COUNT ( * ) FROM tab0
----
174

query I rowsort
SELECT - - col1 - col2 AS col1 FROM tab1 WHERE ( NULL >= col1 + + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL 34 + COUNT( * ) FROM tab2 cor0
----
37

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL 34 + COUNT ( * ) FROM tab2 cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT col0 DIV - ( - col2 ) FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3705
SELECT col0 / - ( - col2 ) FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 11 ) IS NULL
----

query I rowsort
SELECT + 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL - + 21 + - COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - + 21 + - COUNT ( * ) FROM tab1 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT - + 47 DIV 94 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3710
SELECT - + 47 / 94 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT - COUNT( * ) - - MIN( + 99 ), + 90 AS col0 FROM tab0
----
96
90

skipif mysql # not compatible
query II rowsort label-3711
SELECT - COUNT ( * ) - - MIN ( + 99 ), + 90 AS col0 FROM tab0
----
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL 19 + - + ( - ( - 40 ) ) + + COUNT( * ) * - ( - COUNT( * ) ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL 19 + - + ( - ( - 40 ) ) + + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT + 67 - + CAST( - col2 AS SIGNED ) FROM tab1
----
126
135
163

skipif mysql # not compatible
query I rowsort label-3713
SELECT + 67 - + CAST ( - col2 AS INTEGER ) FROM tab1
----
126
135
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3714
SELECT ALL CAST( NULL AS DECIMAL ) - - ( col1 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3714
SELECT ALL CAST ( NULL AS REAL ) - - ( col1 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 29 - - + 19 FROM tab1
----
48

query II rowsort
SELECT - 18 * 33 + - 2 AS col0, + ( - col1 ) + + + 18 + + + col1 FROM tab0
----
-596
18
-596
18
-596
18

query I rowsort
SELECT DISTINCT + 82 FROM tab2 cor0 WHERE NOT NULL > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT 10 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT 10 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 30 IS NOT NULL
----

query II rowsort
SELECT 27 * + + col1, 45 + - col1 AS col0 FROM tab1 AS cor0
----
1269
-2
135
40
378
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL - - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + - ( + col1 ) AS col2, + col0 * - col0 - + 36 AS col1 FROM tab1 AS cor0
----
-14
-2637
-47
-8317
-5
-7261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT col2 + - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3724
SELECT col2 + - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

query II rowsort
SELECT col2 * - col2, col0 * + 43 AS col0 FROM tab2 AS cor0
----
-1600
2752
-3364
3225
-529
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT ( NOT + 35 <= 43 )
----
-227

skipif mysql # not compatible
query I rowsort label-3726
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT ( NOT + 35 <= 43 )
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - COUNT( + col1 ) * + 17 * + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3727
SELECT - COUNT ( + col1 ) * + 17 * + COUNT ( * ) FROM tab2
----
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3728
SELECT * FROM tab2 WHERE NOT col2 / + - col1 + - CAST( NULL AS DECIMAL ) - - col0 + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3728
SELECT * FROM tab2 WHERE NOT col2 / + - col1 + - CAST ( NULL AS REAL ) - - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT 4 + + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3729
SELECT 4 + + COUNT ( * ) FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + COUNT( * ) * + 31 + + + MAX( + + col1 ) col1 FROM tab2
----
170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3730
SELECT + COUNT ( * ) * + 31 + + + MAX ( + + col1 ) col1 FROM tab2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT + MIN( ALL + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + MIN ( ALL + col1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT ALL col0 AS col0, col2 / + 61 FROM tab1 AS cor0 WHERE NULL > + col2
----

query I rowsort
SELECT DISTINCT + 84 + - 18 + - 77 * col1 * + - col0 FROM tab0 cor0
----
140745
7535
93621

query I rowsort
SELECT - AVG ( ALL - 7 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 29 / + col2 + + col0 IS NULL
----

query I rowsort
SELECT - ( col0 ) + - + 77 * col0 AS col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3737
SELECT ALL CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3737
SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE + col2 + - ( ( - col1 ) ) * 47 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col2 + + + col0 AS col1 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT + + 52 FROM tab2 WHERE 74 IS NOT NULL
----
52
52
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV SUM( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / SUM ( ALL + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT - ( + + CAST( NULL AS SIGNED ) ) col1, CAST( - + 12 AS SIGNED ) + + + col0 * - - 70 AS col1 FROM tab1
----
NULL
3558
NULL
5938
NULL
6358

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3742
SELECT - ( + + CAST ( NULL AS INTEGER ) ) col1, CAST ( - + 12 AS INTEGER ) + + + col0 * - - 70 AS col1 FROM tab1
----
NULL
3558
NULL
5938
NULL
6358

query I rowsort
SELECT ALL - col1 - - - ( + + ( - 43 ) ) FROM tab2
----
-24
-34
-8

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - col1 * + 44 / + + 48 - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col2 col2 FROM tab0 WHERE NOT NULL > + col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( - col0 ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 - - col0 * col1 + - 85 col1 FROM tab2
----
2324
4906
5003

query I rowsort
SELECT - 8 AS col2 FROM tab2 WHERE NULL IS NULL
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 32 col2 FROM tab2
----
-55
-72
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL CAST( 46 AS SIGNED ) * - + 89 + col2 AS col2 FROM tab1
----
-3998
-4026
-4035

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL CAST ( 46 AS INTEGER ) * - + 89 + col2 AS col2 FROM tab1
----
-3998
-4026
-4035

query I rowsort
SELECT DISTINCT + ( ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 90 AS col0 FROM tab2
----
46
90
64
90
75
90

query I rowsort
SELECT + col2 * - + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - ( + 85 ) FROM tab0
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3757
SELECT ALL col2 AS col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL col2 AS col0, CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL + - MIN( - - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + - MIN ( - - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT - SUM( - 38 ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - SUM ( - 38 ) FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + MAX( ALL + ( - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( ALL + ( - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + + 42 * - 51 * 95 + 40 * - 83 * - COUNT( * ) FROM tab1 AS cor0
----
-193530

skipif mysql # not compatible
query I rowsort label-3761
SELECT + + 42 * - 51 * 95 + 40 * - 83 * - COUNT ( * ) FROM tab1 AS cor0
----
-193530

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 + + col2 col0, - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
129
-81
181
-1
92
-21

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3765
SELECT col2 + + col2 - + col2 * + + col0, + col1 + - + col1 * + + col2 col0, - 77 DIV col0 + + 35 AS col1 FROM tab1 AS cor0
----
9 values hashing to be3128f11da63a33adb981943eface8c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3765
SELECT col2 + + col2 - + col2 * + + col0, + col1 + - + col1 * + + col2 col0, - 77 / col0 + + 35 AS col1 FROM tab1 AS cor0
----
9 values hashing to be3128f11da63a33adb981943eface8c

query I rowsort
SELECT + col2 + + + col2 - col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 83 + + - 13 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + 24 + col2 + - 22 AS col1 FROM tab1 AS cor0
----
61
70
98

query I rowsort
SELECT ALL 81 + + col0 * + + 68 FROM tab0 AS cor0
----
1101
5997
6677

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - + col2 * + 9 + 2 + + col0 FROM tab1 AS cor0
----
-444
-519
-811

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL MAX( + col2 ) - - + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL MAX ( + col2 ) - - + COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT DISTINCT col2 * - - col1 * - + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query II rowsort label-3774
SELECT DISTINCT - 3 - + + col1 - - ( + 16 ) - - - col0 * 8 AS col1, + col0 + - 58 - + ( - col0 ) DIV col0 AS col2 FROM tab2
----
-406
-11
-576
7
-654
18

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT - 3 - + + col1 - - ( + 16 ) - - - col0 * 8 AS col1, + col0 + - 58 - + ( - col0 ) / col0 AS col2 FROM tab2
----
-406
-11
-576
7
-654
18

query I rowsort
SELECT ALL + 6 + + 10 * - + 70 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d8704df8538e6c41a732dee3ac66b8ce

query II rowsort
SELECT ALL - col0 AS col0, 14 FROM tab1
----
-51
14
-85
14
-91
14

query I rowsort
SELECT - ( - - col0 ) * - 8 FROM tab2 AS cor0
----
368
512
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + col0 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 0 * + 16 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - + COUNT( + 79 ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3781
SELECT - + COUNT ( + 79 ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ( + - ( + col1 ) ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL + + 25 + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + + 25 + COUNT ( * ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT col1 + + - col1 + + + col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - - 94 - + col1 NOT BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 + + col0 AS col1 FROM tab1 AS cor0
----
141
175
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT - COUNT( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT - col1 FROM tab2 AS cor0 WHERE NOT CAST( + 70 AS SIGNED ) * + col1 * col2 * - col1 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3789
SELECT - col1 FROM tab2 AS cor0 WHERE NOT CAST ( + 70 AS INTEGER ) * + col1 * col2 * - col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT - MAX( DISTINCT + 91 ) col2 FROM tab0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3790
SELECT DISTINCT - MAX ( DISTINCT + 91 ) col2 FROM tab0
----
-91

query I rowsort
SELECT ALL - 63 * col1 FROM tab2
----
-3213
-4221
-4851

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 WHERE NOT + - 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL CAST( 1 AS SIGNED ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL CAST ( 1 AS INTEGER ) AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col1 col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT + 5 + + col2 FROM tab2
----
28
45
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT 79 DIV 35 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3797
SELECT 79 / 35 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT DISTINCT + col1 + + col1 + col0 AS col0, + col2 FROM tab2 cor0
----
148
23
209
58
218
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT + + MIN( ALL - + CAST( NULL AS SIGNED ) ) * - COUNT( - col0 ) + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * - COUNT ( - col0 ) + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 72 + 33 FROM tab2
----
105
105
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + + col0 * - 1 col2 FROM tab1 AS cor0
----
-118
-152
-158

query II rowsort
SELECT - - col2 + + 16, + col2 AS col0 FROM tab2 AS cor0
----
39
23
56
40
74
58

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - + col1 FROM tab2 cor0
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT - + ( + - col1 ) * + col0 DIV + col0 + + ( - col2 ) FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - + ( + - col1 ) * + col0 / + col0 + + ( - col2 ) FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IN ( - ( + - col1 ), - col0, - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND ( + 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT 56 DIV - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT 56 / - col0 FROM tab0 AS cor0
----
-3
0
0

query II rowsort
SELECT - col0 AS col1, - 39 FROM tab1
----
-51
-39
-85
-39
-91
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL COUNT( 9 ) AS col1 FROM tab0 WHERE + col1 - - 3 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL COUNT ( 9 ) AS col1 FROM tab0 WHERE + col1 - - 3 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT 34 * + MAX( + 37 ) col2 FROM tab2
----
1258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT 34 * + MAX ( + 37 ) col2 FROM tab2
----
1258

query II rowsort
SELECT 78 AS col0, col1 FROM tab2
----
78
51
78
67
78
77

query II rowsort
SELECT DISTINCT 60 AS col0, col1 + col1 FROM tab1
----
60
10
60
28
60
94

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL - + MIN( ALL + + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - + MIN ( ALL + + col1 ) FROM tab2 cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * + col0 ) NOT IN ( col1, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT ALL + 81 * - col1 + + col1 DIV - + 12 FROM tab2 cor0
----
-4135
-5432
-6243

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 81 * - col1 + + col1 / - + 12 FROM tab2 cor0
----
-4135
-5432
-6243

query I rowsort
SELECT DISTINCT - - col1 + - 44 AS col1 FROM tab0 cor0
----
-23
-43
37

query I rowsort
SELECT DISTINCT 54 + col1 FROM tab0 AS cor0
----
135
55
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - 69 IS NOT NULL
----

query I rowsort
SELECT col2 * 58 AS col1 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL - col2 * - - col1 + + ( + col0 ) DIV - 81 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - col2 * - - col1 + + ( + col0 ) / - 81 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT - + col2, - 78 + col1 AS col1 FROM tab2 AS cor0
----
-23
-27
-40
-1
-58
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col2 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT col0 + + 16 FROM tab2
----
62
80
91

query I rowsort
SELECT 17 * + 19 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1504
-892
226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) + - 72 + + 95 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + - 72 + + 95 FROM tab1 AS cor0
----
26

query I rowsort
SELECT - - col1 + - col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT ( - SUM( ( - - 73 ) ) ) AS col0 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT ( - SUM ( ( - - 73 ) ) ) AS col0 FROM tab0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT - SUM( + 92 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT - SUM ( + 92 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 73
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT col1 - - - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + 49 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 49 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT - MAX( - 70 ) AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - MAX ( - 70 ) AS col2 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3836
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3836
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

query II rowsort
SELECT + col1 AS col0, - 84 AS col1 FROM tab1 AS cor0
----
14
-84
47
-84
5
-84

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT COUNT( * ) DIV + 19 * 38 * 72 * - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT COUNT ( * ) / + 19 * 38 * 72 * - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT DISTINCT 88 * + COUNT( * ) AS col1, - COUNT( * ) FROM tab1
----
264
-3

skipif mysql # not compatible
query II rowsort label-3840
SELECT DISTINCT 88 * + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1
----
264
-3

query I rowsort
SELECT DISTINCT ( + 64 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT - MAX( + 54 ), COUNT( 91 ) * COUNT( * ) AS col2 FROM tab2
----
-54
9

skipif mysql # not compatible
query II rowsort label-3842
SELECT - MAX ( + 54 ), COUNT ( 91 ) * COUNT ( * ) AS col2 FROM tab2
----
-54
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL + COUNT( ALL - col2 ) FROM tab2 WHERE NOT + + col1 * col0 * + col1 * - + 22 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + COUNT ( ALL - col2 ) FROM tab2 WHERE NOT + + col1 * col0 * + col1 * - + 22 IS NOT NULL
----
0

query I rowsort
SELECT - 20 * - 29 AS col0 FROM tab1
----
580
580
580

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 35 NOT BETWEEN NULL AND + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + COUNT( - + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3847
SELECT + COUNT ( - + col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT DISTINCT + + COUNT( * ) AS col0, 45 AS col1 FROM tab2 AS cor0
----
3
45

skipif mysql # not compatible
query II rowsort label-3848
SELECT DISTINCT + + COUNT ( * ) AS col0, 45 AS col1 FROM tab2 AS cor0
----
3
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT + CAST( - col2 AS SIGNED ) + 88 FROM tab2 AS cor0
----
30
48
65

skipif mysql # not compatible
query I rowsort label-3849
SELECT + CAST ( - col2 AS INTEGER ) + 88 FROM tab2 AS cor0
----
30
48
65

query I rowsort
SELECT DISTINCT - 60 + ( - col2 ) FROM tab1 AS cor0
----
-119
-128
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL 26 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 26 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 + 71 * - - 20 <= NULL
----

query I rowsort
SELECT DISTINCT - 51 + + col0 AS col2 FROM tab0 cor0
----
-36
36
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT DISTINCT - col2 DIV col2 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - col2 / col2 AS col1 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 79 col0 FROM tab1 AS cor0
----
130
164
170

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT ALL - 62 DIV + + 57 + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - 62 / + + 57 + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT DISTINCT - col0 + - 88 FROM tab1
----
-139
-173
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT ALL - MIN( ALL + col2 ) DIV + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - MIN ( ALL + col2 ) / + 85 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col1 BETWEEN - col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + ( - col2 ) FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT 24 * + 13 * - col0 FROM tab2
----
-14352
-19968
-23400

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL + SUM( + col1 ) * COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + SUM ( + col1 ) * COUNT ( * ) FROM tab0
----
309

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < + 89 * 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - col1 + + + col0 AS col1 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 AND - 41 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT 98 + - COUNT( * ) AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT 98 + - COUNT ( * ) AS col1 FROM tab2
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col2 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 76 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL AND col1 IS NOT NULL
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT 94 DIV + 27 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3871
SELECT 94 / + 27 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT - 8 * - col2 AS col0 FROM tab0 AS cor0
----
376
792
80

query II rowsort
SELECT DISTINCT col2 AS col1, + 67 FROM tab0
----
10
67
47
67
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT 78 + - COUNT( * ) * + MIN( ALL + + 59 ) AS col2 FROM tab2, tab1 AS cor0
----
-453

skipif mysql # not compatible
query I rowsort label-3874
SELECT 78 + - COUNT ( * ) * + MIN ( ALL + + 59 ) AS col2 FROM tab2, tab1 AS cor0
----
-453

query II rowsort
SELECT + col2 AS col1, + col1 AS col2 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT 53 + col1 FROM tab0 AS cor0
----
134
54
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * + col0 col2 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT DISTINCT 54 FROM tab2 WHERE NULL NOT IN ( + col0 / + 75 )
----

query I rowsort
SELECT 98 * col0 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT ALL col2 * + col2 - col0 * - col0 FROM tab1
----
10706
11817
12905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT - col2 + ( col2 + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - col2 + ( col2 + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + col1 <> ( CAST( NULL AS SIGNED ) + + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + col1 <> ( CAST ( NULL AS INTEGER ) + + 49 )
----
0

query I rowsort
SELECT ALL + col1 + + col0 * col2 AS col0 FROM tab2
----
1109
2637
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab1
----
70
70
70

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - 90 FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL + 91 * ( col0 ) FROM tab2
----
4186
5824
6825

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col1 FROM tab2 WHERE NOT ( - 24 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT COUNT( * ) DIV 27 FROM tab2 WHERE ( 46 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT COUNT ( * ) / 27 FROM tab2 WHERE ( 46 ) IS NULL
----
0

query I rowsort
SELECT ALL + 73 AS col0 FROM tab0 WHERE NOT col1 BETWEEN NULL AND col2
----
73
73

query I rowsort
SELECT col1 * col1 + 59 * + ( + col1 * col2 ) AS col1 FROM tab1
----
17430
190773
79492

query I rowsort
SELECT col2 * col2 + 31 AS col1 FROM tab0
----
131
2240
9832

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - 31 + - col2 * 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT col2 DIV + 50 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT col2 / + 50 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT MIN( 1 ) DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT MIN ( 1 ) / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + col2 * + ( + col2 ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT 96 FROM tab1 WHERE ( col1 + - col1 ) IS NOT NULL
----
96
96
96

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 * col0 - ( - col1 ) )
----

query I rowsort
SELECT + col2 * - 78 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT DISTINCT ( col0 ) + 48 AS col2 FROM tab0
----
135
145
63

query I rowsort
SELECT + ( ( col1 ) ) AS col0 FROM tab0 WHERE NOT ( + 87 * col1 ) IS NULL
----
1
21
81

query I rowsort
SELECT + col1 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - CAST( col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-3906
SELECT - CAST ( col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE 62 * col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + 18 * + 94 AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 893d32e1950c529feb32d5503dcfb1ce

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 31 * - COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3909
SELECT 31 * - COUNT ( * ) FROM tab0
----
-93

query I rowsort
SELECT 82 * + col1 AS col1 FROM tab0 AS cor0
----
1722
6642
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT 11 DIV col2 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3911
SELECT DISTINCT 11 / col2 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col2 ) <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + - ( 45 ) * - COUNT( * ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3913
SELECT + - ( 45 ) * - COUNT ( * ) FROM tab1 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + + COUNT( * ) * - 22 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + + COUNT ( * ) * - 22 FROM tab2 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 73 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT MIN( DISTINCT + 93 ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3916
SELECT MIN ( DISTINCT + 93 ) AS col2 FROM tab0 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 18 FROM tab0 cor0 WHERE NOT NULL <> col2 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - col1 NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL + col1 * + + col0 DIV + col0 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + col1 * + + col0 / + col0 AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + COUNT( * ) * + - 34 AS col2 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-3922
SELECT + COUNT ( * ) * + - 34 AS col2 FROM tab2
----
-102

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT CAST( - 71 AS SIGNED ) AS col1 FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-3924
SELECT CAST ( - 71 AS INTEGER ) AS col1 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE 48 >= ( + 99 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 3 < NULL
----

query I rowsort
SELECT 4 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
101
19
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + ( + + col2 ) * + col1 FROM tab2
----
46
1173
64
3080
75
3886

query II rowsort
SELECT ALL + col0, + 87 * - + 45 FROM tab1
----
51
-3915
85
-3915
91
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT SUM( DISTINCT + 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT SUM ( DISTINCT + 64 ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + MAX( DISTINCT 17 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
17

skipif mysql # not compatible
query I rowsort label-3931
SELECT + MAX ( DISTINCT 17 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
17

query I rowsort
SELECT ALL - ( - - 41 ) FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + col1 * col0 + col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + - 82 / - 49 )
----

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
116
46
80

query I rowsort
SELECT col0 + col2 * - - col0 + col2 FROM tab2 AS cor0
----
1127
2664
4483

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 99 NOT BETWEEN NULL AND ( 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 + + - col1 FROM tab1 cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 47 + - 99 + + col0 col2 FROM tab0 AS cor0
----
2125
458
4651

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 + + - 8 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3939
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 + + - 8 ) IS NOT NULL
----
9

query I rowsort
SELECT - 68 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
-68
-68
-68

query I rowsort
SELECT col2 FROM tab0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( - 75 ) / 90 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 98 * col1 AS col2 FROM tab1
----
1372
4606
490

query I rowsort
SELECT ALL col0 * + col2 * - + ( - + col2 ) * col1 - col0 FROM tab2
----
1240988
16904025
7884736

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT 47 - + - ( - ( col2 ) ) DIV col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT 47 - + - ( - ( col2 ) ) / col2 FROM tab2
----
46

query I rowsort
SELECT 64 + + col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - 51 - - CAST( - 93 AS SIGNED ) FROM tab2 cor0
----
-144
-144
-144

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 51 - - CAST ( - 93 AS INTEGER ) FROM tab2 cor0
----
-144
-144
-144

query I rowsort
SELECT + 13 * + 99 FROM tab0 AS cor0
----
1287
1287
1287

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0, col0 - col2 + + 11 )
----

query I rowsort
SELECT ALL - 67 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 13 IS NULL
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT + 67 * - ( - 33 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8658f4e9e141996fae1008dc144fe9f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * + col0 col2 FROM tab2
----
230
320
375

query I rowsort
SELECT DISTINCT 70 * - 53 AS col2 FROM tab1 AS cor0
----
-3710

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ALL + - ( 54 ) DIV - 33 col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3955
SELECT ALL + - ( 54 ) / - 33 col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * col2 * 77 FROM tab1 AS cor0
----
-103488
-22715
-246092

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT ALL + 22 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + 22 / - col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

query II rowsort
SELECT ALL col1 AS col1, col0 AS col1 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3959
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ) * - col1, - col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS REAL ) * - col1, - col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3960
SELECT + + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT + 57 DIV col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT + 57 / col1 AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - col1 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 78 IS NULL
----

query I rowsort
SELECT col0 + col2 + + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
1277
1924
293

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 * + - col0 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT DISTINCT - 7 DIV col0 + 54 * + col1 FROM tab0 WHERE - + col0 + col1 >= col0
----
4374

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - 7 / col0 + 54 * + col1 FROM tab0 WHERE - + col0 + col1 >= col0
----
4374

query I rowsort
SELECT - + col2 * + + ( 60 ) FROM tab1 AS cor0
----
-3540
-4080
-5760

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT + + 13 DIV + 53 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT + + 13 / + 53 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 98 * col2 FROM tab2 AS cor0
----
2254
3920
5684

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + col0, col1 * - - 98 * + 67 * - - col2 * - 47 * + ( + col2 ) )
----

query I rowsort
SELECT + + 9 * col2 - - - col0 FROM tab2 cor0
----
161
296
447

query I rowsort
SELECT DISTINCT 36 + + 76 * - col2 * + + col0 - + 39 FROM tab0 AS cor0
----
-53583
-66123
-729831

query I rowsort
SELECT DISTINCT col0 + col0 * - + col1 * - 39 FROM tab2
----
192256
196050
91540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - COUNT( * ) + 61 FROM tab1 WHERE - - CAST( + ( + ( + col0 ) ) AS SIGNED ) + + 40 / col2 IN ( - col2 * + 74 )
----
61

skipif mysql # not compatible
query I rowsort label-3974
SELECT - COUNT ( * ) + 61 FROM tab1 WHERE - - CAST ( + ( + ( + col0 ) ) AS INTEGER ) + + 40 / col2 IN ( - col2 * + 74 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT ALL COUNT( * ), - MIN( + + 94 ) AS col1 FROM tab1
----
3
-94

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL COUNT ( * ), - MIN ( + + 94 ) AS col1 FROM tab1
----
3
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT 86 + + col1 + - - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) * ( col2 ) - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT 86 + + col1 + - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * ( col2 ) - + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col1 - col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3978
SELECT - CAST( NULL AS SIGNED ) * 5 * - CAST( + col1 AS SIGNED ) * - - col2 + - 64, - col1 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-3978
SELECT - CAST ( NULL AS INTEGER ) * 5 * - CAST ( + col1 AS INTEGER ) * - - col2 + - 64, - col1 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL - - MAX( DISTINCT 50 ) AS col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - - MAX ( DISTINCT 50 ) AS col2 FROM tab2 AS cor0
----
50

query I rowsort
SELECT + col1 * 82 AS col2 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 < - 76 * - + col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 16 + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - + col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - + col2 ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + COUNT( * ) + + 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + COUNT ( * ) + + 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + 1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3988
SELECT - + ( + col1 ) * - + CAST( NULL AS DECIMAL ) * - - col0 * + col0 * + + 64 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT - + ( + col1 ) * - + CAST ( NULL AS REAL ) * - - col0 * + col0 * + + 64 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT + + CAST( + ( - 45 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3989
SELECT + + CAST ( + ( - 45 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT + + col1 * - - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL col2 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 94 > NULL
----

query I rowsort
SELECT ALL ( - 98 ) AS col1 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - col2 * - + 28 AS col0 FROM tab1
----
1652
1904
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 7 ) * + + col2 col2 FROM tab0
----
-329
-693
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * ( - col0 ) + + + 24 + + col2 * - 88 * 89 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT DISTINCT 2 DIV - col1 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT 2 / - col1 FROM tab0
----
-2
0

query II rowsort
SELECT ALL + col1 AS col1, + 34 AS col2 FROM tab0
----
1
34
21
34
81
34

query I rowsort
SELECT ALL 34 * 86 * col1 FROM tab1
----
137428
14620
40936

query I rowsort
SELECT ALL 73 * - 70 FROM tab2
----
-5110
-5110
-5110

query I rowsort
SELECT col2 + + col0 + + ( col0 ) AS col0 FROM tab1 WHERE + - col2 * + col2 + + + 46 < ( - - col0 - - ( - col1 ) )
----
198
229
250

query I rowsort
SELECT - ( ( - - col2 ) ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 18 * - col0 * - 80 FROM tab2
----
108000
66240
92160

query I rowsort
SELECT DISTINCT - col1 + + - 48 AS col2 FROM tab2 AS cor0
----
-115
-125
-99

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 24 * - 64 - - col2 AS col1 FROM tab1
----
-1440
-1468
-1477

query I rowsort
SELECT DISTINCT - + col2 + + 97 FROM tab0 AS cor0
----
-2
50
87

query II rowsort
SELECT ALL + 35, col2 AS col1 FROM tab1 AS cor0
----
35
59
35
68
35
96

query I rowsort
SELECT DISTINCT - 63 FROM tab2 AS cor0 WHERE NOT col1 + col1 * 15 IS NULL
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT ALL - - MAX( DISTINCT + col2 ), ( + 4 ) AS col1 FROM tab2 AS cor0
----
58
4

skipif mysql # not compatible
query II rowsort label-4011
SELECT ALL - - MAX ( DISTINCT + col2 ), ( + 4 ) AS col1 FROM tab2 AS cor0
----
58
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / - - col1 > + col1
----

query II rowsort
SELECT + col0 AS col2, 69 + - col1 AS col2 FROM tab0 cor0
----
15
-12
87
48
97
68

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 71 <= + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( col2 ) - + col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 61 + + 98 FROM tab2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT DISTINCT col0 DIV + 67 - + col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT col0 / + 67 - + col2 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT DISTINCT + + 83 AS col2 FROM tab0 AS cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 26 * 84 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT + - SUM( ALL - - 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-567

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + - SUM ( ALL - - 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-567

query II rowsort
SELECT - - 59, 34 AS col2 FROM tab2 AS cor0
----
59
34
59
34
59
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT DISTINCT 13 AS col1, - COUNT( * ) FROM tab1 AS cor0
----
13
-3

skipif mysql # not compatible
query II rowsort label-4023
SELECT DISTINCT 13 AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
13
-3

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 AS cor0 WHERE NOT 43 + + col0 BETWEEN - col1 AND + 34
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL MAX( - 95 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL MAX ( - 95 ) FROM tab1 AS cor0
----
-95

query II rowsort
SELECT col0 AS col1, 26 AS col0 FROM tab2 AS cor0
----
46
26
64
26
75
26

query I rowsort
SELECT ALL - col1 + - - 97 FROM tab0 AS cor0
----
16
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - col1 col2 FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4029
SELECT col0 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL <> 47
----

skipif mysql # not compatible
query I rowsort label-4029
SELECT col0 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL <> 47
----

query I rowsort
SELECT ALL - col2 + + - col0 * - + 39 * - 73 AS col1 FROM tab0 AS cor0
----
-247699
-276258
-42752

query I rowsort
SELECT - col0 * - + ( col2 ) AS col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( + col2 ) + - - 38 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( + col2 ) + - - 38 FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * + col2 * - - col0 col2 FROM tab0
----
47235
58290
643401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - + 0 col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT ( + col2 ) DIV ( ( 66 ) ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4035
SELECT ( + col2 ) / ( ( 66 ) ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + SUM( ALL - col0 ) * 93 AS col0 FROM tab1 WHERE NOT ( - 56 ) + + 99 NOT IN ( + + 7 + - + col1, col1, + col1 * + ( - - 84 ) / + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + SUM ( ALL - col0 ) * 93 AS col0 FROM tab1 WHERE NOT ( - 56 ) + + 99 NOT IN ( + + 7 + - + col1, col1, + col1 * + ( - - 84 ) / + 63 )
----
NULL

query I rowsort
SELECT col1 * + 86 FROM tab0
----
1806
6966
86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4038
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2, + ( - - 52 ) - + - 23 AS col0 FROM tab1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4038
SELECT DISTINCT CAST ( NULL AS REAL ) * col2, + ( - - 52 ) - + - 23 AS col0 FROM tab1
----
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col0, 24 FROM tab2
----
-58
24

skipif mysql # not compatible
query II rowsort label-4039
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col0, 24 FROM tab2
----
-58
24

query I rowsort
SELECT + + 58 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 28 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 59 * ( - - col0 ) AS col0 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT ALL col1 + + - col0 * 32 FROM tab0 AS cor0
----
-2763
-3103
-399

query I rowsort
SELECT - 73 + - col2 FROM tab1 AS cor0
----
-132
-141
-169

query I rowsort
SELECT 2 + + - col0 + + 81 AS col0 FROM tab1 AS cor0
----
-2
-8
32

query I rowsort
SELECT 10 * + 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4f9b88e4a5b24ccc3c490929cfa0d556

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL - ( 30 ) DIV + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - ( 30 ) / + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + ( + + 49 ) AS col1 FROM tab2
----
49
49
49

query I rowsort
SELECT 74 * - 65 AS col0 FROM tab2 AS cor0
----
-4810
-4810
-4810

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * 7 <= - col2
----

query I rowsort
SELECT - - 30 * + 34 * + + col2 - - 50 AS col0 FROM tab2 AS cor0
----
23510
40850
59210

query I rowsort
SELECT - ( 82 ) - 19 FROM tab2 cor0
----
-101
-101
-101

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT ALL - col1 * 84 FROM tab1 AS cor0
----
-1176
-3948
-420

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0 * - ( - - ( ( - col2 ) ) ) + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 25 - + 76 + + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-4056
SELECT 25 - + 76 + + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-278

query I rowsort
SELECT ALL + col0 + + col1 - - col0 AS col1 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT - SUM( ALL + 1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT - SUM ( ALL + 1 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 47 IS NULL
----

query I rowsort
SELECT ALL - + 72 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT + + ( - COUNT( + + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + + ( - COUNT ( + + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 65 col1, + col1 AS col1 FROM tab2
----
65
51
65
67
65
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4063
SELECT col2, CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT col2, CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - MAX( + + col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT - MAX ( + + col2 ) col0 FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + + CAST( NULL AS SIGNED ) * + - col2 + + + 31 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - col2 + + + 31 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT ALL col2 DIV - - col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL col2 / - - col1 FROM tab0
----
0
0
99

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + + 44 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + COUNT( - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4070
SELECT + COUNT ( - - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + COUNT( DISTINCT + - 9 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4071
SELECT + COUNT ( DISTINCT + - 9 ) col0 FROM tab2
----
1

query II rowsort
SELECT ALL + col1, - col0 * + - 97 FROM tab1
----
14
4947
47
8827
5
8245

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT - 62 col0, + COUNT( * ) + + 95 AS col0 FROM tab2
----
-62
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4073
SELECT - 62 col0, + COUNT ( * ) + + 95 AS col0 FROM tab2
----
-62
98

query II rowsort
SELECT DISTINCT 73 AS col0, 0 AS col2 FROM tab1
----
73
0

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 80
----

query I rowsort
SELECT + ( + 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT + col2 * + + 89 + + ( + col2 ) - - - 40 FROM tab1 AS cor0
----
5270
6080
8600

query II rowsort
SELECT - ( + + 72 ) AS col1, 47 AS col1 FROM tab1
----
-72
47
-72
47
-72
47

query I rowsort
SELECT DISTINCT - + col1 + + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
0
420
6480

query II rowsort
SELECT col1 + + + col0 AS col2, 76 + - 87 * - 43 FROM tab0 AS cor0
----
108
3817
96
3817
98
3817

query I rowsort
SELECT 67 FROM tab2 AS cor0 WHERE NULL <= + col0 - + - col1 AND ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, col0 AS col0 FROM tab0 WHERE NOT + + col0 * - 61 * - - 9 * 74 BETWEEN NULL AND + 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT 28 + col1 + - 10 * col1 DIV 91 FROM tab2
----
74
88
97

skipif mysql # not compatible
query I rowsort label-4083
SELECT 28 + col1 + - 10 * col1 / 91 FROM tab2
----
74
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab0 WHERE - col1 - + col0 - + + col1 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4084
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab0 WHERE - col1 - + col0 - + + col1 IS NOT NULL
----
-156

query III rowsort
SELECT * FROM tab0 WHERE - + 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col0, 87 FROM tab2
----
51
87
67
87
77
87

query I rowsort
SELECT + 20 * - - 48 + - + 5 AS col2 FROM tab0
----
955
955
955

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 - - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT ALL - 10 + + ( + 15 ) DIV col2 * + col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - 10 + + ( + 15 ) / col2 * + col0 FROM tab2
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * - - col2 col2 FROM tab2
----
163840
326250
48668

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - col0 FROM tab0 cor0
----
-174
-194
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - - col2 OR NOT + col0 + + col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT col1 + + col1 + - + ( + col2 ) FROM tab1
----
-49
-68
26

query I rowsort
SELECT DISTINCT - ( col1 ) - + 25 AS col1 FROM tab0 AS cor0
----
-106
-26
-46

query I rowsort
SELECT ALL + 22 * col0 * col2 FROM tab0 cor0
----
15510
19140
211266

onlyif mysql # DIV for integer division: 
query II rowsort label-4098
SELECT ALL - col1 DIV 58, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-4098
SELECT ALL - col1 / 58, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 14 * + COUNT( * ) - COUNT( * ) * - ( - COUNT( ALL ( + 64 ) ) ) + 79 FROM tab2 cor0
----
112

skipif mysql # not compatible
query I rowsort label-4100
SELECT 14 * + COUNT ( * ) - COUNT ( * ) * - ( - COUNT ( ALL ( + 64 ) ) ) + 79 FROM tab2 cor0
----
112

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * col0 * - col1 col2 FROM tab0
----
-111780
-168084
-8924

query II rowsort
SELECT + col1 AS col0, 12 + + col0 FROM tab0
----
1
109
21
99
81
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - SUM( 99 ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - SUM ( 99 ) AS col2 FROM tab2
----
-297

query I rowsort
SELECT ALL 13 * - 77 AS col1 FROM tab0
----
-1001
-1001
-1001

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT ALL - - col2 DIV + col0 * - + ( - col0 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - - col2 / + col0 * - + ( - col0 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + 90 FROM tab0 AS cor0
----
-4230
-8910
-900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4109
SELECT - ( col0 ) * - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ), col0 * 27 AS col2 FROM tab0 cor0
----
-705
405
-870
2349
-9603
2619

skipif mysql # not compatible
query II rowsort label-4109
SELECT - ( col0 ) * - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ), col0 * 27 AS col2 FROM tab0 cor0
----
-705
405
-870
2349
-9603
2619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 35 col1 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT ALL - + col2 + + - col0 + - col1 * - 81 FROM tab1 AS cor0
----
261
3648
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT ALL + + COUNT( DISTINCT - col1 ) + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4112
SELECT ALL + + COUNT ( DISTINCT - col1 ) + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4113
SELECT - COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4113
SELECT - COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4114
SELECT ALL col2 + - col0 + - - col2 * - - col2 * - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL col2 + - col0 + - - col2 * - - col2 * - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 + - + 83 FROM tab2 AS cor0
----
-16
-32
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 + 81 col0 FROM tab0 AS cor0
----
177
179
189

query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 * - - col0 AS col1 FROM tab1
----
36210
36465
389298

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT ALL - 32 + + 46 AS col1, 43 + - COUNT( * ) AS col0 FROM tab0
----
14
40

skipif mysql # not compatible
query II rowsort label-4118
SELECT ALL - 32 + + 46 AS col1, 43 + - COUNT ( * ) AS col0 FROM tab0
----
14
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - 73 AND NOT 98 > - col0
----

query I rowsort
SELECT - 76 + - col1 FROM tab0
----
-157
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT 82 + COUNT( * ) + + 89 AS col0 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4121
SELECT 82 + COUNT ( * ) + + 89 AS col0 FROM tab0 AS cor0
----
174

query I rowsort
SELECT DISTINCT + 54 - + 73 + col2 FROM tab1
----
40
49
77

query I rowsort
SELECT - + 4 * + 29 FROM tab0 cor0
----
-116
-116
-116

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + + 31 * COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4125
SELECT + + 31 * COUNT ( * ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT col0 * - 57 AS col2 FROM tab2
----
-2622
-3648
-4275

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + 81 ) - + - col1 + col2 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * + 75 FROM tab0
----
52875
65250
720225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab1
----
39

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + 38 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 38 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT SUM( - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT SUM ( - col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 * + col0 IN ( + col0 + - + col0 )
----

query I rowsort
SELECT DISTINCT - 87 + + 94 AS col2 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT COUNT( 42 ) * - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4136
SELECT COUNT ( 42 ) * - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL ( - - ( - 84 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL ( - - ( - 84 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 WHERE NOT 5 = - col1
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + 20 + COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4140
SELECT + 20 + COUNT ( * ) AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4141
SELECT col1 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4141
SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT COUNT( * ) * + - SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-4142
SELECT COUNT ( * ) * + - SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
309

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - col2 * - 39
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT + 36 DIV SUM( ALL - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 36 / SUM ( ALL - col1 ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT CAST( + col0 AS SIGNED ) * 8 + + ( - - col2 ) AS col1 FROM tab2
----
391
552
658

skipif mysql # not compatible
query I rowsort label-4146
SELECT CAST ( + col0 AS INTEGER ) * 8 + + ( - - col2 ) AS col1 FROM tab2
----
391
552
658

query III rowsort
SELECT * FROM tab2 WHERE + - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 AS col2, 11 FROM tab2 AS cor0
----
23
11
40
11
58
11

query I rowsort
SELECT DISTINCT col1 + - col1 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - col1 + - col2 + + 49 FROM tab2 AS cor0
----
-25
-68
-76

query I rowsort
SELECT DISTINCT ( - 22 ) + - 53 AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COUNT( ALL 56 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( ALL 56 ) FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - col0 / + 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 < ( NULL )
----

query I rowsort
SELECT - 59 * col0 AS col2 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4157
SELECT col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4157
SELECT col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT col2 - + - 43 AS col1 FROM tab1 WHERE NOT - + col0 <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4158
SELECT col2 - + - 43 AS col1 FROM tab1 WHERE NOT - + col0 <> - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT col2 DIV - 19 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT col2 / - 19 FROM tab0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 84 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - - col2 * - - col2 * + col0 IN ( + 27 )
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL MIN( ALL - col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL MIN ( ALL - col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + - 34 + 25 * + - COUNT( * ) + - 37 FROM tab2 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + - 34 + 25 * + - COUNT ( * ) + - 37 FROM tab2 AS cor0
----
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * 21 + - col0 col1 FROM tab1 cor0
----
539
545
579

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL 78 * - COUNT( * ) col1 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4165
SELECT ALL 78 * - COUNT ( * ) col1 FROM tab2
----
-234

query I rowsort
SELECT DISTINCT + 43 FROM tab0 WHERE NULL IS NULL
----
43

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 71 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - ( + col2 ) NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL COUNT( DISTINCT - col2 ) DIV + ( SUM( - col0 ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL COUNT ( DISTINCT - col2 ) / + ( SUM ( - col0 ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT COUNT( * ) DIV + + 78 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( * ) / + + 78 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4172
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4172
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col1 * - + col2 AS col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + col1, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + col1, - col2 )
----
0

query I rowsort
SELECT + col0 * 96 FROM tab1 WHERE ( NOT 13 IS NULL )
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col2 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + col0 * + + 68 + + 31 + + - 52 FROM tab1 AS cor0
----
3447
5759
6167

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + col0 + + 32 = - - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT COUNT( * ) AS col1, 91 FROM tab2 AS cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-4181
SELECT COUNT ( * ) AS col1, 91 FROM tab2 AS cor0
----
3
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT DISTINCT - MIN( ALL col0 ) * + - 19 AS col1, MIN( - col1 ) FROM tab0 AS cor0
----
285
-81

skipif mysql # not compatible
query II rowsort label-4182
SELECT DISTINCT - MIN ( ALL col0 ) * + - 19 AS col1, MIN ( - col1 ) FROM tab0 AS cor0
----
285
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - + col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - COUNT( * ) - - 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-4184
SELECT - COUNT ( * ) - - 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT + COUNT( col0 ) * + + COUNT( * ) + - MIN( - col0 ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + COUNT ( col0 ) * + + COUNT ( * ) + - MIN ( - col0 ) AS col0 FROM tab2
----
84

query I rowsort
SELECT ( + 23 ) FROM tab2
----
23
23
23

query II rowsort
SELECT ALL - col1 AS col2, + col1 * - 45 AS col0 FROM tab2
----
-51
-2295
-67
-3015
-77
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - SUM( ALL - - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4188
SELECT - SUM ( ALL - - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT - - CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4189
SELECT - - CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - 6 AS col2 FROM tab2 cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4191
SELECT ALL - MIN( + col1 ) AS col2, MIN( + 6 ) + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4191
SELECT ALL - MIN ( + col1 ) AS col2, MIN ( + 6 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + + ( + MIN( ALL ( + ( - - 75 ) ) ) ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + ( + MIN ( ALL ( + ( - - 75 ) ) ) ) AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT + - ( + - col0 ) * + col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 >= - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT MIN( - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT MIN ( - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - 54 * - - COUNT( * ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 54 * - - COUNT ( * ) FROM tab1
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL 90 + - 48 + 0 + + COUNT( DISTINCT col0 ) + - + 92 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL 90 + - 48 + 0 + + COUNT ( DISTINCT col0 ) + - + 92 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT + COUNT( * ) + MAX( + col0 ) + COUNT( DISTINCT 80 ) + + 68 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT + COUNT ( * ) + MAX ( + col0 ) + COUNT ( DISTINCT 80 ) + + 68 FROM tab0 AS cor0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT ALL + + col2 DIV + + col0 + col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + + col2 / + + col0 + col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 + 67 AS col2 FROM tab2 AS cor0
----
107
125
90

query I rowsort
SELECT ALL col0 + + ( col0 ) AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + COUNT( * ) + + 84 * + COUNT( * ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-4203
SELECT + COUNT ( * ) + + 84 * + COUNT ( * ) FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT CAST( NULL AS SIGNED ) + + col1 * + + 3 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT CAST ( NULL AS INTEGER ) + + col1 * + + 3 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - col0 + - col2 * - + col2 <= - col2 + - col1 * + - col1 - col0 + + + col0
----
21
81

query I rowsort
SELECT DISTINCT + 33 + col0 AS col2 FROM tab1 AS cor0
----
118
124
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT + MAX( DISTINCT + col0 ) + 92 AS col2 FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + MAX ( DISTINCT + col0 ) + 92 AS col2 FROM tab0 cor0
----
189

query I rowsort
SELECT ALL 70 + - col1 FROM tab0 AS cor0
----
-11
49
69

query I rowsort
SELECT ALL - col0 + + 44 + + + col1 * - - 90 FROM tab2
----
4588
5999
6910

query I rowsort
SELECT ALL - 15 - + + 35 - + - 87 AS col1 FROM tab1
----
37
37
37

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * + + 85 * + col0 FROM tab1
----
221181
614184
703953

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT COUNT( DISTINCT - 67 ) AS col0 FROM tab1 WHERE 99 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT COUNT ( DISTINCT - 67 ) AS col0 FROM tab1 WHERE 99 IS NULL
----
0

query I rowsort
SELECT ALL 9 - - 12 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL col2 + + col0 - + col0 * col2 * - 92 AS col0 FROM tab0
----
64922
80137
883672

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IS NULL AND ( + col0 * + col1 ) = ( + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL + ( - ( - + ( - MAX( col1 ) ) ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + ( - ( - + ( - MAX ( col1 ) ) ) ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4218
SELECT CAST( CAST( - - col0 AS DECIMAL ) AS SIGNED ) - + - ( + col1 ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4218
SELECT CAST ( CAST ( - - col0 AS REAL ) AS INTEGER ) - + - ( + col1 ) FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT 89 - - + col1 + CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT 89 - - + col1 + CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4220
SELECT ALL 3 AS col2, + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL 3 AS col2, + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4221
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + ( + - CAST( NULL AS SIGNED ) ) * - - CAST( + 67 AS SIGNED ), ( + 31 ) * + + 93 + + CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4221
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + ( + - CAST ( NULL AS INTEGER ) ) * - - CAST ( + 67 AS INTEGER ), ( + 31 ) * + + 93 + + CAST ( + - col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 >= NULL
----

query I rowsort
SELECT 31 * + col0 AS col1 FROM tab2 cor0
----
1426
1984
2325

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + + col1 NOT BETWEEN + 13 AND + - col0
----

query I rowsort
SELECT ALL + 55 + - 17 AS col0 FROM tab2 AS cor0
----
38
38
38

query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4227
SELECT ALL - CAST( NULL AS SIGNED ), col1 + + + 42 col1 FROM tab1 AS cor0
----
NULL
47
NULL
56
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4227
SELECT ALL - CAST ( NULL AS INTEGER ), col1 + + + 42 col1 FROM tab1 AS cor0
----
NULL
47
NULL
56
NULL
89

query I rowsort
SELECT col1 + - + ( - col2 ) + - + col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT MAX( DISTINCT 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4229
SELECT MAX ( DISTINCT 64 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ( COUNT( + 46 ) ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4230
SELECT ( COUNT ( + 46 ) ) FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL - + MIN( - - ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - + MIN ( - - ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - 84 + - col0 + + + col2 AS col0 FROM tab0 AS cor0
----
-161
-52
-82

query I rowsort
SELECT - col0 - 80 + - col0 * - col2 FROM tab2 AS cor0
----
2416
4195
932

query I rowsort
SELECT ALL - - col1 * - col0 - ( 12 ) AS col2 FROM tab0 AS cor0
----
-109
-1227
-1839

query I rowsort
SELECT - - 15 * + col1 * col1 * + col1 * - 19 - + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-130111929
-37805558
-85717472

query I rowsort
SELECT - - col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL BETWEEN - + col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT - MIN( + col1 ) + - - 97 * + 60 FROM tab1 AS cor0
----
5815

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - MIN ( + col1 ) + - - 97 * + 60 FROM tab1 AS cor0
----
5815

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - + col0 * + - 54 NOT BETWEEN + col2 AND ( - ( - col1 ) + + - 94 ) )
----

query I rowsort
SELECT DISTINCT + col0 + + - col0 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col1 - - 51 + 51 FROM tab0 AS cor0
----
101
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT 45, + COUNT( * ) - + ( COUNT( * ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
45
0

skipif mysql # not compatible
query II rowsort label-4243
SELECT 45, + COUNT ( * ) - + ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE - + col2 + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4244
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE - + col2 + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 73 * + col1 + + col0 - - 34 AS col2 FROM tab0
----
1654
204
5962

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL - MIN( ALL + 67 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - MIN ( ALL + 67 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL COUNT( * ) * 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL COUNT ( * ) * 82 FROM tab0
----
246

query I rowsort
SELECT - 72 * col1 * col2 FROM tab2
----
-221760
-279792
-84456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL - 99 + + - col1 + col1 AS col0 FROM tab1 WHERE NULL BETWEEN + col2 AND - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - 99 + + - col1 + col1 AS col0 FROM tab1 WHERE NULL BETWEEN + col2 AND - col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4250
SELECT COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT SUM( ALL - 9 ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4252
SELECT SUM ( ALL - 9 ) AS col2 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col1 * col0 * + + col2 - 23 + + - 59 * + col0 AS col0 FROM tab1 AS cor0
----
20037
285444
65512

query I rowsort
SELECT - + col0 * - + col1 * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT - col0 + - col0 FROM tab2 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4255
SELECT - col0 + - col0 FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4256
SELECT DISTINCT - ( - 96 ) * + ( + 60 ) * + + col2 + + col0 + col2 DIV + col0 + - + col2 AS col1, CAST( NULL AS SIGNED ) * - col2 + - col1 - col2 FROM tab2 AS cor0
----
132503
NULL
230424
NULL
334097
NULL

skipif mysql # not compatible
query II rowsort label-4256
SELECT DISTINCT - ( - 96 ) * + ( + 60 ) * + + col2 + + col0 + col2 / + col0 + - + col2 AS col1, CAST ( NULL AS INTEGER ) * - col2 + - col1 - col2 FROM tab2 AS cor0
----
132503
NULL
230424
NULL
334097
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - 87 FROM tab2 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT + col1 AS col0 FROM tab2 WHERE - - 64 * + + CAST( NULL AS SIGNED ) * - - col1 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4259
SELECT + col1 AS col0 FROM tab2 WHERE - - 64 * + + CAST ( NULL AS INTEGER ) * - - col1 IS NULL
----
51
67
77

query I rowsort
SELECT - col2 + + + 18 - - - col1 - 70 * + col1 + col0 FROM tab0
----
-1396
-55
-5765

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT + col1 DIV - 93 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT + col1 / - 93 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 49 * - col2 * col0 FROM tab1
----
-239904
-245735
-303212

query I rowsort
SELECT DISTINCT - 26 * - - 99 AS col2 FROM tab2
----
-2574

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + - - col1 * - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 99 * - 39 - col1 + - col2 FROM tab2 AS cor0
----
3736
3744
3787

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + - 69 + - COUNT( * ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + - 69 + - COUNT ( * ) FROM tab1 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - + ( MAX( DISTINCT + 67 ) ) FROM tab0 AS cor0 WHERE NULL < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - + ( MAX ( DISTINCT + 67 ) ) FROM tab0 AS cor0 WHERE NULL < - col1
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 87 - col1 AS col0 FROM tab0
----
6
66
86

query I rowsort
SELECT + col0 + + 74 AS col1 FROM tab2
----
120
138
149

query II rowsort
SELECT ALL + col2 AS col1, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) + + + 95 col1 FROM tab2
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4273
SELECT COUNT ( * ) + + + 95 col1 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - COUNT( * ) + + 92 AS col1 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - COUNT ( * ) + + 92 AS col1 FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4275
SELECT ALL * FROM tab2 AS cor0 WHERE - 31 BETWEEN + - ( - CAST( NULL AS SIGNED ) ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-4275
SELECT ALL * FROM tab2 AS cor0 WHERE - 31 BETWEEN + - ( - CAST ( NULL AS INTEGER ) ) AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * col2 - 45 + - + col0 FROM tab0 cor0
----
-2269
-232
-9943

query I rowsort
SELECT - col2 * col1 * + 38 AS col0 FROM tab2
----
-117040
-147668
-44574

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL + COUNT( * ) * 91 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + COUNT ( * ) * 91 FROM tab2
----
273

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 39 - col2 + + + 24
----

query I rowsort
SELECT + ( - col0 ) * - col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT - - col1 * + + ( col1 ) * - col0 * + col0 + + col1 - - col2 AS col0 FROM tab2 AS cor0
----
-24285067
-25250500
-5503642

query I rowsort
SELECT - col2 * + + 27 AS col1 FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT 96 AS col1, 77 * MIN( ( + - 45 ) ) FROM tab2
----
96
-3465

skipif mysql # not compatible
query II rowsort label-4284
SELECT 96 AS col1, 77 * MIN ( ( + - 45 ) ) FROM tab2
----
96
-3465

query II rowsort
SELECT DISTINCT 33 AS col0, col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4286
SELECT DISTINCT 50 * + ( 7 ) AS col2, CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
350
NULL

skipif mysql # not compatible
query II rowsort label-4286
SELECT DISTINCT 50 * + ( 7 ) AS col2, CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
350
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT ALL + + 79 DIV + col1 + + - 81 * - col0 col2 FROM tab0 AS cor0
----
1215
7050
7936

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4287
SELECT ALL + + 79 / + col1 + + - 81 * - col0 col2 FROM tab0 AS cor0
----
1215
7050
7936

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + - COUNT( * ) * - 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4288
SELECT + - COUNT ( * ) * - 50 FROM tab2 AS cor0
----
150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - COUNT( DISTINCT 71 ) * - 1 col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4290
SELECT - COUNT ( DISTINCT 71 ) * - 1 col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - 1 + - SUM( + 22 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - 1 + - SUM ( + 22 ) FROM tab1 AS cor0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 60 col2, + col1 * - - 24 AS col1 FROM tab1 AS cor0
----
-60
1128
-60
120
-60
336

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - ( + + 45 ) FROM tab0
----
-45
-45
-45

query I rowsort
SELECT ALL ( - 81 ) * + + 42 FROM tab2
----
-3402
-3402
-3402

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - ( - col0 ) + + - col2 * - col1 IS NULL
----

query I rowsort
SELECT + col1 + + + 18 AS col1 FROM tab1 AS cor0
----
23
32
65

query I rowsort
SELECT col0 + + 4 FROM tab0 AS cor0
----
101
19
91

query I rowsort
SELECT ALL + 25 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT 52 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 52 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ( + + 15 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + - col1 * col0 * - - 25 AS col2 FROM tab0 WHERE NULL BETWEEN + col1 AND 99
----

query I rowsort
SELECT col1 * 18 - col2 + 31 AS col2 FROM tab1 AS cor0
----
187
62
809

query I rowsort
SELECT ALL - - ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT - 40 - ( col2 ), + col2 AS col2 FROM tab2 AS cor0
----
-63
23
-80
40
-98
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4308
SELECT + CAST( NULL AS DECIMAL ) * - 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT + CAST ( NULL AS REAL ) * - 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 54, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 35 IS NULL
----
54
10
54
47
54
99

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT - 97 DIV + - COUNT( * ) FROM tab0 cor0
----
32

skipif mysql # not compatible
query I rowsort label-4311
SELECT - 97 / + - COUNT ( * ) FROM tab0 cor0
----
32

query I rowsort
SELECT ALL + col0 * - + col1 + - 28 + - + col0 + + col1 - col1 AS col1 FROM tab2 cor0
----
-2420
-5020
-5128

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) + - col1 >= - 75 + + col2
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT 79 * - + col0 AS col0 FROM tab1
----
-4029
-6715
-7189

onlyif mysql # DIV for integer division: 
query II rowsort label-4315
SELECT col1, + 50 DIV col1 + 24 + col0 AS col2 FROM tab0
----
1
171
21
113
81
39

skipif mysql # not compatible
query II rowsort label-4315
SELECT col1, + 50 / col1 + 24 + col0 AS col2 FROM tab0
----
1
171
21
113
81
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT ALL - - COUNT( * ) AS col1, + COUNT( + - col2 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4316
SELECT ALL - - COUNT ( * ) AS col1, + COUNT ( + - col2 ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + 65 * + COUNT( * ) AS col0 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4317
SELECT + 65 * + COUNT ( * ) AS col0 FROM tab0
----
195

query I rowsort
SELECT ALL 44 * 92 AS col1 FROM tab2
----
4048
4048
4048

query I rowsort
SELECT ALL - 60 * - - 12 AS col2 FROM tab0
----
-720
-720
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT + col1 DIV - col0 + + 10 + + - col2 FROM tab0 AS cor0
----
-42
-89
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT + col1 / - col0 + + 10 + + - col2 FROM tab0 AS cor0
----
-42
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT - ( - COUNT( DISTINCT + + 21 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - ( - COUNT ( DISTINCT + + 21 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL col0 - CAST( NULL AS SIGNED ) - - col0 / ( + col2 ) + 33 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL col0 - CAST ( NULL AS INTEGER ) - - col0 / ( + col2 ) + 33 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + + col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT 0 DIV + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT 0 / + + col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT + CAST( NULL AS SIGNED ) * - + 46 * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + CAST ( NULL AS INTEGER ) * - + 46 * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 27 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT 17 - + COUNT( * ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT 17 - + COUNT ( * ) AS col0 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ALL + col2 DIV + ( - 34 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + col2 / + ( - 34 ) FROM tab2
----
-1
-1
0

query II rowsort
SELECT + col1, - 12 + + + 11 FROM tab0 AS cor0
----
1
-1
21
-1
81
-1

query II rowsort
SELECT DISTINCT + + 60 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
60
10
60
47
60
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 49 + + 89 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 * 83 FROM tab1
----
1162
3901
415

query I rowsort
SELECT DISTINCT AVG ( - col2 ) FROM tab1 WHERE NULL < ( - col1 * col1 )
----
NULL

query I rowsort
SELECT 78 * - 10 AS col2 FROM tab0
----
-780
-780
-780

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 IS NULL
----

query I rowsort
SELECT col2 + + 52 FROM tab1
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT COUNT( * ) * 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT COUNT ( * ) * 14 FROM tab2
----
42

query I rowsort
SELECT - col0 FROM tab1 WHERE ( - 8 * col2 ) NOT IN ( col1 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE 11 NOT IN ( - 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + COUNT( * ) * 79 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + COUNT ( * ) * 79 FROM tab1
----
237

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT DISTINCT 15 DIV - 22 + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT 15 / - 22 + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4346
SELECT - MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT ALL 4 FROM tab2 WHERE NOT 58 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT MAX( + 74 ) * MAX( DISTINCT 49 ) + 3 AS col0 FROM tab1 WHERE NOT col0 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT MAX ( + 74 ) * MAX ( DISTINCT 49 ) + 3 AS col0 FROM tab1 WHERE NOT col0 + - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 55 ) BETWEEN NULL AND + 94
----

query I rowsort
SELECT col2 * 56 FROM tab1 WHERE NOT - 97 / + 53 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + AVG ( ALL col2 ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT - col1 DIV 25 - col2 AS col2 FROM tab1
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-4353
SELECT - col1 / 25 - col2 AS col2 FROM tab1
----
-59
-69
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 + - 56 <= + 69
----

query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 AS col2 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT ALL col1 - col0 * - col0 AS col2 FROM tab1
----
2615
7230
8328

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4358
SELECT * FROM tab0 WHERE 82 <= CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4358
SELECT * FROM tab0 WHERE 82 <= CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col1 ) <> - col0 - - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT + COUNT( ALL + 61 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + COUNT ( ALL + 61 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL col1 + - 56 AS col2 FROM tab2
----
-5
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - COUNT( 43 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4362
SELECT - COUNT ( 43 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( DISTINCT 95 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( DISTINCT 95 ) FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 24 * + 63 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < ( 78 * - col0 )
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL + CAST( + SUM( ALL col1 ) AS SIGNED ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + CAST ( + SUM ( ALL col1 ) AS INTEGER ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 22 * col0 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - MAX( ALL col0 ) FROM tab0 AS cor0 WHERE NOT 3 - - 32 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT - MAX ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT 3 - - 32 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( 50 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( 50 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + 75 + COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 75 + COUNT ( * ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 54 BETWEEN NULL AND ( 36 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + 30 * + 92 + + COUNT( col1 ) FROM tab0
----
2763

skipif mysql # not compatible
query I rowsort label-4374
SELECT + 30 * + 92 + + COUNT ( col1 ) FROM tab0
----
2763

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + MAX( 3 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + MAX ( 3 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT DISTINCT - ( 95 ) + col2 AS col1 FROM tab2 AS cor0
----
-37
-55
-72

query I rowsort
SELECT ALL col1 * col2 + 52 * 20 AS col0 FROM tab1 AS cor0
----
1335
2384
4236

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - - COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT - - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 91 * + col0 - col0 FROM tab0
----
-1380
-8004
-8924

query I rowsort
SELECT 6 + + col1 FROM tab2
----
57
73
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col0 FROM tab2 WHERE + col2 IS NOT NULL
----
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) > ( 46 + col2 * col0 )
----

query I rowsort
SELECT DISTINCT 81 - + col2 * + col2 AS col1 FROM tab1
----
-3400
-4543
-9135

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL 99 - - + col1 * 29 FROM tab1
----
1462
244
505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 40 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 73 * - - col0 FROM tab2
----
3358
4672
5475

query I rowsort
SELECT DISTINCT col2 - - + ( + 89 ) FROM tab0
----
136
188
99

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( 8 + col0 * col1 )
----

query I rowsort
SELECT ALL + - 81 * + 5 + col2 AS col1 FROM tab0 AS cor0
----
-306
-358
-395

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + 12 * - 5 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + 12 * - 5 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - ( 30 ) + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
4880
4990
6205

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < col2
----
51
14
96

query I rowsort
SELECT - col1 * - + col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query II rowsort label-4400
SELECT DISTINCT col2, col0 DIV col1 * 26 + col0 AS col2 FROM tab0
----
10
191
47
15
99
2619

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT col2, col0 / col1 * 26 + col0 AS col2 FROM tab0
----
10
191
47
15
99
2619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT ALL + col1 * - + CAST( NULL AS SIGNED ) * + + 30 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4401
SELECT ALL + col1 * - + CAST ( NULL AS INTEGER ) * + + 30 col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 53 AS col2, col1 AS col0 FROM tab1 AS cor0
----
53
14
53
47
53
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT - col1 * CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-4403
SELECT - col1 * CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT col1 AS col2, 43 - - 58 FROM tab2 AS cor0
----
51
101
67
101
77
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT ALL + + col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT - CAST( - col1 AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-4407
SELECT - CAST ( - col1 AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT + MIN( + col1 ) * - + 6 AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + MIN ( + col1 ) * - + 6 AS col1 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - 71
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE NOT - col0 * - col2 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT 94 DIV - 81 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4412
SELECT 94 / - 81 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col1 * 10 FROM tab2
----
510
670
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT col2 * + CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4414
SELECT col2 * + CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4415
SELECT DISTINCT + - 42 + 73 AS col2, - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-4415
SELECT DISTINCT + - 42 + 73 AS col2, - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
31
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 73 <= ( - col0 ) )
----
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT MAX( - col0 ) AS col2 FROM tab1 AS cor0 WHERE col0 BETWEEN ( + col1 ) AND col0 + col1 * col1
----
-51

skipif mysql # not compatible
query I rowsort label-4417
SELECT MAX ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE col0 BETWEEN ( + col1 ) AND col0 + col1 * col1
----
-51

query I rowsort
SELECT ALL ( + - ( - - col1 ) ) * - + col1 + - col1 + + col0 AS col0 FROM tab1 AS cor0
----
105
2253
233

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - 18 + + + COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 18 + + + COUNT ( * ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + col1 * - + 30 - col0 FROM tab2 WHERE NOT col1 IS NULL
----
-1576
-2085
-2374

query I rowsort
SELECT + ( 82 ) FROM tab1
----
82
82
82

query II rowsort
SELECT ALL col0, - ( + + col2 ) FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0 + - - col0 * col1 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + - + 79 + + col1 FROM tab2 AS cor0
----
23
55
75

query I rowsort
SELECT ALL + ( + 3 ) AS col0 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - ( - col2 ) + 90 FROM tab1 cor0
----
149
158
186

query I rowsort
SELECT DISTINCT + col1 * + + 38 FROM tab1 AS cor0
----
1786
190
532

query II rowsort
SELECT - 53 + + - col2 + - 11, + col2 AS col2 FROM tab2 AS cor0
----
-104
40
-122
58
-87
23

query I rowsort
SELECT ALL + col1 + - col0 - - + col0 * - 50 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT - - col0 + + + 41 DIV col2 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT - - col0 + + + 41 / col2 FROM tab2 AS cor0
----
47
65
75

query I rowsort
SELECT ALL + col2 * col1 + - 98 FROM tab2 cor0
----
1075
2982
3788

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4433
SELECT * FROM tab1 AS cor0 WHERE col1 * + 48 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4433
SELECT * FROM tab1 AS cor0 WHERE col1 * + 48 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + 33 FROM tab1
----
-26
-35
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE - 27 + - + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - + col2 + - + col0 * + 4 * 57 AS col2 FROM tab1
----
-11710
-19434
-20769

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL MAX( ALL - ( 6 ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL MAX ( ALL - ( 6 ) ) FROM tab0
----
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 86 + - 84 BETWEEN ( col2 + - col2 * + - col1 * + col1 ) AND col2 * + col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT DISTINCT - 25 DIV - ( - - 61 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - 25 / - ( - - 61 ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT col0 - - 61 + + col2 + + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
112
146
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT - col0 DIV col1 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
0
3480
931491

skipif mysql # not compatible
query I rowsort label-4441
SELECT - col0 / col1 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
0
3480
931491

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4442
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 59 ) = + CAST( NULL AS SIGNED ) / - 82
----

skipif mysql # not compatible
query IIIIII rowsort label-4442
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 59 ) = + CAST ( NULL AS INTEGER ) / - 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE ( - 6 + - col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + + col0
----

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col1 FROM tab2 cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT ALL - col1 * - col2 + col1 DIV + col0 + + col2 FROM tab0 cor0
----
198
220
3859

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - col1 * - col2 + col1 / + col0 + + col2 FROM tab0 cor0
----
198
220
3859

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( ( col0 ) BETWEEN - col1 AND 56 + col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4449
SELECT + - col0 * + ( + col1 ) * + col1 DIV - col1, - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-4449
SELECT + - col0 * + ( + col1 ) * + col1 / - col1, - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

query I rowsort
SELECT + 62 * + 86 AS col1 FROM tab2
----
5332
5332
5332

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT 66 DIV - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4451
SELECT 66 / - col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4452
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - 42 AS col2 FROM tab0
----
-15
-42
-87
-42
-97
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + COUNT( ALL + - col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT DISTINCT + COUNT ( ALL + - col1 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4455
SELECT DISTINCT * FROM tab1 WHERE - col0 / - CAST( NULL AS SIGNED ) * - 96 / + - col1 NOT BETWEEN - 82 AND - col2
----

skipif mysql # not compatible
query III rowsort label-4455
SELECT DISTINCT * FROM tab1 WHERE - col0 / - CAST ( NULL AS INTEGER ) * - 96 / + - col1 NOT BETWEEN - 82 AND - col2
----

query II rowsort
SELECT col1, 7 FROM tab1
----
14
7
47
7
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + COUNT( * ) + + 22 col1 FROM tab2 WHERE + col0 IS NOT NULL
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4457
SELECT ALL + COUNT ( * ) + + 22 col1 FROM tab2 WHERE + col0 IS NOT NULL
----
25

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4459
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col2 * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4459
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - MAX( ALL + + 80 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4460
SELECT - MAX ( ALL + + 80 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL ( + - col2 ) + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4461
SELECT ALL ( + - col2 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 + col1 + - + col1 AS col2 FROM tab1
----
82
82
82

query I rowsort
SELECT + 28 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4464
SELECT 65 FROM tab1 WHERE + + 24 DIV col0 * + + CAST( - col1 AS SIGNED ) NOT IN ( + 53 DIV + + col0 )
----
65

skipif mysql # not compatible
query I rowsort label-4464
SELECT 65 FROM tab1 WHERE + + 24 / col0 * + + CAST ( - col1 AS INTEGER ) NOT IN ( + 53 / + + col0 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT ALL - COUNT( * ) * - - 3 AS col1, - 69 AS col0 FROM tab0 AS cor0
----
-9
-69

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL - COUNT ( * ) * - - 3 AS col1, - 69 AS col0 FROM tab0 AS cor0
----
-9
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT CAST( - MAX( 89 ) AS SIGNED ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4466
SELECT CAST ( - MAX ( 89 ) AS INTEGER ) FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4467
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + + col1 AS SIGNED ) * - col0 + + col2 * + + col2 <= ( + + col2 ) OR NOT ( col0 ) IN ( 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4467
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + + col1 AS INTEGER ) * - col0 + + col2 * + + col2 <= ( + + col2 ) OR NOT ( col0 ) IN ( 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, col2 - 82 AS col2 FROM tab1 AS cor0 WHERE col0 / - 59 IS NULL
----

query I rowsort
SELECT ALL - 75 + col0 AS col0 FROM tab2 AS cor0
----
-11
-29
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IN ( + col2, + 32, - col2, - + 31 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT DISTINCT - - 15 DIV + - COUNT( * ) + - SUM( DISTINCT col1 ) + + + MAX( - col2 ) AS col1 FROM tab0 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - - 15 / + - COUNT ( * ) + - SUM ( DISTINCT col1 ) + + + MAX ( - col2 ) AS col1 FROM tab0 cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - 22 - ( - COUNT( ALL - 8 ) ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4472
SELECT - 22 - ( - COUNT ( ALL - 8 ) ) FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4473
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + 45 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT DISTINCT - + CAST ( NULL AS REAL ) + 45 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 27 - col2 - + - 30 FROM tab0 AS cor0
----
-42
10
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col1 * 10 + col1 + - + col0 IN ( - 1 )
----

skipif mysql # not compatible
query I rowsort label-4475
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col1 * 10 + col1 + - + col0 IN ( - 1 )
----

query I rowsort
SELECT DISTINCT + + 84 * + - col0 + + + 90 AS col1 FROM tab0 AS cor0
----
-1170
-7218
-8058

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT 17 * + MIN( ALL + 80 ) * + + 48 - + COUNT( * ) FROM tab2 AS cor0
----
65277

skipif mysql # not compatible
query I rowsort label-4477
SELECT 17 * + MIN ( ALL + 80 ) * + + 48 - + COUNT ( * ) FROM tab2 AS cor0
----
65277

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab2 WHERE NULL > + col2 * - + col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab2 WHERE NULL > + col2 * - + col0 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + COUNT( * ) FROM tab2 WHERE ( - + col2 ) NOT BETWEEN - 92 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT + COUNT ( * ) FROM tab2 WHERE ( - + col2 ) NOT BETWEEN - 92 AND NULL
----
0

query I rowsort
SELECT DISTINCT - 78 * - + col0 FROM tab1
----
3978
6630
7098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4484
SELECT - - 31 DIV + 35 * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT - - 31 / + 35 * COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + 78 FROM tab1 cor0
----
-78
-78
-78

query I rowsort
SELECT ALL + 23 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - 26, - ( - col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
-26
198
-26
20
-26
94

query I rowsort
SELECT ALL - ( col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( + 73 * + ( - col2 ) * + + col0 * + 31 + + col2 + + ( - col0 ) * - 39 / - 40 )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 / + 27 + 17 + - 13 * col1, 94, col0 - - - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 col1, + 61 * + col0 FROM tab0 AS cor0
----
70
5307
70
5917
70
915

query I rowsort
SELECT DISTINCT col1 * + + col1 - - col0 + col2 AS col0 FROM tab2 AS cor0
----
2670
4622
6033

query I rowsort
SELECT ALL - col1 + - col1 + 58 FROM tab2 AS cor0
----
-44
-76
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ( MAX( + 49 ) ) * - + 87 * ( + 95 ) FROM tab0 cor0 WHERE NOT + col2 - - col2 < col0 * - - col1 * col1 + + col1
----
-404985

skipif mysql # not compatible
query I rowsort label-4494
SELECT ( MAX ( + 49 ) ) * - + 87 * ( + 95 ) FROM tab0 cor0 WHERE NOT + col2 - - col2 < col0 * - - col1 * col1 + + col1
----
-404985

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL 25 * + - COUNT( * ) col2 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4495
SELECT ALL 25 * + - COUNT ( * ) col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT + COUNT( * ) * - COUNT( 61 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + COUNT ( * ) * - COUNT ( 61 ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT DISTINCT 10 DIV - + col0 * - col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT 10 / - + col0 * - col0 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 / + - col0 + + - col1 / - ( - col2 ) * - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT ALL + col0 + col2 DIV 82 * - - 22 AS col0 FROM tab1 AS cor0
----
73
85
91

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + col0 + col2 / 82 * - - 22 AS col0 FROM tab1 AS cor0
----
73
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4500
SELECT + CAST( - col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL = ( ( + ( col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-4500
SELECT + CAST ( - col2 AS REAL ) FROM tab2 AS cor0 WHERE NULL = ( ( + ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL MIN( + col1 ) * + - MAX( + col1 ) FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL MIN ( + col1 ) * + - MAX ( + col1 ) FROM tab1
----
-235

query I rowsort
SELECT - col2 + - 76 AS col0 FROM tab2
----
-116
-134
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + + MIN( - 90 ) + SUM( ALL ( + 25 ) ) AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4503
SELECT + + MIN ( - 90 ) + SUM ( ALL ( + 25 ) ) AS col1 FROM tab1 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 AS col1, col1 col1 FROM tab2 AS cor0
----
-94
51
-94
67
-94
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col2 * + + col1
----

query I rowsort
SELECT DISTINCT + 80 + + 24 * + 97 AS col2 FROM tab0 cor0
----
2408

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL - COUNT( * ) + + - COUNT( * ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT DISTINCT - ( - - CAST( - 18 AS SIGNED ) ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - ( - - CAST ( - 18 AS INTEGER ) ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col1 FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT ( + COUNT( * ) ) AS col2, 54 AS col1 FROM tab1
----
3
54

skipif mysql # not compatible
query II rowsort label-4511
SELECT ( + COUNT ( * ) ) AS col2, 54 AS col1 FROM tab1
----
3
54

query I rowsort
SELECT ALL + ( + - 39 ) FROM tab0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT + COUNT( * ) * - - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-4513
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
9
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4514
SELECT + col2 * - col0 col0 FROM tab1 WHERE NOT ( NOT CAST( - + CAST( col1 AS DECIMAL ) AS SIGNED ) - - + 79 IS NOT NULL )
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT + col2 * - col0 col0 FROM tab1 WHERE NOT ( NOT CAST ( - + CAST ( col1 AS REAL ) AS INTEGER ) - - + 79 IS NOT NULL )
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4515
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 63 * + + col1 AS col2 FROM tab1
----
NULL
-2961
NULL
-315
NULL
-882

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 63 * + + col1 AS col2 FROM tab1
----
NULL
-2961
NULL
-315
NULL
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT CAST( + 27 AS SIGNED ) FROM tab0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-4516
SELECT CAST ( + 27 AS INTEGER ) FROM tab0
----
27
27
27

query II rowsort
SELECT DISTINCT 23, col0 FROM tab2 AS cor0
----
23
46
23
64
23
75

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + 42 AS col1 FROM tab2 AS cor0
----
100
65
82

query I rowsort
SELECT - + ( 26 ) AS col1 FROM tab2 AS cor0
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - - 19 * + - SUM( ALL - - col1 ) + + COUNT( DISTINCT - 74 ) + + 47 AS col1 FROM tab0 AS cor0
----
-1909

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - - 19 * + - SUM ( ALL - - col1 ) + + COUNT ( DISTINCT - 74 ) + + 47 AS col1 FROM tab0 AS cor0
----
-1909

query I rowsort
SELECT DISTINCT + + col2 * + ( - 43 ) + - col2 AS col1 FROM tab0 AS cor0
----
-2068
-4356
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT + 17 DIV + 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + 17 / + 42 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 26 * ( - col2 ) * + + 69 AS col2 FROM tab1 AS cor0
----
-105846
-121992
-172224

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 11 * - - col2 AS col1 FROM tab1
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( - - col2, - 74 )
----

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( - - col2, - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT COUNT( DISTINCT - + ( + + ( col1 ) ) ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4529
SELECT COUNT ( DISTINCT - + ( + + ( col1 ) ) ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT DISTINCT + 84 DIV + ( - 21 ) AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + 84 / + ( - 21 ) AS col0 FROM tab0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT ALL + 90 DIV + + ( + 64 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + 90 / + + ( + 64 ) AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col0 + col0 * - + 26 * - col2 - + col0 FROM tab2 AS cor0
----
113100
27508
66560

query I rowsort
SELECT + 41 + - ( - + col1 ) FROM tab1 AS cor0
----
46
55
88

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 44 NOT BETWEEN - 7 * - col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 84 * + col0 + + 52 FROM tab0 AS cor0
----
1312
7360
8200

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT + MIN( + col2 ) * 94 + + - 82 AS col1 FROM tab2
----
2080

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + MIN ( + col2 ) * 94 + + - 82 AS col1 FROM tab2
----
2080

query I rowsort
SELECT - col1 + + col2 FROM tab0 WHERE NULL IS NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT + + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

query I rowsort
SELECT 7 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT - CAST( + - ( + + COUNT( * ) ) AS SIGNED ) - 81 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-4541
SELECT - CAST ( + - ( + + COUNT ( * ) ) AS INTEGER ) - 81 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT + - 74 FROM tab1 cor0 WHERE NOT - col1 * + col0 > - + 98 AND + 79 >= + col0 + - col2 / 89
----
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - ( + 85 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 * + col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL SUM( DISTINCT col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT ALL SUM ( DISTINCT col2 ) col1 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4546
SELECT 67 * COUNT( * ) FROM tab1 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
201

skipif mysql # not compatible
query I rowsort label-4546
SELECT 67 * COUNT ( * ) FROM tab1 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL CAST( 96 AS SIGNED ) FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL CAST ( 96 AS INTEGER ) FROM tab1
----
96
96
96

query I rowsort
SELECT - 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT MIN( - + col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4549
SELECT DISTINCT MIN ( - + col2 ) col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT ALL + + COUNT( * ) AS col2, COUNT( * ) * + - 95 - 6 FROM tab2 AS cor0
----
3
-291

skipif mysql # not compatible
query II rowsort label-4550
SELECT ALL + + COUNT ( * ) AS col2, COUNT ( * ) * + - 95 - 6 FROM tab2 AS cor0
----
3
-291

query I rowsort
SELECT DISTINCT + ( 38 ) AS col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL <= col1 / + col0
----

query I rowsort
SELECT + 74 * + - col0 FROM tab1 AS cor0
----
-3774
-6290
-6734

query I rowsort
SELECT ALL + ( + col1 ) + col1 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 IN ( + - 16 + + 57, col1 )
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 + 9 FROM tab0 cor0
----
10
450
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + + COUNT( * ) AS col2 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT + + COUNT ( * ) AS col2 FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4558
SELECT ALL 86 * - + col0 * + CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL 86 * - + col0 * + CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4559
SELECT CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT CAST ( - + CAST ( NULL AS REAL ) AS REAL ) * + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 * - - col1 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + 23 + + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + 23 + + COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col1 BETWEEN col0 AND + col0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( NULL AS SIGNED ) * + 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( NULL AS INTEGER ) * + 23 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT 94 * - COUNT( * ) + - 43 FROM tab1
----
-325

skipif mysql # not compatible
query I rowsort label-4565
SELECT 94 * - COUNT ( * ) + - 43 FROM tab1
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT + 78 + + + 86 + - COUNT( * ) AS col2 FROM tab0
----
161

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + 78 + + + 86 + - COUNT ( * ) AS col2 FROM tab0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + 7 * - CAST( + col2 AS SIGNED ) + - + ( + 16 ) FROM tab2
----
-177
-296
-422

skipif mysql # not compatible
query I rowsort label-4567
SELECT + 7 * - CAST ( + col2 AS INTEGER ) + - + ( + 16 ) FROM tab2
----
-177
-296
-422

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 46 ) < NULL
----

query I rowsort
SELECT - col2 * 13 - - col0 AS col0 FROM tab0 AS cor0
----
-1190
-43
-596

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT ALL ( - 51 ) DIV 89 * ( + - ( + + col0 ) ) * + col2 col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4570
SELECT ALL ( - 51 ) / 89 * ( + - ( + + col0 ) ) * + col2 col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL + 39, - col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
39
2555
39
4414
39
5865

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 + col0 AND 63 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) + + col1 col1 FROM tab1 AS cor0 WHERE NOT + col2 >= - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4573
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab1 AS cor0 WHERE NOT + col2 >= - col1
----

query I rowsort
SELECT ALL + AVG ( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT ALL + col2 DIV - + 82 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + col2 / - + 82 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + ( col0 ) + + 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + 43 * - COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 43 * - COUNT ( * ) FROM tab1
----
-129

query I rowsort
SELECT DISTINCT + ( - 44 ) FROM tab2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL MIN( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col2 FROM tab2
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + 45 * - col2 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT - col0 * col2 DIV col1 DIV + col2 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - col0 * col2 / col1 / + col2 AS col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT ALL COUNT( DISTINCT col1 ) AS col1, + 44 AS col1 FROM tab2
----
3
44

skipif mysql # not compatible
query II rowsort label-4583
SELECT ALL COUNT ( DISTINCT col1 ) AS col1, + 44 AS col1 FROM tab2
----
3
44

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL < ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT + MIN( ALL - - 34 ) AS col2, - 38 AS col2 FROM tab1 AS cor0
----
34
-38

skipif mysql # not compatible
query II rowsort label-4585
SELECT + MIN ( ALL - - 34 ) AS col2, - 38 AS col2 FROM tab1 AS cor0
----
34
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4586
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT ALL col0 DIV - 53 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL col0 / - 53 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT COUNT( * ) + - + 20 + - CAST( + + 76 AS SIGNED ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) + - + 20 + - CAST ( + + 76 AS INTEGER ) FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4589
SELECT ALL + col2, + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT ALL + col2, + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - 30 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-30
51
-30
85
-30
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL 61 + + + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 61 + + + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
160

query I rowsort
SELECT DISTINCT - - col1 * col0 + - + col1 + - + col1 * 62 * - col1 - + + ( + col1 ) FROM tab2 AS cor0
----
163506
283209
372372

query I rowsort
SELECT DISTINCT + col2 + 8 FROM tab2 AS cor0
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL MIN( ALL col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL MIN ( ALL col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ( + - col1 ) * ( ( 33 ) ) + 80 AS col0 FROM tab1
----
-1471
-382
-85

query I rowsort
SELECT - col2 * col0 * 44 + - col2 AS col2 FROM tab2
----
-112680
-191458
-46575

query II rowsort
SELECT col2 + + col1, col1 FROM tab1
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT DISTINCT - COUNT( - + col1 ) AS col1, - 95 * 64 AS col0 FROM tab1
----
-3
-6080

skipif mysql # not compatible
query II rowsort label-4598
SELECT DISTINCT - COUNT ( - + col1 ) AS col1, - 95 * 64 AS col0 FROM tab1
----
-3
-6080

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 97 col2 FROM tab1 AS cor0
----
102
111
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) * - col1 + col2 + + 83 + + - col2 FROM tab1 AS cor0
----
-113
-2126
58

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) * - col1 + col2 + + 83 + + - col2 FROM tab1 AS cor0
----
-113
-2126
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT - 79 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT - 79 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT - 85 * CAST( CAST( CAST( - 92 AS SIGNED ) AS SIGNED ) AS SIGNED ) * + ( - col2 ) FROM tab0
----
-367540
-774180
-78200

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - 85 * CAST ( CAST ( CAST ( - 92 AS INTEGER ) AS INTEGER ) AS INTEGER ) * + ( - col2 ) FROM tab0
----
-367540
-774180
-78200

query I rowsort
SELECT ALL + 52 * - col1 AS col1 FROM tab2
----
-2652
-3484
-4004

query I rowsort
SELECT - 52 * + col0 + col0 * - col2 - - 65 + + col1 FROM tab0 AS cor0
----
-1339
-14581
-5308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col2, + col0 + col1 FROM tab1 cor0
----
-64
138
-64
65
-64
90

query I rowsort
SELECT col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT 56 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - 95 * + col1 * - CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query I rowsort label-4609
SELECT 56 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - 95 * + col1 * - CAST ( NULL AS INTEGER ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 29 AND - col0 / - col1 + col2
----
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 29 AND - col0 / - col1 + col2
----
0

query I rowsort
SELECT DISTINCT + 54 * + 39 FROM tab2 AS cor0
----
2106

query I rowsort
SELECT ALL + col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4613
SELECT DISTINCT - 77 AS col1, 68 + CAST( NULL AS SIGNED ) / + 45 AS col2 FROM tab0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4613
SELECT DISTINCT - 77 AS col1, 68 + CAST ( NULL AS INTEGER ) / + 45 AS col2 FROM tab0
----
-77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT ALL - 18 col2, - COUNT( * ) AS col2 FROM tab2
----
-18
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4615
SELECT ALL - 18 col2, - COUNT ( * ) AS col2 FROM tab2
----
-18
-3

query II rowsort
SELECT - col2 AS col2, ( - 68 ) FROM tab1
----
-59
-68
-68
-68
-96
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4617
SELECT col1, - col1 + + ( col0 ) DIV + 94 FROM tab1
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-4617
SELECT col1, - col1 + + ( col0 ) / + 94 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT COUNT( ALL + - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4618
SELECT COUNT ( ALL + - col1 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT col0, - 92 AS col1 FROM tab1
----
51
-92
85
-92
91
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT SUM( ALL + + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4620
SELECT SUM ( ALL + + col0 ) AS col1 FROM tab2
----
185

query II rowsort
SELECT ALL + + 98, - 40 AS col2 FROM tab1 AS cor0
----
98
-40
98
-40
98
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4622
SELECT - col0, CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-4622
SELECT - col0, CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 51 >= - col0
----
46
51
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT - 79 * COUNT( * ) * COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - 79 * COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
237

query I rowsort
SELECT + 25 * + 81 AS col2 FROM tab2
----
2025
2025
2025

query I rowsort
SELECT - col2 + - + col2 + + + 84 + + col0 FROM tab0
----
-17
151
5

query I rowsort
SELECT ALL - + 27 * + 2 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col1 + - + 96 FROM tab0
----
-15
-75
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT ALL - 0 DIV + + 44 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - 0 / + + 44 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 79 - - - col1 + - - col0 FROM tab1
----
116
123
159

query I rowsort
SELECT + col1 FROM tab0 WHERE + 29 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4633
SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 + col2 col0 FROM tab2
----
46
46
64
80
75
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + 79 - COUNT( * ) col2 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT ALL + 79 - COUNT ( * ) col2 FROM tab0
----
76

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 * + col0, col2, + 35 )
----

query I rowsort
SELECT + 13 AS col0 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT COUNT( * ) * 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT COUNT ( * ) * 55 FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT ALL + + col2 + + + col0 AS col1 FROM tab1 WHERE col2 >= - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + + col2 + + + col0 AS col1 FROM tab1 WHERE col2 >= - col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 + - + col1 BETWEEN col2 * ( + col1 ) - + + col0 + + + col0 / + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, 29 * 42 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 46 * 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT + col1 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT + col1 ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ( - ( - ( - col2 ) ) ) * + 47 * + + col2 FROM tab0
----
-103823
-460647
-4700

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT + COUNT( * ) AS col1, + 68 AS col1 FROM tab2
----
3
68

skipif mysql # not compatible
query II rowsort label-4646
SELECT + COUNT ( * ) AS col1, + 68 AS col1 FROM tab2
----
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT ( - 89 ) * col0 * + + 1 AS col0 FROM tab2
----
-4094
-5696
-6675

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col0 > + col2 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 45 * - + col0 FROM tab2
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 55 + - - COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4651
SELECT 55 + - - COUNT ( * ) FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT COUNT( 92 ), + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4652
SELECT COUNT ( 92 ), + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4654
SELECT - SUM( ALL - col1 ) AS col2, 77 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
195
NULL

skipif mysql # not compatible
query II rowsort label-4654
SELECT - SUM ( ALL - col1 ) AS col2, 77 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
195
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL col2 + + col2 * col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT - - 13 - + 99 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

query II rowsort
SELECT ALL + col0 + + col2 AS col2, + col0 FROM tab1 AS cor0
----
144
85
147
51
159
91

query I rowsort
SELECT + - col2 + + 35 FROM tab2 AS cor0
----
-23
-5
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT - CAST( NULL AS SIGNED ) + - 60 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - CAST ( NULL AS INTEGER ) + - 60 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT + 35 + - - col1 * - col0 / 42 * + col1 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 35 + - - col1 * - col0 / 42 * + col1 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 * + + col2 AS col1 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + MIN( 19 ) + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4663
SELECT + MIN ( 19 ) + COUNT ( * ) FROM tab1
----
22

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( - 96 ) > NULL
----

query I rowsort
SELECT DISTINCT + 12 - - col0 * col1 FROM tab1
----
4289
437
726

query III rowsort
SELECT * FROM tab0 WHERE - - 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 + - col2 AS col2 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + COUNT( * ) - - - 21 + SUM( DISTINCT col1 ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + COUNT ( * ) - - - 21 + SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
85

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 10
----

query I rowsort
SELECT DISTINCT + - 43 AS col0 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 >= col2 * + - 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab2
----
98
98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4673
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN - - 72 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4673
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN - - 72 AND CAST ( NULL AS REAL )
----

query II rowsort
SELECT - + col2 AS col2, 5 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - col2 * - - 59 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT - + 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT - 92 * - + MAX( + CAST( 47 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
4324

skipif mysql # not compatible
query I rowsort label-4678
SELECT - 92 * - + MAX ( + CAST ( 47 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
4324

query I rowsort
SELECT - 29 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - - MAX( ALL 79 ) * - - 45 FROM tab2 AS cor0
----
3555

skipif mysql # not compatible
query I rowsort label-4680
SELECT - - MAX ( ALL 79 ) * - - 45 FROM tab2 AS cor0
----
3555

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4683
SELECT * FROM tab0 WHERE NOT 33 NOT IN ( + - CAST( + 7 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-4683
SELECT * FROM tab0 WHERE NOT 33 NOT IN ( + - CAST ( + 7 AS INTEGER ), col1 )
----

query I rowsort
SELECT ALL + col0 * 84 FROM tab1
----
4284
7140
7644

query I rowsort
SELECT - col2 * - 3 AS col0 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) * + 81 AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) * + 81 AS col2 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - 47 AS col1 FROM tab0
----
-423

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - 47 AS col1 FROM tab0
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - MIN( ( + - col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - MIN ( ( + - col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + - MAX( ALL + + col2 ) col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4689
SELECT + - MAX ( ALL + + col2 ) col1 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4690
SELECT + SUM( - col1 ) AS col2, - 83 AS col2 FROM tab0 AS cor0
----
-103
-83

skipif mysql # not compatible
query II rowsort label-4690
SELECT + SUM ( - col1 ) AS col2, - 83 AS col2 FROM tab0 AS cor0
----
-103
-83

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab1 AS cor0 WHERE 88 <> - ( col0 ) - - col1 - - col2
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 + + col2 + - + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 + + col2 + - + col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4693
SELECT col2 * col1 DIV ( + CAST( 24 AS SIGNED ) ) AS col1 FROM tab1
----
12
133
56

skipif mysql # not compatible
query I rowsort label-4693
SELECT col2 * col1 / ( + CAST ( 24 AS INTEGER ) ) AS col1 FROM tab1
----
12
133
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL + + 84 * + COUNT( * ) AS col2 FROM tab1 cor0
----
252

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + + 84 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
252

query I rowsort
SELECT ALL + 56 + + col0 + - col0 + - 29 AS col2 FROM tab0 cor0
----
27
27
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - - col2 + + 15
----

query I rowsort
SELECT ALL - col1 * + ( + col1 ) - - - col1 - col1 FROM tab1 AS cor0
----
-224
-2303
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT DISTINCT MIN( ( - - col2 ) ) + COUNT( * ), 31 AS col1 FROM tab2
----
26
31

skipif mysql # not compatible
query II rowsort label-4698
SELECT DISTINCT MIN ( ( - - col2 ) ) + COUNT ( * ), 31 AS col1 FROM tab2
----
26
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - 52 DIV + col2 AS col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 52 / + col2 AS col2 FROM tab0
----
-1
-5
0

query I rowsort
SELECT ALL - col1 * col0 - + 74 AS col0 FROM tab1
----
-4351
-499
-788

query II rowsort
SELECT DISTINCT col2 - - col2, + col2 AS col0 FROM tab0
----
198
99
20
10
94
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - SUM( ALL - 77 ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - SUM ( ALL - 77 ) AS col1 FROM tab2
----
231

query I rowsort
SELECT - + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT COUNT( * ) * + - ( + 12 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4704
SELECT COUNT ( * ) * + - ( + 12 ) FROM tab0
----
-36

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 22 IS NOT NULL
----

query II rowsort
SELECT ALL 9 AS col1, col2 - 70 AS col2 FROM tab2 AS cor0
----
9
-12
9
-30
9
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT ALL + 53, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-4707
SELECT ALL + 53, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
53
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT - col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 74 * - col2, - 29 * col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4710
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4710
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + MAX( ALL - 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4714
SELECT + MAX ( ALL - 58 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT - ( 96 ) AS col1 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4716
SELECT - + col2 * + col1 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT - + col2 * + col1 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + ( col1 ) + + col2 * - col0 * - - 46 FROM tab2 AS cor0
----
-114680
-196214
-47495

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT 8 DIV + 58 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT 8 / + 58 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 89 + 85 col0 FROM tab1
----
106
115
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT + MIN( DISTINCT - 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + MIN ( DISTINCT - 49 ) FROM tab1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * 38 col0 FROM tab0
----
2204
2204
2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2 WHERE - 58 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT COUNT( * ) DIV SUM( - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( * ) / SUM ( - col2 ) AS col1 FROM tab0
----
0

query II rowsort
SELECT - 98, col0 - + col0 AS col2 FROM tab1
----
-98
0
-98
0
-98
0

query II rowsort
SELECT ALL col2 AS col1, + 75 AS col2 FROM tab0
----
10
75
47
75
99
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col2 FROM tab0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col1, col1 * + + 11 FROM tab2 AS cor0
----
51
561
67
737
77
847

query I rowsort
SELECT ALL - 27 + + - col2 AS col0 FROM tab1 cor0
----
-123
-86
-95

query I rowsort
SELECT ALL + col1 * + + col1 + col2 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT MIN( + - col0 ) + - 27 col0 FROM tab1 cor0
----
-118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4730
SELECT MIN ( + - col0 ) + - 27 col0 FROM tab1 cor0
----
-118

query I rowsort
SELECT DISTINCT 11 + + - col0 FROM tab1 AS cor0
----
-40
-74
-80

query I rowsort
SELECT ALL - col0 * ( - 13 ) + - - col0 * + + col1 FROM tab0 AS cor0
----
1358
1410
2958

query III rowsort
SELECT - col1 AS col2, - col2 * + ( col2 ), + col1 FROM tab0 WHERE ( + - col0 / col1 + 73 + - col1 * col1 * + - col2 ) IS NOT NULL
----
9 values hashing to fc4df2af27b9d40a62b71425f2c5b856

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4734
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - 22 * ( + + MAX( DISTINCT - col2 ) ) AS col0 FROM tab2
----
506

skipif mysql # not compatible
query I rowsort label-4735
SELECT - 22 * ( + + MAX ( DISTINCT - col2 ) ) AS col0 FROM tab2
----
506

query I rowsort
SELECT ALL + 36 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 83 * + + col2 + 44 - 65 * - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + COUNT( * ) - - 76 col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT + COUNT ( * ) - - 76 col0 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL ( col2 ) * 99 AS col1 FROM tab2 AS cor0
----
2277
3960
5742

query I rowsort
SELECT - col1 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
3297
478

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE ( 67 ) IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - 43 col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT - 33 + + col0 * + - col0 * + + 62 FROM tab1 AS cor0
----
-161295
-447983
-513455

query I rowsort
SELECT DISTINCT + + col2 + + - 46 AS col2 FROM tab1 AS cor0
----
13
22
50

query I rowsort
SELECT + col2 + - - col1 FROM tab2 cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 - + + col0 * col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT col0 + + col2 * + 74 AS col1 FROM tab0
----
3493
7423
827

query II rowsort
SELECT DISTINCT col1 AS col2, 77 FROM tab2
----
51
77
67
77
77
77

query I rowsort
SELECT + 8 FROM tab0 WHERE NOT - col2 + - + col2 * - col0 IS NULL
----
8
8
8

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN - - 91 * + ( - 22 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT col1 * + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4752
SELECT col1 * + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab2 WHERE NOT - 55 * - col0 - col0 BETWEEN - - col2 * - col1 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-4755
SELECT DISTINCT - col1 DIV + 45 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - col1 / + 45 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT 5 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + col2 * 21 AS col1 FROM tab1 cor0
----
1239
1428
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - MAX( ALL + ( - + col1 ) ) AS col1 FROM tab1 cor0 WHERE NULL <= + ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - MAX ( ALL + ( - + col1 ) ) AS col1 FROM tab1 cor0 WHERE NULL <= + ( - col1 )
----
NULL

query I rowsort
SELECT ALL - col2 + - ( 53 ) AS col2 FROM tab0 AS cor0
----
-100
-152
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT MAX( - - 31 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT MAX ( - - 31 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + + col0 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 46 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT 51 * 83 AS col2 FROM tab0
----
4233
4233
4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT COUNT( - col1 ) DIV 74 DIV + 94 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT COUNT ( - col1 ) / 74 / + 94 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * - + col1 + col2 AS col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT ALL col1 * + - col1 - + - 81 + ( - col2 ) * + + col2 FROM tab0 cor0
----
-460
-8689
-9721

query I rowsort
SELECT - col1 * + + col2 + + col2 * + col2 AS col1 FROM tab2
----
-1480
-522
-644

query I rowsort
SELECT + ( 82 ) + + col0 AS col0 FROM tab0
----
169
179
97

query II rowsort
SELECT ALL - 93, col1 FROM tab1 AS cor0
----
-93
14
-93
47
-93
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) <= CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) <= CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT + col2 DIV col1 - 85 * + + ( col2 ) FROM tab2 AS cor0
----
-1955
-3400
-4930

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + col2 / col1 - 85 * + + ( col2 ) FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT + SUM( ALL + 56 ) AS col2 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + SUM ( ALL + 56 ) AS col2 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + SUM( + ( + - 27 ) ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + SUM ( + ( + - 27 ) ) FROM tab1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - MAX( col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT - MAX ( col2 ) col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + COUNT( * ) * + 63 AS col0 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + COUNT ( * ) * + 63 AS col0 FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT MAX( ALL - - ( + col1 ) ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4777
SELECT MAX ( ALL - - ( + col1 ) ) col1 FROM tab2
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 - - + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * + ( + col2 ) FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4780
SELECT ALL - MIN( ALL - + col0 ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - MIN ( ALL - + col0 ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL > NULL OR NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4783
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 8 - + col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4783
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 8 - + col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL - + col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - + col1 / + col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT CAST( NULL AS SIGNED ) / 85 FROM tab0 cor0 WHERE ( + - col0 ) NOT BETWEEN + col0 AND - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT CAST ( NULL AS INTEGER ) / 85 FROM tab0 cor0 WHERE ( + - col0 ) NOT BETWEEN + col0 AND - col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT 33 * + - SUM( DISTINCT 83 ) * 75 - ( - + CAST( NULL AS SIGNED ) ) + + 9 + 49 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT 33 * + - SUM ( DISTINCT 83 ) * 75 - ( - + CAST ( NULL AS INTEGER ) ) + + 9 + 49 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4787
SELECT ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + - col1 * - + 93 * - col1 FROM tab1 AS cor0
----
-18177
-205346
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL - MIN( DISTINCT + 74 ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - MIN ( DISTINCT + 74 ) FROM tab0 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 87 > - - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 26 ) FROM tab0
----
-26
-26
-26

query II rowsort
SELECT DISTINCT - 38 AS col1, 52 FROM tab1
----
-38
52

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + COUNT( * ) + 88 * + + COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4794
SELECT + COUNT ( * ) + 88 * + + COUNT ( * ) FROM tab1 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT ALL - col0 + col0 + + CAST( NULL AS SIGNED ) * - - col2 * + - col1 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-4795
SELECT ALL - col0 + col0 + + CAST ( NULL AS INTEGER ) * - - col2 * + - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 * - 40 AS col1 FROM tab2 cor0
----
-3040
-3040
-3040

query II rowsort
SELECT + col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query II rowsort
SELECT + - col0 AS col1, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * - 22 * - + 2 col2 FROM tab0 WHERE NULL >= + 88
----

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT - col1 / - - 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT + - col2 DIV - + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4801
SELECT + - col2 / - + col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE NOT col0 / + col2 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT - col0 * - ( + 51 ) AS col1 FROM tab2 AS cor0
----
2346
3264
3825

query I rowsort
SELECT DISTINCT - 80 FROM tab2, tab0 AS cor0
----
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN 59 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - COUNT( * ) * - 27 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - COUNT ( * ) * - 27 AS col0 FROM tab2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT ALL CAST( NULL AS DECIMAL ) + - - 88 AS col2 FROM tab1 WHERE ( + col1 + - - 75 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL CAST ( NULL AS REAL ) + - - 88 AS col2 FROM tab1 WHERE ( + col1 + - - 75 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL col1 DIV + 30 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4808
SELECT ALL col1 / + 30 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab0 cor0 WHERE NOT col2 + col2 + - col2 * - col2 + + + col0 < - 69
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT - COUNT( + col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4810
SELECT DISTINCT - COUNT ( + col2 ) col0 FROM tab0
----
-3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT - col2 * 71 + ( - col0 - + ( + ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT - col2 * 71 + ( - col0 - + ( + ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col1 col0 FROM tab1 WHERE NOT ( + 42 ) IN ( - col1 * col1 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT DISTINCT CAST( AVG ( - 73 ) AS SIGNED ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT CAST ( AVG ( - 73 ) AS INTEGER ) AS col1 FROM tab1
----
-73

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab1 WHERE NOT - col2 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > - col1 * + 57
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 12 * col2 FROM tab1
----
1152
708
816

query I rowsort
SELECT - col2 * + 17 AS col0 FROM tab2
----
-391
-680
-986

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT + 2 - col2 DIV col1 FROM tab1
----
-4
-9
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT + 2 - col2 / col1 FROM tab1
----
-4
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + MIN( col1 ) * + ( - 68 ) AS col1 FROM tab1
----
-340

skipif mysql # not compatible
query I rowsort label-4821
SELECT + MIN ( col1 ) * + ( - 68 ) AS col1 FROM tab1
----
-340

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) <> + 34 / + 15
----

query I rowsort
SELECT col0 * - 78 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT DISTINCT + 87 * 80 FROM tab2
----
6960

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT col1 + col2 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT col1 + col2 / col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 43 AND NULL
----

query I rowsort
SELECT 10 * + 11 AS col1 FROM tab1
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4830
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col2 FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 59 * col1 AS col2 FROM tab0
----
-1239
-4779
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 78 * - col2 col0 FROM tab0
----
-3585
-759
-7721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab2 WHERE col0 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT COUNT( * ) + MIN( col1 ) col0 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT COUNT ( * ) + MIN ( col1 ) col0 FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT ALL ( + col1 ) DIV col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL ( + col1 ) / col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL col0 * col1 FROM tab0 WHERE NOT - col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + COUNT( * ) + 21 AS col1 FROM tab1 WHERE NOT col2 + col0 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + COUNT ( * ) + 21 AS col1 FROM tab1 WHERE NOT col2 + col0 IS NOT NULL
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4839
SELECT * FROM tab1 WHERE NOT CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4839
SELECT * FROM tab1 WHERE NOT CAST ( + col2 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT SUM( DISTINCT + col2 ) * + 37 - 5 FROM tab0 WHERE NOT col1 NOT BETWEEN + col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT SUM ( DISTINCT + col2 ) * + 37 - 5 FROM tab0 WHERE NOT col1 NOT BETWEEN + col0 AND ( NULL )
----
NULL

query I rowsort
SELECT + 86 + col2 AS col1 FROM tab1
----
145
154
182

query I rowsort
SELECT ALL + col1 + 15 * ( + col2 ) FROM tab2 AS cor0
----
396
677
937

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( col0 ) * + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL COUNT( * ) * 52 + SUM( col0 ) AS col2 FROM tab0 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL COUNT ( * ) * 52 + SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( * ) + 10 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( * ) + 10 AS col1 FROM tab2
----
13

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 50 * col0 )
----

query I rowsort
SELECT ALL - + ( 12 ) AS col2 FROM tab1 AS cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 * col1 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + - MAX( col1 ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + - MAX ( col1 ) AS col1 FROM tab2 cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4850
SELECT + 91 DIV + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT + 91 / + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4851
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( - CAST( NULL AS DECIMAL ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-4851
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( - CAST ( NULL AS REAL ) + col0 )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col2 * 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + MIN( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 14 ) <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT + MIN ( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 14 ) <> + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT DISTINCT SUM( ALL ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT SUM ( ALL ( col1 ) ) FROM tab0
----
103

query I rowsort
SELECT 73 * - col2 AS col2 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT 88 DIV + col1 FROM tab0
----
1
4
88

skipif mysql # not compatible
query I rowsort label-4856
SELECT 88 / + col1 FROM tab0
----
1
4
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - MAX( ALL - + 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4857
SELECT - MAX ( ALL - + 84 ) FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT ( CAST( AVG ( - col2 ) AS SIGNED ) ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT ( CAST ( AVG ( - col2 ) AS INTEGER ) ) AS col0 FROM tab0
----
-52

query I rowsort
SELECT DISTINCT col0 * - 22 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 WHERE NULL <= ( + 32 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 2 * - col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT - SUM( DISTINCT - - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - SUM ( DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 73 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> ( + 99 )
----

query I rowsort
SELECT ALL - col0 + col0 * - 47 FROM tab0 cor0
----
-4176
-4656
-720

query I rowsort
SELECT - 99 * col0 + + 5 AS col2 FROM tab2 AS cor0
----
-4549
-6331
-7420

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT - col0 + 45 - + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-42
-52
25

skipif mysql # not compatible
query I rowsort label-4867
SELECT - col0 + 45 - + col1 / col0 AS col0 FROM tab0 AS cor0
----
-42
-52
25

query I rowsort
SELECT col1 * 65 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT col2 DIV 23 * ( - ( + col1 ) ) AS col0 FROM tab0
----
-162
-4
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT col2 / 23 * ( - ( + col1 ) ) AS col0 FROM tab0
----
-162
-4
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 78 + 18 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT col2 + CAST( ( + 45 ) AS SIGNED ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4871
SELECT col2 + CAST ( ( + 45 ) AS INTEGER ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( + 61 - + + 45 * 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + - col1 / - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + - col1 / - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - 89 AS col1 FROM tab2 AS cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - COUNT( * ) - - 94 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4875
SELECT - COUNT ( * ) - - 94 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT 72 + + + 9 * - col0 AS col0 FROM tab0 AS cor0
----
-63
-711
-801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL + ( col2 ) - + - ( col2 ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + ( col2 ) - + - ( col2 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + 51 + COUNT( ALL col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 51 + COUNT ( ALL col1 ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT - CAST( AVG ( + 25 ) AS SIGNED ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT - CAST ( AVG ( + 25 ) AS INTEGER ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL AND NOT NULL NOT IN ( 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + MAX( + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + MAX ( + + col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( ( - col2 ) * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT 69 * - 44 FROM tab1 cor0
----
-3036
-3036
-3036

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NOT ( NULL BETWEEN ( col1 ) AND NULL ) )
----

query I rowsort
SELECT ALL col1 * col0 * + ( + col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
383670
4625505
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT + col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT + col2 / + - col1 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + 91
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> - - col1 * 72 * col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4890
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( ( - ( - CAST( + col2 AS SIGNED ) ) ) ) >= - ( 97 ) + 40
----

skipif mysql # not compatible
query III rowsort label-4890
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( ( - ( - CAST ( + col2 AS INTEGER ) ) ) ) >= - ( 97 ) + 40
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + + col1 + + + col2 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + SUM( DISTINCT 4 ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + SUM ( DISTINCT 4 ) AS col0 FROM tab1
----
4

query II rowsort
SELECT - 61 AS col0, - col1 AS col0 FROM tab0
----
-61
-1
-61
-21
-61
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL col2 DIV 23 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL col2 / 23 FROM tab0 AS cor0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT DISTINCT - + 8 * col0 DIV col0 DIV + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - + 8 * col0 / col0 / + - col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT + col0 + + 33 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 88 + col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL COUNT( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT SUM( ALL + col2 ) AS col1 FROM tab1 WHERE NOT - - col1 BETWEEN + col2 AND - 73 * - col2
----
223

skipif mysql # not compatible
query I rowsort label-4900
SELECT SUM ( ALL + col2 ) AS col1 FROM tab1 WHERE NOT - - col1 BETWEEN + col2 AND - 73 * - col2
----
223

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT + col1, - 32 * col0 AS col2 FROM tab2
----
51
-1472
67
-2400
77
-2048

query I rowsort
SELECT + + 41 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 67 * - - col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 20 + 57 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - 43 / 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT + col0 * 92 DIV - 5 FROM tab1 AS cor0
----
-1564
-1674
-938

skipif mysql # not compatible
query I rowsort label-4907
SELECT + col0 * 92 / - 5 FROM tab1 AS cor0
----
-1564
-1674
-938

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + ( - col2 ) + - - 15 FROM tab2
----
-118
-54
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 * - col1 * ( col1 ) * 70 - - - col2 col0 FROM tab1 cor0
----
191933
7267451
8606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 40 + col1 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 96
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + + col1 * col2 = + 50 * + + 40
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 * + ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 / + 96 * + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT ALL ( - + 17 ) - + - col0 DIV - 11 - + col1 + - col2 AS col2 FROM tab2
----
-139
-148
-95

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL ( - + 17 ) - + - col0 / - 11 - + col1 + - col2 AS col2 FROM tab2
----
-139
-148
-95

query I rowsort
SELECT ALL 0 * + + 91 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT - ( - 48 ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT - ( - 48 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 - 93 AS col0 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - col0 - col2 + + 99 + - + col1 + + col0 AS col1 FROM tab1
----
-11
-16
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT - SUM( DISTINCT + - col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4920
SELECT DISTINCT - SUM ( DISTINCT + - col0 ) col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4921
SELECT * FROM tab2 WHERE ( + - 73 ) BETWEEN ( NULL ) AND - CAST( - 89 AS SIGNED ) - + + col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-4921
SELECT * FROM tab2 WHERE ( + - 73 ) BETWEEN ( NULL ) AND - CAST ( - 89 AS INTEGER ) - + + col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4922
SELECT DISTINCT + + col0, col0 - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4922
SELECT DISTINCT + + col0, col0 - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4923
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + - ( + + 97 ), col1 )
----

skipif mysql # not compatible
query III rowsort label-4923
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + - ( + + 97 ), col1 )
----

query I rowsort
SELECT DISTINCT + 70 * col0 / col0 * - 50 FROM tab1 cor0 WHERE NULL < 30
----

query I rowsort
SELECT ALL - 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT + COUNT( * ) * - + 47 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + COUNT ( * ) * - + 47 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT 73 * - + MIN( DISTINCT + ( - col1 ) ) FROM tab2
----
5621

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT 73 * - + MIN ( DISTINCT + ( - col1 ) ) FROM tab2
----
5621

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT SUM( ALL - col1 ), - COUNT( * ) AS col1 FROM tab1 cor0
----
-66
-3

skipif mysql # not compatible
query II rowsort label-4929
SELECT SUM ( ALL - col1 ), - COUNT ( * ) AS col1 FROM tab1 cor0
----
-66
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + col2 * col2 * - col2 IS NULL OR - + col0 NOT BETWEEN NULL AND + + col0 * 24
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( - ( + - col1 ) ) IS NOT NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / - ( - 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + COUNT( ALL - col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4933
SELECT + COUNT ( ALL - col1 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 1 AS col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( + 23 * + CAST( + - ( - col1 ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4935
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( + 23 * + CAST ( + - ( - col1 ) AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL + col0 * - 0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( - - col1 AS SIGNED ), + col2, - 9, col1 / col2 - + ( - ( col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + col0 * - 0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - - col1 AS INTEGER ), + col2, - 9, col1 / col2 - + ( - ( col2 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4938
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) - + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4938
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) - + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 66 AS col1 FROM tab0
----
1386
5346
66

onlyif mysql # DIV for integer division: 
query II rowsort label-4940
SELECT 80 * - col2 * - ( col1 ) * col2 AS col1, + 18 DIV + col2 - col2 AS col2 FROM tab2
----
18031040
-58
2158320
-23
9856000
-40

skipif mysql # not compatible
query II rowsort label-4940
SELECT 80 * - col2 * - ( col1 ) * col2 AS col1, + 18 / + col2 - col2 AS col2 FROM tab2
----
18031040
-58
2158320
-23
9856000
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 27 * col0 - + col2 / 18 * + + col0 BETWEEN - + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT + col1 * + 73 + 73 + col1 + col0 AS col2 FROM tab0 AS cor0
----
1714
244
6082

query I rowsort
SELECT ALL + 81 + - col0 / 59 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL CAST( NULL AS SIGNED ) * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 36 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 14 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 14 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4949
SELECT DISTINCT + + 47 col1, + 77 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4949
SELECT DISTINCT + + 47 col1, + 77 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ( - COUNT( * ) ) - - - MIN( ALL + col2 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4950
SELECT ( - COUNT ( * ) ) - - - MIN ( ALL + col2 ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - col0 + - 25 FROM tab2 AS cor0
----
-100
-71
-89

query I rowsort
SELECT ALL + - col0 - + 55 * - - 71 AS col2 FROM tab1 AS cor0
----
-3956
-3990
-3996

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + COUNT( ALL - col1 ) + - COUNT( - 78 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT + COUNT ( ALL - col1 ) + - COUNT ( - 78 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - - 25 + - 31 * MAX( + 42 ) FROM tab2 AS cor0
----
-1277

skipif mysql # not compatible
query I rowsort label-4954
SELECT - - 25 + - 31 * MAX ( + 42 ) FROM tab2 AS cor0
----
-1277

query I rowsort
SELECT col2 + + 87 * + col2 AS col2 FROM tab0 AS cor0
----
4136
8712
880

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 8 * ( - col1 ) - 80
----

query I rowsort
SELECT ALL - col0 * + ( col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT - + col1 * + + col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-99
-441
-10
-6561
-47

query II rowsort
SELECT DISTINCT col2, + col2 * + 29 * - 83 AS col2 FROM tab2
----
23
-55361
40
-96280
58
-139606

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT 2 * - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 2 * - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT 8 * - 84 * - SUM( ALL 25 ) FROM tab1 AS cor0
----
50400

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT 8 * - 84 * - SUM ( ALL 25 ) FROM tab1 AS cor0
----
50400

query I rowsort
SELECT ( + - 67 ) AS col2 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - - 25 * - col0 AS col0 FROM tab0 cor0
----
-2175
-2425
-375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN 41 * col0 + 96 AND + - col1 * + ( - 49 ) + ( col2 ) * 43 * - - col2 - + - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 * - - 5 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 >= - col0
----

query I rowsort
SELECT DISTINCT 83 * - col0 FROM tab2
----
-3818
-5312
-6225

query I rowsort
SELECT 1 * + - 91 * - 7 AS col0 FROM tab1
----
637
637
637

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT + 8 * COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + 8 * COUNT ( * ) FROM tab2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4970
SELECT DISTINCT + 3 DIV COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + 3 / COUNT ( * ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL - ( COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - ( COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL - 70 DIV + 34 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - 70 / + 34 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT 49 * + 89 * + 68 FROM tab0
----
296548
296548
296548

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT DISTINCT + 61 DIV - col0 + col0 AS col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + 61 / - col0 + col0 AS col0 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT ALL - col1 + - col0 - + - col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT + col0 + + col1 * col2 + col0 FROM tab2
----
1265
3208
4036

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col2 NOT BETWEEN ( + + 47 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - 85 * + COUNT( * ) col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4979
SELECT - 85 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 79 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 - - 31 + - col0 = + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col1 IN ( col1 + - 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT ALL ( 86 ) * + - MAX( + - col2 ) AS col2, 71 AS col2 FROM tab0
----
860
71

skipif mysql # not compatible
query II rowsort label-4984
SELECT ALL ( 86 ) * + - MAX ( + - col2 ) AS col2, 71 AS col2 FROM tab0
----
860
71

query II rowsort
SELECT col2, - col0 + + 48 FROM tab1
----
59
-37
68
-43
96
-3

query I rowsort
SELECT + 64 - - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
-3
13

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL - 48 * + + 5 FROM tab2
----
-240
-240
-240

query II rowsort
SELECT DISTINCT - col1 AS col0, 47 + col2 AS col2 FROM tab1 AS cor0
----
-14
143
-47
115
-5
106

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 93 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4992
SELECT + CAST( NULL AS DECIMAL ) * + ( + - COUNT( * ) ) AS col2, - ( COUNT( ALL + col1 ) ) AS col0 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4992
SELECT + CAST ( NULL AS REAL ) * + ( + - COUNT ( * ) ) AS col2, - ( COUNT ( ALL + col1 ) ) AS col0 FROM tab0
----
NULL
-3

query II rowsort
SELECT DISTINCT - 97 * + + col2 AS col2, col2 FROM tab1
----
-5723
59
-6596
68
-9312
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + + MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + + MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + - ( + - COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + - ( + - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col1 * 18 + + 25 + - + ( + col0 ) + - + ( 19 ) + + col2 AS col0 FROM tab2 AS cor0
----
1195
1368
901

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + 6 ) + - col0 AS col2 FROM tab2
----
-52
-70
-81

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 36 * - col0
----

query I rowsort
SELECT ALL 66 * + col0 * - col0 AS col1 FROM tab0
----
-14850
-499554
-620994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT 21 DIV - COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5003
SELECT 21 / - COUNT ( * ) FROM tab0
----
-7

query I rowsort
SELECT ALL - 42 * + col0 AS col1 FROM tab0
----
-3654
-4074
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT DISTINCT - col1 DIV + 24 FROM tab2
----
-2
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - col1 / + 24 FROM tab2
----
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * - + col0 * + 99 BETWEEN NULL AND - - 88
----

query I rowsort
SELECT + - 35 + col0 + + + col2 AS col2 FROM tab2 cor0
----
34
69
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT COUNT( * ) - + + ( - COUNT( * ) ) * + + 78 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-5008
SELECT COUNT ( * ) - + + ( - COUNT ( * ) ) * + + 78 FROM tab2
----
237

query I rowsort
SELECT + col0 - - + 19 * + col0 + ( 59 ) + col0 * + + col1 + + col1 * - - col0 * + 82 FROM tab0 cor0
----
10050
101204
153440

query I rowsort
SELECT + col2 * - 89 + - col2 FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT 49 * + + ( - col0 ) FROM tab2 AS cor0
----
-2254
-3136
-3675

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 12
----

query I rowsort
SELECT ( - + 33 ) AS col2 FROM tab0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - 96 col0 FROM tab0 WHERE NOT - col0 * + + col2 * - col2 < - col1
----
1440
8352
9312

query II rowsort
SELECT ALL col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - + ( col1 ) AND + - col2 + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 78 * + ( + COUNT( * ) ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-5019
SELECT 78 * + ( + COUNT ( * ) ) FROM tab2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL - MIN( - - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - MIN ( - - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL + - col1 + - - col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 * - col0 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 NOT BETWEEN NULL AND + col1 * - + col1
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT + + col2 + + col0 + col0 + - - col2 * col1 FROM tab1 AS cor0
----
1542
3446
524

query I rowsort
SELECT DISTINCT - col2 * + - 12 * + col0 FROM tab0 AS cor0
----
10440
115236
8460

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + ( + - 11 ) * col1 * + col2 / + col0 NOT IN ( - - col1 + - col1 * + + 28, col0 * + - col2, - 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * 69 FROM tab1 WHERE NULL NOT IN ( - - col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - MIN( - + 80 ) * - 25 FROM tab1
----
-2000

skipif mysql # not compatible
query I rowsort label-5028
SELECT - MIN ( - + 80 ) * - 25 FROM tab1
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT - MIN( + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - MIN ( + - col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT + col0 * col0 DIV - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5030
SELECT + col0 * col0 / - col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT + 43 * COUNT( * ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 43 * COUNT ( * ) AS col1 FROM tab2
----
129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 1 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT - 25 + COUNT( * ) - + 26 - + - 20 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - 25 + COUNT ( * ) - + 26 - + - 20 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT 25 + + COUNT( + 67 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
25

skipif mysql # not compatible
query I rowsort label-5035
SELECT 25 + + COUNT ( + 67 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
25

query I rowsort
SELECT DISTINCT + col0 * - 38 + - col1 AS col1 FROM tab2 AS cor0
----
-1799
-2509
-2917

query I rowsort
SELECT + col1 + - col1 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT + col2 + + col0 DIV - - col1 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-5038
SELECT + col2 + + col0 / - - col1 FROM tab1
----
69
76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + 44 + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 44 + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL 96 - - - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL 96 - - - COUNT ( * ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - SUM( ALL + ( + col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5041
SELECT - SUM ( ALL + ( + col0 ) ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - col2 * - 47 FROM tab2 AS cor0
----
1081
1880
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT - ( CAST( col0 AS SIGNED ) ) * + 35 FROM tab0 AS cor0
----
-3045
-3395
-525

skipif mysql # not compatible
query I rowsort label-5043
SELECT - ( CAST ( col0 AS INTEGER ) ) * + 35 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5044
SELECT DISTINCT - 53 / CAST( NULL AS DECIMAL ) * 0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - 53 / CAST ( NULL AS REAL ) * 0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL + 3 * - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + 3 * - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5046
SELECT DISTINCT - ( + ( + CAST( NULL AS SIGNED ) ) ) col0, 55 FROM tab0 AS cor0
----
NULL
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5046
SELECT DISTINCT - ( + ( + CAST ( NULL AS INTEGER ) ) ) col0, 55 FROM tab0 AS cor0
----
NULL
55

query II rowsort
SELECT ALL + 4 AS col1, col0 AS col1 FROM tab1 AS cor0
----
4
51
4
85
4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - COUNT( - - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5048
SELECT - COUNT ( - - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT - COUNT( ALL 99 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT - COUNT ( ALL 99 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + SUM( DISTINCT - 25 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5050
SELECT + SUM ( DISTINCT - 25 ) FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL + MAX( DISTINCT - 75 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + MAX ( DISTINCT - 75 ) FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT + MIN( - + 30 ) col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5053
SELECT DISTINCT + MIN ( - + 30 ) col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - col0 + - col1 * - col1 * + - 53 + + 12 + + + col2 * + - col0 * - + col2 FROM tab1 AS cor0
----
294487
303628
459589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - - col1 col0 FROM tab2
----
561
737
847

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 31 IS NULL
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 55 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5058
SELECT DISTINCT - 76, SUM( CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-76
227

skipif mysql # not compatible
query II rowsort label-5058
SELECT DISTINCT - 76, SUM ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-76
227

query I rowsort
SELECT DISTINCT + - 84 + + col2 FROM tab0 AS cor0
----
-37
-74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT - - CAST( - + 3 AS SIGNED ) FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5060
SELECT - - CAST ( - + 3 AS INTEGER ) FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL COUNT( * ) + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5061
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query II rowsort
SELECT ALL - col0 AS col1, - 39 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL - 30 + COUNT( * ) col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT ALL - 30 + COUNT ( * ) col1 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT + - col0 + + - col2 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT 37 + + 25 FROM tab0
----
62
62
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5066
SELECT ALL + + 92 * + col1 + - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) + + col0 AND - + col1
----

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + + 92 * + col1 + - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS REAL ) + + col0 AND - + col1
----

query I rowsort
SELECT DISTINCT + 47 - + 50 AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT CAST( 98 AS SIGNED ) AS col2 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT CAST ( 98 AS INTEGER ) AS col2 FROM tab1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5069
SELECT ALL * FROM tab0 WHERE NOT - - CAST( - col2 AS SIGNED ) * - col0 * + + ( + - ( 44 ) ) + - col0 + + - 89 * - + 49 * + - 28 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5069
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( - col2 AS INTEGER ) * - col0 * + + ( + - ( 44 ) ) + - col0 + + - 89 * - + 49 * + - 28 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) * + 85 col0 FROM tab0 AS cor0
----
-3995
-8415
-850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5070
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) * + 85 col0 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) * 68 AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) * 68 AS col2 FROM tab1 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 48 col0 FROM tab0 AS cor0
----
135
145
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT DISTINCT + - COUNT( * ) AS col0, - COUNT( * ) col0 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5073
SELECT DISTINCT + - COUNT ( * ) AS col0, - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT COUNT( * ) DIV - MAX( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT COUNT ( * ) / - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT 58 + - MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT 58 + - MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-19

query II rowsort
SELECT DISTINCT + col1 + - col0, col0 AS col2 FROM tab2
----
-8
75
13
64
5
46

query II rowsort
SELECT col0 - + + col2 AS col1, col1 AS col1 FROM tab1
----
-45
14
23
47
26
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) * 52 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) * 52 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 14 * - col2 * col1 FROM tab0 AS cor0
----
1386
2940
53298

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + SUM( - col2 ) / + AVG ( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT ( 41 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5080
SELECT + SUM ( - col2 ) / + AVG ( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT ( 41 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 / 79 * - + CAST( 7 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 / 79 * - + CAST ( 7 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT - + COUNT( * ) * - COUNT( col0 ) AS col2, COUNT( * ) FROM tab2 cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-5083
SELECT - + COUNT ( * ) * - COUNT ( col0 ) AS col2, COUNT ( * ) FROM tab2 cor0
----
9
3

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT COUNT( * ) * - 63 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT COUNT ( * ) * - 63 FROM tab0
----
-189

query II rowsort
SELECT col1 AS col2, - 18 FROM tab2 AS cor0
----
51
-18
67
-18
77
-18

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 1 IS NULL
----

query I rowsort
SELECT DISTINCT 65 + 77 AS col1 FROM tab0 AS cor0
----
142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT CAST( NULL AS SIGNED ) * col2 + - 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CAST ( NULL AS INTEGER ) * col2 + - 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT ALL + COUNT( * ) + 31 DIV + 64 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + COUNT ( * ) + 31 / + 64 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + + 16 col2 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT - 14 + + col2 AS col1 FROM tab2 AS cor0
----
26
44
9

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col1 + 91 / + col0 + + - col0 IS NULL
----

query I rowsort
SELECT col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5097
SELECT ALL * FROM tab2 AS cor0 WHERE ( 92 + col1 + + 51 ) IN ( col2 / + ( 39 ), 61 + - - col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5097
SELECT ALL * FROM tab2 AS cor0 WHERE ( 92 + col1 + + 51 ) IN ( col2 / + ( 39 ), 61 + - - col0 * + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 64 ) col1 FROM tab2
----
-64
-64
-64

query I rowsort
SELECT 34 * - 84 AS col1 FROM tab1
----
-2856
-2856
-2856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col1 FROM tab0
----
89
89
89

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL <= 34 / - - col1 - + 56 + - 69
----

query I rowsort
SELECT - 69 FROM tab0 WHERE 54 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 92 ) - - - col1 col2, - col1 FROM tab1
----
45
-47
78
-14
87
-5

query I rowsort
SELECT DISTINCT - col1 * + - 60 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COUNT( * ) - - COUNT( 98 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) - - COUNT ( 98 ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT + CAST( col2 AS SIGNED ) - + - col1, + col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

skipif mysql # not compatible
query II rowsort label-5106
SELECT + CAST ( col2 AS INTEGER ) - + - col1, + col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

query I rowsort
SELECT 2 * - col2 * + col2 - col0 FROM tab2 AS cor0
----
-1104
-3264
-6803

query I rowsort
SELECT ALL col1 * + col2 * + col2 * - col2 AS col0 FROM tab1 cor0
----
-1026895
-12386304
-14778304

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + CAST ( + - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5111
SELECT CAST( NULL AS SIGNED ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5111
SELECT CAST ( NULL AS INTEGER ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( - + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( - + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT - CAST( + - 30 AS SIGNED ) FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-5113
SELECT - CAST ( + - 30 AS INTEGER ) FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT - - MIN( DISTINCT ( + - col1 ) ) col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5115
SELECT DISTINCT - - MIN ( DISTINCT ( + - col1 ) ) col0 FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5116
SELECT + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NOT + 57 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE NOT + 57 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5117
SELECT + col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5117
SELECT + col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - - col0 * - ( - 1 ) FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab1
----
-15

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT + 95 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - col1 * - ( - col0 ) AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 7 * - col1 FROM tab2
----
-357
-469
-539

query I rowsort
SELECT ALL - 98 * 60 AS col1 FROM tab2
----
-5880
-5880
-5880

query I rowsort
SELECT DISTINCT col1 + - 78 * + - col1 FROM tab0
----
1659
6399
79

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - ( + ( + ( - col0 ) ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - + col0 * + col0 * 29 AS col0 FROM tab0 AS cor0
----
-219501
-272861
-6525

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT col1 DIV col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
117
58
74

skipif mysql # not compatible
query I rowsort label-5128
SELECT col1 / col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
117
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL - + COUNT( * ) + - ( - 58 ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - + COUNT ( * ) + - ( - 58 ) FROM tab1 AS cor0
----
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - 49 IN ( - + 31, col1, - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( - col2, 75 * col0 * - - ( + col2 ) - + ( + 27 ) )
----

query I rowsort
SELECT DISTINCT + col1 + - - 90 FROM tab0 AS cor0
----
111
171
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - - col0 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - + col2 - + 99 IS NOT NULL
----

query I rowsort
SELECT ALL 59 + + col2 FROM tab2 AS cor0
----
117
82
99

query I rowsort
SELECT ALL ( 39 ) + - + col2 * - + col0 * - col1 FROM tab1 AS cor0
----
-25036
-290797
-68505

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT 41 - - col1 + col1 + + CAST( NULL AS SIGNED ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT 41 - - col1 + col1 + + CAST ( NULL AS INTEGER ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 44 ) + - + 83 * - - col0 FROM tab2 cor0
----
-3774
-5268
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL COUNT( * ) + 61 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL COUNT ( * ) + 61 FROM tab0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT ALL - 17 DIV - col2 - - ( + col0 ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - 17 / - col2 - - ( + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT col1 + + 18 - - col2 * + 75 FROM tab0
----
3624
7444
789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 16 + - col0 col0 FROM tab2
----
-1147
-1296
-862

query II rowsort
SELECT DISTINCT 89 * col0 - 28 * col0 AS col2, + 9 * col1 AS col0 FROM tab1
----
3111
126
5185
45
5551
423

query I rowsort
SELECT + 25 * - 26 * col2 FROM tab2 AS cor0
----
-14950
-26000
-37700

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
3

query I rowsort
SELECT - - 28 AS col2 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT + 23 * + 99 + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23ca9bddb91d71fa87bb66d06e22f536

query I rowsort
SELECT ALL + col2 * - + col1 - 89 AS col1 FROM tab0 AS cor0
----
-188
-299
-3896

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + - MIN( 17 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5150
SELECT + - MIN ( 17 ) FROM tab2 AS cor0
----
-17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( ( ( - col1 ) ) ) AND - ( + 95 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 72 AS col2 FROM tab1 AS cor0 WHERE NOT - 52 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5153
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + 99 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5153
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + 99 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL CAST( 72 AS SIGNED ) FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL CAST ( 72 AS INTEGER ) FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + 12 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 36 + + - col2 - + + 36 + - 55 FROM tab2 AS cor0
----
-113
-78
-95

query I rowsort
SELECT DISTINCT 45 + + - col2 * + 33 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 AS col1, 99 col1 FROM tab2
----
85
99
85
99
85
99

query I rowsort
SELECT DISTINCT 4 * - - col2 AS col1 FROM tab1
----
236
272
384

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + col1 DIV col0 * col2 FROM tab0
----
0
0
235

skipif mysql # not compatible
query I rowsort label-5160
SELECT + col1 / col0 * col2 FROM tab0
----
0
0
235

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT + COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-5162
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
3
-3

query II rowsort
SELECT DISTINCT - 32 AS col0, + col0 AS col0 FROM tab2
----
-32
46
-32
64
-32
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT ALL COUNT( * ) * - 35 AS col0, - 47 AS col0 FROM tab2
----
-105
-47

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL COUNT ( * ) * - 35 AS col0, - 47 AS col0 FROM tab2
----
-105
-47

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + - COUNT( ALL + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT + - COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - ( MIN( DISTINCT - ( - - 31 ) ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
31

skipif mysql # not compatible
query I rowsort label-5167
SELECT - ( MIN ( DISTINCT - ( - - 31 ) ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
31

query I rowsort
SELECT 29 + - - col1 + 91 FROM tab0
----
121
141
201

query I rowsort
SELECT - ( + + 44 ) + ( - col2 ) AS col0 FROM tab2
----
-102
-67
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + ( + 45 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 93 FROM tab2 AS cor0 WHERE + 62 * col0 IS NOT NULL
----
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - + col1 >= - col2
----

query II rowsort
SELECT col0 * - 16 + - col2, col1 AS col0 FROM tab1 AS cor0 WHERE + col2 BETWEEN ( NULL ) AND 90 + - col0 * - col1
----

query I rowsort
SELECT ALL 16 * - 99 + - ( + col2 ) * + col0 AS col2 FROM tab2 cor0
----
-2642
-4144
-5934

query I rowsort
SELECT DISTINCT 42 + + col0 AS col1 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT + col0 * + col0 - col1 FROM tab0
----
144
7548
9408

query I rowsort
SELECT + 56 - + - 73 * + col0 FROM tab1
----
3779
6261
6699

query I rowsort
SELECT 34 - + col0 FROM tab0
----
-53
-63
19

query I rowsort
SELECT - 23 * - + col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL + - COUNT( * ) * - - 58 FROM tab0 WHERE NULL IS NULL
----
-174

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + - COUNT ( * ) * - - 58 FROM tab0 WHERE NULL IS NULL
----
-174

query I rowsort
SELECT DISTINCT + - ( - 73 ) FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5183
SELECT DISTINCT ( COUNT( * ) ) DIV ( 66 ) * - + COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT ( COUNT ( * ) ) / ( 66 ) * - + COUNT ( * ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT ALL - + SUM( DISTINCT - col1 ) * - 75, - MIN( ALL 71 ) AS col2 FROM tab0 AS cor0
----
-7725
-71

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL - + SUM ( DISTINCT - col1 ) * - 75, - MIN ( ALL 71 ) AS col2 FROM tab0 AS cor0
----
-7725
-71

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 >= - col2 / 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - - ( - COUNT( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5186
SELECT - - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + + ( + COUNT( 9 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT ALL + + ( + COUNT ( 9 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5188
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( ( - - CAST( NULL AS SIGNED ) ), - ( 44 ) + - 50, ( + + col2 ) * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-5188
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( ( - - CAST ( NULL AS INTEGER ) ), - ( 44 ) + - 50, ( + + col2 ) * + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT ALL - + 32, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 38 > + - col1
----
-32
3

skipif mysql # not compatible
query II rowsort label-5189
SELECT ALL - + 32, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 38 > + - col1
----
-32
3

query I rowsort
SELECT ALL - 40 + - col2 * + col0 FROM tab2 AS cor0
----
-1098
-2600
-4390

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + col2 = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 12 - + col2 NOT IN ( + col2 * - 62 * + col0 * - - col1 + + - ( + + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 * col0 + + 33 IS NOT NULL
----

query I rowsort
SELECT col2 * - + 12 AS col1 FROM tab2
----
-276
-480
-696

query III rowsort
SELECT * FROM tab2 WHERE NOT - 69 NOT BETWEEN - 76 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT - COUNT( * ) * + 92 col2 FROM tab2
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT DISTINCT - COUNT ( * ) * + 92 col2 FROM tab2
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT - + ( + col1 ) - - col0 AS col2 FROM tab2 WHERE + - CAST( + col0 AS SIGNED ) + + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5197
SELECT - + ( + col1 ) - - col0 AS col2 FROM tab2 WHERE + - CAST ( + col0 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 7 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + 20 FROM tab0
----
-67
-77
5

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 + - col2 IS NULL AND NOT ( - col0 ) * + + 4 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 74 FROM tab0 WHERE NOT col2 IS NULL AND NOT col0 IS NULL
----
74

query II rowsort
SELECT ALL + 71, + col1 FROM tab2
----
71
51
71
67
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + 99 + + MIN( DISTINCT col2 ) * + 13 col2 FROM tab0 AS cor0
----
229

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5203
SELECT ALL + 99 + + MIN ( DISTINCT col2 ) * + 13 col2 FROM tab0 AS cor0
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5204
SELECT + - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( - col2 + + col0 + + col2 * - + col2 IS NULL ) ) )
----

query I rowsort
SELECT - col0 + 85 FROM tab0 AS cor0
----
-12
-2
70

query I rowsort
SELECT DISTINCT + 26 + - ( + - 81 ) AS col2 FROM tab2 AS cor0
----
107

query III rowsort
SELECT * FROM tab2 WHERE + + 35 IS NULL
----

query I rowsort
SELECT ALL 14 + col1 + - col0 FROM tab1
----
-23
-30
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - MIN( - 16 ) * - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-608

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - MIN ( - 16 ) * - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT COUNT( * ) * - + 36 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5211
SELECT COUNT ( * ) * - + 36 FROM tab0
----
-108

query I rowsort
SELECT ALL + ( + + 31 ) FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - 96 + + + col2 AS col2 FROM tab1 AS cor0
----
-28
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT MIN( - + col1 ) * + - ( 60 ) * - 85 FROM tab1 AS cor0
----
-239700

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT MIN ( - + col1 ) * + - ( 60 ) * - 85 FROM tab1 AS cor0
----
-239700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL AND NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5216
SELECT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + col0 + + - col2 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - 38 + SUM( - 61 ) - - + 37 FROM tab2 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-5218
SELECT - 38 + SUM ( - 61 ) - - + 37 FROM tab2 AS cor0
----
-184

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5219
SELECT ALL + col2 + + + CAST( NULL AS SIGNED ) + + 58 + + ( - 55 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + col2 + + + CAST ( NULL AS INTEGER ) + + 58 + + ( - 55 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + + col1 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

query II rowsort
SELECT ALL + col0 * + + col0 AS col2, 3 AS col0 FROM tab2
----
2116
3
4096
3
5625
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 * 24 * + 51 + col1 * - 88 - - - 71 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + MAX( DISTINCT - 18 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5224
SELECT + MAX ( DISTINCT - 18 ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT - col0 * col1 + + 63 FROM tab0 AS cor0
----
-1152
-1764
-34

query I rowsort
SELECT DISTINCT - - 91 * - 0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - 2 * - col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT + MIN( DISTINCT - 4 ) AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + MIN ( DISTINCT - 4 ) AS col1 FROM tab0
----
-4

query I rowsort
SELECT + col2 + + 56 AS col0 FROM tab0 AS cor0
----
103
155
66

onlyif mysql # DIV for integer division: 
query II rowsort label-5230
SELECT ALL + col0 * + col1 + + col1 + - col0 - 47 DIV + col2, 71 AS col0 FROM tab0 AS cor0
----
1
71
1280
71
1757
71

skipif mysql # not compatible
query II rowsort label-5230
SELECT ALL + col0 * + col1 + + col1 + - col0 - 47 / + col2, 71 AS col0 FROM tab0 AS cor0
----
1
71
1280
71
1757
71

query I rowsort
SELECT + 29 + + col2 AS col2 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + + MIN( - col2 ) + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5232
SELECT + + MIN ( - col2 ) + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-105

query I rowsort
SELECT + col0 + col0 * 71 FROM tab1
----
3672
6120
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col1 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT - + 31 FROM tab1 WHERE NOT col1 NOT BETWEEN + 59 AND ( 48 ) OR col0 / + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT - 77 DIV - MAX( DISTINCT + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT - 77 / - MAX ( DISTINCT + col0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - MIN( col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - MIN ( col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL + 57 * - col0 AS col2 FROM tab1 AS cor0
----
-2907
-4845
-5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT - CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5239
SELECT - CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col0 - + + 23 AS col1 FROM tab2 AS cor0
----
23
41
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT ALL + - col1 * - col1 * CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + - col1 * - col1 * CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - - 20 * ( + col1 ) + + col2 * col0 FROM tab2 AS cor0
----
2078
4100
5690

query I rowsort
SELECT DISTINCT + - col1 * 39 AS col2 FROM tab0 AS cor0
----
-3159
-39
-819

query I rowsort
SELECT + 80 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
80
80
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / + + col2 <> - + 57 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT - 2 DIV + col2 + - - col1 DIV - 39 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT - 2 / + col2 + - - col1 / - 39 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT ALL - ( 17 ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - ( 17 ) / - - COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT + col1 DIV + - col2 + + col0 + - 19 FROM tab1 AS cor0
----
32
66
72

skipif mysql # not compatible
query I rowsort label-5249
SELECT + col1 / + - col2 + + col0 + - 19 FROM tab1 AS cor0
----
32
66
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 85 ) col1 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 * - col1 IS NULL
----
51
85
91

query II rowsort
SELECT ALL col2 AS col2, + col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT - col2 AS col0, + col2 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT col1 DIV - - 37 FROM tab2 WHERE NULL IS NULL
----
1
2

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT col1 / - - 37 FROM tab2 WHERE NULL IS NULL
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT MAX( col1 ) * + COUNT( + 12 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT MAX ( col1 ) * + COUNT ( + 12 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL COUNT( * ) * + 37 * + 85 FROM tab1
----
9435

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL COUNT ( * ) * + 37 * + 85 FROM tab1
----
9435

query I rowsort
SELECT DISTINCT - col1 * + col1 * 99 AS col2 FROM tab0
----
-43659
-649539
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT DISTINCT + 21 DIV - col2 AS col1 FROM tab2 WHERE + + 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + 21 / - col2 AS col1 FROM tab2 WHERE + + 56 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - MIN( DISTINCT - - ( - + col1 ) ) * - + 51 FROM tab2 AS cor0
----
-3927

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - MIN ( DISTINCT - - ( - + col1 ) ) * - + 51 FROM tab2 AS cor0
----
-3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5260
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 * + + col1
----

query I rowsort
SELECT - 98 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-98
-98
-98

query I rowsort
SELECT - 16 * + ( col2 ) AS col2 FROM tab2
----
-368
-640
-928

query I rowsort
SELECT ALL col2 * - - col1 * col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT + col1 * - 87 AS col0 FROM tab1
----
-1218
-4089
-435

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + 58 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + - - col2 FROM tab2 cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 41 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5270
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 83 + col2 * + + col1, - 43 AS col2 FROM tab1
----
1261
-43
212
-43
3113
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - SUM( col1 ) + COUNT( * ) - 81 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5272
SELECT - SUM ( col1 ) + COUNT ( * ) - 81 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 5 AS col2 FROM tab0 cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 col1 FROM tab1 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 + col0 AND + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT + col2 / CAST( ( 87 ) AS SIGNED ) FROM tab2 WHERE ( 40 ) = + col1
----

skipif mysql # not compatible
query I rowsort label-5278
SELECT + col2 / CAST ( ( 87 ) AS INTEGER ) FROM tab2 WHERE ( 40 ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5279
SELECT CAST( - col2 AS SIGNED ) DIV + col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT CAST ( - col2 AS INTEGER ) / + col0 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - 91 - col2 AS col2 FROM tab2
----
-114
-131
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL 81 * SUM( ALL 37 ) - - COUNT( * ) AS col1 FROM tab2
----
8994

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 81 * SUM ( ALL 37 ) - - COUNT ( * ) AS col1 FROM tab2
----
8994

query III rowsort
SELECT * FROM tab1 WHERE 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) * - 74 + 56 AS col2 FROM tab1
----
4422
5088
7160

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) * - 74 + 56 AS col2 FROM tab1
----
4422
5088
7160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT COUNT( * ) DIV + COUNT( DISTINCT 63 * col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5284
SELECT COUNT ( * ) / + COUNT ( DISTINCT 63 * col2 ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE 69 NOT BETWEEN ( + col2 ) AND col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5286
SELECT ALL * FROM tab0 WHERE ( + col0 / - col1 ) BETWEEN + 16 + + CAST( NULL AS SIGNED ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5286
SELECT ALL * FROM tab0 WHERE ( + col0 / - col1 ) BETWEEN + 16 + + CAST ( NULL AS INTEGER ) AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL COUNT( * ) - - COUNT( 1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL COUNT ( * ) - - COUNT ( 1 ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE - 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ( + col0 ) + col2 DIV - 68 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5291
SELECT ( + col0 ) + col2 / - 68 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1 + + 22 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( - col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL CAST( NULL AS SIGNED ) + + AVG ( + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL CAST ( NULL AS INTEGER ) + + AVG ( + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL COUNT( * ) FROM tab1 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL COUNT ( * ) FROM tab1 WHERE col2 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col2 FROM tab1 WHERE NOT - ( col1 ) * col0 IS NULL
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT + MIN( DISTINCT col2 ) + + 21 FROM tab0 WHERE NOT + col1 * + col1 BETWEEN col0 - col0 AND ( + 35 * + col2 )
----
31

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + MIN ( DISTINCT col2 ) + + 21 FROM tab0 WHERE NOT + col1 * + col1 BETWEEN col0 - col0 AND ( + 35 * + col2 )
----
31

query I rowsort
SELECT ( col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5299
SELECT COUNT( * ) DIV 62 + + 81 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5299
SELECT COUNT ( * ) / 62 + + 81 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL MIN( - 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL MIN ( - 48 ) FROM tab1
----
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> + 72
----

query I rowsort
SELECT ALL - col1 * ( col0 ) + 41 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col1 > ( NULL )
----

query I rowsort
SELECT 52 FROM tab2 WHERE NOT + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT + 33 / - col2 + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT + 33 / - col2 + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL - COUNT( * ) * - 36 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - COUNT ( * ) * - 36 FROM tab1 AS cor0
----
108

query I rowsort
SELECT DISTINCT 79 * - col1 FROM tab0 AS cor0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 * - 53 + + col2 * + col1 ) <= + ( col2 )
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT 79 * + col2 FROM tab2 AS cor0
----
1817
3160
4582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT - COUNT( * ) DIV 12 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5312
SELECT DISTINCT - COUNT ( * ) / 12 col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT - + col1 + col0 DIV col0 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - + col1 + col0 / col0 FROM tab0 AS cor0
----
-20
-80
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 + col1 AS col2 FROM tab0 AS cor0
----
101
161
81

query I rowsort
SELECT ALL col1 + - 72 FROM tab1 AS cor0
----
-25
-58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT - 42 DIV + 8 + - COUNT( * ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5317
SELECT - 42 / + 8 + - COUNT ( * ) FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + 75
----

query I rowsort
SELECT + - col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-2615
-7230
-8328

query I rowsort
SELECT - col2 * 32 FROM tab1 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL - - col0 + 35 FROM tab0 cor0
----
122
132
50

query III rowsort
SELECT * FROM tab0 WHERE ( 14 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col2 + - col2 * + col0 )
----

query I rowsort
SELECT DISTINCT - col0 - + + col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT - col2 * - + 56 AS col2 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT + 38 * - - col0 AS col2 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL - 99 AS col2 FROM tab0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT COUNT( * ) * 55 FROM tab1 WHERE NOT - col0 * + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT COUNT ( * ) * 55 FROM tab1 WHERE NOT - col0 * + col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + 65 - - - 93 + + COUNT( * ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5329
SELECT + 65 - - - 93 + + COUNT ( * ) AS col1 FROM tab1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT - col1 DIV col0 * col1 - col2 * col1 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-5330
SELECT - col1 / col0 * col1 - col2 * col1 FROM tab1 cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + + col1 col1 FROM tab0 AS cor0
----
-3
17
77

query I rowsort
SELECT ALL + col2 * - col1 - + 40 AS col1 FROM tab1 WHERE - 75 + 79 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + 93 * - col0 col0 FROM tab0 AS cor0
----
-1
-9021
-21
-8091
-81
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT + - 97 col0, + COUNT( * ) FROM tab0 AS cor0
----
-97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5335
SELECT + - 97 col0, + COUNT ( * ) FROM tab0 AS cor0
----
-97
3

query II rowsort
SELECT DISTINCT + col2, - 98 FROM tab0 cor0
----
10
-98
47
-98
99
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 14 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 59 * - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 56 AS col2 FROM tab2 AS cor0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 74
----

query I rowsort
SELECT - 46 * col0 FROM tab0 AS cor0
----
-4002
-4462
-690

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT col2 * + CAST( NULL AS SIGNED ) AS col2, ( - 33 ) AS col0 FROM tab2
----
NULL
-33
NULL
-33
NULL
-33

skipif mysql # not compatible
query II rowsort label-5343
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col2, ( - 33 ) AS col0 FROM tab2
----
NULL
-33
NULL
-33
NULL
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + COUNT( ALL + 17 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5344
SELECT + COUNT ( ALL + 17 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 * + col0 AS col0, + 81 col1 FROM tab1
----
1836
81
3060
81
3276
81

query I rowsort
SELECT col1 * - col0 * - 38 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 53 * col1 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5348
SELECT DISTINCT + ( + - col1 ), + CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-5348
SELECT DISTINCT + ( + - col1 ), + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT 95 * + CAST( 80 AS SIGNED ) AS col0 FROM tab1
----
7600
7600
7600

skipif mysql # not compatible
query I rowsort label-5349
SELECT 95 * + CAST ( 80 AS INTEGER ) AS col0 FROM tab1
----
7600
7600
7600

query II rowsort
SELECT ALL + ( + col1 ), col2 * + col0 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT ( NOT ( + col2 ) IS NOT NULL )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) + - + COUNT( * ) * 67 + - COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5353
SELECT MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) * 67 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + - 17 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT DISTINCT - MAX( DISTINCT CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - MAX ( DISTINCT CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - ( - - 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT ( col2 ) * - 47 + + col1 FROM tab2 AS cor0
----
-1030
-1803
-2659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 33 * col1 + col1 + - ( col2 ) col2 FROM tab1 AS cor0 WHERE NULL < + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + COUNT( * ) - - - 30 AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5360
SELECT + COUNT ( * ) - - - 30 AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + COUNT( * ) + - 58 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + COUNT ( * ) + - 58 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT ALL 27 * - + col2 * - col2 - CAST( col0 AS SIGNED ) - - col2 FROM tab2 AS cor0
----
14260
43176
90811

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL 27 * - + col2 * - col2 - CAST ( col0 AS INTEGER ) - - col2 FROM tab2 AS cor0
----
14260
43176
90811

query I rowsort
SELECT DISTINCT - + col0 + - 79 FROM tab0 AS cor0
----
-166
-176
-94

query I rowsort
SELECT - + 27 + + col1 AS col2 FROM tab0 cor0
----
-26
-6
54

query I rowsort
SELECT ALL col2 + - 75 AS col0 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT + col2 * + ( col1 ) FROM tab0 AS cor0 WHERE - 1 NOT IN ( 74 )
----
210
3807
99

query III rowsort
SELECT * FROM tab0 WHERE col1 <= col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - - ( col1 )
----

query II rowsort
SELECT ALL - col2, - col0 AS col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + col2 + - - col1 * - col1 * + col1 col2 FROM tab0
----
-527587
-9041
197

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5371
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) = ( 28 )
----

skipif mysql # not compatible
query III rowsort label-5371
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) = ( 28 )
----

query I rowsort
SELECT + + col2 * - - 86 FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT - - ( - 84 ) * + 7 FROM tab0 AS cor0
----
-588
-588
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-5374
SELECT + COUNT( * ) * - 49 AS col0, 64 AS col0 FROM tab1
----
-147
64

skipif mysql # not compatible
query II rowsort label-5374
SELECT + COUNT ( * ) * - 49 AS col0, 64 AS col0 FROM tab1
----
-147
64

query I rowsort
SELECT - + col1 + 55 AS col2 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
-12
-22
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT + + MIN( + - CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5376
SELECT + + MIN ( + - CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

query II rowsort
SELECT + col0 * + col0, + ( + col1 ) FROM tab2 cor0
----
2116
51
4096
77
5625
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT ALL + - MIN( DISTINCT - - col0 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-5379
SELECT ALL + - MIN ( DISTINCT - - col0 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-15
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col2 / col1 * - + col2
----

query I rowsort
SELECT DISTINCT ( + 80 ) AS col1 FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5382
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS DECIMAL ) <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5382
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS REAL ) <> ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 33 + - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66, col2 col2 FROM tab2
----
-66
23
-66
40
-66
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT - COUNT( - + col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - COUNT ( - + col1 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col2 <= ( - col0 * + col0 * - 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 33 * - 24 FROM tab1
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT CAST( + col0 AS SIGNED ) + + col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5392
SELECT CAST ( + col0 AS INTEGER ) + + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + 39 + - - SUM( - - col2 ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 39 + - - SUM ( - - col2 ) FROM tab0
----
195

query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

query I rowsort
SELECT ALL - + 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT + + col2 + 2 FROM tab0 cor0
----
101
12
49

query I rowsort
SELECT ALL - col1 * ( + col0 ) + + col2 + col0 + + + col1 * - col0 FROM tab2 AS cor0
----
-4623
-9752
-9917

query II rowsort
SELECT + 16 + - col0 AS col1, + col1 + + 16 * col1 FROM tab2 AS cor0
----
-30
867
-48
1309
-59
1139

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 70 + - col2 * 51 AS col2 FROM tab1 AS cor0
----
-3079
-3538
-4966

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5402
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 8 * + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT 40 - - + CAST( CAST( + + ( + COUNT( * ) ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5405
SELECT 40 - - + CAST ( CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
43

query I rowsort
SELECT ALL + ( - col0 ) * + - col2 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT 92 * - COUNT( * ) AS col2 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT 92 * - COUNT ( * ) AS col2 FROM tab2
----
-276

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 35 / ( - - 65 ) NOT BETWEEN - col2 AND + - col1 + + + col0
----
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL = + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT ALL - col0 DIV - 84 - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - col0 / - 84 - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT + col2 AS col0, - ( + col1 ) FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT ALL col0 DIV + - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL col0 / + - col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL - + 94 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1457
-8188
-9217

query II rowsort
SELECT ALL - 90, col1 AS col2 FROM tab2 AS cor0
----
-90
51
-90
67
-90
77

query I rowsort
SELECT - - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 7
----

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 * + col0 AS col1 FROM tab1 cor0
----
-51
-714
-85
-425
-91
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT + SUM( ALL + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + SUM ( ALL + col0 ) FROM tab0 cor0
----
199

query II rowsort
SELECT - 46, - col1 AS col1 FROM tab2 AS cor0
----
-46
-51
-46
-67
-46
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT + + 42 DIV - col2 - 84 + - - col1 + - col0 - + 62 AS col2 FROM tab0 AS cor0
----
-216
-242
-80

skipif mysql # not compatible
query I rowsort label-5420
SELECT + + 42 / - col2 - 84 + - - col1 + - col0 - + 62 AS col2 FROM tab0 AS cor0
----
-216
-242
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL < - col0 )
----

query I rowsort
SELECT - col1 + + ( + col1 ) + - col1 * col0 * col2 - 98 FROM tab1
----
-25173
-290934
-68642

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL SUM( + ( - - 10 ) ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL SUM ( + ( - - 10 ) ) FROM tab1
----
30

query I rowsort
SELECT ALL col1 * - col1 + - col2 FROM tab0
----
-100
-451
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL - col0 * col0 DIV - - col1 + - col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col1 + + - 73 )
----
-1530
-236
-267

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - col0 * col0 / - - col1 + - col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col1 + + - 73 )
----
-1530
-236
-267

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + col2, + 47, - + col0 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT * FROM tab2 WHERE + + CAST( - col0 AS SIGNED ) + 22 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab2 WHERE + + CAST ( - col0 AS INTEGER ) + 22 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5429
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 - - CAST( col0 AS DECIMAL ) * + ( - - 77 ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5429
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 - - CAST ( col0 AS REAL ) * + ( - - 77 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5430
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN + + CAST( NULL AS SIGNED ) / + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5430
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN + + CAST ( NULL AS INTEGER ) / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - 70 * - 9 + - MAX( - col1 ) FROM tab0 AS cor0
----
631

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 70 * - 9 + - MAX ( - col1 ) FROM tab0 AS cor0
----
631

query I rowsort
SELECT 63 + - 35 - - col1 * col1 FROM tab2 cor0
----
2629
4517
5957

query I rowsort
SELECT - 94 + col0 FROM tab1 AS cor0
----
-3
-43
-9

query II rowsort
SELECT + 98 + + + ( + + 90 ), - col2 AS col0 FROM tab0 AS cor0
----
188
-10
188
-47
188
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT - col2 * - col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT - col2 * - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 74 + + col1 FROM tab1 AS cor0
----
121
79
88

query I rowsort
SELECT ALL - col2 + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-16
-41
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col1
----

query II rowsort
SELECT col1 * - - col1 + - col2 * 76 * - 26 AS col0, col2 FROM tab2
----
119097
58
48049
23
84969
40

query III rowsort
SELECT ALL * FROM tab1 WHERE + 83 - + 39 <= NULL
----

query I rowsort
SELECT ALL + 61 * col0 FROM tab1
----
3111
5185
5551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / - col1 col0 FROM tab1 WHERE NOT NULL < - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 18 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 67 * - + col2 FROM tab0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT 9 * - + COUNT( * ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5445
SELECT 9 * - + COUNT ( * ) AS col2 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT ALL + 34 DIV col2 DIV + - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + 34 / col2 / + - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT DISTINCT + MAX( - 96 ) AS col0, 81 * + + COUNT( * ) FROM tab0 AS cor0
----
-96
243

skipif mysql # not compatible
query II rowsort label-5447
SELECT DISTINCT + MAX ( - 96 ) AS col0, 81 * + + COUNT ( * ) FROM tab0 AS cor0
----
-96
243

query II rowsort
SELECT - 64 * + 23 AS col1, + 7 * + 76 FROM tab2 AS cor0
----
-1472
532
-1472
532
-1472
532

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + MAX( ALL - 35 ) * + + MIN( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-1785

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + MAX ( ALL - 35 ) * + + MIN ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-1785

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <> NULL, tab1 AS cor2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) = col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5452
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT MIN( + + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5454
SELECT MIN ( + + col2 ) AS col0 FROM tab2
----
23

query II rowsort
SELECT 7 AS col2, - col0 AS col0 FROM tab0
----
7
-15
7
-87
7
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - col1 col1 FROM tab0 AS cor0
----
-10
-210
-810

query II rowsort
SELECT DISTINCT ( - ( col1 ) ), col2 * + col1 AS col0 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT - - CAST( 23 AS SIGNED ) + + - 5 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-5459
SELECT - - CAST ( 23 AS INTEGER ) + + - 5 FROM tab1 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + - - 20 col0 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT DISTINCT - col1, ( + col2 ) FROM tab2
----
-51
23
-67
58
-77
40

query II rowsort
SELECT DISTINCT + 2, - 82 * - col1 + + 77 AS col1 FROM tab1
----
2
1225
2
3931
2
487

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - 17 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT - CAST( + col0 AS SIGNED ) * - + col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5464
SELECT - CAST ( + col0 AS INTEGER ) * - + col0 AS col1 FROM tab0
----
225
7569
9409

query II rowsort
SELECT DISTINCT + 82 AS col1, + col2 FROM tab1
----
82
59
82
68
82
96

query III rowsort
SELECT * FROM tab1 WHERE + + 87 BETWEEN col1 * - 48 + ( 31 ) * + col0 AND + col0
----

query I rowsort
SELECT + col1 * 4 AS col1 FROM tab1
----
188
20
56

query I rowsort
SELECT - 79 * - - col0 AS col2 FROM tab0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT - 59 + + COUNT( - col2 ) col2 FROM tab2
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT DISTINCT - 59 + + COUNT ( - col2 ) col2 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT - - COUNT( + 82 ) FROM tab2 WHERE NULL BETWEEN col1 * + col0 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - - COUNT ( + 82 ) FROM tab2 WHERE NULL BETWEEN col1 * + col0 AND - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT - 6 DIV + SUM( + 66 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT - 6 / + SUM ( + 66 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL - COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + 48 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + col2 + + - col1 * + - col0 - + 92 FROM tab0 AS cor0
----
105
1251
1766

query I rowsort
SELECT ALL + - 92 + 99 FROM tab2 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT ALL COUNT( col2 ), COUNT( - col1 ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5476
SELECT ALL COUNT ( col2 ), COUNT ( - col1 ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + SUM( ALL + col1 ) * - + 15 + + 94 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-896

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + SUM ( ALL + col1 ) * - + 15 + + 94 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-896

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 - - - ( - - col1 ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT - COUNT( * ) * - 82 AS col2, - 46 FROM tab1 AS cor0
----
246
-46

skipif mysql # not compatible
query II rowsort label-5479
SELECT - COUNT ( * ) * - 82 AS col2, - 46 FROM tab1 AS cor0
----
246
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL COUNT( col2 ) * - 4 + 58 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL COUNT ( col2 ) * - 4 + 58 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + MIN( ALL 21 ) * + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5481
SELECT + MIN ( ALL 21 ) * + COUNT ( * ) FROM tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 88 * - - col0 AS col1, - 76 * ( ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-4048
3496
-5632
4864
-6600
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT - - col0 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - - col0 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 71 FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
71
71
71

query I rowsort
SELECT DISTINCT - + ( - 36 ) + + - col2 - - + col1 FROM tab0 AS cor0
----
-62
47
70

onlyif mysql # DIV for integer division: 
query II rowsort label-5486
SELECT ALL + col1 AS col1, col2 DIV - col1 AS col0 FROM tab1
----
14
-6
47
-1
5
-11

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL + col1 AS col1, col2 / - col1 AS col0 FROM tab1
----
14
-6
47
-1
5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL MAX( ALL - - 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL MAX ( ALL - - 8 ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT + 7 * col0 * + + col2 AS col1 FROM tab0
----
4935
6090
67221

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL MAX( col1 ) FROM tab1 WHERE NOT NULL <> 41 / - ( ( - - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL MAX ( col1 ) FROM tab1 WHERE NOT NULL <> 41 / - ( ( - - col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL COUNT( DISTINCT col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT col1 * 85 DIV 53 FROM tab1 AS cor0
----
22
75
8

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT col1 * 85 / 53 FROM tab1 AS cor0
----
22
75
8

query I rowsort
SELECT DISTINCT + 60 * 24 * + 1 * - - col0 * + col1 AS col0 FROM tab1 cor0
----
1028160
612000
6158880

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 85 * + MAX( DISTINCT + col0 ) FROM tab1
----
7735

skipif mysql # not compatible
query I rowsort label-5493
SELECT 85 * + MAX ( DISTINCT + col0 ) FROM tab1
----
7735

query I rowsort
SELECT ALL - 28 * col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5495
SELECT DISTINCT - col2 DIV + col0 col2, ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5495
SELECT DISTINCT - col2 / + col0 col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT + CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5496
SELECT + CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

query I rowsort
SELECT ALL col1 + - + 17 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-12
-3
30

query I rowsort
SELECT 18 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * col2 FROM tab1 AS cor0 WHERE - ( - col0 ) BETWEEN - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT + col2 + - + CAST( NULL AS SIGNED ) - + ( col1 ) / 31 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + col2 + - + CAST ( NULL AS INTEGER ) - + ( col1 ) / 31 * col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 + - 94 AS col1, + 84 FROM tab0 AS cor0
----
-47
84
-84
84
5
84

query I rowsort
SELECT - - 67 AS col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT - col2 * - + 92 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL 44 + COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 44 + COUNT ( * ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT 82 * - col1 FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT DISTINCT col0 * + col1 * + - col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT COUNT( * ) * - - 34 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-5508
SELECT COUNT ( * ) * - - 34 FROM tab2
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 * col2 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 61 + - - col0 FROM tab2
----
107
125
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT + 67 DIV - ( - 14 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + 67 / - ( - 14 ) FROM tab0
----
4

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT ALL 90 + ( - ( 42 ) ) FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT COUNT( * ) * SUM( ALL - - col0 ) AS col0 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - - col0 ) AS col0 FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL - 99 * - COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - 99 * - COUNT ( * ) FROM tab1
----
297

query I rowsort
SELECT 10 + - - 51 FROM tab0
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5517
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) IN ( - 79, - 64, - col1 - - - 93 + - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IN ( - 79, - 64, - col1 - - - 93 + - col0 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5518
SELECT ALL + CAST( NULL AS DECIMAL ) + + + 88 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + CAST ( NULL AS REAL ) + + + 88 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 27 + + 98 + + + 36 + - - ( 99 ) * col1 AS col0 FROM tab2 AS cor0
----
5210
6794
7784

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT 34 AS col2, + COUNT( * ) FROM tab1
----
34
3

skipif mysql # not compatible
query II rowsort label-5521
SELECT 34 AS col2, + COUNT ( * ) FROM tab1
----
34
3

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 WHERE ( NULL >= + col0 )
----

query II rowsort
SELECT ALL col2 AS col0, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query III rowsort
SELECT DISTINCT + col2, - col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
9 values hashing to 1fcac49db39bf952e8402ba32e626b6d

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + COUNT( * ) + + - 42 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5525
SELECT + COUNT ( * ) + + - 42 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT ( 63 ) - col0 + col1 * - 96 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT - COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 57 AS col1, + ( + col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-57
104
-57
133
-57
69

query II rowsort
SELECT - - col0, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT ALL col1, - 20 AS col2 FROM tab2 AS cor0
----
51
-20
67
-20
77
-20

query II rowsort
SELECT ALL - col2, - 72 + - 92 AS col1 FROM tab1 cor0
----
-59
-164
-68
-164
-96
-164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 col1 FROM tab2 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - COUNT( * ) * + MIN( DISTINCT + - col0 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5534
SELECT ALL 95 DIV COUNT( * ) AS col2, ( MAX( ALL - - 17 ) ) col0 FROM tab2
----
31
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5534
SELECT ALL 95 / COUNT ( * ) AS col2, ( MAX ( ALL - - 17 ) ) col0 FROM tab2
----
31
17

query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 BETWEEN - - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + - 22 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + - 22 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5537
SELECT + MIN( + + col2 ) AS col2, + CAST( + 61 AS SIGNED ) AS col2 FROM tab1
----
59
61

skipif mysql # not compatible
query II rowsort label-5537
SELECT + MIN ( + + col2 ) AS col2, + CAST ( + 61 AS INTEGER ) AS col2 FROM tab1
----
59
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + + COUNT( * ) * - 98 FROM tab2 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5538
SELECT + + COUNT ( * ) * - 98 FROM tab2 cor0
----
-294

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE + col0 / - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT DISTINCT + - MIN( + - 73 ) * 38 AS col2 FROM tab2 AS cor0
----
2774

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT + - MIN ( + - 73 ) * 38 AS col2 FROM tab2 AS cor0
----
2774

query I rowsort
SELECT - ( - 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5542
SELECT ALL - CAST( col0 AS SIGNED ) * col2, + ( + col2 ) FROM tab0
----
-705
47
-870
10
-9603
99

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL - CAST ( col0 AS INTEGER ) * col2, + ( + col2 ) FROM tab0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT DISTINCT - 67 * - + 79 AS col0 FROM tab2
----
5293

query I rowsort
SELECT + col1 + + 25 AS col1 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT - 46 + COUNT( * ) DIV 73 * + SUM( - 32 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5545
SELECT - 46 + COUNT ( * ) / 73 * + SUM ( - 32 ) FROM tab1 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT DISTINCT + 84 DIV - col0 + + 45 col2 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5547
SELECT DISTINCT + 84 / - col0 + + 45 col2 FROM tab2 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 28 >= 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 94 * ( - 27 ) * col2 - + col1 + col0 + - ( ( + 91 ) ) * + col0 * + + 38, 83 AS col0 FROM tab2 AS cor0
----
-217447
83
-322845
83
-406546
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL + COUNT( * ) + - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - col1 + + + 21 * - + col1 AS col0 FROM tab0 AS cor0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5552
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * 40 + - ( - - 50 ) BETWEEN CAST( ( col2 ) AS DECIMAL ) AND - CAST( 96 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5552
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * 40 + - ( - - 50 ) BETWEEN CAST ( ( col2 ) AS REAL ) AND - CAST ( 96 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + SUM( ALL + 6 ) col2 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT + SUM ( ALL + 6 ) col2 FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT 0 * col1 DIV + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT 0 * col1 / + col0 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT col2 * - + 12 * - + ( + col2 ) AS col2, - col2 AS col2 FROM tab0
----
117612
-99
1200
-10
26508
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col1 col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5557
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - - CAST( col1 AS DECIMAL ) <= + col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-5557
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - - CAST ( col1 AS REAL ) <= + col2
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 + - 78 FROM tab1 AS cor0
----
-10
-19
18

query I rowsort
SELECT col2 * + ( + col2 ) + - col1 AS col2 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT col0 + - 21 AS col2 FROM tab2
----
25
43
54

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - 30 <= + col2 * col0 * + col2 / + - 33
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COUNT( * ) * + SUM( + + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( * ) * + SUM ( + + col0 ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT - col1 * col2 + - - 27 + col0 FROM tab1 AS cor0
----
-1266
-183
-3078

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - 15 * + MAX( - 41 ) col0 FROM tab1 cor0
----
615

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT ALL - 15 * + MAX ( - 41 ) col0 FROM tab1 cor0
----
615

query I rowsort
SELECT DISTINCT - - 90 * - col1 AS col0 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL - COUNT( * ) - 56 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - COUNT ( * ) - 56 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + - SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + - SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT + + ( - - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5570
SELECT + + ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT col2 AS col1, - col1 * + 15 AS col0 FROM tab2
----
23
-765
40
-1155
58
-1005

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT col0 DIV + + 6 FROM tab1
----
14
15
8

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT col0 / + + 6 FROM tab1
----
14
15
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL - 38 DIV - col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 38 / - col2 FROM tab0
----
0
0
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col1 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col0, + 25 FROM tab1
----
59
25
68
25
96
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT + ( - - 66 ) col1, - COUNT( * ) col2 FROM tab2
----
66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5576
SELECT + ( - - 66 ) col1, - COUNT ( * ) col2 FROM tab2
----
66
-3

query II rowsort
SELECT col2 AS col2, - ( ( + col1 ) ) * + 68 + + col0 AS col1 FROM tab1
----
59
-255
68
-3105
96
-901

query I rowsort
SELECT + col2 + - + col0 * - - 49 AS col2 FROM tab0 AS cor0
----
-4253
-4654
-688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + 66 + col0 col0 FROM tab1 AS cor0
----
579
613
619

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 43 AND NULL IS NULL
----

query II rowsort
SELECT - col2 * ( + - col0 ) AS col2, + col1 FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT col2 + - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT - 13 + - col2, col0 FROM tab0 cor0
----
-112
97
-23
87
-60
15

query II rowsort
SELECT DISTINCT + 38 AS col1, 93 + + - col2 AS col0 FROM tab2
----
38
35
38
53
38
70

query I rowsort
SELECT 43 * + 27 + + ( + col1 ) * col0 FROM tab0
----
1258
2376
2988

onlyif mysql # DIV for integer division: 
query II rowsort label-5586
SELECT DISTINCT col0 - - col1 DIV col1, col2 FROM tab2
----
47
23
65
40
76
58

skipif mysql # not compatible
query II rowsort label-5586
SELECT DISTINCT col0 - - col1 / col1, col2 FROM tab2
----
47
23
65
40
76
58

query I rowsort
SELECT - col0 + + 70 FROM tab2
----
-5
24
6

query I rowsort
SELECT + 44 * col0 + + - col2 * + col1 FROM tab2
----
-264
-586
851

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + 62 BETWEEN 29 * + - col2 AND NULL
----

query I rowsort
SELECT ALL 10 - col1 * - - ( + ( col2 ) ) * + col1 - + col1 * 86 AS col0 FROM tab1
----
-154244
-1895
-20010

query II rowsort
SELECT ALL col1, 39 FROM tab0
----
1
39
21
39
81
39

query II rowsort
SELECT DISTINCT - col0, 58 AS col0 FROM tab1
----
-51
58
-85
58
-91
58

query I rowsort
SELECT DISTINCT col2 * + 38 FROM tab0
----
1786
3762
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 * - 23 + - 51 col0 FROM tab2 WHERE - col0 BETWEEN col2 AND col1 + 49 + + 45 + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT - 95 * - 59 * - COUNT( * ) FROM tab2
----
-16815

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - 95 * - 59 * - COUNT ( * ) FROM tab2
----
-16815

query I rowsort
SELECT ALL + col0 + 33 AS col0 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT - col2 - + + 28 FROM tab0 AS cor0
----
-127
-38
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NULL OR - ( + col2 ) < + 76 * + + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 84 FROM tab1 cor0 WHERE NOT NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * - col0 + + - col1 col1 FROM tab0 AS cor0
----
3198
3588
474

query I rowsort
SELECT + col0 * - 50 AS col0 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT col0 * CAST( NULL AS SIGNED ) * + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT col0 * CAST ( NULL AS INTEGER ) * + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 + - col1 * - - ( + ( + 93 ) ) AS col0 FROM tab2 cor0
----
-1206
-2233
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT 85 * ( - 77 ) + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-6470
-6481
-6499

skipif mysql # not compatible
query I rowsort label-5604
SELECT 85 * ( - 77 ) + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-6470
-6481
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col2 + - 66 col0 FROM tab0 AS cor0
----
-3403
-7095
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab1 cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col1 FROM tab2
----
81
81
81

query I rowsort
SELECT + 4 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ( - 18 ) FROM tab0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL + MIN( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + MIN ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5611
SELECT ALL + col2, col2 DIV + 91 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
1

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL + col2, col2 / + 91 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
1

query I rowsort
SELECT + col1 * 7 FROM tab1 cor0 WHERE NOT + 96 * - - 60 <= NULL
----

query I rowsort
SELECT DISTINCT + - 68 + + 66 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - COUNT( * ) * + MIN( ALL + + 65 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5614
SELECT - COUNT ( * ) * + MIN ( ALL + + 65 ) FROM tab2 AS cor0
----
-195

query II rowsort
SELECT - col2, col2 * - col0 * + 82 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-71340
-47
-57810
-99
-787446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 * + - col2 col0 FROM tab1
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT + ( - COUNT( * ) ) + + MIN( DISTINCT - 90 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-5617
SELECT + ( - COUNT ( * ) ) + + MIN ( DISTINCT - 90 ) FROM tab0
----
-93

query I rowsort
SELECT + col0 + + col0 * - 25 AS col0 FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT COUNT( * ) + - ( + 28 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-5619
SELECT COUNT ( * ) + - ( + 28 ) FROM tab2
----
-25

query I rowsort
SELECT - col1 + 64 AS col0 FROM tab0
----
-17
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT - MAX( ALL - 96 ) + 54 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5621
SELECT - MAX ( ALL - 96 ) + 54 FROM tab1 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-5622
SELECT ALL + + col1, 80 DIV 98 * + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL + + col1, 80 / 98 * + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT + 82 + + 71 FROM tab2 AS cor0
----
153
153
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5624
SELECT DISTINCT - - 91 col1, CAST( + ( - 64 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
91
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5624
SELECT DISTINCT - - 91 col1, CAST ( + ( - 64 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
91
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT 2 AS col0, MIN( DISTINCT - col2 ) FROM tab2 cor0
----
2
-58

skipif mysql # not compatible
query II rowsort label-5625
SELECT 2 AS col0, MIN ( DISTINCT - col2 ) FROM tab2 cor0
----
2
-58

query I rowsort
SELECT ALL - ( - col1 ) + 51 AS col0 FROM tab1 AS cor0
----
56
65
98

query I rowsort
SELECT DISTINCT - - col1 + + 88 FROM tab2 AS cor0
----
139
155
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - 96 ) FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL 8 - - 19 AS col1 FROM tab0
----
27
27
27

query I rowsort
SELECT - 54 AS col2 FROM tab1
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-5632
SELECT 30 - - + col1 AS col2, - col1 DIV - - 76 * + - col1 AS col2 FROM tab1
----
35
0
44
0
77
0

skipif mysql # not compatible
query II rowsort label-5632
SELECT 30 - - + col1 AS col2, - col1 / - - 76 * + - col1 AS col2 FROM tab1
----
35
0
44
0
77
0

query I rowsort
SELECT 23 - + col2 * - + col2 - - col1 FROM tab1
----
3509
4694
9253

query I rowsort
SELECT DISTINCT + col1 * + - 84 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL SUM( DISTINCT - 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL SUM ( DISTINCT - 26 ) FROM tab1
----
-26

query I rowsort
SELECT col2 - - - 75 + + 21 - + + 89 AS col2 FROM tab2
----
-103
-120
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT + col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5637
SELECT + col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 58 NOT BETWEEN col2 AND + col2 + - col2
----

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT + ( 81 ) * + - COUNT( * ) + + MIN( ALL - col1 ) col1 FROM tab0
----
-324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5640
SELECT + ( 81 ) * + - COUNT ( * ) + + MIN ( ALL - col1 ) col1 FROM tab0
----
-324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50, 95 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 993b5de8de265d5da6c58572393517b3

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5644
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 12 + + CAST( - col0 AS DECIMAL ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5644
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 12 + + CAST ( - col0 AS REAL ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, + 85 + - 28 col2 FROM tab0 AS cor0
----
10
57
47
57
99
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT + ( - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + ( - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5647
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0, COUNT( 30 ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5647
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( 30 ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT 94 FROM tab0 WHERE NOT + col1 BETWEEN NULL AND col0
----
94

query I rowsort
SELECT DISTINCT + col2 * col2 * - col1 * + 77 FROM tab2
----
-17354876
-2077383
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ( - MAX( + col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5650
SELECT ( - MAX ( + col1 ) ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 73 )
----

query I rowsort
SELECT + - 6 + + 23 AS col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + 16 * + col0 AS col1 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT + - ( 82 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - + ( + SUM( col2 ) ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - + ( + SUM ( col2 ) ) FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + COUNT( * ) * - + MAX( + 9 ) * - SUM( col1 ) * - 12 col2 FROM tab0
----
-33372

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5657
SELECT DISTINCT + COUNT ( * ) * - + MAX ( + 9 ) * - SUM ( col1 ) * - 12 col2 FROM tab0
----
-33372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5658
SELECT + COUNT( col1 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN 22 * CAST( NULL AS SIGNED ) + + 77 + - + col0 * - + 82 + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT + COUNT ( col1 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN 22 * CAST ( NULL AS INTEGER ) + + 77 + - + col0 * - + 82 + col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 - - + col2 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT DISTINCT + ( - - col2 ) - - + 55 FROM tab0 WHERE ( NOT NULL BETWEEN + col0 - + 41 AND NULL )
----

query II rowsort
SELECT DISTINCT - 2 AS col0, ( col2 ) FROM tab2
----
-2
23
-2
40
-2
58

query II rowsort
SELECT + col2 AS col1, - 44 * - col2 AS col1 FROM tab1 cor0
----
59
2596
68
2992
96
4224

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 58 + + 4 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5666
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN CAST( NULL AS SIGNED ) AND - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5666
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN CAST ( NULL AS INTEGER ) AND - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ( col0 ) DIV col2 + 46 + - ( + col1 ) * - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-387
-6515
45

skipif mysql # not compatible
query I rowsort label-5667
SELECT ( col0 ) / col2 + 46 + - ( + col1 ) * - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-387
-6515
45

query I rowsort
SELECT DISTINCT - 80 * - 23 + - + col0 AS col2 FROM tab2 cor0
----
1765
1776
1794

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5669
SELECT ALL + - 28 + - CAST( NULL AS DECIMAL ) + col2 / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + - 28 + - CAST ( NULL AS REAL ) + col2 / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 77 col1 FROM tab2
----
-1771
-3080
-4466

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 > NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT + 34 <> col2
----

query II rowsort
SELECT - 99, + 49 AS col1 FROM tab0
----
-99
49
-99
49
-99
49

query I rowsort
SELECT ALL + 16 AS col0 FROM tab2
----
16
16
16

query I rowsort
SELECT col0 * col1 FROM tab1 WHERE col0 IS NULL
----

query II rowsort
SELECT - 72 AS col2, col0 FROM tab0
----
-72
15
-72
87
-72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - - MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5677
SELECT - - MAX ( + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT + 15 + 88 AS col2 FROM tab2
----
103
103
103

query I rowsort
SELECT + col0 * - col0 + + - col0 FROM tab0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT - COUNT( * ) + - + 28 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-31

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - COUNT ( * ) + - + 28 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) col1, 9 FROM tab1 AS cor0
----
59
9
68
9
96
9

query I rowsort
SELECT - + col1 AS col0 FROM tab2 cor0 WHERE 25 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5684
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( 59 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5684
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( 59 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT + - SUM( + - 88 ) + + ( COUNT( * ) ) + - 86 FROM tab2 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + - SUM ( + - 88 ) + + ( COUNT ( * ) ) + - 86 FROM tab2 AS cor0
----
181

query I rowsort
SELECT + col0 * col1 - 45 - - col0 FROM tab1
----
4323
465
720

query I rowsort
SELECT 74 - ( col1 ) * - col2 FROM tab2
----
1247
3154
3960

query I rowsort
SELECT + col1 - + col2 * 20 FROM tab0
----
-179
-1979
-859

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT DISTINCT 67 DIV - + 85 * 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT 67 / - + 85 * 36 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + MIN( - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5690
SELECT + MIN ( - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - SUM( DISTINCT + + col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5691
SELECT - SUM ( DISTINCT + + col0 ) col2 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - 91 AS col1 FROM tab1 cor0
----
51
-91
85
-91
91
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT + 52 DIV - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT + 52 / - col0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 * ( + col0 ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - MAX( DISTINCT + 64 ) col1 FROM tab1
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5697
SELECT DISTINCT - MAX ( DISTINCT + 64 ) col1 FROM tab1
----
-64

query II rowsort
SELECT DISTINCT col2, 82 AS col0 FROM tab1 cor0
----
59
82
68
82
96
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 4 NOT IN ( + col0 - + + 17 * 89 * + - col2, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 36 + - col1 FROM tab2 cor0
----
-103
-113
-87

query II rowsort
SELECT ALL - 17 AS col0, col0 * - col1 + + col1 FROM tab2 AS cor0
----
-17
-2295
-17
-4851
-17
-4958

query I rowsort
SELECT ALL - col1 * - + 98 * col2 AS col1 FROM tab0 AS cor0
----
20580
373086
9702

query I rowsort
SELECT - col2 * 26 * + col2 + col0 FROM tab1 cor0
----
-120133
-239565
-90421

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + ( - 13 ) * + COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5704
SELECT + ( - 13 ) * + COUNT ( * ) FROM tab0
----
-39

query I rowsort
SELECT 14 + - - 77 AS col0 FROM tab0
----
91
91
91

query I rowsort
SELECT 3 * + col0 + - col1 FROM tab1
----
139
226
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT - SUM( ALL - 99 ) FROM tab0, tab2 cor0
----
891

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - SUM ( ALL - 99 ) FROM tab0, tab2 cor0
----
891

query I rowsort
SELECT ALL + - col2 + + col1 * + + col2 FROM tab2 AS cor0
----
1150
3040
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col0 * - + 57 col0 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL - MAX( ALL 33 ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) < 21 + - - col2 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - MAX ( ALL 33 ) FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < 21 + - - col2 * col0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + - ( + 19 ) + - col2 + - col1 - col2 FROM tab1 AS cor0
----
-28
60
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT CAST( + 77 AS SIGNED ) AS col1 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-5712
SELECT CAST ( + 77 AS INTEGER ) AS col1 FROM tab2
----
77
77
77

query I rowsort
SELECT DISTINCT - col1 - - 65 FROM tab0
----
-16
44
64

query III rowsort
SELECT * FROM tab2 WHERE + - col2 * - - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT + - COUNT( * ) - + 74 AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5715
SELECT + - COUNT ( * ) - + 74 AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 < NULL )
----

query I rowsort
SELECT DISTINCT - 58 * - 61 FROM tab2 AS cor0
----
3538

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5719
SE