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
SELECT ALL ( - col2 ) * + + CAST( NULL AS SIGNED ) col2, - CAST( NULL AS SIGNED ) + + col2 + + col2 col1, - col2 * - 6 * + col0 FROM tab1 AS cor0
----
9 values hashing to 34da099c0629854aa6ac36f4967e03ed

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5719
SELECT ALL ( - col2 ) * + + CAST ( NULL AS INTEGER ) col2, - CAST ( NULL AS INTEGER ) + + col2 + + col2 col1, - col2 * - 6 * + col0 FROM tab1 AS cor0
----
9 values hashing to 34da099c0629854aa6ac36f4967e03ed

query I rowsort
SELECT + + 89 + - + col2 AS col1 FROM tab0 cor0
----
-10
42
79

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

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

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

query II rowsort
SELECT col2 AS col0, 76 FROM tab2 AS cor0
----
23
76
40
76
58
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - MAX( DISTINCT 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-5725
SELECT - MAX ( DISTINCT 45 ) FROM tab1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT DISTINCT col1 DIV + 13 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT col1 / + 13 AS col1 FROM tab1
----
0
1
3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + 1 + - col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col2 * 17 FROM tab2
----
391
680
986

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT DISTINCT 46 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT 46 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT CAST( 92 AS SIGNED ) * - 38 + ( - col2 ) * - col0 FROM tab0
----
-2626
-2791
6107

skipif mysql # not compatible
query I rowsort label-5734
SELECT CAST ( 92 AS INTEGER ) * - 38 + ( - col2 ) * - col0 FROM tab0
----
-2626
-2791
6107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 43 col1, 79 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to aee717f4988ae6ba7de268b597f7f3e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - + col0 col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5737
SELECT + col2 + - 62 - + CAST( NULL AS DECIMAL ) AS col1, 78 * + col1 FROM tab0 AS cor0
----
NULL
1638
NULL
6318
NULL
78

skipif mysql # not compatible
query II rowsort label-5737
SELECT + col2 + - 62 - + CAST ( NULL AS REAL ) AS col1, 78 * + col1 FROM tab0 AS cor0
----
NULL
1638
NULL
6318
NULL
78

query II rowsort
SELECT + - 99, + col0 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-99
51
-99
85
-99
91

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab1 AS cor0 WHERE + 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - ( 34 ) / 65 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT COUNT( * ) * 50 AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-5743
SELECT COUNT ( * ) * 50 AS col1 FROM tab0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 22 col2, 99 * + col0 * - col1 * 22 FROM tab0
----
22
-211266
22
-2646270
22
-3979206

query I rowsort
SELECT + 48 * - + 77 FROM tab1
----
-3696
-3696
-3696

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5746
SELECT DISTINCT 88 + - CAST( NULL AS DECIMAL ) + - + 23 * col0 * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT 88 + - CAST ( NULL AS REAL ) + - + 23 * col0 * - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT - 65 - + COUNT( * ) + - COUNT( * ) + 46 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5747
SELECT - 65 - + COUNT ( * ) + - COUNT ( * ) + 46 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT + 33 - + - col0 * - 3 * + 16 * 54 FROM tab2 AS cor0
----
-119199
-165855
-194367

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL COUNT( * ) * + MIN( - - col2 ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL COUNT ( * ) * + MIN ( - - col2 ) AS col1 FROM tab1
----
177

query I rowsort
SELECT DISTINCT - col2 * 91 AS col1 FROM tab0 AS cor0
----
-4277
-9009
-910

query I rowsort
SELECT DISTINCT - + 82 * + col2 * - col1 FROM tab1 AS cor0
----
110208
24190
262072

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

query II rowsort
SELECT - col0 AS col0, - 67 FROM tab2
----
-46
-67
-64
-67
-75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT DISTINCT + CAST( 7 AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - - 68 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + CAST ( 7 AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - - 68 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 52 FROM tab0
----
-15
-52
-87
-52
-97
-52

query I rowsort
SELECT ALL col0 / 67 FROM tab2 WHERE - col0 IS NULL
----

query II rowsort
SELECT 25 AS col2, 97 AS col2 FROM tab1 AS cor0
----
25
97
25
97
25
97

query II rowsort
SELECT ALL - col1 AS col2, 46 + + col1 FROM tab0 AS cor0
----
-1
47
-21
67
-81
127

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

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

query II rowsort
SELECT DISTINCT 98 AS col2, col2 FROM tab2 AS cor0
----
98
23
98
40
98
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 + + 99 * - 22 col0 FROM tab1
----
-2106
-2106
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - COUNT( DISTINCT col1 ) * 19 AS col1 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( DISTINCT col1 ) * 19 AS col1 FROM tab0 WHERE col1 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - COUNT( * ) FROM tab0 WHERE - 51 <> - 52
----
-3

skipif mysql # not compatible
query I rowsort label-5766
SELECT - COUNT ( * ) FROM tab0 WHERE - 51 <> - 52
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT MAX( DISTINCT + col0 ) FROM tab2 WHERE NULL >= + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT MAX ( DISTINCT + col0 ) FROM tab2 WHERE NULL >= + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 9 * - col2 FROM tab2
----
207
360
522

query I rowsort
SELECT ( - col0 ) - + 7 AS col1 FROM tab0
----
-104
-22
-94

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT + 48 NOT BETWEEN NULL AND col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5773
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col0 * - 17 BETWEEN NULL AND ( CAST( + col0 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col0 * - 17 BETWEEN NULL AND ( CAST ( + col0 AS REAL ) )
----
NULL

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT - col2 * 38 FROM tab0
----
-1786
-3762
-380

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT - ( col0 ) DIV col2 + 63 * 24 AS col1 FROM tab1
----
1511
1511
1512

skipif mysql # not compatible
query I rowsort label-5780
SELECT - ( col0 ) / col2 + 63 * 24 AS col1 FROM tab1
----
1511
1511
1512

query I rowsort
SELECT ALL - col0 * 6 FROM tab1
----
-306
-510
-546

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

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

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

query I rowsort
SELECT DISTINCT 24 * 13 + + 82 AS col0 FROM tab2 AS cor0
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT 93 * SUM( col0 ) FROM tab0 AS cor0
----
18507

skipif mysql # not compatible
query I rowsort label-5785
SELECT 93 * SUM ( col0 ) FROM tab0 AS cor0
----
18507

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT NULL > + 3
----

query I rowsort
SELECT DISTINCT + 60 FROM ( tab2 cor0 CROSS JOIN tab0 )
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col1 ) IN ( 22 + col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT COUNT ( * ) * ( + 6 ) FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT col2 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5792
SELECT col2 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
1600
3364
529

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

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

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

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

query I rowsort
SELECT - - col0 * 61 FROM tab2 cor0
----
2806
3904
4575

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5796
SELECT + CAST( - col1 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT - col0 * 70 AS col2 FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + SUM( 56 ) AS col0 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5798
SELECT + SUM ( 56 ) AS col0 FROM tab2 AS cor0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + + 85 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT + + 85 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - + 70 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-5801
SELECT - col0 * ( - col2 ) DIV + 71 FROM tab0
----
12
135
9

skipif mysql # not compatible
query I rowsort label-5801
SELECT - col0 * ( - col2 ) / + 71 FROM tab0
----
12
135
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT 98 * - ( - COUNT( * ) ) FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT 98 * - ( - COUNT ( * ) ) FROM tab2
----
294

query I rowsort
SELECT 71 FROM tab1 WHERE NOT ( 82 ) = col1
----
71
71
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT ALL col0 * + col0 DIV - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL col0 * + col0 / - col0 FROM tab1
----
-51
-85
-91

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

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

query I rowsort
SELECT DISTINCT 26 * 51 FROM tab0 AS cor0
----
1326

query I rowsort
SELECT DISTINCT - - 2 * + - col1 * + 1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * col2 col1 FROM tab0 AS cor0
----
-1880
-3960
-400

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

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

query I rowsort
SELECT DISTINCT 4 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 38 * + col1 )
----

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

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

query I rowsort
SELECT + 43 + + 86 + + ( + col2 ) + col1 FROM tab1
----
193
239
244

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

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

query I rowsort
SELECT col0 / - col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 * ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * + col0 * col2 col1 FROM tab1 AS cor0
----
171360
175525
216580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT ALL - col1 + + - CAST( + col0 AS SIGNED ) + + ( - col0 ) FROM tab0 AS cor0
----
-111
-195
-195

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - col1 + + - CAST ( + col0 AS INTEGER ) + + ( - col0 ) FROM tab0 AS cor0
----
-111
-195
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT COUNT( * ) + SUM( + 92 ) DIV + 37 AS col2 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5821
SELECT COUNT ( * ) + SUM ( + 92 ) / + 37 AS col2 FROM tab2 cor0
----
10

query I rowsort
SELECT DISTINCT + 46 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( 52 ) BETWEEN + 96 * col1 + - col2 * - 67 AND ( col1 )
----
131
137
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5823
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 * + CAST( NULL AS DECIMAL ) * - 11 BETWEEN NULL AND + col1 + + 78
----

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 * + CAST ( NULL AS REAL ) * - 11 BETWEEN NULL AND + col1 + + 78
----

query I rowsort
SELECT DISTINCT col0 + - 28 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5825
SELECT + + 32, + CAST( NULL AS SIGNED ) * + 25 AS col0 FROM tab0 AS cor0
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-5825
SELECT + + 32, + CAST ( NULL AS INTEGER ) * + 25 AS col0 FROM tab0 AS cor0
----
32
NULL
32
NULL
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT + - COUNT( * ) + 91 AS col2 FROM tab2 WHERE NOT NULL > + 30
----
91

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + - COUNT ( * ) + 91 AS col2 FROM tab2 WHERE NOT NULL > + 30
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + COUNT( * ) + SUM( - col1 ) AS col0 FROM tab0 WHERE + col1 * - - col2 + + col2 > col1 * col1 - 65 * col2
----
-100

skipif mysql # not compatible
query I rowsort label-5827
SELECT + COUNT ( * ) + SUM ( - col1 ) AS col0 FROM tab0 WHERE + col1 * - - col2 + + col2 > col1 * col1 - 65 * col2
----
-100

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

query I rowsort
SELECT ( 13 ) AS col1 FROM tab2
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= - ( + 31 )
----

query I rowsort
SELECT ( - - col1 ) * col0 * + 9 FROM tab2
----
21114
44352
45225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 - - - ( - + col2 ) col0 FROM tab0
----
112
23
60

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN + 43 * - col0 * + 41 AND - col1 * - col0
----

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

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

query I rowsort
SELECT + 27 - - - col2 FROM tab0
----
-20
-72
17

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - - col0 ), + 1 col2 FROM tab1 AS cor0
----
51
1
85
1
91
1

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

query I rowsort
SELECT ( - ( 15 ) ) FROM tab0
----
-15
-15
-15

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT - + col0 DIV + + 85 - - - 58 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-5843
SELECT - + col0 / + + 85 - - - 58 FROM tab2 AS cor0
----
-58
-58
-58

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

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

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

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

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

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

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + ( + + col1 ) * + 94 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5848
SELECT DISTINCT col2, + col0 + - - col1 + + ( + 3 ) * + col0 + + 90 DIV col0 FROM tab2
----
23
236
40
334
58
368

skipif mysql # not compatible
query II rowsort label-5848
SELECT DISTINCT col2, + col0 + - - col1 + + ( + 3 ) * + col0 + + 90 / col0 FROM tab2
----
23
236
40
334
58
368

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5849
SELECT ALL CAST ( NULL AS INTEGER ) * 1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 + + + col0 FROM tab1
----
131
165
171

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT + ( - 40 ) IS NULL
----
-1
-21
-81

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

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

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

query I rowsort
SELECT - col0 * - 8 AS col0 FROM tab1
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT col2 + 58 AS col2 FROM tab2 AS cor0 WHERE ( - col1 + - 65 * + CAST( NULL AS SIGNED ) * col1 <= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5855
SELECT col2 + 58 AS col2 FROM tab2 AS cor0 WHERE ( - col1 + - 65 * + CAST ( NULL AS INTEGER ) * col1 <= ( NULL ) )
----

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

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

query I rowsort
SELECT ALL + 89 + col2 * - col1 FROM tab2 cor0
----
-1084
-2991
-3797

query I rowsort
SELECT - col2 + - + 99 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
209461
405464
556817

query I rowsort
SELECT + + 24 AS col0 FROM tab1 AS cor0 WHERE ( - 19 + - 60 * col0 ) <> col2
----
24
24
24

query I rowsort
SELECT ALL - 89 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT + col1 + + col0 + + 51 DIV - - col0 FROM tab2
----
141
142
98

skipif mysql # not compatible
query I rowsort label-5862
SELECT + col1 + + col0 + + 51 / - - col0 FROM tab2
----
141
142
98

query I rowsort
SELECT - - 84 AS col0 FROM tab0 WHERE + 86 * col1 + ( + 53 ) IS NOT NULL
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - ( - col2 ) + + + 58 ) > NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( - 34 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT MAX( ALL - - ( + - col0 ) ) * + 54 AS col0 FROM tab1 AS cor0
----
-2754

skipif mysql # not compatible
query I rowsort label-5868
SELECT MAX ( ALL - - ( + - col0 ) ) * + 54 AS col0 FROM tab1 AS cor0
----
-2754

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT - col1 DIV - - 20 AS col2 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5869
SELECT - col1 / - - 20 AS col2 FROM tab0 AS cor0
----
-1
-4
0

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

query II rowsort
SELECT - col0 AS col2, col2 * - col2 FROM tab0 cor0
----
-15
-2209
-87
-100
-97
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-5872
SELECT DISTINCT - ( COUNT( * ) ), - 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9
-28

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT - ( COUNT ( * ) ), - 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + 17 * + - SUM( + - col2 ) - + - 19 FROM tab1 cor0
----
3810

skipif mysql # not compatible
query I rowsort label-5874
SELECT + 17 * + - SUM ( + - col2 ) - + - 19 FROM tab1 cor0
----
3810

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

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

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

skipif mysql # not compatible
query I rowsort label-5876
SELECT - + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5877
SELECT + - 30 DIV - col1 AS col1, + 68 FROM tab1 AS cor0
----
0
68
2
68
6
68

skipif mysql # not compatible
query II rowsort label-5877
SELECT + - 30 / - col1 AS col1, + 68 FROM tab1 AS cor0
----
0
68
2
68
6
68

query I rowsort
SELECT - col0 * + + col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE - - col0 + - + 8 - + - 87 >= + - 57 OR NULL IS NULL
----
18270
57105
9603

query II rowsort
SELECT DISTINCT - 29 / - + 66, ( - col0 ) * - 60 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5880
SELECT DISTINCT - 76 * - - 29 AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-2204
NULL

skipif mysql # not compatible
query II rowsort label-5880
SELECT DISTINCT - 76 * - - 29 AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-2204
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - + col2 + - + 9 = NULL
----

query I rowsort
SELECT ALL ( + 34 ) AS col1 FROM tab1
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL SUM( - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL SUM ( - col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT COUNT( * ) FROM tab1 WHERE NOT 9 + + col0 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5884
SELECT COUNT ( * ) FROM tab1 WHERE NOT 9 + + col0 / col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5885
SELECT ALL * FROM tab1 cor0 WHERE + 4 * + 72 IN ( - + col2, + ( - 85 ) + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5885
SELECT ALL * FROM tab1 cor0 WHERE + 4 * + 72 IN ( - + col2, + ( - 85 ) + + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT + 64 DIV 26 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT + 64 / 26 FROM tab0
----
2

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN col2 AND + + col0
----
85
5
59
91
47
68

query I rowsort
SELECT - + col0 * 81 + - col0 * - - 65 AS col2 FROM tab0 AS cor0
----
-12702
-14162
-2190

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

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

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

query I rowsort
SELECT ALL 2 + col1 FROM tab1 AS cor0
----
16
49
7

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

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

query I rowsort
SELECT DISTINCT - col0 * 42 * col1 - - col1 AS col1 FROM tab1
----
-17845
-179587
-29974

query I rowsort
SELECT 13 * - - col1 * col0 - + - col0 FROM tab0
----
1358
15810
23838

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT col2 DIV - 29 - - + col2 FROM tab0
----
10
46
96

skipif mysql # not compatible
query I rowsort label-5898
SELECT col2 / - 29 - - + col2 FROM tab0
----
10
46
96

query I rowsort
SELECT + 63 - col0 + + 18 FROM tab0
----
-16
-6
66

query I rowsort
SELECT DISTINCT + 91 - - + ( - col0 ) AS col0 FROM tab2
----
16
27
45

query I rowsort
SELECT DISTINCT 2 * - 79 FROM tab1
----
-158

query I rowsort
SELECT DISTINCT + col0 * - col1 - + - 79 * - col0 FROM tab2 AS cor0
----
-10950
-5980
-9984

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT ALL - + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT - col1 * + + 8 * + - 88 AS col2 FROM tab2 WHERE + col2 * col1 + + CAST( NULL AS SIGNED ) * col1 IS NULL
----
35904
47168
54208

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - col1 * + + 8 * + - 88 AS col2 FROM tab2 WHERE + col2 * col1 + + CAST ( NULL AS INTEGER ) * col1 IS NULL
----
35904
47168
54208

query I rowsort
SELECT - 99 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE + + col0 * - ( col0 ) / col2 + col2 * + + col1 / + col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT SUM( - 40 ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5907
SELECT SUM ( - 40 ) FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL + - MIN( DISTINCT - - 7 ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + - MIN ( DISTINCT - - 7 ) AS col1 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT - col1 * - CAST( - 29 AS SIGNED ) - + - 17 FROM tab1 AS cor0 WHERE NOT - 20 < - 53
----
-128
-1346
-389

skipif mysql # not compatible
query I rowsort label-5909
SELECT - col1 * - CAST ( - 29 AS INTEGER ) - + - 17 FROM tab1 AS cor0 WHERE NOT - 20 < - 53
----
-128
-1346
-389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5910
SELECT 18 DIV COUNT( DISTINCT + 68 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5910
SELECT 18 / COUNT ( DISTINCT + 68 ) FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5911
SELECT CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5912
SELECT ALL + col2 * col2 + 50 AS col2, + CAST( + 14 AS SIGNED ) + col2 - col1 * - - 97 FROM tab2 AS cor0
----
1650
-7415
3414
-6427
579
-4910

skipif mysql # not compatible
query II rowsort label-5912
SELECT ALL + col2 * col2 + 50 AS col2, + CAST ( + 14 AS INTEGER ) + col2 - col1 * - - 97 FROM tab2 AS cor0
----
1650
-7415
3414
-6427
579
-4910

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5914
SELECT COUNT( * ) * - 2 DIV - + 43 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT COUNT ( * ) * - 2 / - + 43 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL + - col1 * + col1 + col0 - 96 * - 15 * + - col1 FROM tab0 AS cor0
----
-123186
-1344
-30594

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

query I rowsort
SELECT col0 * + ( + col2 ) - - col2 FROM tab1
----
4992
5074
6256

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 81 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab1 WHERE - col1 / - 45 <= NULL
----

query I rowsort
SELECT 92 - - 53 + - - 84 + col2 - + 91 FROM tab1 cor0
----
197
206
234

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 > NULL
----

query I rowsort
SELECT col0 + - 47 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-2305
-2999
-3491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT DISTINCT - SUM( col0 ) * + - CAST( NULL AS SIGNED ) + COUNT( * ) * + - 35 + 52 + + + COUNT( * ) * + 71 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5925
SELECT DISTINCT - SUM ( col0 ) * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 35 + 52 + + + COUNT ( * ) * + 71 col0 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT + 45 + - col0 * - col0 FROM tab1 AS cor0
----
2646
7270
8326

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT + col1 * col1 + - 23 DIV - + col1 FROM tab0 AS cor0
----
24
442
6561

skipif mysql # not compatible
query I rowsort label-5929
SELECT + col1 * col1 + - 23 / - + col1 FROM tab0 AS cor0
----
24
442
6561

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

skipif mysql # not compatible
query I rowsort label-5930
SELECT + SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
195

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

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

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

query II rowsort
SELECT ALL + col0 * 59 AS col1, + 82 AS col0 FROM tab1
----
3009
82
5015
82
5369
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - col1
----

query I rowsort
SELECT + + 59 * + 7 AS col2 FROM tab1 AS cor0
----
413
413
413

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

query I rowsort
SELECT DISTINCT + 0 * + + 96 * col1 + ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT MIN( 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT MIN ( 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL 12 * - + MAX( - 90 ) FROM tab2
----
1080

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL 12 * - + MAX ( - 90 ) FROM tab2
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT ALL - 9 * + COUNT( * ) * + COUNT( * ) + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - 9 * + COUNT ( * ) * + COUNT ( * ) + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

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

query I rowsort
SELECT + 58 + + - col1 AS col1 FROM tab1 AS cor0
----
11
44
53

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5947
SELECT 23 + COUNT ( * ) col0, - COUNT ( * ) FROM tab0 AS cor0
----
26
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT COUNT( * ) * + COUNT( * ) - + 1 + SUM( + col1 ) AS col1 FROM tab2 cor0
----
203

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) * + COUNT ( * ) - + 1 + SUM ( + col1 ) AS col1 FROM tab2 cor0
----
203

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

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

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

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

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

query I rowsort
SELECT 76 * 31 AS col1 FROM tab1
----
2356
2356
2356

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL + 17 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 17 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 FROM tab1 WHERE + col0 + - col1 - 66 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - 69 ) AS col1 FROM tab0
----
-69
-69
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT SUM( ALL + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5959
SELECT SUM ( ALL + col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT - - 31 - - ( - + COUNT( * ) ) AS col1, + 77 AS col0 FROM tab2 cor0
----
28
77

skipif mysql # not compatible
query II rowsort label-5960
SELECT - - 31 - - ( - + COUNT ( * ) ) AS col1, + 77 AS col0 FROM tab2 cor0
----
28
77

query I rowsort
SELECT col0 * + 32 + - col2 FROM tab0
----
2774
3005
433

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

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

query I rowsort
SELECT ( + + col2 ) + - ( 39 ) + col2 FROM tab1
----
153
79
97

query I rowsort
SELECT DISTINCT + col2 * - + 79 - - - 64 FROM tab1
----
-4725
-5436
-7648

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

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

query I rowsort
SELECT + col0 * + + col1 * + col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL - + 35 FROM tab2 AS cor0 WHERE NOT col0 / - col1 BETWEEN NULL AND 82 + - + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 34 * + + col0 BETWEEN - + col1 AND ( col1 * col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT - CAST( + - SUM( - 30 ) AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT - CAST ( + - SUM ( - 30 ) AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

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

query I rowsort
SELECT 48 * + + col0 * - 94 FROM tab0 AS cor0
----
-392544
-437664
-67680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * + 33 * - col0 col2 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) * - col0 + - col0 + - col0 * + + col1 + + col1 IS NULL
----
-45936
-51216
-7920

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + 31 >= - 70
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL - COUNT( * ) * 54 * + 53 * + 95 FROM tab0
----
-815670

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - COUNT ( * ) * 54 * + 53 * + 95 FROM tab0
----
-815670

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL MAX( - 54 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL MAX ( - 54 ) FROM tab1
----
-54

query III rowsort
SELECT * FROM tab0 WHERE NOT - 78 BETWEEN - col0 AND NULL
----
15
81
47

query I rowsort
SELECT ALL 95 * - col1 AS col0 FROM tab1
----
-1330
-4465
-475

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

query I rowsort
SELECT DISTINCT - 63 * + col0 AS col2 FROM tab1
----
-3213
-5355
-5733

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

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

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

query I rowsort
SELECT ALL - + 88 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT + COUNT( * ) DIV + 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT + COUNT ( * ) / + 79 FROM tab2
----
0

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

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

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

query I rowsort
SELECT - + 45 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-45
-45
-45

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT col2 + + 99 DIV + col1 AS col0 FROM tab0
----
14
198
48

skipif mysql # not compatible
query I rowsort label-5990
SELECT col2 + + 99 / + col1 AS col0 FROM tab0
----
14
198
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + SUM( ALL + + 36 ) + + - 26 col2 FROM tab2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5992
SELECT + SUM ( ALL + + 36 ) + + - 26 col2 FROM tab2
----
82

query I rowsort
SELECT + col1 + 95 * - col0 AS col0 FROM tab0
----
-1344
-8244
-9214

query I rowsort
SELECT DISTINCT + 57 * - col2 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - 37 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - 37 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + 5 AS col2 FROM tab1
----
295
340
480

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL + 63 DIV + col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + 63 / + col2 AS col1 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / - col0 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-5999
SELECT + COUNT ( * ) FROM tab2 WHERE + - col2 * 75 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT DISTINCT - 30 DIV + COUNT( ALL + col1 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - 30 / + COUNT ( ALL + col1 ) AS col2 FROM tab0
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6002
SELECT + + SUM( DISTINCT - + 2 ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-6002
SELECT + + SUM ( DISTINCT - + 2 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL MIN( ALL - + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL MIN ( ALL - + col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT 40 + - 26 + MAX( 73 ) * + + 13 AS col2 FROM tab0 cor0
----
963

skipif mysql # not compatible
query I rowsort label-6004
SELECT 40 + - 26 + MAX ( 73 ) * + + 13 AS col2 FROM tab0 cor0
----
963

query I rowsort
SELECT + + ( + col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT ALL + + col1 AS col1, + 69 * col0 AS col2 FROM tab0 AS cor0
----
1
6693
21
6003
81
1035

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

query I rowsort
SELECT ALL col2 + + 99 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN + col2 AND - + col2 * col1 * col2 / - 29 - - col1
----
109

query I rowsort
SELECT DISTINCT col1 * + + col0 + + + 97 * - 25 * - ( - col1 ) / + ( + col1 ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col0 + 18 * col1 FROM tab0 WHERE NOT + col0 IS NULL
----
115
1473
465

query II rowsort
SELECT - col0 * col0 AS col0, 8 + col0 AS col2 FROM tab2 AS cor0
----
-2116
54
-4096
72
-5625
83

query I rowsort
SELECT ALL col0 * - 50 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT - CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col0 * col1 * + 48 * 98 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6013
SELECT - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col0 * col1 * + 48 * 98 IS NULL
----
-10
-47
-99

query I rowsort
SELECT col0 + + col0 * ( - col0 ) * ( + col1 ) + - - col1 FROM tab2
----
-107819
-315251
-376733

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - 82 * SUM( DISTINCT + + ( + col2 ) ) FROM tab2 AS cor0
----
-9922

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 82 * SUM ( DISTINCT + + ( + col2 ) ) FROM tab2 AS cor0
----
-9922

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT DISTINCT ( - col1 ) DIV + + 50 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT ( - col1 ) / + + 50 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + col1 + col0 * - 61 FROM tab2 cor0
----
-2755
-3827
-4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT ALL 78 * + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL 78 * + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
78

query I rowsort
SELECT DISTINCT - col2 - - + col2 + - ( - + 16 ) * + 85 + + col1 * + + col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

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

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

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

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

query I rowsort
SELECT ALL + 46 * + col0 FROM tab0
----
4002
4462
690

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 58 AND ( - - col1 * 67 )
----

query I rowsort
SELECT + 10 * + col2 * + 50 FROM tab1
----
29500
34000
48000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT 47 - SUM( col1 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-6029
SELECT 47 - SUM ( col1 ) FROM tab0
----
-56

query II rowsort
SELECT DISTINCT - + col2 AS col0, 23 AS col0 FROM tab1 AS cor0
----
-59
23
-68
23
-96
23

query I rowsort
SELECT + + col0 * + col2 + + 61 - - col1 + 35 FROM tab2 AS cor0
----
1205
2733
4513

query I rowsort
SELECT + col2 + + col0 * + - 14 + - 95 + col0 AS col2 FROM tab2 cor0
----
-1012
-670
-887

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

query I rowsort
SELECT + 17 + 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6035
SELECT - 84 FROM tab0 AS cor0 WHERE NOT NULL = - 2 + + 11 * - col1 * CAST( + col2 AS DECIMAL ) - col1
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT - 84 FROM tab0 AS cor0 WHERE NOT NULL = - 2 + + 11 * - col1 * CAST ( + col2 AS REAL ) - col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL ( - - COUNT ( * ) ) / 22 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6039
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN CAST( - + 20 AS SIGNED ) AND + + col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6039
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN CAST ( - + 20 AS INTEGER ) AND + + col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6040
SELECT ALL + CAST( + SUM( - 93 ) AS SIGNED ) AS col1, - 19 FROM tab1
----
-279
-19

skipif mysql # not compatible
query II rowsort label-6040
SELECT ALL + CAST ( + SUM ( - 93 ) AS INTEGER ) AS col1, - 19 FROM tab1
----
-279
-19

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

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

query II rowsort
SELECT - 12 AS col2, col2 * + 54 * - col1 * col0 FROM tab1
----
-12
-1354050
-12
-15705144
-12
-3701376

query II rowsort
SELECT - col0, - col2 + + col2 * col2 * 9 AS col1 FROM tab1
----
-51
82848
-85
31270
-91
41548

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT ALL COUNT( * ) col1, SUM( - col2 ) col2 FROM tab1
----
3
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6044
SELECT ALL COUNT ( * ) col1, SUM ( - col2 ) col2 FROM tab1
----
3
-223

query II rowsort
SELECT - col2 AS col2, col1 + 53 AS col0 FROM tab0
----
-10
74
-47
134
-99
54

query I rowsort
SELECT DISTINCT 59 * + col2 FROM tab2 AS cor0
----
1357
2360
3422

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

query I rowsort
SELECT DISTINCT + 5 * + - col2 + + + 39 FROM tab1 cor0
----
-256
-301
-441

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - COUNT( * ) + 20 AS col0 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - COUNT ( * ) + 20 AS col0 FROM tab0 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + ( 3 ) * 83 / - - 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6054
SELECT ALL - + CAST( NULL AS SIGNED ) + - 40 col2, - COUNT( * ) * + 43 col1 FROM tab2 AS cor0
----
NULL
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6054
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 40 col2, - COUNT ( * ) * + 43 col1 FROM tab2 AS cor0
----
NULL
-129

query I rowsort
SELECT + - col1 + + 95 AS col0 FROM tab2 AS cor0
----
18
28
44

query I rowsort
SELECT DISTINCT col2 + + col0 + + - 8 * - 82 FROM tab2 cor0
----
725
760
789

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT - col0 DIV - ( + + col0 ) + - 14 + + 51 + + col1 * - col0 FROM tab2 AS cor0
----
-2308
-4890
-4987

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - col0 / - ( + + col0 ) + - 14 + + 51 + + col1 * - col0 FROM tab2 AS cor0
----
-2308
-4890
-4987

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT ALL - col2 + 6 DIV + col1 FROM tab1 AS cor0
----
-58
-68
-96

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - col2 + 6 / + col1 FROM tab1 AS cor0
----
-58
-68
-96

query I rowsort
SELECT ALL - col1 + - - col2 * - 15 FROM tab0 AS cor0
----
-1486
-171
-786

query I rowsort
SELECT + ( - + 84 ) + - col1 AS col1 FROM tab2 AS cor0
----
-135
-151
-161

query I rowsort
SELECT col2 + + 54 AS col1 FROM tab0
----
101
153
64

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

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT COUNT ( * ) - + + 18 FROM tab1
----
-15

query II rowsort
SELECT + col2, + ( - - col0 ) + 18 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
64
40
82
58
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT DISTINCT - col0 * + - col2 + + col0 DIV - 95 FROM tab0 AS cor0
----
705
870
9602

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT - col0 * + - col2 + + col0 / - 95 FROM tab0 AS cor0
----
705
870
9602

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) * 96 col2 FROM tab1 AS cor0
----
5664
6528
9216

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

query I rowsort
SELECT + 71 * - - 55 AS col0 FROM tab1 cor0
----
3905
3905
3905

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> - 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - 19 col0 FROM tab1
----
-1121
-1292
-1824

query I rowsort
SELECT ALL + col2 * + col2 + - - col0 FROM tab2 AS cor0
----
1664
3439
575

query I rowsort
SELECT DISTINCT - 33 + - 53 + col1 AS col1 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT - 65 + - col0 AS col2 FROM tab2
----
-111
-129
-140

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

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

query II rowsort
SELECT DISTINCT + - ( col0 ) + + 63, col1 AS col1 FROM tab2 AS cor0
----
-1
77
-12
67
17
51

query I rowsort
SELECT ALL + + col0 * + col2 - + + 56 AS col2 FROM tab1 AS cor0
----
4840
4959
6132

query I rowsort
SELECT - + 1 FROM tab1 WHERE + col0 = - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + 3 - - 67 FROM tab0
----
70
70
70

query I rowsort
SELECT ALL + 59 * 7 - - + ( - 77 ) AS col0 FROM tab2
----
336
336
336

query I rowsort
SELECT - col0 - 28 * - + col2 * + - ( + col1 ) * - + 19 FROM tab0
----
111633
2025309
52571

query I rowsort
SELECT - col2 - - col0 + 18 FROM tab0
----
-14
16
95

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

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

query I rowsort
SELECT 37 + + col0 AS col1 FROM tab2
----
101
112
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT + col1 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT + col1 ) FROM tab0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 97 ) + + - col2 col0 FROM tab1 AS cor0
----
-156
-165
-193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT - - 10 DIV SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - - 10 / SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6098
SELECT - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT ALL - col1 * + CAST( - - 34 AS SIGNED ) FROM tab2
----
-1734
-2278
-2618

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - col1 * + CAST ( - - 34 AS INTEGER ) FROM tab2
----
-1734
-2278
-2618

query II rowsort
SELECT col1 * + ( - col0 ) AS col0, ( col2 ) + + col0 + - 61 AS col2 FROM tab2
----
-2346
8
-4928
43
-5025
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL 2 * - - SUM( DISTINCT + ( - col2 ) ) FROM tab2
----
-242

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL 2 * - - SUM ( DISTINCT + ( - col2 ) ) FROM tab2
----
-242

query I rowsort
SELECT - col1 * + ( - 99 ) * + - 58 + + col2 AS col2 FROM tab2 AS cor0
----
-292819
-384656
-442094

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - - ( - - COUNT( * ) ) * + 88 * - COUNT( * ) * + - 91 + + 96 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
72168

skipif mysql # not compatible
query I rowsort label-6103
SELECT - - ( - - COUNT ( * ) ) * + 88 * - COUNT ( * ) * + - 91 + + 96 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
72168

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT DISTINCT 68 DIV 92 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT 68 / 92 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL COUNT( * ) + - + 43 FROM tab0 AS cor0 WHERE NOT col2 = + - col0
----
-40

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL COUNT ( * ) + - + 43 FROM tab0 AS cor0 WHERE NOT col2 = + - col0
----
-40

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

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

query II rowsort
SELECT col0 AS col1, col0 * col0 FROM tab1
----
51
2601
85
7225
91
8281

query I rowsort
SELECT - col1 * + - col2 + - - col2 AS col0 FROM tab2
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + 78 col0 FROM tab0
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT COUNT( * ) + - SUM( - + col1 ) FROM tab0 WHERE NOT + - 8 - - 3 * - 25 + - 7 + - col2 - 4 BETWEEN - - 58 AND NULL
----
106

skipif mysql # not compatible
query I rowsort label-6112
SELECT COUNT ( * ) + - SUM ( - + col1 ) FROM tab0 WHERE NOT + - 8 - - 3 * - 25 + - 7 + - col2 - 4 BETWEEN - - 58 AND NULL
----
106

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6113
SELECT ALL 15 * + - CAST( NULL AS DECIMAL ) * + col0 / + - 85 + - ( - + CAST( col0 AS SIGNED ) ) + - 22 / col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6113
SELECT ALL 15 * + - CAST ( NULL AS REAL ) * + col0 / + - 85 + - ( - + CAST ( col0 AS INTEGER ) ) + - 22 / col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 71 col1 FROM tab2 AS cor0
----
1633
2840
4118

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

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

query I rowsort
SELECT DISTINCT - 8 * + + col0 * + col2 AS col0 FROM tab0
----
-5640
-6960
-76824

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + + 9
----

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT + CAST( NULL AS SIGNED ) / - + col1 + 37 FROM tab0 AS cor0 WHERE ( NOT - col0 * - + col0 + + 94 = 92 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT + CAST ( NULL AS INTEGER ) / - + col1 + 37 FROM tab0 AS cor0 WHERE ( NOT - col0 * - + col0 + + 94 = 92 )
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT DISTINCT + COUNT( * ) DIV + - 4 * COUNT( * ) * ( + 36 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + COUNT ( * ) / + - 4 * COUNT ( * ) * ( + 36 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query II rowsort
SELECT ALL + 5 + col0, + col1 AS col2 FROM tab0 AS cor0
----
102
1
20
81
92
21

query I rowsort
SELECT - col0 * + col1 + - col0 + + 3 AS col2 FROM tab1 AS cor0
----
-4365
-507
-762

query I rowsort
SELECT ALL + 86 AS col1 FROM tab2
----
86
86
86

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

query I rowsort
SELECT + + 15 * col2 FROM tab0 AS cor0
----
1485
150
705

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6131
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 * + 12 * + col2 > + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6131
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 * + 12 * + col2 > + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * 14 col1 FROM tab1 AS cor0
----
1260
1260
1260

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT DISTINCT col0 * - col2, col1 + + - 79 DIV col1 + col2 AS col1 FROM tab1
----
-4896
105
-5015
49
-6188
114

skipif mysql # not compatible
query II rowsort label-6134
SELECT DISTINCT col0 * - col2, col1 + + - 79 / col1 + col2 AS col1 FROM tab1
----
-4896
105
-5015
49
-6188
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT 13 * - - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-6135
SELECT 13 * - - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-117

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

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT + + col1 + + + 12 DIV - col2 AS col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6138
SELECT + + col1 + + + 12 / - col2 AS col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT + 32 * + - 30 AS col2 FROM tab0 AS cor0
----
-960
-960
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col0 + + col1 * + - col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6143
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6143
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL COUNT( * ) * + + 33 col1 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6144
SELECT ALL COUNT ( * ) * + + 33 col1 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - COUNT( DISTINCT + 95 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT - COUNT ( DISTINCT + 95 ) AS col2 FROM tab2
----
-1

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + SUM( + - col1 ) + 59 AS col2 FROM tab2
----
-136

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + SUM ( + - col1 ) + 59 AS col2 FROM tab2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT COUNT( * ) + - ( 76 ) col2 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6152
SELECT COUNT ( * ) + - ( 76 ) col2 FROM tab2
----
-73

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

query I rowsort
SELECT - col1 * - 45 * + 21 AS col2 FROM tab2
----
48195
63315
72765

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT + col2 DIV - - col2 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT + col2 / - - col2 AS col0 FROM tab1 cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT + - 29 - - col1 FROM tab2 AS cor0
----
22
38
48

query II rowsort
SELECT ALL - col1 - - + col0 AS col1, col1 + + col1 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-66
324
66
84
96
4

query I rowsort
SELECT DISTINCT + col1 - - 44 FROM tab2
----
111
121
95

query I rowsort
SELECT ALL - 24 * - col1 FROM tab0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT + MAX( + 85 ) AS col0, COUNT( * ) FROM tab0
----
85
3

skipif mysql # not compatible
query II rowsort label-6163
SELECT + MAX ( + 85 ) AS col0, COUNT ( * ) FROM tab0
----
85
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + MIN( ALL - + 91 ) AS col2 FROM tab2 AS cor0 WHERE col1 = - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + MIN ( ALL - + 91 ) AS col2 FROM tab2 AS cor0 WHERE col1 = - + col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 - - col0 <= ( col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT - col1 + 46 + col0 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6168
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6168
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 NOT IN ( + - col1 + + col0, - 46, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - + 18 AS col2 FROM tab1 WHERE NULL <= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT DISTINCT + 26 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-6173
SELECT DISTINCT + 26 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
26
3

query II rowsort
SELECT - - col1, col0 * - col2 AS col0 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

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

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

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT + MIN ( - + 54 ) FROM tab0 AS cor0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + MIN( ALL + 18 ) * 27 AS col2 FROM tab2
----
486

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + MIN ( ALL + 18 ) * 27 AS col2 FROM tab2
----
486

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + COUNT( * ) + - - COUNT( * ) * 14 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6181
SELECT + COUNT ( * ) + - - COUNT ( * ) * 14 FROM tab0
----
45

query I rowsort
SELECT - 62 * - col2 AS col1 FROM tab2 WHERE + 7 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT ALL - ( COUNT( * ) ) DIV - 54 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - ( COUNT ( * ) ) / - 54 AS col0 FROM tab0
----
0

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

query I rowsort
SELECT DISTINCT - col1 + + ( col0 ) AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - 11 + - + col0 * col1 - col1 FROM tab1 AS cor0
----
-4335
-441
-739

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 96 NOT BETWEEN NULL AND - 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT + 92 DIV + 59 + - + 3 + col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
194
60
95

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + 92 / + 59 + - + 3 + col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
194
60
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT 48 * + + COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-6189
SELECT 48 * + + COUNT ( * ) FROM tab2
----
144

query I rowsort
SELECT - 1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6191
SELECT ALL - + CAST( NULL AS SIGNED ) col1, - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to c0aca7b9b57ef5ce975814dfde26092e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6191
SELECT ALL - + CAST ( NULL AS INTEGER ) col1, - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to c0aca7b9b57ef5ce975814dfde26092e

query I rowsort
SELECT - 28 - col1 AS col2 FROM tab2
----
-105
-79
-95

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6195
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT col1 + + + col2 - - + col0 * col2 AS col2 FROM tab2 AS cor0
----
1132
2677
4475

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

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

query I rowsort
SELECT DISTINCT - ( - + col2 ) * - 55 AS col0 FROM tab2 AS cor0
----
-1265
-2200
-3190

query I rowsort
SELECT - + 47 * + col1 FROM tab1 AS cor0
----
-2209
-235
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT DISTINCT col2 DIV - 21 FROM tab1 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT col2 / - 21 FROM tab1 AS cor0
----
-2
-3
-4

query II rowsort
SELECT - 15 * - + 58 AS col2, + 60 AS col1 FROM tab2
----
870
60
870
60
870
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 col0, + ( + 88 ) * + - ( - + col0 ) FROM tab1
----
74
4488
74
7480
74
8008

query II rowsort
SELECT ALL + 86, + 18 AS col1 FROM tab1
----
86
18
86
18
86
18

query II rowsort
SELECT ALL - col0 AS col2, 39 * + col1 FROM tab2
----
-46
1989
-64
3003
-75
2613

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT - SUM( ALL - 59 ) AS col0 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - SUM ( ALL - 59 ) AS col0 FROM tab2
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - 35 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col2, col1 col0 FROM tab0
----
705
81
870
21
9603
1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6211
SELECT 65 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-6211
SELECT 65 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-1
-13
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 + 68 * - + col2 * + - col0 * col1 FROM tab1
----
1705185
19776939
4661043

query II rowsort
SELECT + col0 + 4, col0 AS col0 FROM tab1 AS cor0
----
55
51
89
85
95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - + MAX( col1 ) FROM tab0 AS cor0 WHERE NOT 79 IS NULL AND NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - + MAX ( col1 ) FROM tab0 AS cor0 WHERE NOT 79 IS NULL AND NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL + 97 + - ( + COUNT( * ) ) + + 18 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + 97 + - ( + COUNT ( * ) ) + + 18 FROM tab0 AS cor0
----
112

query I rowsort
SELECT + - col0 + col2 + - 35 + - col2 + 92 + - - col0 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL + 73 + - col2 * - col1 FROM tab1 AS cor0
----
1417
3269
368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6220
SELECT + CAST( - col2 AS SIGNED ) AS col1, col0 * + col0 AS col1 FROM tab2 AS cor0
----
-23
2116
-40
4096
-58
5625

skipif mysql # not compatible
query II rowsort label-6220
SELECT + CAST ( - col2 AS INTEGER ) AS col1, col0 * + col0 AS col1 FROM tab2 AS cor0
----
-23
2116
-40
4096
-58
5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL + SUM( + col0 ) col2 FROM tab1
----
227

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT SUM( DISTINCT col0 ) DIV - COUNT( * ) col2 FROM tab0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6223
SELECT SUM ( DISTINCT col0 ) / - COUNT ( * ) col2 FROM tab0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6224
SELECT - 94 - + + COUNT( + col0 ) + - 68 + - CAST( NULL AS SIGNED ) - + + 73, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6224
SELECT - 94 - + + COUNT ( + col0 ) + - 68 + - CAST ( NULL AS INTEGER ) - + + 73, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

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

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

query I rowsort
SELECT ALL 27 - + col1 FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT - 93 * + col2 FROM tab0 AS cor0 WHERE + 80 IS NOT NULL
----
-4371
-9207
-930

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

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

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - ( COUNT ( * ) ) / - COUNT ( * ) AS col0 FROM tab1
----
1

query I rowsort
SELECT - 22 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-22
-22
-22

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6232
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT COUNT( * ) - - 8 AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6234
SELECT COUNT ( * ) - - 8 AS col0 FROM tab2
----
11

query I rowsort
SELECT + col1 - - 99 FROM tab0
----
100
120
180

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT 68 IN ( + 60 / col1 )
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + SUM( - 81 ) AS col0 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-6238
SELECT + SUM ( - 81 ) AS col0 FROM tab2
----
-243

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

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + 55 + COUNT ( * ) FROM tab1
----
58

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

query I rowsort
SELECT col0 + ( + 92 ) FROM tab2
----
138
156
167

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL - 45 * - 93 AS col0 FROM tab2 WHERE NOT ( - ( + col2 ) + 77 ) NOT BETWEEN NULL AND col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - 45 * - 93 AS col0 FROM tab2 WHERE NOT ( - ( + col2 ) + 77 ) NOT BETWEEN NULL AND col0 * - CAST ( NULL AS INTEGER )
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 17 / + col2 AS col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 64 * - MAX ( ALL - ( + col0 ) / col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 72 AS col0 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + 65 * + col0 AS col2 FROM tab2 AS cor0
----
2990
4160
4875

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

query I rowsort
SELECT 55 - 24 / - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 39 - + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + 34 AS col0 FROM tab1 AS cor0
----
-13
20
29

query I rowsort
SELECT 90 + + 35 AS col1 FROM tab2 AS cor0
----
125
125
125

query I rowsort
SELECT 36 + - col2 * col1 FROM tab0 AS cor0
----
-174
-3771
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT - 41 + - COUNT( * ) * 36 AS col1 FROM tab2 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-6260
SELECT - 41 + - COUNT ( * ) * 36 AS col1 FROM tab2 AS cor0
----
-149

query I rowsort
SELECT ALL 87 * - 2 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) * col2 < ( NULL )
----

query I rowsort
SELECT + 71 * col1 + + 76 AS col1 FROM tab0 AS cor0
----
147
1567
5827

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT 62 DIV + 83 + + col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6263
SELECT 62 / + 83 + + col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col0 / - ( + 64 ) FROM tab1 AS cor0 WHERE 72 IS NULL
----

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

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

query I rowsort
SELECT col1 * - - col0 + + col1 AS col2 FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT col0 / - 22 + - 93 AS col1 FROM tab1 WHERE NULL < col0
----

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

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

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

query I rowsort
SELECT col2 + - col0 * col1 AS col1 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT - 4 + + - col2 * col0 FROM tab0
----
-709
-874
-9607

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

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

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

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

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

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <= ( col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6277
SELECT * FROM tab2 WHERE ( 46 ) BETWEEN ( CAST( NULL AS SIGNED ) ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-6277
SELECT * FROM tab2 WHERE ( 46 ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col1 * - col1 AND ( 31 ) * col0
----

query I rowsort
SELECT + - col0 * + 16 + col0 * + col0 FROM tab0 AS cor0
----
-15
6177
7857

query I rowsort
SELECT DISTINCT + 46 * col2 * col2 FROM tab2 AS cor0
----
154744
24334
73600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 26 IS NULL
----

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab0 AS cor0 WHERE + 34 IS NOT NULL
----
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6284
SELECT ALL + + CAST( + 73 AS SIGNED ) DIV 10 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + + CAST ( + 73 AS INTEGER ) / 10 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 * - col0 > 17 * 75 AND ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6286
SELECT - - ( ( - ( MIN ( ALL + 6 ) ) ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-6

query II rowsort
SELECT + 75 AS col1, - 95 AS col2 FROM tab1 cor0
----
75
-95
75
-95
75
-95

query I rowsort
SELECT DISTINCT + ( + 89 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - ( - col2 ) + col0 )
----

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

query I rowsort
SELECT ( - + 69 ) FROM tab1 cor0
----
-69
-69
-69

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

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

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

query II rowsort
SELECT + - col0, col1 * + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-15
-308367
-87
-4410
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT + 41 * + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6295
SELECT + 41 * + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 78 ) * - 23 col2 FROM tab0
----
1794
1794
1794

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT ALL CAST( - col0 AS SIGNED ) * col1 * col2 + col2 AS col2 FROM tab1
----
-25016
-290768
-68448

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL CAST ( - col0 AS INTEGER ) * col1 * col2 + col2 AS col2 FROM tab1
----
-25016
-290768
-68448

query II rowsort
SELECT DISTINCT - col0 * + - 46, col0 FROM tab1
----
2346
51
3910
85
4186
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 62 ) col2 FROM tab1 WHERE NOT ( - 38 ) >= + col2 / col1
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6302
SELECT * FROM tab2 WHERE NOT + 54 + - 93 + - col0 / 34 < - CAST( NULL AS SIGNED ) + col1 / + col2 AND NOT NULL < NULL
----

skipif mysql # not compatible
query III rowsort label-6302
SELECT * FROM tab2 WHERE NOT + 54 + - 93 + - col0 / 34 < - CAST ( NULL AS INTEGER ) + col1 / + col2 AND NOT NULL < NULL
----

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

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

query II rowsort
SELECT - col0, 62 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
930
-87
5394
-97
6014

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT 83 * 26 DIV col2 * + col2 FROM tab1 AS cor0
----
2108
2112
2124

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT 83 * 26 / col2 * + col2 FROM tab1 AS cor0
----
2108
2112
2124

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6307
SELECT CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0 WHERE + col0 BETWEEN col1 * - 41 + col0 * - 56 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6307
SELECT CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0 WHERE + col0 BETWEEN col1 * - 41 + col0 * - 56 AND NULL
----

query I rowsort
SELECT ALL 27 * - 87 FROM tab1
----
-2349
-2349
-2349

query I rowsort
SELECT DISTINCT - 57 + + 95 FROM tab0 AS cor0
----
38

query I rowsort
SELECT - col1 + - + 23 AS col1 FROM tab0 cor0
----
-104
-24
-44

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 51 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 51 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 19 - - 89 AS col1 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6315
SELECT + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

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

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

query I rowsort
SELECT DISTINCT col0 + col1 * 0 AS col0 FROM tab2
----
46
64
75

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT + col0 * col1 FROM tab0 WHERE - col2 / - + col1 - - CAST( + col2 AS SIGNED ) * col0 + - col2 IS NOT NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-6320
SELECT + col0 * col1 FROM tab0 WHERE - col2 / - + col1 - - CAST ( + col2 AS INTEGER ) * col0 + - col2 IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT + col1 - + 87 FROM tab2
----
-10
-20
-36

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 93 + - + 92 ) BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 59 + - - ( + col1 ) + - 83 NOT BETWEEN + col2 * - 45 AND - col2 * - col1 + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT ALL CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - col2 * - col0 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - col2 * - col0 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab1 cor0
----
-53

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col2
----

query II rowsort
SELECT DISTINCT - col1 AS col1, - 38 + col1 AS col2 FROM tab2
----
-51
13
-67
29
-77
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT 4 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT 4 / - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col2, - col0 + - col0 + 54 * + col1 FROM tab1
----
59
100
68
2356
96
654

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

query I rowsort
SELECT - col1 + + + 24 FROM tab2 AS cor0
----
-27
-43
-53

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

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

query I rowsort
SELECT ALL + 72 * - 39 - + col2 AS col1 FROM tab0 AS cor0
----
-2818
-2855
-2907

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - + SUM( ALL 10 ) FROM tab2 WHERE - + 78 * - col1 NOT BETWEEN - col2 + - - col2 AND - - 99
----
-30

skipif mysql # not compatible
query I rowsort label-6342
SELECT - + SUM ( ALL 10 ) FROM tab2 WHERE - + 78 * - col1 NOT BETWEEN - col2 + - - col2 AND - - 99
----
-30

query I rowsort
SELECT DISTINCT - 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 41 IS NOT NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + CAST ( + 1 AS INTEGER ) FROM tab2
----
1
1
1

query I rowsort
SELECT - 26 FROM tab2 AS cor0 WHERE ( col0 * + - 71 ) IS NOT NULL
----
-26
-26
-26

query II rowsort
SELECT ALL - col0 + - col2 AS col2, 99 + col2 FROM tab0 AS cor0
----
-196
198
-62
146
-97
109

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

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

query I rowsort
SELECT + 15 + - ( + - 47 ) AS col2 FROM tab2 AS cor0 WHERE col1 > + col1
----

query I rowsort
SELECT col0 + - + col2 * - col2 AS col1 FROM tab2 cor0
----
1664
3439
575

query I rowsort
SELECT + 43 + - col2 FROM tab0
----
-4
-56
33

query I rowsort
SELECT + col0 * - col1 + col2 FROM tab1
----
-366
-4209
-618

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6356
SELECT ALL * FROM tab2 WHERE NOT - + 90 BETWEEN ( 72 / - 97 + CAST( NULL AS SIGNED ) - - - col0 + col1 + 85 / + col0 * + 54 * col2 ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-6356
SELECT ALL * FROM tab2 WHERE NOT - + 90 BETWEEN ( 72 / - 97 + CAST ( NULL AS INTEGER ) - - - col0 + col1 + 85 / + col0 * + 54 * col2 ) AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6357
SELECT ALL + col0 + 20 * - - col0 - - 69 FROM tab0 WHERE NOT NULL <> + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + col0 + 20 * - - col0 - - 69 FROM tab0 WHERE NOT NULL <> + - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6358
SELECT DISTINCT - 83 - - - col0 + - CAST( + 37 AS SIGNED ) + 13 DIV 15 AS col1 FROM tab1
----
-171
-205
-211

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT - 83 - - - col0 + - CAST ( + 37 AS INTEGER ) + 13 / 15 AS col1 FROM tab1
----
-171
-205
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL - + 3 + + - MAX( + col2 ) * + + COUNT( * ) - - + 7 AS col1 FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - + 3 + + - MAX ( + col2 ) * + + COUNT ( * ) - - + 7 AS col1 FROM tab2 AS cor0
----
-170

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * col0 col1 FROM tab1 cor0
----
357
595
637

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6363
SELECT - + CAST( NULL AS DECIMAL ) * - 0 / + 20 + + COUNT( ALL col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT - + CAST ( NULL AS REAL ) * - 0 / + 20 + + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 59 / - col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT + - col1 * - + col2 + + - col2 FROM tab0 AS cor0
----
0
200
3760

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

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 * - - col1 * + 37 + 32 + col1 AS col2 FROM tab2 AS cor0
----
51
96320
67
166192
77
219482

query I rowsort
SELECT - + 93 * - - col2 + - - col1 FROM tab0 AS cor0
----
-4290
-909
-9206

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

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

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

query II rowsort
SELECT - - col2 AS col1, + 5 AS col2 FROM tab0 AS cor0
----
10
5
47
5
99
5

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

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

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

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

query II rowsort
SELECT + col1 * - col2 * - col0 AS col0, + col2 AS col2 FROM tab1
----
25075
59
290836
68
68544
96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6379
SELECT DISTINCT col0 + + col1 * col2 + - ( + col2 ) DIV - 97 * col2, 18 AS col0 FROM tab1 AS cor0
----
1395
18
3287
18
380
18

skipif mysql # not compatible
query II rowsort label-6379
SELECT DISTINCT col0 + + col1 * col2 + - ( + col2 ) / - 97 * col2, 18 AS col0 FROM tab1 AS cor0
----
1395
18
3287
18
380
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( col1 ) * + 44 + - col2 + + - col1 AS col2 FROM tab0 cor0
----
-56
3436
893

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 FROM tab2 AS cor0 WHERE - col0 * + col2 NOT IN ( + 66 )
----
1224
3157
3953

query I rowsort
SELECT ALL - 53 - + + 73 AS col1 FROM tab2
----
-126
-126
-126

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( - col1 ) AND ( - 30 )
----

query II rowsort
SELECT + - 57, col1 + 76 FROM tab0 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT DISTINCT - col0 + + + 38 AS col2 FROM tab1 AS cor0
----
-13
-47
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0 / - + CAST( NULL AS SIGNED ) + col0 + - col1 + - col1 + - - col2
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0 / - + CAST ( NULL AS INTEGER ) + col0 + - col1 + - col1 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT ALL 68 + + - CAST( 99 AS SIGNED ) FROM tab0 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL 68 + + - CAST ( 99 AS INTEGER ) FROM tab0 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + - + 43 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 43 - + 48 FROM tab1
----
-91
-91
-91

query I rowsort
SELECT + col0 - - col1 + + 51 * + 44 FROM tab1
----
2309
2334
2382

query I rowsort
SELECT col2 - + 47 AS col1 FROM tab0
----
-37
0
52

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

query I rowsort
SELECT ALL 6 - + ( + - col0 ) + - - col1 * - col2 + + col0 AS col1 FROM tab1
----
-119
-1236
-3008

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= - + 76 / 65 - + 74 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL > - ( - 50 ) / col1 - 50
----

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

query II rowsort
SELECT + ( + col2 ) AS col1, - col2 FROM tab0
----
10
-10
47
-47
99
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 * + col0 col0 FROM tab0 AS cor0
----
2784
3104
480

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + 58 col2 FROM tab0 AS cor0
----
105
157
68

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

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

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

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

query I rowsort
SELECT ALL - - 79 AS col1 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 62 - + col2, col0 * + - col1, + - col1 )
----

query I rowsort
SELECT col0 + 77 AS col1 FROM tab0
----
164
174
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - 12 + + 95 * + 22 + COUNT( * ) AS col1 FROM tab0
----
2081

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 12 + + 95 * + 22 + COUNT ( * ) AS col1 FROM tab0
----
2081

query III rowsort
SELECT * FROM tab1 WHERE - col0 IS NULL AND NOT 5 IS NOT NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + col2 col0 FROM tab0 AS cor0
----
-10
-47
42

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 IS NULL AND + 26 NOT BETWEEN - col0 / - col1 * col0 AND + - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT col1 * ( - col2 ) * - col2 + col1 + + col1 DIV col1 FROM tab2 AS cor0
----
123278
225456
27031

skipif mysql # not compatible
query I rowsort label-6420
SELECT col1 * ( - col2 ) * - col2 + col1 + + col1 / col1 FROM tab2 AS cor0
----
123278
225456
27031

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

query I rowsort
SELECT + col1 + + + col0 * col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT DISTINCT + 12 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
552
768
900

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

query I rowsort
SELECT + ( + - col2 ) + - - col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - + 13 * + 21 + + col2 + 22 FROM tab2 AS cor0
----
-193
-211
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT col0 + - + 2 + + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2
13
81

skipif mysql # not compatible
query I rowsort label-6427
SELECT col0 + - + 2 + + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-2
13
81

query I rowsort
SELECT ALL col1 + - + 7 FROM tab2 AS cor0 WHERE NULL IN ( - col1, col0 * + col2 )
----

query II rowsort
SELECT - col0, + col0 * - 21 AS col1 FROM tab0
----
-15
-315
-87
-1827
-97
-2037

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6430
SELECT ALL + COUNT( * ) AS col2, + 96 DIV COUNT( * ) FROM tab2
----
3
32

skipif mysql # not compatible
query II rowsort label-6430
SELECT ALL + COUNT ( * ) AS col2, + 96 / COUNT ( * ) FROM tab2
----
3
32

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

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

query II rowsort
SELECT ALL + 99 AS col2, col1 * - + 60 FROM tab1
----
99
-2820
99
-300
99
-840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 IS NULL
----

query I rowsort
SELECT ALL - 82 * + col2 AS col2 FROM tab2
----
-1886
-3280
-4756

query II rowsort
SELECT DISTINCT + 82 * + col2 * + 89, + col0 FROM tab1 AS cor0
----
430582
85
496264
91
700608
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT - col1 DIV + col2 + 8 FROM tab2 AS cor0
----
6
7
7

skipif mysql # not compatible
query I rowsort label-6437
SELECT - col1 / + col2 + 8 FROM tab2 AS cor0
----
6
7
7

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

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

query II rowsort
SELECT - 90 + 86 AS col1, - col1 AS col2 FROM tab0
----
-4
-1
-4
-21
-4
-81

query II rowsort
SELECT ALL + - col0 * + col0 AS col2, col0 FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

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

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

query I rowsort
SELECT - 53 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-11
-51
109

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT ALL + col1 DIV + 9 + 91 FROM tab1 AS cor0
----
91
92
96

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + col1 / + 9 + 91 FROM tab1 AS cor0
----
91
92
96

query I rowsort
SELECT 66 + + col1 * - - col0 AS col1 FROM tab0 AS cor0
----
1281
163
1893

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + 32 * - - col0 + - ( + col1 ) * - 34 * + + col1 AS col1 FROM tab1 AS cor0
----
3570
78018
8296

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT - 98 * + COUNT( * ) * - 1 + + 60 FROM tab1 AS cor0
----
354

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - 98 * + COUNT ( * ) * - 1 + + 60 FROM tab1 AS cor0
----
354

query I rowsort
SELECT - + 38 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT - col1 - - + col2 + + + 52 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-6451
SELECT COUNT ( DISTINCT + 47 ) * 11 FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6452
SELECT DISTINCT * FROM tab1 WHERE NOT - 68 <= CAST( NULL AS SIGNED ) * - + col0
----

skipif mysql # not compatible
query III rowsort label-6452
SELECT DISTINCT * FROM tab1 WHERE NOT - 68 <= CAST ( NULL AS INTEGER ) * - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL - SUM( 81 ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - SUM ( 81 ) AS col1 FROM tab0
----
-243

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6456
SELECT - CAST( + col1 AS SIGNED ) DIV 21 * - col1 col1 FROM tab0
----
0
21
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6456
SELECT - CAST ( + col1 AS INTEGER ) / 21 * - col1 col1 FROM tab0
----
0
21
243

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

query I rowsort
SELECT + 35 FROM tab0 AS cor0 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 39 + col1 - col1 FROM tab2 AS cor0
----
39

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 28 * - col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ALL + 51 * + COUNT( * ) + - + ( - + 72 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
531

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + 51 * + COUNT ( * ) + - + ( - + 72 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
531

query II rowsort
SELECT ALL 21 AS col1, + col0 + + col0 * + 92 * + col1 FROM tab1
----
21
39185
21
393575
21
65739

query I rowsort
SELECT ( - - 47 ) AS col0 FROM tab0
----
47
47
47

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - SUM ( DISTINCT + - ( - col1 ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT - 41 * + col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-2091
-3485
-3731

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

query I rowsort
SELECT DISTINCT + + col0 / - 35 * + 65 + - ( - 50 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col2 + + col1 - - col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL MIN( 10 ) FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL MIN ( 10 ) FROM tab2 cor0
----
10

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 + + - col1 NOT BETWEEN 41 * + ( + col0 ) + - col0 AND + ( + - col0 ) * col2 + + 62
----

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

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

query I rowsort
SELECT ALL ( - - 20 ) * 21 * - 64 AS col1 FROM tab1
----
-26880
-26880
-26880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 21 * - col1 AS col0, + col2 col0 FROM tab1
----
105
59
294
96
987
68

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + + col1 - + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - MIN( 30 ) * + 20 FROM tab0
----
-600

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - MIN ( 30 ) * + 20 FROM tab0
----
-600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL + 41 * - MAX( DISTINCT + 83 ) + 98 AS col0 FROM tab2 cor0
----
-3305

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + 41 * - MAX ( DISTINCT + 83 ) + 98 AS col0 FROM tab2 cor0
----
-3305

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - COUNT( * ) * - 8 AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6482
SELECT - COUNT ( * ) * - 8 AS col1 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT MAX( DISTINCT - col1 ) col0 FROM tab1 WHERE NOT - col1 IS NOT NULL OR NOT 58 NOT BETWEEN NULL AND + + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT MAX ( DISTINCT - col1 ) col0 FROM tab1 WHERE NOT - col1 IS NOT NULL OR NOT 58 NOT BETWEEN NULL AND + + col1
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6486
SELECT ALL + CAST( - col1 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE col2 * - + 79 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + CAST ( - col1 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE col2 * - + 79 IS NULL
----

query I rowsort
SELECT ALL + col0 + + - ( + ( + 33 ) ) AS col0 FROM tab2 AS cor0
----
13
31
42

query II rowsort
SELECT DISTINCT 16 + + + ( - + col1 ) + + col0, + 81 AS col1 FROM tab0 AS cor0
----
-50
81
112
81
82
81

query I rowsort
SELECT ( + 97 ) + col1 * 81 AS col1 FROM tab2
----
4228
5524
6334

query I rowsort
SELECT ALL 5 * - 56 AS col0 FROM tab0
----
-280
-280
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT + 84 + - + 17 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 84 + - + 17 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT 37 + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6492
SELECT 37 + COUNT ( * ) FROM tab1
----
40

query II rowsort
SELECT DISTINCT - 15 * col1, + col0 FROM tab2
----
-1005
75
-1155
64
-765
46

query I rowsort
SELECT col0 + 90 - col0 AS col2 FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + col0 col1, - ( - 35 ) FROM tab1
----
-2601
35
-7225
35
-8281
35

query I rowsort
SELECT ALL col0 * + col2 + col2 * + ( + col1 ) FROM tab0 WHERE NOT - col0 = col0 - col2 - - col0
----
1080
4512
9702

query I rowsort
SELECT 3 + - col0 FROM tab0
----
-12
-84
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL - 98 + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-113
-185
-195

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - 98 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-113
-185
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - COUNT( * ) - + 7 + + - 44 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-6499
SELECT - COUNT ( * ) - + 7 + + - 44 FROM tab0
----
-54

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 40 col1 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + 94 * + - MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
470

skipif mysql # not compatible
query I rowsort label-6502
SELECT + 94 * + - MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
470

query I rowsort
SELECT - 98 * - col0 + + + col2 * + col2 AS col2 FROM tab0 cor0
----
19307
3679
8626

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

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

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

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

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

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

query III rowsort
SELECT ALL 96, - 55 * + - ( + + col2 ) AS col0, + - 93 AS col1 FROM tab2
----
9 values hashing to d785d24c95d33eee3a7a047460febdd2

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

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + MAX ( + - col1 ) FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT ALL col2 * - + 63 AS col0 FROM tab2
----
-1449
-2520
-3654

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 col0, 72 * 88 col0 FROM tab0 cor0
----
10
6336
10
6336
10
6336

query I rowsort
SELECT col1 * - ( + 13 ) AS col0 FROM tab1 AS cor0
----
-182
-611
-65

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

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

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

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

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

query I rowsort
SELECT - ( 2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + 82 * - MIN( DISTINCT - col1 ) FROM tab1
----
3854

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + 82 * - MIN ( DISTINCT - col1 ) FROM tab1
----
3854

query I rowsort
SELECT + 12 + - + 22 + + 11 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT + - COUNT( DISTINCT - 43 ) + 53 + + + COUNT( * ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + - COUNT ( DISTINCT - 43 ) + 53 + + + COUNT ( * ) FROM tab1 AS cor0
----
55

query I rowsort
SELECT col1 + + + 18 FROM tab0 AS cor0
----
19
39
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 * - 52 col2 FROM tab1 AS cor0
----
2512
319
824

query I rowsort
SELECT DISTINCT 93 + + col0 * - 23 AS col1 FROM tab0 AS cor0
----
-1908
-2138
-252

query I rowsort
SELECT DISTINCT col0 * - 80 + - + col1 FROM tab2 AS cor0
----
-3731
-5197
-6067

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

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

query I rowsort
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE + 88 NOT BETWEEN - + 34 AND NULL
----

query II rowsort
SELECT DISTINCT + col0, - 41 FROM tab0 WHERE NOT + col2 - + - ( col0 ) IS NULL
----
15
-41
87
-41
97
-41

query I rowsort
SELECT col1 * 91 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT 24 * - - ( - - col2 ) AS col0 FROM tab0
----
1128
2376
240

query I rowsort
SELECT col2 - - 23 AS col0 FROM tab2
----
46
63
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + 75 * + COUNT( * ) - + COUNT( * ) AS col0 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-6534
SELECT + 75 * + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0
----
222

query I rowsort
SELECT col0 * + col1 - col1 - + + col1 FROM tab2
----
2244
4774
4891

query I rowsort
SELECT 42 FROM tab0 WHERE col0 IS NOT NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT DISTINCT ( - 51 ) + CAST( + 84 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT ( - 51 ) + CAST ( + 84 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 8 * - col2 AS col0 FROM tab1
----
-472
-544
-768

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT - col0 * + CAST( NULL AS SIGNED ) * + col1 * + - col0 * - 78 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-6540
SELECT - col0 * + CAST ( NULL AS INTEGER ) * + col1 * + - col0 * - 78 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 22 / - col0 AS col0 FROM tab1 AS cor0 WHERE + 95 <> NULL
----

query I rowsort
SELECT 50 * - col1 FROM tab1 cor0
----
-2350
-250
-700

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

query II rowsort
SELECT ALL 42, + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 13
----

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

query I rowsort
SELECT DISTINCT col2 * + - 93 * + col0 * - col1 FROM tab2 AS cor0
----
18332160
27104850
5018094

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6548
SELECT - col0 * - CAST( NULL AS SIGNED ), + col1 * + + 21 AS col2 FROM tab1 AS cor0
----
NULL
105
NULL
294
NULL
987

skipif mysql # not compatible
query II rowsort label-6548
SELECT - col0 * - CAST ( NULL AS INTEGER ), + col1 * + + 21 AS col2 FROM tab1 AS cor0
----
NULL
105
NULL
294
NULL
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT - + ( + 14 ) col1 FROM tab2 WHERE NOT ( NOT - col2 BETWEEN + 77 / + 17 AND + col0 - - + CAST( + + ( + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6549
SELECT - + ( + 14 ) col1 FROM tab2 WHERE NOT ( NOT - col2 BETWEEN + 77 / + 17 AND + col0 - - + CAST ( + + ( + col1 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT ALL COUNT( * ) AS col2, 22 col2 FROM tab2 WHERE - ( + ( 47 ) ) IS NOT NULL
----
3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6550
SELECT ALL COUNT ( * ) AS col2, 22 col2 FROM tab2 WHERE - ( + ( 47 ) ) IS NOT NULL
----
3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - MIN( col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - MIN ( col2 ) FROM tab1
----
-59

query I rowsort
SELECT - col1 * col0 * - col0 * col2 FROM tab0
----
1589490
856575
931491

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + SUM( DISTINCT - 16 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-6554
SELECT + SUM ( DISTINCT - 16 ) FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT - ( - - 16 ) * - col1 + col1 DIV - col2 FROM tab1 AS cor0
----
224
752
80

skipif mysql # not compatible
query I rowsort label-6555
SELECT - ( - - 16 ) * - col1 + col1 / - col2 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6556
SELECT - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6556
SELECT - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT 99 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6557
SELECT 99 / + col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - + COUNT( * ) col2 FROM tab0 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-6558
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

query II rowsort
SELECT ALL + - 46 - - 32 AS col1, col0 - 45 FROM tab0 AS cor0
----
-14
-30
-14
42
-14
52

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

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

query I rowsort
SELECT ALL - 7 * + + col2 * col2 + col1 FROM tab0 AS cor0
----
-15382
-679
-68606

query I rowsort
SELECT - 81 + 55 * - 51 AS col1 FROM tab2 AS cor0
----
-2886
-2886
-2886

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT - COUNT( * ) + + CAST( + 53 AS SIGNED ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-6567
SELECT - COUNT ( * ) + + CAST ( + 53 AS INTEGER ) FROM tab0
----
50

query I rowsort
SELECT col2 * - 62 + - + col2 AS col1 FROM tab2
----
-1449
-2520
-3654

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

skipif mysql # not compatible
query I rowsort label-6569
SELECT + CAST ( + col1 AS INTEGER ) + col0 * - col2 AS col2 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6570
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - + 21 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - + 21 IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + 82 * 75 FROM tab1 cor0
----
6150
6150
6150

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

query I rowsort
SELECT DISTINCT col2 * + 89 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NULL
----

query I rowsort
SELECT - col2 + - 5 AS col2 FROM tab2 WHERE NOT 18 - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 82 * + col1 + + 24 - + - col1 FROM tab2 AS cor0
----
4257
5585
6415

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

skipif mysql # not compatible
query I rowsort label-6578
SELECT COUNT ( * ) / - + 72 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6582
SELECT 84 AS col0, + CAST( + + col1 AS SIGNED ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0
----

skipif mysql # not compatible
query II rowsort label-6582
SELECT 84 AS col0, + CAST ( + + col1 AS INTEGER ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0
----

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

query I rowsort
SELECT DISTINCT + 40 * + 9 + + 48 AS col2 FROM tab0
----
408

query I rowsort
SELECT ALL + - col0 + + 40 * - 73 FROM tab1 AS cor0
----
-2971
-3005
-3011

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

query II rowsort
SELECT DISTINCT - 94, col0 FROM tab2
----
-94
46
-94
64
-94
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT - CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6589
SELECT - CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - SUM( + + 66 ) + - MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - SUM ( + + 66 ) + - MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6592
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 84 ) BETWEEN - CAST( col1 AS SIGNED ) * + 5 AND NULL
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6592
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 84 ) BETWEEN - CAST ( col1 AS INTEGER ) * + 5 AND NULL
----
97
1
99

query I rowsort
SELECT DISTINCT 68 + col0 + - - col0 FROM tab2 AS cor0
----
160
196
218

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT 35 - - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT 35 - - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - col0 + - + 83 FROM tab1
----
-134
-168
-174

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - + 69 col0 FROM tab2
----
11
29
46

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

query I rowsort
SELECT ALL 94 * + col2 * col2 FROM tab0
----
207646
921294
9400

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT - 1 * MIN( ( - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - 1 * MIN ( ( - col0 ) ) FROM tab0 AS cor0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT + 74 + - 34 * + - MAX( DISTINCT + 90 ) + - SUM( + col2 ) FROM tab2 WHERE + 47 BETWEEN - 81 / + col2 * - col1 AND + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + 74 + - 34 * + - MAX ( DISTINCT + 90 ) + - SUM ( + col2 ) FROM tab2 WHERE + 47 BETWEEN - 81 / + col2 * - col1 AND + - col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL SUM( ALL - + CAST( - ( - - 49 ) AS SIGNED ) ) * 17 + + - COUNT( * ) AS col1 FROM tab1
----
2496

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL SUM ( ALL - + CAST ( - ( - - 49 ) AS INTEGER ) ) * 17 + + - COUNT ( * ) AS col1 FROM tab1
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT - COUNT( DISTINCT + 40 ) col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-1

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

query I rowsort
SELECT DISTINCT - 31 * - col2 * + col0 FROM tab0 AS cor0
----
21855
26970
297693

query I rowsort
SELECT ALL - - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab1 cor0
----
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT 31 DIV - - col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT 31 / - - col0 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) col1 FROM tab2
----
-51
-67
-77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 12 * + col2 col2 FROM tab1
----
14
1152
47
816
5
708

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT ALL + 12, + MAX( + col1 ) AS col2 FROM tab1
----
12
47

skipif mysql # not compatible
query II rowsort label-6613
SELECT ALL + 12, + MAX ( + col1 ) AS col2 FROM tab1
----
12
47

query I rowsort
SELECT - 79 + - col2 FROM tab1
----
-138
-147
-175

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col2 col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT DISTINCT COUNT( * ) * - COUNT( - + col1 ) * - - COUNT( - 59 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT COUNT ( * ) * - COUNT ( - + col1 ) * - - COUNT ( - 59 ) FROM tab1
----
-27

query I rowsort
SELECT 37 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 + - 77 AS col1 FROM tab1 AS cor0
----
-124
-82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL ( + MIN( + col1 ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL ( + MIN ( + col1 ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - col2 + + - col1 - - col2 + col2 FROM tab1 AS cor0
----
157
172
274

query I rowsort
SELECT ALL col1 * + - col2 + + + col0 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

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

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

skipif mysql # not compatible
query I rowsort label-6624
SELECT MIN ( - col0 ) AS col0 FROM tab1
----
-91

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

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) * + 89 FROM tab1
----
-267

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab2 WHERE + + 35 + + col1 IS NOT NULL
----
2346
4928
5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - - MIN( ALL - - 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6630
SELECT - - MIN ( ALL - - 11 ) FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT - 58 DIV COUNT( * ) AS col1 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 58 / COUNT ( * ) AS col1 FROM tab1 cor0
----
-19

query I rowsort
SELECT ALL - + 55 * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 74 * 32
----

query I rowsort
SELECT DISTINCT 58 * + 32 AS col2 FROM tab1
----
1856

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

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

query I rowsort
SELECT + 27 * - col0 FROM tab2 AS cor0
----
-1242
-1728
-2025

query I rowsort
SELECT ALL + ( + col2 ) * - + col0 * 68 * + col0 * - - 24 AS col0 FROM tab2 AS cor0
----
-267386880
-532440000
-79426176

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - - 5 * + + SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-925

skipif mysql # not compatible
query I rowsort label-6637
SELECT - - 5 * + + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT DISTINCT + 34 + - col2 + - 2 col0 FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) * col0 * 22 * 44 <> + col0 * + 37 + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6638
SELECT DISTINCT + 34 + - col2 + - 2 col0 FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) * col0 * 22 * 44 <> + col0 * + 37 + col0
----

query I rowsort
SELECT DISTINCT - - col1 + + ( col0 ) + - col2 * + + 26 + + col0 AS col2 FROM tab2 AS cor0
----
-1291
-455
-835

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

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

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

query II rowsort
SELECT ALL col0 * - col1 AS col0, - col2 FROM tab2
----
-2346
-23
-4928
-40
-5025
-58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT col2 DIV 75 * - + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT col2 / 75 * - + 75 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - 62 FROM tab1 WHERE ( - 37 - + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE col0 + - + 79 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6647
SELECT DISTINCT + 60 + + + 0, + CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab0 AS cor0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6647
SELECT DISTINCT + 60 + + + 0, + CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
60
NULL

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

query I rowsort
SELECT DISTINCT ( + col1 ) + - + ( 71 ) - + - col0 AS col2 FROM tab2 AS cor0
----
26
70
71

query I rowsort
SELECT ALL ( col0 ) * - col1 - + + col1 AS col0 FROM tab1
----
-430
-4324
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * + col1 col0 FROM tab0
----
1008
3888
48

query I rowsort
SELECT + + ( - - col1 ) * - col2 * - + col1 AS col2 FROM tab0 AS cor0
----
308367
4410
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6655
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6655
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 69 ) col1 FROM tab1
----
-69

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

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

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

skipif mysql # not compatible
query I rowsort label-6658
SELECT - MIN ( - col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT col1 * + + 76 FROM tab2
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT COUNT( * ) * - - 59 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6660
SELECT COUNT ( * ) * - - 59 FROM tab1
----
177

query I rowsort
SELECT + 58 FROM tab1 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - + ( + + MIN ( ALL + 90 ) ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 * 91 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - 52 + - - 91 FROM tab1 cor0
----
39
39
39

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

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

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

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

query II rowsort
SELECT - col2 AS col2, - 90 FROM tab0 AS cor0
----
-10
-90
-47
-90
-99
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ( + SUM( ALL 29 ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6673
SELECT ( + SUM ( ALL 29 ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT COUNT( * ) * + 16 * + + 60 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2880

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT COUNT ( * ) * + 16 * + + 60 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 74 + col2 col0 FROM tab2
----
148
191
199

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col2 FROM tab1 WHERE NULL <> col1 / + col2 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 35 * 33 FROM tab1
----
1155
1155
1155

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

query I rowsort
SELECT + col2 + + - 11 AS col1 FROM tab2
----
12
29
47

query I rowsort
SELECT DISTINCT + 94 FROM tab1 WHERE NULL <> - 20 * col2
----

query II rowsort
SELECT DISTINCT 2 AS col0, col0 AS col2 FROM tab1
----
2
51
2
85
2
91

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + + SUM( - 79 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-711

skipif mysql # not compatible
query I rowsort label-6687
SELECT + + SUM ( - 79 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-711

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 = 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 79 col0, col0 FROM tab0
----
-79
15
-79
87
-79
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 52 col1 FROM tab0
----
4524
5044
780

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 91 AS col1 FROM tab0 AS cor0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6695
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 91 AS col1 FROM tab0 AS cor0
----
NULL
91

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

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

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

query I rowsort
SELECT col2 * 62 + - col1 FROM tab0
----
2833
599
6137

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 91 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 47 AS col1 FROM tab2 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ( COUNT( + col2 ) ) * - COUNT( * ) FROM tab0 WHERE - col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6701
SELECT ( COUNT ( + col2 ) ) * - COUNT ( * ) FROM tab0 WHERE - col0 <= ( NULL )
----
0

query I rowsort
SELECT + col2 * 59 FROM tab2
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT - MIN( 98 ) + 53 * 74 col2 FROM tab2
----
3824

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT DISTINCT - MIN ( 98 ) + 53 * 74 col2 FROM tab2
----
3824

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + ( MAX( ALL 81 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-6704
SELECT + ( MAX ( ALL 81 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-243

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

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-6706
SELECT - COUNT ( 38 ) - - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT 44 + - col0 AS col0 FROM tab2
----
-2
-20
-31

query I rowsort
SELECT ALL + 66 * 23 FROM tab1
----
1518
1518
1518

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + col1 IN ( + 46 )
----
59
68
96

query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 * 66 FROM tab1
----
-11383
-3525
-7555

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

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

query I rowsort
SELECT + col0 * 33 AS col0 FROM tab0 WHERE NULL IS NULL
----
2871
3201
495

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT + 7 * + MIN( ALL - 16 ) FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + 7 * + MIN ( ALL - 16 ) FROM tab0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT MAX( ALL + 30 ) AS col0 FROM tab0 WHERE col0 * col2 BETWEEN 99 AND - col2 + col2 * ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT MAX ( ALL + 30 ) AS col0 FROM tab0 WHERE col0 * col2 BETWEEN 99 AND - col2 + col2 * ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT COUNT( * ) + COUNT( * ) * + 98 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-6715
SELECT COUNT ( * ) + COUNT ( * ) * + 98 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - MIN( - 31 ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6716
SELECT - MIN ( - 31 ) AS col0 FROM tab0
----
31

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-23
-26
45

query I rowsort
SELECT col1 * - col2 FROM tab2 WHERE NULL IS NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT COUNT( * ) + - 79 * + COUNT( * ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-6719
SELECT COUNT ( * ) + - 79 * + COUNT ( * ) AS col2 FROM tab1
----
-234

query I rowsort
SELECT DISTINCT 49 - col1 AS col1 FROM tab0
----
-32
28
48

query I rowsort
SELECT - col2 + 64 AS col2 FROM tab0
----
-35
17
54

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 BETWEEN + col0 * col0 + + col0 * - col2 AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT MIN( DISTINCT 17 ) FROM tab1 AS cor0 WHERE ( NULL ) >= ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT MIN ( DISTINCT 17 ) FROM tab1 AS cor0 WHERE ( NULL ) >= ( col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 29 + ( 46 + + 58 ) NOT IN ( - 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT DISTINCT - 24 * + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - 24 * + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
NULL

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

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE NOT + 17 + - col0 / + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 BETWEEN NULL AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT ALL + AVG ( DISTINCT col2 ) * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT 78 FROM tab2 AS cor0 WHERE NOT col1 * + ( - col1 ) + col2 NOT IN ( - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL SUM( DISTINCT col0 ) col0 FROM tab0 AS cor0 WHERE ( - 90 ) NOT IN ( col2 * + col2 )
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6733
SELECT ALL SUM ( DISTINCT col0 ) col0 FROM tab0 AS cor0 WHERE ( - 90 ) NOT IN ( col2 * + col2 )
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( 18 ) + 44 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 41 < NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 41 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6738
SELECT + 77 AS col2 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) + 79 IS NOT NULL
----
77
77
77

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 77 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) + 79 IS NOT NULL
----
77
77
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + SUM ( + - col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab2
----
-4186
-5824
-6825

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 93 + - ( col2 ) FROM tab0 AS cor0 WHERE 10 * + 43 * - col1 >= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + + 38 ) + MIN( 21 + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + + 38 ) + MIN ( 21 + col2 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + col1 + col2 * - col1 * 0 AS col0 FROM tab2 AS cor0
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + MAX( + col1 ) * + COUNT( + 71 ) + - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-6752
SELECT + MAX ( + col1 ) * + COUNT ( + 71 ) + - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
136

query I rowsort
SELECT - col0 + + + 18 + + col2 AS col1 FROM tab2
----
-5
-6
1

query I rowsort
SELECT col1 + col1 + + - col1 * - + col0 + 11 FROM tab1
----
4382
446
753

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6755
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( ( 51 ) )
----

skipif mysql # not compatible
query III rowsort label-6755
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( ( 51 ) )
----

query I rowsort
SELECT + col0 * - col2 + - 20 FROM tab0
----
-725
-890
-9623

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT - 94 + + 4 + + + col0 DIV col0 DIV - col2 FROM tab0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-6757
SELECT - 94 + + 4 + + + col0 / col0 / - col2 FROM tab0
----
-90
-90
-90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT ALL col2 + + ( - col1 ) DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
8
99

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL col2 + + ( - col1 ) / col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
8
99

query I rowsort
SELECT ALL - col0 - - - col2 + + + col2 * + 54 * + col2 AS col2 FROM tab1
----
187830
249537
497517

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6762
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT - 55 * + + col2 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6762
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT - 55 * + + col2 * + CAST ( NULL AS REAL ) IS NOT NULL
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - 24 * + SUM ( ALL col0 ) FROM tab0 AS cor0
----
-4776

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT + 69 AS col1, SUM( + 11 ) AS col2 FROM tab2 AS cor0
----
69
33

skipif mysql # not compatible
query II rowsort label-6764
SELECT + 69 AS col1, SUM ( + 11 ) AS col2 FROM tab2 AS cor0
----
69
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT CAST( + CAST( + - 12 AS SIGNED ) AS SIGNED ) >= col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT CAST ( + CAST ( + - 12 AS INTEGER ) AS INTEGER ) >= col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT + + col2 DIV + col2 + - - col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6768
SELECT + + col2 / + col2 + - - col1 FROM tab1 AS cor0
----
15
48
6

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

skipif mysql # not compatible
query I rowsort label-6769
SELECT - 9 / + col0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT - - col0 DIV + - 58 + + + col0 FROM tab2 AS cor0
----
46
63
74

skipif mysql # not compatible
query I rowsort label-6770
SELECT - - col0 / + - 58 + + + col0 FROM tab2 AS cor0
----
46
63
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + - 79 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT DISTINCT col2 * + col1 DIV - - col1 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT col2 * + col1 / - - col1 AS col1 FROM tab1
----
59
68
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6774
SELECT ALL * FROM tab2 WHERE NOT CAST( 9 AS SIGNED ) < + col0 / - + col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6774
SELECT ALL * FROM tab2 WHERE NOT CAST ( 9 AS INTEGER ) < + col0 / - + col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6775
SELECT * FROM tab0 WHERE NOT ( CAST( - col0 AS SIGNED ) ) NOT IN ( 17 )
----

skipif mysql # not compatible
query III rowsort label-6775
SELECT * FROM tab0 WHERE NOT ( CAST ( - col0 AS INTEGER ) ) NOT IN ( 17 )
----

query I rowsort
SELECT DISTINCT + 84 * + 82 FROM tab1
----
6888

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 16 * + col0 col0 FROM tab0
----
1552
19440
29232

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

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

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

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

query II rowsort
SELECT ALL - + col0, + col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

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

query I rowsort
SELECT DISTINCT 31 * - - 4 - 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
116

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

query I rowsort
SELECT col2 + + col2 + - col1 FROM tab1
----
113
178
89

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT - col1 + - col0 DIV - col2 col2 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT DISTINCT - col1 + - col0 / - col2 col2 FROM tab1 AS cor0
----
-14
-4
-46

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( 4 ) IN ( + col1 * + 66 + - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + 90, - col1 col1 FROM tab0 AS cor0
----
111
-21
171
-81
91
-1

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

query I rowsort
SELECT DISTINCT - + 63 - col2 + - col1 * + 58 FROM tab2 AS cor0
----
-3044
-4007
-4569

query I rowsort
SELECT ALL + 87 + 88 * + + col1 * col2 FROM tab0 AS cor0
----
18567
335103
8799

query II rowsort
SELECT ALL - col0 * - col1 AS col2, col2 AS col1 FROM tab2 cor0
----
2346
23
4928
40
5025
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT ALL - col2 - + col1 + col2 DIV - col1 col1 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6795
SELECT ALL - col2 - + col1 + col2 / - col1 col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT col2 - + + 19 AS col2 FROM tab1
----
40
49
77

query I rowsort
SELECT DISTINCT col2 - col0 + col0 * - 75 + + 68 FROM tab1
----
-3712
-6333
-6780

query I rowsort
SELECT ALL col0 - - 69 FROM tab0
----
156
166
84

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

query I rowsort
SELECT ALL 94 + + + 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT DISTINCT - - MAX( DISTINCT - - 87 ) AS col2, - MAX( ALL - - col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
87
-75

skipif mysql # not compatible
query II rowsort label-6801
SELECT DISTINCT - - MAX ( DISTINCT - - 87 ) AS col2, - MAX ( ALL - - col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
87
-75

query I rowsort
SELECT + 94 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT - CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6804
SELECT - CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - - 38 * - - col2 col1 FROM tab2 AS cor0
----
-13224
-5244
-9120

query I rowsort
SELECT DISTINCT + - ( 30 ) AS col0 FROM tab1 AS cor0
----
-30

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

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

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

query I rowsort
SELECT ALL + + 1 FROM tab2 cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT 10 * + col0 * + col2 AS col2 FROM tab0
----
7050
8700
96030

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 77 AS col2, + col1 + - col1 * + 56 col1 FROM tab0
----
77
-1155
77
-4455
77
-55

query I rowsort
SELECT DISTINCT + 62 * + ( - ( - col0 ) ) FROM tab2
----
2852
3968
4650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT CAST( - ( AVG ( ALL + col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-6815
SELECT CAST ( - ( AVG ( ALL + col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 15 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL + 68 DIV - col1 AS col0 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + 68 / - col1 AS col0 FROM tab1
----
-1
-13
-4

query III rowsort
SELECT * FROM tab1 WHERE NOT 47 + - 82 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6820
SELECT - COUNT( * ) + + COUNT( * ) + COUNT( ALL - - CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT - COUNT ( * ) + + COUNT ( * ) + COUNT ( ALL - - CAST ( NULL AS REAL ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT 28 + - COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6821
SELECT 28 + - COUNT ( * ) FROM tab1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col0 FROM tab1
----
196
2209
25

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-10
1817
-47
1168
-99
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 48 * - + SUM( col2 ) AS col0 FROM tab2
----
-5808

skipif mysql # not compatible
query I rowsort label-6825
SELECT 48 * - + SUM ( col2 ) AS col0 FROM tab2
----
-5808

query I rowsort
SELECT - 98 + + - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

query II rowsort
SELECT ALL + 56 AS col2, col2 * col2 FROM tab1 AS cor0
----
56
3481
56
4624
56
9216

query I rowsort
SELECT + col0 * - col1 + + ( - 66 ) FROM tab2 AS cor0
----
-2412
-4994
-5091

query I rowsort
SELECT col1 + - + 18 FROM tab1 AS cor0
----
-13
-4
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT DISTINCT col2 DIV - - col1 + + - 93 AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT col2 / - - col1 + + - 93 AS col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT col0 + + col1 + 41 + + 61 AS col0 FROM tab1 AS cor0
----
167
192
240

query I rowsort
SELECT - - col1 + + 3 + - + col1 * ( - col1 ) AS col1 FROM tab2 cor0
----
2655
4559
6009

query I rowsort
SELECT + 82 + - col1 AS col1 FROM tab1 AS cor0
----
35
68
77

query I rowsort
SELECT DISTINCT - - col1 * - 44 - col0 + col2 FROM tab1 AS cor0
----
-2091
-246
-571

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

skipif mysql # not compatible
query I rowsort label-6836
SELECT SUM ( - col1 ) + COUNT ( * ) FROM tab2
----
-192

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

query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab1 WHERE NOT - col0 < + - col2 + col1 - 18
----
-2601

onlyif mysql # DIV for integer division: 
query II rowsort label-6839
SELECT ALL + 54 DIV - + col2 - - col2 AS col2, 95 FROM tab1
----
59
95
68
95
96
95

skipif mysql # not compatible
query II rowsort label-6839
SELECT ALL + 54 / - + col2 - - col2 AS col2, 95 FROM tab1
----
59
95
68
95
96
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <= + - 80
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT COUNT( * ) DIV + ( + + 42 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT COUNT ( * ) / + ( + + 42 ) FROM tab2
----
0

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

query I rowsort
SELECT - - col0 * - 65 * + + col0 FROM tab2 AS cor0
----
-137540
-266240
-365625

query I rowsort
SELECT DISTINCT + 35 FROM tab0 WHERE + + 41 + - 86 + - col0 IS NOT NULL
----
35

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6845
SELECT - COUNT ( * ) col1, 20 AS col1 FROM tab1 AS cor0
----
-3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL - MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-23

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

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

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

query II rowsort
SELECT DISTINCT 98, col0 AS col0 FROM tab1 AS cor0
----
98
51
98
85
98
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6851
SELECT + COUNT( * ) DIV CAST( + ( + + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT + COUNT ( * ) / CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT ALL 25 * - 9 * col1 FROM tab1
----
-10575
-1125
-3150

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

query I rowsort
SELECT ALL col0 + ( + + col0 ) AS col1 FROM tab1
----
102
170
182

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

query I rowsort
SELECT DISTINCT + - col2 + + - col0 + col2 * + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1197
151
3037

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

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

query I rowsort
SELECT 23 * - col2 + - col0 FROM tab0
----
-1096
-2374
-317

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6862
SELECT CAST( NULL AS SIGNED ) * + MIN( - - 65 ) AS col0, 15 AS col1 FROM tab1 AS cor0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6862
SELECT CAST ( NULL AS INTEGER ) * + MIN ( - - 65 ) AS col0, 15 AS col1 FROM tab1 AS cor0
----
NULL
15

query I rowsort
SELECT + 89 * + + col1 AS col2 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT - - 43 AS col0 FROM tab2 cor0
----
43
43
43

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

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

query I rowsort
SELECT col1 - - col0 * - col2 + - - 53 FROM tab2 AS cor0
----
-2430
-4230
-954

query I rowsort
SELECT - col0 FROM tab0 WHERE - col0 NOT BETWEEN - 0 * 86 AND col0 * col2
----
-15
-87
-97

query I rowsort
SELECT ALL + 68 - + 82 - + col1 FROM tab0
----
-15
-35
-95

query I rowsort
SELECT DISTINCT 98 + + col0 FROM tab1
----
149
183
189

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL 16 - + COUNT( * ) col2 FROM tab0
----
13

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

query I rowsort
SELECT 63 * - + 69 * + + col0 AS col1 FROM tab2
----
-199962
-278208
-326025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6873
SELECT + 16, - AVG ( + col2 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6873
SELECT + 16, - AVG ( + col2 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
16
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT DISTINCT - COUNT( * ) col1, - 94 FROM tab1
----
-3
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6876
SELECT DISTINCT - COUNT ( * ) col1, - 94 FROM tab1
----
-3
-94

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

query I rowsort
SELECT - col1 * 44 + - + 16 FROM tab0 cor0
----
-3580
-60
-940

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6880
SELECT DISTINCT + 99 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + 99 / + - COUNT ( * ) FROM tab2 AS cor0
----
-33

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 8 <> NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT + COUNT( * ) DIV - + COUNT( * ) + - + 22 AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6884
SELECT + COUNT ( * ) / - + COUNT ( * ) + - + 22 AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT + 81 - - COUNT( * ) AS col1 FROM tab2, tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + 81 - - COUNT ( * ) AS col1 FROM tab2, tab1 cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT ALL 89 * + 15 * + 48 AS col0, SUM( ALL col2 ) AS col2 FROM tab0
----
64080
156

skipif mysql # not compatible
query II rowsort label-6886
SELECT ALL 89 * + 15 * + 48 AS col0, SUM ( ALL col2 ) AS col2 FROM tab0
----
64080
156

query I rowsort
SELECT ( col1 ) + 76 FROM tab0
----
157
77
97

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

query II rowsort
SELECT DISTINCT - 69 AS col0, 12 + + col1 AS col1 FROM tab2
----
-69
63
-69
79
-69
89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6890
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, + col1 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
-2601
NULL
-4489
NULL
-5929

skipif mysql # not compatible
query II rowsort label-6890
SELECT ALL CAST ( NULL AS REAL ) AS col1, + col1 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
-2601
NULL
-4489
NULL
-5929

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ( - 24 ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND col0 + + - 35 + - 94 * - 38 * + - col0 * - - col1
----

query I rowsort
SELECT ALL - - col2 * - - 28 + - col0 FROM tab2 AS cor0
----
1056
1549
598

query I rowsort
SELECT + 58 + - - col2 AS col0 FROM tab1 AS cor0
----
117
126
154

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

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

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

query I rowsort
SELECT - + 43 + - col1 + - + 83 * col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + - col2 + + - 15 AS col0 FROM tab1 AS cor0
----
-125
-130
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6900
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS DECIMAL ) NOT IN ( - + 81, - col1 )
----

skipif mysql # not compatible
query III rowsort label-6900
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS REAL ) NOT IN ( - + 81, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - SUM( DISTINCT - 79 ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6901
SELECT - SUM ( DISTINCT - 79 ) AS col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - SUM( ALL + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6902
SELECT - SUM ( ALL + col0 ) FROM tab2
----
-185

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6904
SELECT DISTINCT col2 * + ( col0 ) AS col1, + CAST( NULL AS SIGNED ) / - + 25 FROM tab2
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-6904
SELECT DISTINCT col2 * + ( col0 ) AS col1, + CAST ( NULL AS INTEGER ) / - + 25 FROM tab2
----
1058
NULL
2560
NULL
4350
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + col0 * - col0 * + 10 FROM tab2 AS cor0
----
-21160
-40960
-56250

query I rowsort
SELECT DISTINCT 48 + + - 63 * col2 FROM tab2 AS cor0
----
-1401
-2472
-3606

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + 82 * - COUNT( * ) + + 72 AS col2 FROM tab0 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 82 * - COUNT ( * ) + + 72 AS col2 FROM tab0 cor0
----
-174

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

query I rowsort
SELECT DISTINCT + - 86 + - col1 * - 53 FROM tab1 AS cor0
----
179
2405
656

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

query I rowsort
SELECT ALL col0 + - col2 + - 2 FROM tab2
----
15
21
22

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

query II rowsort
SELECT - col2 AS col1, 43 - + col1 AS col1 FROM tab0 WHERE + + col1 - col1 + - - col1 = - - col1
----
-10
22
-47
-38
-99
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL SUM( + 13 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL SUM ( + 13 ) FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ( + MAX( ALL - 24 ) ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6917
SELECT ( + MAX ( ALL - 24 ) ) AS col0 FROM tab0
----
-24

query I rowsort
SELECT col0 - + col2 + - + 98 AS col2 FROM tab2
----
-74
-75
-81

query II rowsort
SELECT + col0 - - 40, col2 FROM tab2
----
104
40
115
58
86
23

query II rowsort
SELECT col1 * - col2 + + col0, col2 AS col0 FROM tab1 AS cor0
----
-1293
96
-210
59
-3105
68

query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6922
SELECT DISTINCT - 78 + MAX( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 42 * - + COUNT( * ) * - 86 col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6922
SELECT DISTINCT - 78 + MAX ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 42 * - + COUNT ( * ) * - 86 col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT - 35 DIV 12 - - col2 * + + col0 AS col2 FROM tab1
----
4894
5013
6186

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - 35 / 12 - - col2 * + + col0 AS col2 FROM tab1
----
4894
5013
6186

query I rowsort
SELECT - ( - + 26 ) * - 82 + + + ( + + 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to eca519c923352fade7f142a690212026

query I rowsort
SELECT ALL col1 * - 37 * + - col2 AS col1 FROM tab1 AS cor0
----
10915
118252
49728

query I rowsort
SELECT ALL - + col2 * col1 - - 69 - - col0 * col1 / + col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) < - col1 + ( + col0 ) * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT - ( - - MIN( DISTINCT - + 40 ) ) DIV + - 15 AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6927
SELECT - ( - - MIN ( DISTINCT - + 40 ) ) / + - 15 AS col0 FROM tab2
----
-2

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

query I rowsort
SELECT ALL + + 1 * - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 49 * - 14 AS col0 FROM tab1
----
-686
-686
-686

query I rowsort
SELECT - + col1 * + col1 * - 6 + - + 6 FROM tab2 AS cor0 WHERE - col2 + + 33 IS NOT NULL
----
15600
26928
35568

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

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

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

query I rowsort
SELECT DISTINCT 79 + + col0 * - 52 AS col2 FROM tab0 AS cor0
----
-4445
-4965
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL - ( + COUNT( * ) ) * MIN( - col1 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - ( + COUNT ( * ) ) * MIN ( - col1 ) FROM tab2 AS cor0
----
231

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + + ( - col0 ) + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 + + 11 - col0 * col0 * - 76 + - col0 col2 FROM tab0
----
17000
575060
714900

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + 43 + - MIN( + col2 ) + + COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-6941
SELECT + 43 + - MIN ( + col2 ) + + COUNT ( * ) FROM tab1
----
-13

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

query II rowsort
SELECT - 10 + + + 84 AS col2, 18 AS col0 FROM tab1
----
74
18
74
18
74
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 + + + col1 + 9 * col2 col0 FROM tab0
----
15
489
87
24
97
795

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

query I rowsort
SELECT DISTINCT - 77 * - col0 * + - col1 AS col2 FROM tab0
----
-140679
-7469
-93555

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT - SUM( ( col0 ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - SUM ( ( col0 ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-182

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL CAST( + 40 AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
45
54
87

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL CAST ( + 40 AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
45
54
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL MIN( ( + + col2 ) ) + + COUNT( * ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL MIN ( ( + + col2 ) ) + + COUNT ( * ) AS col0 FROM tab1
----
62

query I rowsort
SELECT ALL 63 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT ALL + ( ( - col1 ) ) AS col1, + 20 FROM tab0
----
-1
20
-21
20
-81
20

query I rowsort
SELECT ALL col0 * + col2 + + 95 AS col1 FROM tab2 AS cor0
----
1153
2655
4445

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + + SUM( ALL - col1 ) * - 32 FROM tab1 AS cor0
----
2112

skipif mysql # not compatible
query I rowsort label-6957
SELECT + + SUM ( ALL - col1 ) * - 32 FROM tab1 AS cor0
----
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 75 col0 FROM tab0 cor0
----
1575
6075
75

query II rowsort
SELECT + col0 * + 35 AS col2, - 96 FROM tab1 AS cor0
----
1785
-96
2975
-96
3185
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6960
SELECT + + ( + + 74 ), col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
74
-4
74
-97
74
0

skipif mysql # not compatible
query II rowsort label-6960
SELECT + + ( + + 74 ), col0 / - col1 AS col1 FROM tab0 AS cor0
----
74
-4
74
-97
74
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT MAX( + - 76 ) AS col1 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-6962
SELECT MAX ( + - 76 ) AS col1 FROM tab1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT ALL * FROM tab0 WHERE 36 / col1 / - col0 + + CAST( NULL AS SIGNED ) / ( + col2 ) * + 87 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT ALL * FROM tab0 WHERE 36 / col1 / - col0 + + CAST ( NULL AS INTEGER ) / ( + col2 ) * + 87 * + - col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + MIN( DISTINCT + 93 ) FROM tab1 WHERE NOT NULL IN ( - col1 + + 54 + - - col2, - col1, - 7 * + 62, + 8 + - col1, + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT + MIN ( DISTINCT + 93 ) FROM tab1 WHERE NOT NULL IN ( - col1 + + 54 + - - col2, - col1, - 7 * + 62, + 8 + - col1, + 69 )
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6968
SELECT - CAST ( 0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 42 IS NULL
----

query I rowsort
SELECT + col0 * + + 32 + + - 77 + - - col1 AS col0 FROM tab0
----
2728
3028
484

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6972
SELECT DISTINCT col2 DIV + col2 AS col0, col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
1
1173
1
3080
1
3886

skipif mysql # not compatible
query II rowsort label-6972
SELECT DISTINCT col2 / + col2 AS col0, col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
1
1173
1
3080
1
3886

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

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

query I rowsort
SELECT ALL - + 94 + - - 2 * - + 57 FROM tab2 AS cor0
----
-208
-208
-208

query II rowsort
SELECT DISTINCT col0 * + + col2 - + 25 + + col2 AS col1, - 9 + + col2 AS col0 FROM tab1 AS cor0
----
4967
87
5049
50
6231
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + 51 col2 FROM tab1 AS cor0
----
102
136
142

query I rowsort
SELECT ALL + col2 - + 55 FROM tab0
----
-45
-8
44

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT 15 - + 31 AS col1 FROM tab1
----
-16
-16
-16

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

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

query I rowsort
SELECT col1 * - 86 + + 37 * + col1 AS col1 FROM tab0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT ALL + COUNT( + 39 ) DIV 49 + 66 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL + COUNT ( + 39 ) / 49 + 66 FROM tab1
----
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT col0 + + - CAST( - col1 AS SIGNED ) + - - 83 AS col1 FROM tab0
----
179
181
191

skipif mysql # not compatible
query I rowsort label-6985
SELECT col0 + + - CAST ( - col1 AS INTEGER ) + - - 83 AS col1 FROM tab0
----
179
181
191

query II rowsort
SELECT 73 * 40, 91 AS col1 FROM tab0 AS cor0 WHERE - col2 <= - + col0 + + 40
----
2920
91
2920
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - 89 * 11 + - - SUM( + col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-424

skipif mysql # not compatible
query I rowsort label-6987
SELECT - 89 * 11 + - - SUM ( + col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-424

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT + col0 * - + 89 FROM tab2 WHERE - - 32 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + - COUNT( * ) * 53 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-159

skipif mysql # not compatible
query I rowsort label-6991
SELECT + - COUNT ( * ) * 53 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-159

query I rowsort
SELECT ALL - 58 AS col2 FROM tab0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 40 col2 FROM tab0 cor0
----
-1880
-3960
-400

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

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

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

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

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

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

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

query I rowsort
SELECT + ( + + 36 ) * + 27 * col1 FROM tab0
----
20412
78732
972

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7000
SELECT col1 DIV + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-7000
SELECT col1 / + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL
1
NULL
1
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - + col1 * + - col2, 39 col0 FROM tab2
----
237160
39
260362
39
59823
39

query I rowsort
SELECT + ( + + col2 ) * - col2 + col2 + col0 AS col2 FROM tab2
----
-1496
-3231
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT col2 DIV 78 * col1 + col1 FROM tab1
----
28
47
5

skipif mysql # not compatible
query I rowsort label-7003
SELECT col2 / 78 * col1 + col1 FROM tab1
----
28
47
5

query I rowsort
SELECT ALL 72 FROM tab2 cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col2 + - 75 AS col2, + col0 col0 FROM tab2 AS cor0
----
-1248
46
-3155
64
-3961
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7006
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( + 94 AS DECIMAL ) * + col2 * + + col1 + + - CAST( NULL AS SIGNED ) * 11 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7006
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( + 94 AS REAL ) * + col2 * + + col1 + + - CAST ( NULL AS INTEGER ) * 11 AND NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 AS col0 FROM tab2
----
2116
4096
5625

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( * ) + - - ( ( - SUM( col0 ) ) ) FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( * ) + - - ( ( - SUM ( col0 ) ) ) FROM tab1 AS cor0
----
-224

query I rowsort
SELECT DISTINCT + col1 + 45 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT ALL + 73 * + 4 + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
226
358
388

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

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

query I rowsort
SELECT - col0 * 90 + - 65 AS col2 FROM tab2
----
-4205
-5825
-6815

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE - 58 + - col1 - - + col1 * - + 3 BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE - 58 + - col1 - - + col1 * - + 3 BETWEEN NULL AND + col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT col2 * + col2 DIV - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT col2 * + col2 / - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT SUM( DISTINCT - + col0 ) * - 88 AS col1 FROM tab1 AS cor0
----
19976

skipif mysql # not compatible
query I rowsort label-7018
SELECT SUM ( DISTINCT - + col0 ) * - 88 AS col1 FROM tab1 AS cor0
----
19976

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL 1 / 88 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT ALL 27 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - 45 * + + ( 43 ) FROM tab0 AS cor0
----
-1935
-1935
-1935

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT MIN( + + col0 ) * + 28 * - + 97 FROM tab1 AS cor0
----
-138516

skipif mysql # not compatible
query I rowsort label-7028
SELECT MIN ( + + col0 ) * + 28 * - + 97 FROM tab1 AS cor0
----
-138516

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT + 43 * - 30 + - 30 DIV - - col0 FROM tab2 AS cor0
----
-1290
-1290
-1290

skipif mysql # not compatible
query I rowsort label-7030
SELECT + 43 * - 30 + - 30 / - - col0 FROM tab2 AS cor0
----
-1290
-1290
-1290

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT 62, - col2 - + + col1 DIV - 73 col0 FROM tab0
----
62
-10
62
-46
62
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7031
SELECT 62, - col2 - + + col1 / - 73 col0 FROM tab0
----
62
-10
62
-46
62
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT 83 DIV + MAX( ALL - + col1 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-7032
SELECT 83 / + MAX ( ALL - + col1 ) FROM tab1
----
-16

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

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

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

skipif mysql # not compatible
query II rowsort label-7034
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) + 45 * - - COUNT ( * ) AS col0 FROM tab2
----
3
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL 10 + 18 + - + 13 + + 65 * - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-5900

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 10 + 18 + - + 13 + + 65 * - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-5900

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col2 NOT BETWEEN + + col0 / - + col1 AND NULL
----

query I rowsort
SELECT + - 2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT MAX( ALL + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7039
SELECT MAX ( ALL + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - 17 + - 92 FROM tab0 AS cor0
----
-109

query I rowsort
SELECT + + 94 FROM tab2 AS cor0 WHERE ( 29 ) <> col1
----
94
94
94

query I rowsort
SELECT DISTINCT ( - 90 ) AS col0 FROM tab1 AS cor0 WHERE NOT 62 IS NULL
----
-90

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

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

query I rowsort
SELECT DISTINCT - col1 + 77 AS col2 FROM tab0 AS cor0
----
-4
56
76

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 61 + + 82 * + col1 + + col0 IS NULL
----

query I rowsort
SELECT 99 * - col2 AS col2 FROM tab0 AS cor0
----
-4653
-9801
-990

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

query I rowsort
SELECT ALL col1 + - col0 * - + col0 + - - 6 AS col0 FROM tab1 cor0
----
2621
7236
8334

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

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + + COUNT ( * ) + ( - + 51 ) AS col2 FROM tab1 cor0
----
-48

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

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

query I rowsort
SELECT DISTINCT - 54 - - 96 FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL col2 - + ( - 53 ) FROM tab0
----
100
152
63

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

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

query I rowsort
SELECT DISTINCT 86 * - 89 AS col0 FROM tab0
----
-7654

query I rowsort
SELECT ALL - col1 * - col0 * 7 AS col1 FROM tab0
----
12789
679
8505

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

query I rowsort
SELECT ALL 36 + col1 FROM tab1 cor0
----
41
50
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT + 12 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7060
SELECT + 12 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 64 * + col1, 26 * + + ( + + col1 ) / + col1 )
----

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

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

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

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

query I rowsort
SELECT ALL col2 * - + 69 AS col2 FROM tab1
----
-4071
-4692
-6624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7066
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 2 FROM tab1
----
NULL
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + + + 5 col1 FROM tab2
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - COUNT( * ) + 14 AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-7068
SELECT - COUNT ( * ) + 14 AS col0 FROM tab0
----
11

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

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

query I rowsort
SELECT - col0 + col2 * + - col0 + + col2 FROM tab2
----
-1081
-2584
-4367

query I rowsort
SELECT ALL + 6 * - 36 FROM tab2
----
-216
-216
-216

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col1 ) + col2 col2, col0 + + 84 FROM tab2 AS cor0
----
-28
130
-37
148
-9
159

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

query I rowsort
SELECT - + col2 * 17 * + col0 * - col2 FROM tab2 AS cor0
----
1740800
413678
4289100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 col0 FROM tab1
----
205379
314432
884736

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT SUM( ALL - 56 ) AS col1 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT SUM ( ALL - 56 ) AS col1 FROM tab2
----
-168

query I rowsort
SELECT ALL + 91 * + 45 FROM tab1 AS cor0
----
4095
4095
4095

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE 13 IS NOT NULL
----
10
47
99

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

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

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

query I rowsort
SELECT + ( + col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL - col1 + 90 AS col1 FROM tab2 AS cor0
----
13
23
39

query I rowsort
SELECT DISTINCT + - col0 - - 40 FROM tab1 AS cor0
----
-11
-45
-51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT + COUNT( * ) + - 88 DIV + 68 col2 FROM tab1, tab1 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7087
SELECT + COUNT ( * ) + - 88 / + 68 col2 FROM tab1, tab1 AS cor0
----
8

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT DISTINCT 88 * - CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1 WHERE - col1 = 68
----

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT 88 * - CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab1 WHERE - col1 = 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 52 BETWEEN 86 AND col0 * + col2 - + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + col2 * - col1 * - 24 AS col0, - 42 * + 48 FROM tab0 cor0
----
2376
-2016
5040
-2016
91368
-2016

query II rowsort
SELECT ALL - 27, + col2 + + 50 - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col1, col1 + - col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

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

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

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

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

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

query I rowsort
SELECT ALL 96 * - + ( + - col0 ) FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT SUM( DISTINCT 38 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-7103
SELECT SUM ( DISTINCT 38 ) FROM tab1
----
38

query I rowsort
SELECT DISTINCT - 96 * + 68 FROM tab0
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT SUM( - 77 ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-7105
SELECT SUM ( - 77 ) FROM tab1
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT ALL - 62 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - 62 / - - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT COUNT( * ) * + - 53 + - COUNT( * ) + - + COUNT( * ) col2 FROM tab0 AS cor0
----
-165

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

query I rowsort
SELECT DISTINCT 35 + + 87 AS col1 FROM tab2 AS cor0
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT DISTINCT col1 DIV - col2 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT col1 / - col2 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT + 81 * + + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT 48 / col0 * - ( - col1 ) + + col2 AS col0 FROM tab0 WHERE NOT + - 27 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7114
SELECT + col1 / - - col0 + - 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

query II rowsort
SELECT 55 - col0 * - col1, - col1 AS col1 FROM tab0 AS cor0
----
1270
-81
152
-1
1882
-21

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL MAX ( + - col0 ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
-46

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

query II rowsort
SELECT + 54 AS col0, - ( col1 ) + - col0 FROM tab2
----
54
-141
54
-142
54
-97

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7123
SELECT DISTINCT col1, 35 * + col2 + + 76 + - + col1 DIV + col1 + 27 FROM tab2
----
51
907
67
2132
77
1502

skipif mysql # not compatible
query II rowsort label-7123
SELECT DISTINCT col1, 35 * + col2 + + 76 + - + col1 / + col1 + 27 FROM tab2
----
51
907
67
2132
77
1502

query I rowsort
SELECT + col1 * - + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - + 78 FROM tab0 cor0
----
-78
-78
-78

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

query I rowsort
SELECT ALL - col1 * + col2 * col1 FROM tab2 cor0
----
-237160
-260362
-59823

query I rowsort
SELECT ALL col2 + + col1 * 52 AS col1 FROM tab1 AS cor0
----
2512
319
824

query I rowsort
SELECT DISTINCT + + col0 * - col0 + - - col1 AS col0 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT + + col1 + + 46 FROM tab0 AS cor0
----
127
47
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL + 76 + + 67 - - + SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + 76 + + 67 - - + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 col1, col1 * + + 54 col2 FROM tab1 AS cor0
----
-4896
756
-5015
270
-6188
2538

query I rowsort
SELECT col2 + + - col1 + 83 + - + 38 AS col2 FROM tab0
----
11
143
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - 11 + - COUNT( * ) AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 11 + - COUNT ( * ) AS col2 FROM tab2
----
-14

query I rowsort
SELECT 34 FROM tab2 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( col2 ) > + col0
----
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT + 44 + - 36 DIV + - col1 FROM tab0
----
44
45
80

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 44 + - 36 / + - col1 FROM tab0
----
44
45
80

query I rowsort
SELECT - 83 FROM tab2 WHERE NULL IS NULL
----
-83
-83
-83

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

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

query I rowsort
SELECT + + 62 - col1 FROM tab1 AS cor0
----
15
48
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT 2 DIV - 42 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT 2 / - 42 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT COUNT( * ) DIV 80 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT COUNT ( * ) / 80 AS col1 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL - col0 + + 89 FROM tab0
----
-8
2
74

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT 20 * col0 - col0 AS col2 FROM tab2
----
1216
1425
874

query I rowsort
SELECT - 19 * + 42 FROM tab1
----
-798
-798
-798

query I rowsort
SELECT + col1 * 20 AS col2 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT ALL - col0 * + 20 + ( col1 ) FROM tab0
----
-1719
-1939
-219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 * - col2 + + 4 )
----

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IN ( col0 + 20 )
----

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

query I rowsort
SELECT DISTINCT ( + 44 ) FROM tab1
----
44

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 36 * - ( 17 ) ) NOT BETWEEN ( col0 ) AND - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT DISTINCT + col2 DIV + col2 + 73 AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + col2 / + col2 + 73 AS col1 FROM tab2
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT MAX( ALL col0 ) + - 12 FROM tab1 WHERE col2 < ( + ( - 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT MAX ( ALL col0 ) + - 12 FROM tab1 WHERE col2 < ( + ( - 53 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 11 col0 FROM tab1
----
48
57
85

query I rowsort
SELECT - 39 + col1 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
12
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - SUM( + 52 ) FROM tab0 WHERE ( - 15 ) IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-7162
SELECT - SUM ( + 52 ) FROM tab0 WHERE ( - 15 ) IS NOT NULL
----
-156

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

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

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

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

query I rowsort
SELECT ALL + col2 * + 6 + 97 AS col2 FROM tab2
----
235
337
445

query I rowsort
SELECT 56 * + 31 FROM tab0 AS cor0
----
1736
1736
1736

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - + col2 + 82 AS col0 FROM tab1 AS cor0
----
-14
14
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 48 - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL + COUNT( * ) + 22 AS col1 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + COUNT ( * ) + 22 AS col1 FROM tab0 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + col2
----

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

query I rowsort
SELECT 0 FROM tab0 cor0 WHERE + col1 * - col2 BETWEEN ( 91 * + col1 ) AND col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col0 = NULL
----
0

query I rowsort
SELECT DISTINCT col1 * 18 + - 49 AS col0 FROM tab0 cor0
----
-31
1409
329

query I rowsort
SELECT ALL 8 FROM tab2 WHERE + ( + col2 ) / + 41 IS NOT NULL
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - MIN ( ALL - col2 ) AS col2 FROM tab1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + COUNT( * ) FROM tab2 WHERE ( - col2 ) IN ( col2 * col1 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT + COUNT ( * ) FROM tab2 WHERE ( - col2 ) IN ( col2 * col1 - col0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7182
SELECT + SUM( ALL - + 14 ) DIV - ( - 27 ) - MIN( DISTINCT - ( col0 ) ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7182
SELECT + SUM ( ALL - + 14 ) / - ( - 27 ) - MIN ( DISTINCT - ( col0 ) ) FROM tab0
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 36 * + col2 < 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT - MAX( - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - MAX ( - col0 ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT + - col2 + - - 53 FROM tab0 AS cor0
----
-46
43
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7186
SELECT - CAST( NULL AS DECIMAL ) + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT - CAST ( NULL AS REAL ) + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL 82 + 57 DIV col0 col1 FROM tab2 cor0
----
82
82
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7187
SELECT ALL 82 + 57 / col0 col1 FROM tab2 cor0
----
82
82
83

query I rowsort
SELECT ALL col2 - - ( - col2 ) * - col2 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - + col2 + - col2 + - col1 * + col1 AS col0 FROM tab2 cor0
----
-2647
-4605
-6009

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7190
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 55 FROM tab0, tab0 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

query I rowsort
SELECT DISTINCT + + col2 * + 6 FROM tab2 AS cor0
----
138
240
348

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

query I rowsort
SELECT ALL + col0 * + 82 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT ALL - col1 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT 55 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT 55 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7200
SELECT DISTINCT COUNT( * ) DIV 70 - + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT COUNT ( * ) / 70 - + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT - 65 DIV + - 84 * MAX( DISTINCT + col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 65 / + - 84 * MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - + 24 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 68
----

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

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

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

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

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

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

query I rowsort
SELECT ALL + - col1 * - 22 AS col1 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT + col2 * + 5 * - 75 FROM tab2 AS cor0
----
-15000
-21750
-8625

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7211
SELECT MIN( ALL - + col1 ) * + - 69 * + CAST( NULL AS DECIMAL ) + 76 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT MIN ( ALL - + col1 ) * + - 69 * + CAST ( NULL AS REAL ) + 76 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT - COUNT( * ) + + - AVG ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT - COUNT ( * ) + + - AVG ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 * - 45 AS col0 FROM tab2
----
-2295
-3015
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT COUNT( * ) * + 38 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT COUNT ( * ) * + 38 FROM tab2
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - MAX( ALL + col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7216
SELECT - MAX ( ALL + col2 ) col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT COUNT( * ) * + 25 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7217
SELECT COUNT ( * ) * + 25 AS col1 FROM tab0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab2
----
22
22
22

query I rowsort
SELECT ALL - + 28 * col0 + col0 FROM tab1 WHERE + col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT DISTINCT + + 42 DIV + MAX( 53 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT + + 42 / + MAX ( 53 ) FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + 0 * - SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT + 65 * + col2 AS col1 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT ALL 32 * - 97 FROM tab0
----
-3104
-3104
-3104

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

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
93

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

skipif mysql # not compatible
query II rowsort label-7227
SELECT + 91, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + 51 + + col1 FROM tab2 AS cor0
----
102
118
128

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT DISTINCT - CAST( col2 AS SIGNED ) - - col1 - + col2 * + col0 FROM tab0 AS cor0
----
-671
-859
-9701

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - - col1 - + col2 * + col0 FROM tab0 AS cor0
----
-671
-859
-9701

query I rowsort
SELECT ALL col0 + 18 AS col1 FROM tab1
----
103
109
69

query I rowsort
SELECT DISTINCT - 47 FROM tab0 WHERE col0 - col0 > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7238
SELECT DISTINCT + 69 + + 98 DIV + + MAX( - col2 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + 69 + + 98 / + + MAX ( - col2 ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT COUNT( * ) * 93 * - MIN( 94 ) + + 77 FROM tab1
----
-26149

skipif mysql # not compatible
query I rowsort label-7239
SELECT COUNT ( * ) * 93 * - MIN ( 94 ) + + 77 FROM tab1
----
-26149

query II rowsort
SELECT col0 AS col0, 9 * + 54 * - col1 * - 41 AS col0 FROM tab0
----
15
1614006
87
418446
97
19926

query II rowsort
SELECT DISTINCT 6 AS col2, 13 FROM tab1
----
6
13

query I rowsort
SELECT ALL - col2 * col2 * + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 65 FROM tab0 WHERE NOT - - 80 * col0 * + 17 + + 50 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - ( 22 ) * + col0 + + + col0 ) BETWEEN ( ( 51 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - 28 FROM tab2 cor0 WHERE NOT + col1 / + - 83 IS NOT NULL
----

query II rowsort
SELECT 67 AS col0, + 26 AS col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( - col1 )
----
67
26
67
26
67
26

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( + ( - col2 ) ) NOT BETWEEN - 34 AND - - 62 * - col2
----

query II rowsort
SELECT + 26, 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT DISTINCT + 97 DIV - ( - col0 ) FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT + 97 / - ( - col0 ) FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT ALL - 47 DIV 29 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 47 / 29 FROM tab0 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL + - 94 AS col0 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + ( + 21 ) * - col0 FROM tab1 AS cor0
----
-1071
-1785
-1911

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 30 NOT IN ( col0 )
----

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

query I rowsort
SELECT col1 * + 49 FROM tab2
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT COUNT( + 72 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT COUNT ( + 72 ) FROM tab1
----
3

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

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

query I rowsort
SELECT - ( + + 31 ) FROM tab1 WHERE NOT ( + col2 ) BETWEEN 2 - + col2 * + - col0 AND NULL
----
-31
-31
-31

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + - col0 <> - col1
----

query I rowsort
SELECT ( - 9 ) FROM tab0
----
-9
-9
-9

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 23 ) AND NULL
----

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

query I rowsort
SELECT ALL - + col1 + 88 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT - - 71 + - - COUNT( * ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - - 71 + - - COUNT ( * ) FROM tab0 AS cor0
----
74

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

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

query I rowsort
SELECT + col0 + - + col1 * + col0 FROM tab2 cor0
----
-2300
-4864
-4950

query I rowsort
SELECT + col2 FROM tab1 WHERE - + 22 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT - COUNT( - - 2 ) * + 35 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-315

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - COUNT ( - - 2 ) * + 35 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-315

query I rowsort
SELECT + - 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7277
SELECT * FROM tab1 WHERE ( - + CAST( NULL AS SIGNED ) / 21 * + col2 * + - 47 * + + 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7277
SELECT * FROM tab1 WHERE ( - + CAST ( NULL AS INTEGER ) / 21 * + col2 * + - 47 * + + 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT - + ( - ( + - SUM( ALL col2 ) ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7278
SELECT - + ( - ( + - SUM ( ALL col2 ) ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + - 21 FROM tab1 AS cor0
----
-106
-112
-72

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + - 21 FROM tab1 AS cor0
----
-106
-112
-72

query I rowsort
SELECT col1 * - - col0 - + 58 AS col1 FROM tab0 AS cor0
----
1157
1769
39

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 37 * - 16 - - col1 FROM tab2 AS cor0
----
-515
-525
-541

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7288
SELECT + 34 - MIN( + + col1 ), MAX( + - col2 ) AS col0 FROM tab2
----
-17
-23

skipif mysql # not compatible
query II rowsort label-7288
SELECT + 34 - MIN ( + + col1 ), MAX ( + - col2 ) AS col0 FROM tab2
----
-17
-23

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

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) - + - ( + + 41 ) FROM tab0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT - CAST( + - 51 AS SIGNED ) - + 63 FROM tab0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-7290
SELECT - CAST ( + - 51 AS INTEGER ) - + 63 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + 3 * - col2, col2 + 84 AS col1 FROM tab2
----
-120
124
-174
142
-69
107

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7298
SELECT DISTINCT + 94 AS col2, 56 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
94
53

skipif mysql # not compatible
query II rowsort label-7298
SELECT DISTINCT + 94 AS col2, 56 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT + 87 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + 87 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
261

query I rowsort
SELECT - col2 * - 32 * col1 AS col0 FROM tab2
----
124352
37536
98560

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( ( - 36 ) < ( NULL ) )
----

query II rowsort
SELECT DISTINCT 86 * + col0, + 68 AS col2 FROM tab0
----
1290
68
7482
68
8342
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 >= ( - - 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 61 col2, - 13 FROM tab1
----
108
-13
66
-13
75
-13

query I rowsort
SELECT + col2 * + col2 + col1 + 70 * + - col0 FROM tab1
----
-1699
-2464
5660

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

query I rowsort
SELECT ALL - 15 + + col0 * - col2 * - - col1 FROM tab1 AS cor0
----
-25090
-290851
-68559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 46 + + col1, + col0 * + + col1 * - 27 + col1 col0 FROM tab1 cor0
----
-32
-19264
-41
-11470
1
-115432

query I rowsort
SELECT ALL 93 * + 76 FROM tab0
----
7068
7068
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT COUNT( ALL + col2 ) * MAX( - col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-7310
SELECT COUNT ( ALL + col2 ) * MAX ( - col0 ) FROM tab2
----
-138

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) IN ( + + col0, 4 ) ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7314
SELECT - col1 * - col0 + + - col2 + CAST( - 55 AS SIGNED ) DIV + 74 FROM tab2 cor0
----
2323
4888
4967

skipif mysql # not compatible
query I rowsort label-7314
SELECT - col1 * - col0 + + - col2 + CAST ( - 55 AS INTEGER ) / + 74 FROM tab2 cor0
----
2323
4888
4967

query I rowsort
SELECT ALL + col0 + + + 57 * - + col0 * - col2 FROM tab0 AS cor0
----
40200
49677
547468

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

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

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

query I rowsort
SELECT DISTINCT col2 + - + 40 - - col1 + - - col1 * + 31 + - ( - col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 + - + col0 col2 FROM tab2
----
-21
-39
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT - CAST( NULL AS SIGNED ) * + MIN( + - 80 ) + - MIN( + col0 ) + + - 33 FROM tab0 AS cor0 WHERE NOT + 32 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( + - 80 ) + - MIN ( + col0 ) + + - 33 FROM tab0 AS cor0 WHERE NOT + 32 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - SUM( ALL - + col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7323
SELECT - SUM ( ALL - + col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT - COUNT( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT - COUNT ( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-1

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

query I rowsort
SELECT col0 * - - col0 * - - col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
132600
614040
753480

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

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

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

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

query I rowsort
SELECT 20 AS col1 FROM tab1 cor0
----
20
20
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, 11 * - col1 FROM tab1 AS cor0
----
-64
-154
-64
-517
-64
-55

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7335
SELECT ALL + - col0 * - - 97 - - col0, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1440
NULL
-8352
NULL
-9312
NULL

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL + - col0 * - - 97 - - col0, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1440
NULL
-8352
NULL
-9312
NULL

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

skipif mysql # not compatible
query I rowsort label-7336
SELECT COUNT ( - - col1 ) AS col1 FROM tab0 cor0 WHERE NOT NULL > col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - col0 ) col2 FROM tab1 cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + col2 col1 FROM tab0 AS cor0 WHERE NOT NULL = ( - + col2 ) + - col0
----

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

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

query I rowsort
SELECT - 29 * - 70 AS col1 FROM tab2
----
2030
2030
2030

query I rowsort
SELECT DISTINCT + - 83 FROM tab1 WHERE NOT + 36 + - col1 IS NULL
----
-83

query I rowsort
SELECT DISTINCT + 97 * + 74 * + 45 FROM tab2
----
323010

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT ALL - col0 * + - col0 + col2 + - col2 * - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
2668
5736
9047

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - col0 * + - col0 + col2 + - col2 * - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
2668
5736
9047

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN + ( col2 ) AND ( 94 - - 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT col0 * - ( - - col2 ) * col1 DIV - col2 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7348
SELECT col0 * - ( - - col2 ) * col1 / - col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - - 41 AS col2 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT 0 * + col2 + + ( col1 ) - - 81 FROM tab0 AS cor0
----
102
162
82

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

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

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - + ( + 90 ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT + 42 - - col2 AS col2 FROM tab0
----
141
52
89

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

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( 40, + 55 * + col1, + 76, - col1 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT ALL 87 DIV - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL 87 / - col2 FROM tab0
----
-1
-8
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT COUNT( * ) DIV - + 18 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT COUNT ( * ) / - + 18 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + + 89 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + + 89 ) IS NOT NULL
----
0

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

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

query I rowsort
SELECT ALL - col2 * - 67 FROM tab1 AS cor0
----
3953
4556
6432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT MAX( - - col0 ) + - + COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT MAX ( - - col0 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col2 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + 52 + + - col2 AS col1 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT ALL - + col1 + - ( + - col0 ) FROM tab1 AS cor0
----
37
44
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT 2 + - - col2 + - 55 DIV + + 13 FROM tab2
----
21
38
56

skipif mysql # not compatible
query I rowsort label-7370
SELECT 2 + - - col2 + - 55 / + + 13 FROM tab2
----
21
38
56

query I rowsort
SELECT 42 * col1 + - - 49 AS col0 FROM tab1
----
2023
259
637

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + - 2 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL + 15 + - + MAX( ALL - + 89 ) FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + 15 + - + MAX ( ALL - + 89 ) FROM tab1
----
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE - ( + 18 ) BETWEEN - col1 AND - col2
----

query II rowsort
SELECT - col0 AS col2, - ( 48 ) FROM tab2 AS cor0
----
-46
-48
-64
-48
-75
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col1 NOT IN ( - col0, 47, + - 81, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT MIN( - 79 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-79

skipif mysql # not compatible
query I rowsort label-7380
SELECT MIN ( - 79 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-79

query I rowsort
SELECT + 91 - + col2 * col1 FROM tab2 WHERE ( + 81 ) IS NOT NULL AND NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT COUNT ( * ) * + + 79 FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7383
SELECT DISTINCT + 96 * CAST( NULL AS SIGNED ), col1 AS col1, + ( + col0 ) AS col2 FROM tab1
----
9 values hashing to d1f9778708a50c7bb0d5b48d4e7a234d

skipif mysql # not compatible
query III rowsort label-7383
SELECT DISTINCT + 96 * CAST ( NULL AS INTEGER ), col1 AS col1, + ( + col0 ) AS col2 FROM tab1
----
9 values hashing to d1f9778708a50c7bb0d5b48d4e7a234d

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ( - + col1 ) DIV - - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7384
SELECT ( - + col1 ) / - - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT + col0, + 83 * + col2 + + col0, col2 FROM tab2
----
9 values hashing to 26ca8285b8d28919d4c54f71f23d980b

query I rowsort
SELECT ALL 26 * - - col0 + + 88 AS col0 FROM tab2
----
1284
1752
2038

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7388
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 97 AND - + col1 * + CAST( NULL AS DECIMAL ) + col0 + 0 * + 21 * col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7388
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 97 AND - + col1 * + CAST ( NULL AS REAL ) + col0 + 0 * + 21 * col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT + col0 * 7 AS col2 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT ALL - - col0 * - col2 + + col2 + - col0 FROM tab0 AS cor0
----
-673
-947
-9601

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT 5 + - - 19 + MAX( DISTINCT + 20 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT 5 + - - 19 + MAX ( DISTINCT + 20 ) FROM tab0 AS cor0
----
44

query II rowsort
SELECT ALL + + 30, + 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT - col2 * - 55 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
3245
3740
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT CAST( - col2 AS SIGNED ) + - 61 + + 83 * + ( - col2 ) * - 53 + + + col1 + + + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
101195
176013
255157

skipif mysql # not compatible
query I rowsort label-7398
SELECT CAST ( - col2 AS INTEGER ) + - 61 + + 83 * + ( - col2 ) * - 53 + + + col1 + + + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
101195
176013
255157

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + - 99 col1 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL - - 90 FROM tab2, tab2 AS cor0 WHERE NOT 50 BETWEEN + 65 AND NULL
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

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

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

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab0
----
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col0 + - col1 BETWEEN ( col1 ) AND col0 * + - 36 - col0 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + MIN( - col0 ) - + 71 FROM tab2
----
-146

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + MIN ( - col0 ) - + 71 FROM tab2
----
-146

query I rowsort
SELECT DISTINCT - col2 * 51 AS col1 FROM tab1 AS cor0
----
-3009
-3468
-4896

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col0 > - + 49 * + col0
----

query I rowsort
SELECT - - 29 * 11 AS col1 FROM tab1 AS cor0
----
319
319
319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - - col1 * - col2 col0 FROM tab0 AS cor0
----
-1683
-3570
-64719

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + - 53 >= - 75
----
91
47
68

query I rowsort
SELECT - 87 * - - 24 FROM tab2 AS cor0
----
-2088
-2088
-2088

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7414
SELECT ALL - col0 / + 87 col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + - 58 - + col1 AS col0 FROM tab2 WHERE + 30 <= + - col2 * - ( + - 8 )
----

query II rowsort
SELECT col1 AS col0, 5 + + + col1 AS col1 FROM tab0
----
1
6
21
26
81
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7419
SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-7419
SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
82
NULL
82
NULL
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT 95 * COUNT( * ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT 95 * COUNT ( * ) FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL + MAX( + + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + MAX ( + + col0 ) AS col1 FROM tab0
----
97

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT - COUNT( * ) DIV - - 2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - COUNT ( * ) / - - 2 AS col1 FROM tab1 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT - MIN( ALL - col2 ) * + 38 + + 32 AS col2 FROM tab2
----
2236

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - MIN ( ALL - col2 ) * + 38 + + 32 AS col2 FROM tab2
----
2236

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 + - 80 - - col2, 4 col0 FROM tab2 AS cor0
----
-34
4
0
4
36
4

query I rowsort
SELECT - 29 * - - 67 AS col2 FROM tab1 AS cor0 WHERE 74 IN ( - 86 * + col1, - col2 )
----

query I rowsort
SELECT ALL 89 + + - col0 AS col1 FROM tab1 AS cor0
----
-2
38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - ( SUM( DISTINCT col2 ) ) FROM tab2 AS cor0 WHERE col2 / - 16 IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-7434
SELECT - ( SUM ( DISTINCT col2 ) ) FROM tab2 AS cor0 WHERE col2 / - 16 IS NOT NULL
----
-121

query I rowsort
SELECT ALL ( col1 ) + + col0 + col1 + + 50 * col2 AS col0 FROM tab1 cor0
----
3045
3585
4879

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7437
SELECT + 40 + MIN( + col2 ), COUNT( * ) / CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7437
SELECT + 40 + MIN ( + col2 ), COUNT ( * ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0
----
50
NULL

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

query I rowsort
SELECT DISTINCT 22 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - - COUNT( * ) * 53 - + 46 * - + COUNT( * ) + - ( COUNT( * ) ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-7440
SELECT - - COUNT ( * ) * 53 - + 46 * - + COUNT ( * ) + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
294

query I rowsort
SELECT DISTINCT + 43 - - col2 FROM tab1 AS cor0
----
102
111
139

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 < + 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 80 FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL - 8 AS col0 FROM tab2 AS cor0
----
-8
-8
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ( + ( - 12 ) ) * - - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7448
SELECT ( + ( - 12 ) ) * - - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-39

query I rowsort
SELECT + 66 * - col2 + + col1 + ( - col1 ) * 27 * - col1 * - col2 * - + col0 + 26 FROM tab2 AS cor0
----
409809943
527229315
74298725

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

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

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

query I rowsort
SELECT col2 * 83 AS col2 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - COUNT( * ) * - - 13 AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - COUNT ( * ) * - - 13 AS col0 FROM tab1
----
-39

query I rowsort
SELECT ALL - col0 * + 25 AS col2 FROM tab2
----
-1150
-1600
-1875

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT ALL - CAST( + SUM( DISTINCT + - col1 ) AS SIGNED ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - CAST ( + SUM ( DISTINCT + - col1 ) AS INTEGER ) AS col2 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + - col0 * + ( - + 16 ) FROM tab0 AS cor0
----
1392
1552
240

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * - col1 NOT BETWEEN 24 AND NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE + + 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + - col2 col2 FROM tab0 cor0
----
-49
3
40

query I rowsort
SELECT ALL - - 48 AS col0 FROM tab2 AS cor0 WHERE + 92 + - + col0 IS NULL
----

query I rowsort
SELECT ALL - 56 + - col2 AS col2 FROM tab1 AS cor0
----
-115
-124
-152

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

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT COUNT ( * ) + 0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7465
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT + 50 - - col2 FROM tab0
----
149
60
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7467
SELECT DISTINCT CAST( - 82 AS SIGNED ) DIV - ( + 72 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT CAST ( - 82 AS INTEGER ) / - ( + 72 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT - 43 * + + col0 + 10 DIV - col0 * - 15 + - + 7 FROM tab0
----
-3748
-4178
-652

skipif mysql # not compatible
query I rowsort label-7468
SELECT - 43 * + + col0 + 10 / - col0 * - 15 + - + 7 FROM tab0
----
-3748
-4178
-652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 + + 62 col0, 6 * - col2 AS col1 FROM tab1 AS cor0
----
15
-408
48
-576
57
-354

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

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

query II rowsort
SELECT ( 34 ) AS col2, + col1 * + col2 FROM tab0 AS cor0
----
34
210
34
3807
34
99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7473
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 12 IN ( - col1, 20 * + CAST( - col1 AS DECIMAL ) * - 35 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-7473
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 12 IN ( - col1, 20 * + CAST ( - col1 AS REAL ) * - 35 * + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-7474
SELECT - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 35 + - col2 * - + 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 35 + - col2 * - + 88 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT 28 * - - COUNT( * ) * COUNT( * ) + 20 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
312

skipif mysql # not compatible
query I rowsort label-7476
SELECT 28 * - - COUNT ( * ) * COUNT ( * ) + 20 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
312

query I rowsort
SELECT 74 * col0 + col2 AS col0 FROM tab2 AS cor0
----
3427
4776
5608

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL + MIN( - 52 ) FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + MIN ( - 52 ) FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= col2 / + 92 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + ( + col2 ) col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT - col2 * 28 AS col2 FROM tab2
----
-1120
-1624
-644

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7483
SELECT ALL * FROM tab1 WHERE 84 + + col0 / col2 > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7483
SELECT ALL * FROM tab1 WHERE 84 + + col0 / col2 > - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT col1 * + CAST( + + 37 AS SIGNED ) col1 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7484
SELECT col1 * + CAST ( + + 37 AS INTEGER ) col1 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab1
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT 23 AS col0, - COUNT( * ) AS col1 FROM tab0
----
23
-3

skipif mysql # not compatible
query II rowsort label-7487
SELECT 23 AS col0, - COUNT ( * ) AS col1 FROM tab0
----
23
-3

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT - CAST( NULL AS SIGNED ) * - col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT - CAST ( NULL AS INTEGER ) * - col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT - col0 AS col2, + col2 + + - col0 FROM tab0 AS cor0
----
-15
32
-87
-77
-97
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ALL 64 DIV 60 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 64 / 60 AS col0 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - + 69, col2 FROM tab2 AS cor0
----
-69
23
-69
40
-69
58

query I rowsort
SELECT - + 48 + - col0 FROM tab1 WHERE NOT col0 * + + 44 IS NULL
----
-133
-139
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) = NULL
----

query I rowsort
SELECT ALL col2 * - col1 - + + col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL CAST( NULL AS SIGNED ) / + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7498
SELECT ALL CAST ( NULL AS INTEGER ) / + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 53 ) * col0 - + col1 - col1 FROM tab1 WHERE NOT + + col1 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL - SUM( ALL col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL - SUM ( ALL col0 ) AS col0 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 9 col2 FROM tab1
----
14
9
47
9
5
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7502
SELECT col2 + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-7502
SELECT col2 + + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT col1 AS col0, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT ALL col0, 55 - + + 1 FROM tab0
----
15
54
87
54
97
54

query I rowsort
SELECT ALL - + 89 + col1 * - - ( + + col2 ) FROM tab2 AS cor0
----
1084
2991
3797

onlyif mysql # DIV for integer division: 
query II rowsort label-7506
SELECT ALL col2 DIV col0 + col0, - 15 * - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
46
31740
64
61440
75
84375

skipif mysql # not compatible
query II rowsort label-7506
SELECT ALL col2 / col0 + col0, - 15 * - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
46
31740
64
61440
75
84375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * - 77 + col1 + col2 col2, - col1 + - 38 col1 FROM tab1 AS cor0
----
1188
-52
3734
-85
449
-43

query I rowsort
SELECT ALL - col0 * 47 AS col2 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT 60 + col0 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT ALL + - 13 + - col0 FROM tab2 AS cor0
----
-59
-77
-88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - - 54 IS NOT NULL
----

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT ALL CAST( NULL AS SIGNED ) - + - 97 + - 12 - + 87 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL CAST ( NULL AS INTEGER ) - + - 97 + - 12 - + 87 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 / 60 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL + - SUM( ALL 98 ) AS col0 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + - SUM ( ALL 98 ) AS col0 FROM tab0 AS cor0
----
-294

query I rowsort
SELECT - col1 * + - 3 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT ALL 63 * - col1 + - + 39 AS col0 FROM tab1 AS cor0
----
-3000
-354
-921

query I rowsort
SELECT DISTINCT + 17 + + - col2 AS col0 FROM tab0 AS cor0
----
-30
-82
7

query II rowsort
SELECT 23 AS col2, + 61 FROM tab2
----
23
61
23
61
23
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 * + 17, 48 col2 FROM tab2
----
17986
48
43520
48
73950
48

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + 31 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + + MAX( ALL + 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7524
SELECT + + MAX ( ALL + 4 ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----
0

query I rowsort
SELECT + + col2 * + 58 AS col0 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT DISTINCT 71 * + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT 71 * + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 76 AS col1, ( + - col2 ) + - col1 + - col1 + + 27 AS col1 FROM tab1
----
-76
-135
-76
-42
-76
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 26 IS NULL
----

query I rowsort
SELECT ALL + ( - - 74 ) * col1 + - - col2 + 51 FROM tab2 AS cor0
----
3848
5067
5789

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - CAST( NULL AS DECIMAL ) AND col2 * + col2
----

skipif mysql # not compatible
query III rowsort label-7531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - CAST ( NULL AS REAL ) AND col2 * + col2
----

query I rowsort
SELECT DISTINCT - col0 + 58 AS col2 FROM tab1 AS cor0
----
-27
-33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL - + MIN( - 41 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - + MIN ( - 41 ) FROM tab0 AS cor0
----
41

query II rowsort
SELECT DISTINCT + - col0 AS col1, - 63 FROM tab2 AS cor0
----
-46
-63
-64
-63
-75
-63

query I rowsort
SELECT ALL + + 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + col2 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT ALL + 3 DIV col2 DIV - col2 * - col1 * 97 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7537
SELECT ALL + 3 / col2 / - col2 * - col1 * 97 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT CAST( + + MIN( DISTINCT col1 ) AS SIGNED ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT CAST ( + + MIN ( DISTINCT col1 ) AS INTEGER ) AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST( NULL AS SIGNED ) + - col1 BETWEEN NULL AND - 89
----

skipif mysql # not compatible
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST ( NULL AS INTEGER ) + - col1 BETWEEN NULL AND - 89
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT SUM( col1 ) + - 65 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7541
SELECT SUM ( col1 ) + - 65 AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT - col2 DIV + col2 + + + col1 col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT - col2 / + col2 + + + col1 col2 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL 31 * - - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 2 BETWEEN col2 AND NULL
----
96

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 31 * - - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 2 BETWEEN col2 AND NULL
----
96

query I rowsort
SELECT ALL 23 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
1224
2040
2184

query I rowsort
SELECT - 75 * + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - - MAX( - - 43 ) AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - - MAX ( - - 43 ) AS col2 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7547
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7547
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - 22 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - 22 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab1 cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT ALL - col2 + - - col2 + col1 DIV + - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - col2 + - - col2 + col1 / + - col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( col1 ) + + + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + 84 * + col2 FROM tab1 AS cor0
----
4956
5712
8064

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 60 IN ( + - 54, - 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT - - 20 DIV + + 3 + + col2 FROM tab2 AS cor0
----
29
46
64

skipif mysql # not compatible
query I rowsort label-7557
SELECT - - 20 / + + 3 + + col2 FROM tab2 AS cor0
----
29
46
64

query I rowsort
SELECT DISTINCT - col0 * - col0 * - col1 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT + MAX( - - ( - + 60 ) ), COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-60
9

skipif mysql # not compatible
query II rowsort label-7559
SELECT + MAX ( - - ( - + 60 ) ), COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-60
9

query I rowsort
SELECT col0 * - - 10 + - col1 FROM tab0 AS cor0
----
69
849
969

query I rowsort
SELECT DISTINCT + 75 * + col2 - - 93 AS col0 FROM tab0 AS cor0
----
3618
7518
843

query I rowsort
SELECT ALL - - 51 + - col0 FROM tab1 AS cor0
----
-34
-40
0

query I rowsort
SELECT + + 36 * - + col2 + - + col1 AS col1 FROM tab0 cor0
----
-1773
-3565
-381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL CAST( + AVG ( ALL + col1 ) AS SIGNED ) * 13 col0 FROM tab0 AS cor0
----
442

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7564
SELECT ALL CAST ( + AVG ( ALL + col1 ) AS INTEGER ) * 13 col0 FROM tab0 AS cor0
----
442

query I rowsort
SELECT 5 * - + 33 * - - ( - col2 ) FROM tab1
----
11220
15840
9735

query I rowsort
SELECT DISTINCT col0 * 28 * + + 70 AS col2 FROM tab1
----
166600
178360
99960

query II rowsort
SELECT 43, 78 AS col0 FROM tab2
----
43
78
43
78
43
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT - COUNT( * ) DIV + 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT - COUNT ( * ) / + 70 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT DISTINCT col0 DIV 96 * + col0 FROM tab0
----
0
97

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT col0 / 96 * + col0 FROM tab0
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT MIN( col2 ) + - - 65 AS col1 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-7570
SELECT MIN ( col2 ) + - - 65 AS col1 FROM tab1
----
124

query II rowsort
SELECT col0 + + 81 + + - 16 * col1 * + 48 + + col1 AS col2, 66 FROM tab2 AS cor0
----
-38990
66
-51233
66
-58914
66

query II rowsort
SELECT ALL col1 - - + 86 + + col0 - col0 AS col2, ( 12 ) - - 27 + col0 AS col2 FROM tab1 AS cor0
----
100
90
133
130
91
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT + CAST( NULL AS SIGNED ) + + SUM( DISTINCT 23 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 23 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT - + 91 + + col1 <> + + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT DISTINCT 79 - 48 DIV col0 FROM tab0
----
76
79

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 79 - 48 / col0 FROM tab0
----
76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT MIN( ALL 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-7576
SELECT MIN ( ALL 71 ) FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + COUNT( * ) - + COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7577
SELECT + COUNT ( * ) - + COUNT ( * ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT - MAX( ALL - col2 ) - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-7578
SELECT - MAX ( ALL - col2 ) - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT COUNT( * ) * - COUNT( * ) - - COUNT( * ) - - + COUNT( * ) * + 42 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7579
SELECT COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) - - + COUNT ( * ) * + 42 FROM tab1 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL + MAX( - - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + MAX ( - - col2 ) FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT CAST( + col0 AS SIGNED ) * col1 * + ( + col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT CAST ( + col0 AS INTEGER ) * col1 * + ( + col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + SUM( ALL + - 54 ) AS col2 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + SUM ( ALL + - 54 ) AS col2 FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT ALL 71, COUNT( * ) AS col0 FROM tab2
----
71
3

skipif mysql # not compatible
query II rowsort label-7584
SELECT ALL 71, COUNT ( * ) AS col0 FROM tab2
----
71
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7585
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( col2 ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7585
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( col2 ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query II rowsort
SELECT - col1 * - - col0 * - - 4, + col0 FROM tab1 AS cor0
----
-1700
85
-17108
91
-2856
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col1, + 43 * + 55 col0 FROM tab2 AS cor0
----
46
2365
64
2365
75
2365

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 74 + - col2 / + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL - + COUNT( ALL + - ( col2 ) ) AS col1, MIN( ALL - + 49 ) - + + MAX( - 87 ) AS col0 FROM tab1 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL - + COUNT ( ALL + - ( col2 ) ) AS col1, MIN ( ALL - + 49 ) - + + MAX ( - 87 ) AS col0 FROM tab1 AS cor0
----
-3
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab0 AS cor0 WHERE NOT + 4 IS NULL
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT 25 + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT 25 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + COUNT( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 80 * + col2 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT COUNT( * ) + - 92 AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7595
SELECT COUNT ( * ) + - 92 AS col0 FROM tab2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + + 49 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + + 49 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT + COUNT( * ) FROM tab1 WHERE NOT 56 = + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7597
SELECT + COUNT ( * ) FROM tab1 WHERE NOT 56 = + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL ( - 76 ) FROM tab2
----
-76
-76
-76

query I rowsort
SELECT - 96 - col0 AS col2 FROM tab1
----
-147
-181
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT COUNT( * ) FROM tab0 WHERE - col1 IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT COUNT ( * ) FROM tab0 WHERE - col1 IN ( + col2 )
----
0

query I rowsort
SELECT ALL + col2 / - col2 AS col2 FROM tab0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL - 64 * SUM( col2 ) FROM tab0 WHERE NULL BETWEEN ( ( 28 ) ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - 64 * SUM ( col2 ) FROM tab0 WHERE NULL BETWEEN ( ( 28 ) ) AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7606
SELECT ALL * FROM tab2 WHERE ( col1 * - col1 ) BETWEEN ( NULL ) AND + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7606
SELECT ALL * FROM tab2 WHERE ( col1 * - col1 ) BETWEEN ( NULL ) AND + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT 19 + col0 DIV col1 col1 FROM tab1
----
20
22
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7607
SELECT DISTINCT 19 + col0 / col1 col1 FROM tab1
----
20
22
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT SUM( DISTINCT 38 ) - 83 AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7608
SELECT SUM ( DISTINCT 38 ) - 83 AS col2 FROM tab2
----
-45

query I rowsort
SELECT ALL - ( - 24 ) + 95 AS col1 FROM tab2
----
119
119
119

query I rowsort
SELECT - 3 * + col1 AS col2 FROM tab2
----
-153
-201
-231

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 30 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - MAX( - 73 ) - + 90 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-7612
SELECT - MAX ( - 73 ) - + 90 FROM tab1
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 * - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 76 FROM tab1 WHERE - 30 IS NOT NULL
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT col1 * CAST( col2 * - col0 AS SIGNED ) FROM tab0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-7617
SELECT col1 * CAST ( col2 * - col0 AS INTEGER ) FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + col1 FROM tab1 WHERE - col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 AS col2 FROM tab0 WHERE NOT col1 IN ( + col2 * 59 + - col1 )
----
-420
-6480
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col1 FROM tab1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 >= ( NULL )
----

query I rowsort
SELECT ALL - 90 * - 88 + col0 FROM tab0 AS cor0
----
7935
8007
8017

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + MAX( DISTINCT 17 ) * + 64 - 68 FROM tab0 AS cor0
----
1020

skipif mysql # not compatible
query I rowsort label-7627
SELECT + MAX ( DISTINCT 17 ) * + 64 - 68 FROM tab0 AS cor0
----
1020

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 43 - col1 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT DISTINCT + 83 FROM tab0 AS cor0 CROSS JOIN tab2
----
83

query I rowsort
SELECT DISTINCT + col2 - col0 * col1 AS col0 FROM tab0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL + MAX( - col2 ) - - COUNT( * ) col1 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7632
SELECT ALL + MAX ( - col2 ) - - COUNT ( * ) col1 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - SUM( ( - 70 ) ) AS col2 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - SUM ( ( - 70 ) ) AS col2 FROM tab1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 3 - COUNT( - 54 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7634
SELECT 3 - COUNT ( - 54 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-6

query I rowsort
SELECT + - 73 FROM tab1 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + - COUNT( + 19 ) * 74 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-7636
SELECT + - COUNT ( + 19 ) * 74 FROM tab0 AS cor0
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - - 23 AS col2 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT 24 DIV - COUNT( * ) FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7639
SELECT 24 / - COUNT ( * ) FROM tab2 cor0
----
-8

query I rowsort
SELECT - - 25 * 0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT 59 DIV - 55 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7641
SELECT 59 / - 55 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT ( col1 ) + ( + 52 ) col0 FROM tab1 AS cor0 WHERE NOT + CAST( + 87 AS SIGNED ) BETWEEN ( col2 ) AND col0
----
57
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7642
SELECT DISTINCT ( col1 ) + ( + 52 ) col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + 87 AS INTEGER ) BETWEEN ( col2 ) AND col0
----
57
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7643
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 96 * + col0 FROM tab0 AS cor0
----
1440
8352
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL - - 96 DIV 5 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - - 96 / 5 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT + 72 + - 27 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab0 WHERE NOT ( - col0 ) BETWEEN col0 AND + 47
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 71 col0 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 14 ) * - col1 col2 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - MIN( - - col2 ) * 2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7650
SELECT - MIN ( - - col2 ) * 2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 BETWEEN - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - ( - 61 )
----

query I rowsort
SELECT + 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 * 85 ) NOT BETWEEN ( 11 + - 74 ) AND ( 49 / - ( - 20 ) )
----

query I rowsort
SELECT + 93 FROM tab1 WHERE NOT ( + + ( - 82 ) * col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + + + 87 col1 FROM tab0
----
154
154
154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 92 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT + - 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-7659
SELECT + - COUNT ( + col2 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT DISTINCT 87 * col2 + + 95 + col0 DIV col0 FROM tab2 AS cor0
----
2097
3576
5142

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT 87 * col2 + + 95 + col0 / col0 FROM tab2 AS cor0
----
2097
3576
5142

query I rowsort
SELECT DISTINCT col1 + - 96 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT + ( + 84 ) FROM tab1 AS cor0 WHERE - ( - col1 ) NOT IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT ALL ( + 46 ) DIV + col1 + - ( - col1 ) * 16 FROM tab0 AS cor0
----
1296
338
62

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL ( + 46 ) / + col1 + - ( - col1 ) * 16 FROM tab0 AS cor0
----
1296
338
62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 + + col1 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 58 + - 17 - 52 FROM tab0 AS cor0
----
2657
511
5673

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) NOT BETWEEN NULL AND - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + 64 + + - 1 + + - 60 * col1 FROM tab2
----
-6005
-8717
-8821

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + 78 + + ( COUNT( * ) ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + 78 + + ( COUNT ( * ) ) FROM tab1
----
81

query I rowsort
SELECT - col2 * col0 + col2 + col0 + - col0 * col0 + - col1 AS col0 FROM tab2 cor0
----
-3156
-6629
-9909

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 51 > ( - col2 )
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + 98 * + col1 * 27 + - col1 * - 45 BETWEEN ( NULL ) AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( col0 NOT BETWEEN NULL AND col0 + col2 ) )
----

query I rowsort
SELECT 80 AS col0 FROM tab2 AS cor0 WHERE ( + col2 * col2 ) > + col0 - col0
----
80
80
80

query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 27 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT COUNT( ALL col2 ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7676
SELECT COUNT ( ALL col2 ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7678
SELECT ALL * FROM tab0 WHERE 53 * col1 + - col1 + CAST( NULL AS SIGNED ) + 9 IN ( 83 * col2 )
----

skipif mysql # not compatible
query III rowsort label-7678
SELECT ALL * FROM tab0 WHERE 53 * col1 + - col1 + CAST ( NULL AS INTEGER ) + 9 IN ( 83 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + + 63 * + COUNT( * ) AS col1 FROM tab0 WHERE - 43 + + 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT + + 63 * + COUNT ( * ) AS col1 FROM tab0 WHERE - 43 + + 24 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - SUM( ALL 11 ) / AVG ( ALL - 14 + col1 ) AS col0 FROM tab2 WHERE NULL NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - SUM ( ALL 11 ) / AVG ( ALL - 14 + col1 ) AS col0 FROM tab2 WHERE NULL NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + COUNT( - 81 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7681
SELECT + COUNT ( - 81 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - col2 / col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 73 AS col2 FROM tab0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT + COUNT( * ) * + MIN( - CAST( NULL AS SIGNED ) ) * + COUNT( 80 ) / - SUM( DISTINCT 89 ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7684
SELECT + COUNT ( * ) * + MIN ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( 80 ) / - SUM ( DISTINCT 89 ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * col0 * - col2 * + - col1 FROM tab2 AS cor0
----
12615680
21858750
2482068

query I rowsort
SELECT DISTINCT - - 18 AS col2 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT DISTINCT 29 col1, - ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
29
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7687
SELECT DISTINCT 29 col1, - ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
29
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 + - col1 / + 65 ) NOT IN ( 80 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 NOT IN ( + col1 * - 73 + + 70 )
----

query I rowsort
SELECT - col2 + + col2 * - col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 BETWEEN NULL AND - col2 + - col1
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL + + MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + + MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + ( + + 14 ) * + + COUNT( * ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-7692
SELECT + ( + + 14 ) * + + COUNT ( * ) AS col1 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7693
SELECT + CAST( NULL AS SIGNED ) col1, 19 FROM tab2
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7693
SELECT + CAST ( NULL AS INTEGER ) col1, 19 FROM tab2
----
NULL
19
NULL
19
NULL
19

query I rowsort
SELECT + 38 * + - col1 AS col1 FROM tab0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL COUNT( * ) * + + 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL COUNT ( * ) * + + 65 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT SUM( - 48 ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7697
SELECT SUM ( - 48 ) FROM tab2 AS cor0
----
-144

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IN ( col1 - + - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT - + 17 + 3 * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - + 17 + 3 * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7702
SELECT DISTINCT col2 / - 3 * + col1 * + 72 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT col2 / - 3 * + col1 * + 72 + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) * col1 BETWEEN ( + - col0 ) AND 97 * - 29
----

query I rowsort
SELECT ALL - col2 + + + 92 FROM tab0 cor0
----
-7
45
82

query I rowsort
SELECT ALL - 68 + + - col1 FROM tab0 cor0
----
-149
-69
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT + + 69 + + - MAX( - + col2 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + + 69 + + - MAX ( - + col2 ) FROM tab2 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-7707
SELECT - 0 + - + col2 * col2 col0, col0 DIV col0 FROM tab0 AS cor0
----
-100
1
-2209
1
-9801
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7707
SELECT - 0 + - + col2 * col2 col0, col0 / col0 FROM tab0 AS cor0
----
-100
1
-2209
1
-9801
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 70 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7709
SELECT col0 * - 89 + + + col2 DIV - col2 + + - CAST( - - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-4118
-5737
-6734

skipif mysql # not compatible
query I rowsort label-7709
SELECT col0 * - 89 + + + col2 / - col2 + + - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-4118
-5737
-6734

query I rowsort
SELECT - 95 * - + col1 FROM tab1
----
1330
4465
475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col1 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 22 > 85 * + + col0 / + col2 - - + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - MAX( ALL - 48 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7713
SELECT - MAX ( ALL - 48 ) AS col1 FROM tab2
----
48

query I rowsort
SELECT DISTINCT + 0 - - col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT DISTINCT * FROM tab1 WHERE 67 IS NULL OR 75 IN ( 1 * + + CAST( NULL AS SIGNED ) * + 1 )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT DISTINCT * FROM tab1 WHERE 67 IS NULL OR 75 IN ( 1 * + + CAST ( NULL AS INTEGER ) * + 1 )
----

query I rowsort
SELECT ALL 10 * + - 29 AS col0 FROM tab0
----
-290
-290
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col2 FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7719
SELECT ALL 58 + 90 * + col1 col1, - CAST( + - ( + col1 ) AS SIGNED ) * - 82 + - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
148
-83
1948
-1743
7348
-6723

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7719
SELECT ALL 58 + 90 * + col1 col1, - CAST ( + - ( + col1 ) AS INTEGER ) * - 82 + - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
148
-83
1948
-1743
7348
-6723

query I rowsort
SELECT - - 98 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL + ( - 63 ) * - + COUNT( * ) - - + COUNT( * ) col0 FROM tab0, tab0 AS cor0
----
576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7721
SELECT ALL + ( - 63 ) * - + COUNT ( * ) - - + COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - COUNT( ALL - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7722
SELECT - COUNT ( ALL - col1 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + ( 43 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
43

query I rowsort
SELECT DISTINCT 82 * + 50 FROM tab0 AS cor0
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT + COUNT( - 60 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 26 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT + COUNT ( - 60 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 26 >= NULL
----
0

query I rowsort
SELECT DISTINCT 86 * col2 * + 68 * - col1 FROM tab2 cor0
----
-18011840
-22725328
-6859704

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT 12 * + COUNT( * ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7727
SELECT 12 * + COUNT ( * ) FROM tab2 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL - 55 * + col0 + - - col1 * - CAST( + + 87 AS SIGNED ) + - 60 FROM tab2 AS cor0
----
-10014
-10279
-7027

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - 55 * + col0 + - - col1 * - CAST ( + + 87 AS INTEGER ) + - 60 FROM tab2 AS cor0
----
-10014
-10279
-7027

query I rowsort
SELECT - 71 * - 50 * + col1 FROM tab2 cor0
----
181050
237850
273350

query I rowsort
SELECT + + 86 * + 13 * - - col0 FROM tab2 AS cor0
----
51428
71552
83850

query I rowsort
SELECT - - 63 AS col2 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL 47 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7734
SELECT * FROM tab0 WHERE NOT + col0 + + CAST( NULL AS SIGNED ) BETWEEN NULL AND - - 87
----

skipif mysql # not compatible
query III rowsort label-7734
SELECT * FROM tab0 WHERE NOT + col0 + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - - 87
----

query I rowsort
SELECT ALL - 49 * 79 AS col0 FROM tab2
----
-3871
-3871
-3871

query I rowsort
SELECT ALL col0 + + 24 AS col0 FROM tab0
----
111
121
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - 37 * ( + 8 ) + + - 47, col2 )
----

query I rowsort
SELECT DISTINCT - 95 + + col0 FROM tab0 AS cor0
----
-8
-80
2

query I rowsort
SELECT DISTINCT + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 + + 44 AS col2 FROM tab0 cor0
----
-37
23
43

query I rowsort
SELECT DISTINCT - col0 + - 82 AS col2 FROM tab0
----
-169
-179
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 col2, - col2 AS col1 FROM tab2 AS cor0
----
50
-23
50
-40
50
-58

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE + 37 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 25 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL - + col0 - - + 58 + col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT ALL CAST( NULL AS SIGNED ) * + + col0 + + - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7746
SELECT ALL CAST ( NULL AS INTEGER ) * + + col0 + + - col1 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT 67 * - - 97 + - + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
6490

skipif mysql # not compatible
query I rowsort label-7747
SELECT 67 * - - 97 + - + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
6490

query I rowsort
SELECT + + 64 * - 9 * + + 88 * - - 17 * + 29 AS col0 FROM tab2 WHERE NULL BETWEEN - col1 * - col2 AND + col1 * + col2
----

query II rowsort
SELECT 5 + col2 AS col2, + col2 * - + 91 * + col0 - - col2 * + + col1 AS col2 FROM tab2
----
28
-95105
45
-229880
63
-391964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * 16 - - 58 FROM tab1 AS cor0
----
1002
1146
1594

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * 16 - - 58 FROM tab1 AS cor0
----
1002
1146
1594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + ( - ( ( ( CAST( NULL AS SIGNED ) ) ) ) ) / + col0 NOT IN ( + col2 * + 69 + - + 62 * 97 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7751
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + ( - ( ( ( CAST ( NULL AS INTEGER ) ) ) ) ) / + col0 NOT IN ( + col2 * + 69 + - + 62 * 97 )
----
0

query I rowsort
SELECT - 12 * + 49 * + + 65 AS col1 FROM tab0 AS cor0
----
-38220
-38220
-38220

query I rowsort
SELECT DISTINCT - + 31 AS col0 FROM tab0 cor0
----
-31

query I rowsort
SELECT - ( + 57 ) FROM tab1
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN + 16 AND col1 * col2
----

query I rowsort
SELECT col1 * - 84 FROM tab0 AS cor0
----
-1764
-6804
-84

query I rowsort
SELECT ALL + col2 * + col0 + - 21 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 13
----

query I rowsort
SELECT + + col1 * - col0 * - - col1 FROM tab0 AS cor0 WHERE NOT ( - 25 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + 44 FROM tab0 AS cor0
----
3828
4268
660

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT - col1 / 5 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT - col1 / 5 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COUNT( * ) * + + MAX( + 22 ) + MAX( DISTINCT ( + + 54 ) ) AS col0 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( * ) * + + MAX ( + 22 ) + MAX ( DISTINCT ( + + 54 ) ) AS col0 FROM tab1
----
120

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 NOT BETWEEN - 12 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7766
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col0 * - col2, - col1 AS col2 FROM tab1
----
-4896
-14
-5015
-5
-6188
-47

query I rowsort
SELECT col0 + 13 * - col0 FROM tab0
----
-1044
-1164
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT DISTINCT col1 DIV ( - col1 ) + + col0, + col2 AS col0 FROM tab2
----
45
23
63
40
74
58

skipif mysql # not compatible
query II rowsort label-7769
SELECT DISTINCT col1 / ( - col1 ) + + col0, + col2 AS col0 FROM tab2
----
45
23
63
40
74
58

query I rowsort
SELECT ALL - + col0 * - 53 * + col1 + - + col2 * - col0 FROM tab0 cor0
----
14744
65100
97701

query I rowsort
SELECT DISTINCT - - 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT SUM( DISTINCT - col2 ) + 83 - - + COUNT( * ) AS col2 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-7772
SELECT SUM ( DISTINCT - col2 ) + 83 - - + COUNT ( * ) AS col2 FROM tab2
----
-35

query I rowsort
SELECT DISTINCT col0 + - 7 AS col1 FROM tab2 AS cor0
----
39
57
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = - ( - 22 )
----

query I rowsort
SELECT 80 + col0 FROM tab0 AS cor0
----
167
177
95

query I rowsort
SELECT ALL - 45 + - + 23 FROM tab1 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col0 + col2 + - col2 col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - - col0 + col1 - col2 * + col2 FROM tab0 AS cor0
----
-2113
-9703
8

query I rowsort
SELECT DISTINCT col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - col0 + ( + col1 ) AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT ( - - 83 ) AS col1, COUNT( + 44 ) AS col2 FROM tab0
----
83
3

skipif mysql # not compatible
query II rowsort label-7781
SELECT ( - - 83 ) AS col1, COUNT ( + 44 ) AS col2 FROM tab0
----
83
3

query I rowsort
SELECT ALL - col1 - - 78 - + + col1 AS col0 FROM tab1
----
-16
50
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( - + col2 + + col1, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, col1 col0 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * + col0 - - col1 + + 56 col1 FROM tab0 AS cor0
----
-3838
-4308
-538

query I rowsort
SELECT 73 * + + 69 AS col2 FROM tab1 AS cor0
----
5037
5037
5037

query II rowsort
SELECT 91, - 26 AS col2 FROM tab0 cor0
----
91
-26
91
-26
91
-26

query I rowsort
SELECT col1 * 61 AS col0 FROM tab1 AS cor0
----
2867
305
854

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 IN ( - - col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + ( - ( + col1 ) ) ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + ( - 96 ) ) + + + 19 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col2 + + col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2231
-5640
-8236

query I rowsort
SELECT DISTINCT - - 86 * - col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

query I rowsort
SELECT - col0 * + - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT col1 * - + 91 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL COUNT( * ) * + + 21 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL COUNT ( * ) * + + 21 AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT ALL CAST( + 41 AS SIGNED ) * - col1 + col0 FROM tab2
----
-2045
-2672
-3093

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL CAST ( + 41 AS INTEGER ) * - col1 + col0 FROM tab2
----
-2045
-2672
-3093

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT + 45 + + + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( NOT + col2 + col2 + ( col1 ) / col0 * + + col0 < col0 * - col0 * - col2 * + col2 / - + CAST( NULL AS SIGNED ) + - 94 + col0 + - col0 * + 13 )
----

skipif mysql # not compatible
query I rowsort label-7800
SELECT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( NOT + col2 + col2 + ( col1 ) / col0 * + + col0 < col0 * - col0 * - col2 * + col2 / - + CAST ( NULL AS INTEGER ) + - 94 + col0 + - col0 * + 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + + 41 + ( + - ( - 44 ) ) AS col0 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + 11 IS NULL
----

query I rowsort
SELECT - - col1 + 68 FROM tab0 AS cor0
----
149
69
89

query II rowsort
SELECT ALL + 22 * - + col1, col2 * - ( col0 ) + - ( - 5 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 47 + + col0 AS col2 FROM tab1 AS cor0
----
132
138
98

query I rowsort
SELECT ALL - 77 + + 88 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT - 27 - - col1 FROM tab2 AS cor0
----
24
40
50

query I rowsort
SELECT col2 * ( - - 4 ) + - col0 - - col2 FROM tab0 AS cor0
----
-37
220
398

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 5 AND - col2
----

query I rowsort
SELECT DISTINCT 4 * + ( 92 ) + + + col0 AS col1 FROM tab1 AS cor0
----
419
453
459

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT ALL - 16 DIV - - 39 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - 16 / - - 39 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT ALL MIN( DISTINCT - + col0 ) DIV - ( 8 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL MIN ( DISTINCT - + col0 ) / - ( 8 ) AS col0 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - MIN( DISTINCT col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7815
SELECT - MIN ( DISTINCT col2 ) FROM tab1
----
-59

query II rowsort
SELECT - 54, col1 FROM tab1
----
-54
14
-54
47
-54
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + COUNT( - - 24 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7817
SELECT + COUNT ( - - 24 ) col1 FROM tab1
----
3

query I rowsort
SELECT + col1 * + 32 AS col1 FROM tab0
----
2592
32
672

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + 97 * + ( COUNT( * ) ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 97 * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT 69 * + MIN( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
3174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7821
SELECT DISTINCT 69 * + MIN ( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
3174

query I rowsort
SELECT DISTINCT + 43 * - col0 AS col1 FROM tab1 AS cor0
----
-2193
-3655
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT SUM( + + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT SUM ( + + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7824
SELECT - col1 * col1 DIV + - col2 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-12
-15
-5

skipif mysql # not compatible
query I rowsort label-7824
SELECT - col1 * col1 / + - col2 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-12
-15
-5

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7826
SELECT + MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT DISTINCT - 45 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

query I rowsort
SELECT DISTINCT 26 FROM tab0 AS cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7829
SELECT - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7831
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + 16, + CAST( NULL AS SIGNED ), 16, CAST( + 59 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7831
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + 16, + CAST ( NULL AS INTEGER ), 16, CAST ( + 59 AS REAL ) )
----

query I rowsort
SELECT col2 + + col0 + - col0 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT MAX( DISTINCT + 91 ) * - + 65 FROM tab2
----
-5915

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT MAX ( DISTINCT + 91 ) * - + 65 FROM tab2
----
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT ALL col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT DISTINCT + CAST( - AVG ( col1 ) AS SIGNED ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + CAST ( - AVG ( col1 ) AS INTEGER ) FROM tab2
----
-65

query I rowsort
SELECT DISTINCT - 54 + - - 66 AS col2 FROM tab1
----
12

query I rowsort
SELECT + 92 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( col0 ) ) + 31 col2 FROM tab0 cor0
----
118
128
46

query I rowsort
SELECT ALL + 50 + - - 49 - col0 AS col2 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT DISTINCT 30 + - col1 AS col2 FROM tab2 cor0
----
-21
-37
-47

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT + CAST( - + 73 AS SIGNED ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT + CAST ( - + 73 AS INTEGER ) FROM tab0 cor0
----
-73

query I rowsort
SELECT DISTINCT - 20 * - col0 AS col0 FROM tab1 AS cor0
----
1020
1700
1820

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 73 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 98 * - col0 * - col1 * + col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL ( ( - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL ( ( - COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT + + col2 * 35 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT - COUNT( * ) * + 10 AS col2, 62 AS col2 FROM tab2 AS cor0
----
-30
62

skipif mysql # not compatible
query II rowsort label-7850
SELECT - COUNT ( * ) * + 10 AS col2, 62 AS col2 FROM tab2 AS cor0
----
-30
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 19 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT - CAST( + COUNT( DISTINCT + + col2 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - CAST ( + COUNT ( DISTINCT + + col2 ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + - COUNT( - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7853
SELECT + - COUNT ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + MAX( ALL col2 ) * COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7854
SELECT + MAX ( ALL col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT COUNT( DISTINCT - 39 ) + - - 39 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT COUNT ( DISTINCT - 39 ) + - - 39 FROM tab0 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT + col0 * col1 DIV - 33 FROM tab2 AS cor0
----
-149
-152
-71

skipif mysql # not compatible
query I rowsort label-7856
SELECT + col0 * col1 / - 33 FROM tab2 AS cor0
----
-149
-152
-71

query I rowsort
SELECT ALL ( col1 ) + + 12 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - COUNT( * ) * - MIN( - 40 ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-7858
SELECT - COUNT ( * ) * - MIN ( - 40 ) AS col2 FROM tab2
----
-120

query I rowsort
SELECT - col2 + 79 FROM tab2
----
21
39
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7860
SELECT DISTINCT 81, 16 * - + COUNT( * ) AS col1 FROM tab0
----
81
-48

skipif mysql # not compatible
query II rowsort label-7860
SELECT DISTINCT 81, 16 * - + COUNT ( * ) AS col1 FROM tab0
----
81
-48

query I rowsort
SELECT - col2 + col1 * 56 AS col1 FROM tab0 AS cor0
----
-43
1166
4489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT DISTINCT + col0 col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7862
SELECT DISTINCT + col0 col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 28 + - - col1 + - col2 FROM tab2 AS cor0
----
-19
0
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7864
SELECT - CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7864
SELECT - CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) <> NULL
----

query I rowsort
SELECT ALL 73 * + + col0 * + col2 FROM tab1
----
357408
366095
451724

query I rowsort
SELECT - - col1 * 5 * 44 AS col0 FROM tab1 AS cor0
----
10340
1100
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab2 AS cor0
----
16
16
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + MIN( DISTINCT - + 28 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7870
SELECT + MIN ( DISTINCT - + 28 ) FROM tab1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT - col0 DIV 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7871
SELECT - col0 / 59 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col0 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL ( - - MIN( DISTINCT - col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL ( - - MIN ( DISTINCT - col0 ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT DISTINCT CAST( col2 AS SIGNED ) * - 44 AS col1 FROM tab0
----
-2068
-4356
-440

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - 44 AS col1 FROM tab0
----
-2068
-4356
-440

query II rowsort
SELECT + col1 AS col1, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL + 11 * + col0 FROM tab2
----
506
704
825

query I rowsort
SELECT ALL - AVG ( DISTINCT - + col0 ) AS col2 FROM tab1 WHERE - - col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL COUNT( ALL - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT - SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - SUM ( - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT - MIN( ALL - + col1 ) * + + SUM( ALL - + 35 ) AS col0 FROM tab2
----
-8085

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - MIN ( ALL - + col1 ) * + + SUM ( ALL - + 35 ) AS col0 FROM tab2
----
-8085

query I rowsort
SELECT ALL col0 * - + col0 * - - col0 AS col2 FROM tab1
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7882
SELECT ALL - CAST( NULL AS DECIMAL ) + + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL - CAST ( NULL AS REAL ) + + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT COUNT( * ) + - + 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-88

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT COUNT ( * ) + - + 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-88

query II rowsort
SELECT ALL + - col0 + - 44 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-129
-5
-135
-47
-95
-14

query I rowsort
SELECT ALL + col1 * 68 + 47 AS col2 FROM tab0 cor0
----
115
1475
5555

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT col1 * + col1 + + 2 - - col1 DIV col0 - - 76 * + - col2 * + - col1 * + + 57 FROM tab0 cor0
----
16498492
428871
910163

skipif mysql # not compatible
query I rowsort label-7886
SELECT col1 * + col1 + + 2 - - col1 / col0 - - 76 * + - col2 * + - col1 * + + 57 FROM tab0 cor0
----
16498492
428871
910163

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <> col0
----

query I rowsort
SELECT + + col0 + + 42 FROM tab2 AS cor0
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT - MIN( DISTINCT - 91 ) FROM tab1 WHERE NOT ( 94 NOT IN ( - + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - MIN ( DISTINCT - 91 ) FROM tab1 WHERE NOT ( 94 NOT IN ( - + col1 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT ALL - COUNT( * ) DIV + + ( + 50 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - COUNT ( * ) / + + ( + 50 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + 29 DIV + - 12 AS col0 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7891
SELECT + 29 / + - 12 AS col0 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ( - + SUM( ALL + + col1 ) ) * COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-7892
SELECT ( - + SUM ( ALL + + col1 ) ) * COUNT ( * ) AS col2 FROM tab1
----
-198

query I rowsort
SELECT + col1 * - 92 AS col1 FROM tab1
----
-1288
-4324
-460

query II rowsort
SELECT - 91, + col2 AS col0 FROM tab2 WHERE + col0 < + 24
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - - 88 * 6 AND - ( + col0 )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 + - 87 FROM tab2 AS cor0
----
-13
30
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT - 68 DIV - col0 - - col0 FROM tab2 cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-7897
SELECT - 68 / - col0 - - col0 FROM tab2 cor0
----
47
65
75

query I rowsort
SELECT ALL col0 + 98 * - + col1 FROM tab0 AS cor0
----
-1
-1971
-7923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7899
SELECT + col0 * + CAST( NULL AS SIGNED ) - + col2 col1, 9 - - 43 FROM tab1 AS cor0
----
NULL
52
NULL
52
NULL
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7899
SELECT + col0 * + CAST ( NULL AS INTEGER ) - + col2 col1, 9 - - 43 FROM tab1 AS cor0
----
NULL
52
NULL
52
NULL
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT DISTINCT + - col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 53 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 60 col2, - col1 AS col1 FROM tab0 cor0
----
60
-1
60
-21
60
-81

query I rowsort
SELECT + + col2 * + - 40 AS col0 FROM tab2 cor0
----
-1600
-2320
-920

query I rowsort
SELECT ALL 70 AS col1 FROM tab0 cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * + + col0 * - - 87 col1 FROM tab2 AS cor0
----
17149440
25356150
4694346

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 - + + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 46 + - 51 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 23 + col0 col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col2 = NULL )
----

query I rowsort
SELECT DISTINCT - + col2 + - + col0 FROM tab0 AS cor0 WHERE - 91 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT col1 DIV ( + col1 ) col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7913
SELECT col1 / ( + col1 ) col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT col2 + + - CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab2 WHERE NOT - 27 NOT BETWEEN NULL AND ( + col2 / + 52 * + col0 * - + col0 * + - col2 * + col2 / - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7914
SELECT col2 + + - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2 WHERE NOT - 27 NOT BETWEEN NULL AND ( + col2 / + 52 * + col0 * - + col0 * + - col2 * + col2 / - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL - col2 * + col0 * - col2, + 85 AS col1 FROM tab1
----
295885
85
420784
85
470016
85

query III rowsort
SELECT ALL * FROM tab2 WHERE 26 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT DISTINCT col2 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT col2 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL 2 * COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 2 * COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT 88 + - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-7919
SELECT 88 + - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT - col0 DIV - 38 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT - col0 / - 38 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT - + col0 * + ( + 44 ) FROM tab2 AS cor0
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL + + 31 + 13 + + COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL + + 31 + 13 + + COUNT ( * ) FROM tab0 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT 0 * - + col1 DIV + 94 * - 22 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT 0 * - + col1 / + 94 * - 22 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 NOT BETWEEN + - 97 AND - col2 )
----

query I rowsort
SELECT - - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * - col0 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT DISTINCT - - COUNT( * ) DIV + SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - - COUNT ( * ) / + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + - 41 ) FROM tab0 AS cor0
----
41
41
41

query II rowsort
SELECT + col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT + 37, 53 FROM tab1 AS cor0 WHERE 2 + 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL 20 + + + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL 20 + + + COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT COUNT( * ) + COUNT( * ) + - + COUNT( ALL - col0 ) + + 45 - + COUNT( * ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( * ) + COUNT ( * ) + - + COUNT ( ALL - col0 ) + + 45 - + COUNT ( * ) AS col0 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT DISTINCT 8 DIV + 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 8 / + 81 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7935
SELECT ALL + ( + COUNT( * ) ) AS col0, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7935
SELECT ALL + ( + COUNT ( * ) ) AS col0, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT CAST( NULL AS SIGNED ) + ( - 81 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT CAST ( NULL AS INTEGER ) + ( - 81 ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 22 + - + 74 * - + 39 col0 FROM tab2
----
4008
4360
4580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT + 7 + + - SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE - ( + 97 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 7 + + - SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE - ( + 97 ) IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 + + col1 * ( + col0 ) * + + col0, - ( + col0 ) * col1 - + 28 AS col0 FROM tab1
----
36040
-453
36363
-742
389116
-4305

query I rowsort
SELECT 70 + - - col1 AS col2 FROM tab1
----
117
75
84

query II rowsort
SELECT DISTINCT + col1 - - - col0 AS col1, col2 AS col1 FROM tab0
----
-66
10
-96
99
66
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL 20 + SUM( ALL - col1 ) FROM tab2
----
-175

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL 20 + SUM ( ALL - col1 ) FROM tab2
----
-175

query I rowsort
SELECT + + col0 * 39 + + + 30 AS col2 FROM tab0 cor0
----
3423
3813
615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT ALL + 43 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + 43 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 * - 90 <> col1
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 * - 90 <> col1
----
-15
-87
-97

query I rowsort
SELECT + col2 + - + col1 + col2 * + col0 * - col1 AS col1 FROM tab0 WHERE NOT + 88 >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24, + ( col1 ) * 65 + - + col0 col0 FROM tab1 AS cor0
----
-24
240
-24
2964
-24
859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT + col2 * - col1 - + col0 + + + CAST( - + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-295
-307
-3869

skipif mysql # not compatible
query I rowsort label-7949
SELECT + col2 * - col1 - + col0 + + + CAST ( - + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-295
-307
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7950
SELECT MIN ( + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT + SUM( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + SUM ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 1 + col1 + + col0 * col1
----

query I rowsort
SELECT col1 * - - col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT - col2 DIV col1 DIV + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT - col2 / col1 / + col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT 95 * + col0 + + col2 AS col0 FROM tab1
----
4941
8134
8713

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT col0 + + - col2 DIV + 78 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-7956
SELECT col0 + + - col2 / + 78 FROM tab0
----
15
87
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + col1 + 55 * - col2 col2 FROM tab1
----
-3196
-3649
-5222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43 AS col1, - col2 col1 FROM tab1
----
43
-59
43
-68
43
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 AS col0, + col1 - - - 44 + - col2 col0 FROM tab0
----
60
-10
60
-142
60
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT - COUNT( * ), + 25 AS col1 FROM tab2
----
-3
25

skipif mysql # not compatible
query II rowsort label-7960
SELECT - COUNT ( * ), + 25 AS col1 FROM tab2
----
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 AS col1, col1 AS col1, + 18 col0 FROM tab2 AS cor0
----
9 values hashing to 1784c2d524f5bff8d36caa6b5ad25075

query II rowsort
SELECT + col2 * col0 AS col1, col1 * + + col2 AS col1 FROM tab2 cor0
----
1058
1173
2560
3080
4350
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + COUNT( * ) * + + 90 col1 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7963
SELECT + COUNT ( * ) * + + 90 col1 FROM tab0 AS cor0
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7964
SELECT COUNT( + + col0 ) DIV 56 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( + + col0 ) / 56 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL - SUM( 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - SUM ( 77 ) FROM tab0
----
-231

query I rowsort
SELECT - 6 + - col2 FROM tab1 AS cor0
----
-102
-65
-74

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 + + col1 > 91
----

query II rowsort
SELECT - - col2 + + - ( - col1 ), col0 AS col1 FROM tab0 AS cor0
----
100
97
128
15
31
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 30
----

query II rowsort
SELECT DISTINCT - 96 + - col2 AS col2, col0 * - 45 FROM tab2 AS cor0
----
-119
-2070
-136
-2880
-154
-3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7971
SELECT DISTINCT + SUM( DISTINCT - - col1 ) + COUNT( * ) AS col2, + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
106
NULL

skipif mysql # not compatible
query II rowsort label-7971
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) + COUNT ( * ) AS col2, + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
106
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT + COUNT( * ) FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7972
SELECT + COUNT ( * ) FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
3

query II rowsort
SELECT 50, col1 AS col0 FROM tab1
----
50
14
50
47
50
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT + 99 * - 59 - 28 * CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT + 99 * - 59 - 28 * CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT + MIN( DISTINCT + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) FROM tab0
----
-97

query I rowsort
SELECT ALL col2 * + 84 AS col0 FROM tab0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7978
SELECT + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT DISTINCT + COUNT( * ) + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT + COUNT ( * ) + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - + col1 * + 97 AS col0 FROM tab0 AS cor0
----
-2037
-7857
-97

query I rowsort
SELECT + col1 * + + 35 AS col1 FROM tab0 AS cor0
----
2835
35
735

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT + 92 * + + COUNT( * ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + 92 * + + COUNT ( * ) FROM tab2 AS cor0
----
276

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7987
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7988
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * - CAST( NULL AS SIGNED ) AND 8
----

skipif mysql # not compatible
query III rowsort label-7988
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * - CAST ( NULL AS INTEGER ) AND 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab2
----
-195

query I rowsort
SELECT ALL col2 + - 82 AS col1 FROM tab1 WHERE - col1 * col1 + - + col2 IS NOT NULL
----
-14
-23
14

query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col0 FROM tab0 WHERE + - 71 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT - ( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT - ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7993
SELECT - CAST( col2 AS SIGNED ) DIV - 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT - CAST ( col2 AS INTEGER ) / - 83 FROM tab2
----
0
0
0

query I rowsort
SELECT + + 62 + - 73 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT - 48 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT - + col0 + + - 36 AS col0 FROM tab0 AS cor0
----
-123
-133
-51

query I rowsort
SELECT ALL col1 + + + 81 FROM tab1
----
128
86
95

query II rowsort
SELECT - col0 AS col1, 66 AS col1 FROM tab0
----
-15
66
-87
66
-97
66

query I rowsort
SELECT ALL + col0 + - + col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + + 88 AS col0, col1 AS col2 FROM tab0 AS cor0
----
88
1
88
21
88
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT - CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8001
SELECT - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT ALL - CAST( NULL AS SIGNED ) + - 38 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - CAST ( NULL AS INTEGER ) + - 38 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - - col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - ( - + 73 ) + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= col1 + col2 + + col2
----

query I rowsort
SELECT ALL - col0 + - 77 + 50 FROM tab0 AS cor0
----
-114
-124
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT col1 - - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8006
SELECT col1 - - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col1 col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT col2 + - 28 AS col0 FROM tab0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ( - - COUNT( * ) ) + - 96 AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8009
SELECT ( - - COUNT ( * ) ) + - 96 AS col1 FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 col1, col2 AS col0 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
43

query I rowsort
SELECT ALL 34 * - 77 AS col2 FROM tab0 AS cor0
----
-2618
-2618
-2618

onlyif mysql # DIV for integer division: 
query II rowsort label-8013
SELECT DISTINCT + 88 DIV + col2, + col0 FROM tab0 AS cor0
----
0
97
1
15
8
87

skipif mysql # not compatible
query II rowsort label-8013
SELECT DISTINCT + 88 / + col2, + col0 FROM tab0 AS cor0
----
0
97
1
15
8
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT ( + col0 ) DIV 59 col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8014
SELECT ( + col0 ) / 59 col2 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL 85 * + MIN( + + 2 ) * COUNT( * ) + - 32 + + COUNT( * ) FROM tab1
----
481

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 85 * + MIN ( + + 2 ) * COUNT ( * ) + - 32 + + COUNT ( * ) FROM tab1
----
481

query II rowsort
SELECT + 9 AS col2, col0 AS col2 FROM tab2
----
9
46
9
64
9
75

query I rowsort
SELECT ALL - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + 93 * + col0 + - ( + col0 ) + - 92 * - - 81 * col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 19 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT ALL - - col2 DIV + + 20 col0 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8021
SELECT ALL - - col2 / + + 20 col0 FROM tab1 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8022
SELECT DISTINCT - - MAX( ALL - col1 ) DIV - 62 + + + COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT - - MAX ( ALL - col1 ) / - 62 + + + COUNT ( * ) AS col1 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + - COUNT( * ) + 74 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - COUNT ( * ) + 74 FROM tab1 AS cor0
----
71

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
10
47
99

query I rowsort
SELECT + 60 * + - ( 84 ) + col2 + - col1 - col1 + - col0 + col0 + + col1 * - 57 * + + col0 + - col0 AS col1 FROM tab1
----
-248946
-29301
-45721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT ( CAST( NULL AS SIGNED ) ) * + + 72 * + COUNT( * ) + + CAST( AVG ( DISTINCT + 74 ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ( CAST ( NULL AS INTEGER ) ) * + + 72 * + COUNT ( * ) + + CAST ( AVG ( DISTINCT + 74 ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - col2 AS col1, col2 AS col1 FROM tab0 WHERE col0 > - col1
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT col0 * + col1 + + + col2 DIV + 65 FROM tab0
----
1215
1827
98

skipif mysql # not compatible
query I rowsort label-8029
SELECT col0 * + col1 + + + col2 / + 65 FROM tab0
----
1215
1827
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT + col2 + 68 FROM tab1 WHERE 93 NOT BETWEEN NULL AND + col2 * - + 65 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8030
SELECT + col2 + 68 FROM tab1 WHERE 93 NOT BETWEEN NULL AND + col2 * - + 65 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT ALL - col0 + - col0 DIV - col1 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - col0 + - col0 / - col1 FROM tab2 AS cor0
----
-46
-64
-74

query I rowsort
SELECT DISTINCT + - 85 AS col2 FROM tab1 AS cor0 WHERE col2 * ( - + col1 ) <> col1 * + 90
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - COUNT( * ) * + 81 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-729

skipif mysql # not compatible
query I rowsort label-8033
SELECT - COUNT ( * ) * + 81 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-729

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - ( + - 1 ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col0 * col0 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT + MIN( ALL - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8038
SELECT + MIN ( ALL - col2 ) col0 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * col1 - + + col0 + - col2 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + 57 * - ( - + COUNT( ALL + 2 ) ) * - COUNT( * ) FROM tab0
----
-513

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 57 * - ( - + COUNT ( ALL + 2 ) ) * - COUNT ( * ) FROM tab0
----
-513

query II rowsort
SELECT + col0 AS col0, - 71 + + - col2 + + 46 + - col0 * col1 + - + col1 * - col0 + col2 FROM tab1
----
51
-25
85
-25
91
-25

query I rowsort
SELECT + col2 * col1 * - - col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - 98 <> + + col2
----

query II rowsort
SELECT + + col1 AS col0, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + + 28 * - col1 AS col2 FROM tab2 AS cor0
----
-1428
-1876
-2156

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col2 / 95 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + 73 * - - 99 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + 73 * - - 99 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT MAX( DISTINCT - 57 ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8048
SELECT MAX ( DISTINCT - 57 ) AS col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT 53 * + 47 AS col1 FROM tab0 AS cor0
----
2491
2491
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT + + COUNT( * ) + + COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----
0

query I rowsort
SELECT - 69 + + 27 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT col1 + - 7 AS col2 FROM tab2
----
44
60
70

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + COUNT( * ) + - 52 col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8055
SELECT DISTINCT + COUNT ( * ) + - 52 col1 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT 6 + + ( + + col1 ) + + + 39 FROM tab0 AS cor0
----
126
46
66

query II rowsort
SELECT 47 AS col1, + col1 * + 89 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
47
1246
47
4183
47
445

query I rowsort
SELECT ALL col0 + + - 17 AS col0 FROM tab0 AS cor0
----
-2
70
80

query I rowsort
SELECT DISTINCT - col1 + - + col0 + + col2 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-102
-138
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + MIN( + 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + MIN ( + 13 ) FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT COUNT( ALL col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8061
SELECT COUNT ( ALL col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col1 + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT MAX( ALL 76 ) AS col2 FROM tab0 WHERE NOT col1 + 36 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT MAX ( ALL 76 ) AS col2 FROM tab0 WHERE NOT col1 + 36 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - ( col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT col2 DIV + 14 AS col0 FROM tab1
----
4
4
6

skipif mysql # not compatible
query I rowsort label-8066
SELECT col2 / + 14 AS col0 FROM tab1
----
4
4
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT + 93 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT + 93 / col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT + ( 70 ) DIV + 10 - - COUNT( * ) * MAX( DISTINCT + 80 ) FROM tab2
----
247

skipif mysql # not compatible
query I rowsort label-8068
SELECT + ( 70 ) / + 10 - - COUNT ( * ) * MAX ( DISTINCT + 80 ) FROM tab2
----
247

query III rowsort
SELECT * FROM tab2 WHERE NOT 72 + + 63 <> ( - 29 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8070
SELECT ALL * FROM tab2 WHERE ( - 58 * + CAST( NULL AS SIGNED ) + col1 ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8070
SELECT ALL * FROM tab2 WHERE ( - 58 * + CAST ( NULL AS INTEGER ) + col1 ) IN ( col1 )
----

query I rowsort
SELECT - ( 94 ) FROM tab2
----
-94
-94
-94

query I rowsort
SELECT + 27 AS col0 FROM tab0 WHERE NULL NOT IN ( + 62 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 AND 60
----
46
51
23

query I rowsort
SELECT col0 + - col0 * ( - 54 ) FROM tab1
----
2805
4675
5005

query III rowsort
SELECT * FROM tab1 WHERE ( - 53 ) + col2 * col0 >= col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + MAX( ALL col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8076
SELECT + MAX ( ALL col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 13 < col0 * 81
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT NULL >= ( + col2 )
----

query I rowsort
SELECT - 74 / - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + COUNT( * ) * - 99 AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8080
SELECT + COUNT ( * ) * - 99 AS col1 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT DISTINCT - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 / 99 ) NOT IN ( 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT 74 DIV - 56 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8084
SELECT 74 / - 56 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - ( 12 ) AS col0 FROM tab1
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT SUM( ( + 25 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
225

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT SUM ( ( + 25 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
225

query III rowsort
SELECT * FROM tab1 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 92 ) * 94 AS col1 FROM tab2
----
-8648
-8648
-8648

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT 49 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 49 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT - 30 + 69 FROM tab1 cor0 WHERE ( + col1 ) IS NOT NULL
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8091
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8091
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT ALL + 30 * col2 FROM tab2 AS cor0
----
1200
1740
690

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( col0 ) ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col0 / - col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - 40 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8095
SELECT - 40 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 NOT BETWEEN + 52 AND ( col0 * + 58 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT ALL - 7 * col2 AS col2 FROM tab0 AS cor0
----
-329
-693
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT 26 + COUNT( * ) AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT 26 + COUNT ( * ) AS col2 FROM tab0
----
29

query I rowsort
SELECT ALL + 79 * + - col1 FROM tab0
----
-1659
-6399
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * col1 col0 FROM tab0
----
-123
-2
-3792

query III rowsort
SELECT * FROM tab1 WHERE 11 = ( - col0 ) * - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + ( + 88 ) * + COUNT( * ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + ( + 88 ) * + COUNT ( * ) AS col2 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - col2 + + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - col2 + + col1 < NULL
----
0

query I rowsort
SELECT ALL col0 + + + 74 AS col2 FROM tab2
----
120
138
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ALL 80 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL 80 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ( - + col0 ) * col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 85 * col2 AS col0 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT ALL + 52 DIV + + ( + MAX( ALL + 26 ) ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + 52 / + + ( + MAX ( ALL + 26 ) ) AS col0 FROM tab1
----
2

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 13 * - col0 AS col0 FROM tab2 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT + + 2 - - + ( - SUM( 24 ) ) * COUNT( * ) FROM tab2 AS cor0
----
-214

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + + 2 - - + ( - SUM ( 24 ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-214

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NOT - col2 / + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 13 col0 FROM tab2 WHERE NOT + col1 * + col2 + col1 * + ( 5 ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - - ( + 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT 43 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-8117
SELECT 43 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8118
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8121
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) / + col2 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8121
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) / + col2 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND 90
----

query I rowsort
SELECT DISTINCT + 50 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT - + col0 DIV - 2 FROM tab2 AS cor0
----
23
32
37

skipif mysql # not compatible
query I rowsort label-8124
SELECT - + col0 / - 2 FROM tab2 AS cor0
----
23
32
37

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 BETWEEN ( - ( - col2 ) ) AND NULL
----

query II rowsort
SELECT - - 3 AS col2, col0 FROM tab0 AS cor0
----
3
15
3
87
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8128
SELECT DISTINCT + - 21, + col1 + - CAST( NULL AS SIGNED ) + - col2 / + 10 AS col0 FROM tab2 AS cor0
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-8128
SELECT DISTINCT + - 21, + col1 + - CAST ( NULL AS INTEGER ) + - col2 / + 10 AS col0 FROM tab2 AS cor0
----
-21
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) * - col0 col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT SUM( ALL + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT SUM ( ALL + + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT DISTINCT COUNT( col2 ), ( - - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1
----
3
6

skipif mysql # not compatible
query II rowsort label-8132
SELECT DISTINCT COUNT ( col2 ), ( - - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1
----
3
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT + col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8133
SELECT + col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col1 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + MIN( - 7 ) AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8137
SELECT + MIN ( - 7 ) AS col1 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT + + 39 + - col2 AS col2 FROM tab1 AS cor0
----
-20
-29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL COUNT( * ) + COUNT( * ) + + 14 FROM tab2 WHERE NOT - 40 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL COUNT ( * ) + COUNT ( * ) + + 14 FROM tab2 WHERE NOT - 40 IS NULL
----
20

query II rowsort
SELECT DISTINCT - 25 AS col2, + col0 * - col2 + + 81 FROM tab0
----
-25
-624
-25
-789
-25
-9522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + col2 + - col0 * - ( - 61 ) AS col1 FROM tab2 AS cor0 WHERE ( - 27 ) IS NULL
----

query I rowsort
SELECT - - ( 79 ) FROM tab1 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT DISTINCT 14 + + col0 * - + col2 / col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 69 )
----

query I rowsort
SELECT DISTINCT - 13 + + - col0 AS col2 FROM tab1 AS cor0
----
-104
-64
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + + 32 AS col0 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + + 32 AS col0 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( + col1 )
----
NULL

query I rowsort
SELECT ALL - 98 + - col1 FROM tab1 AS cor0
----
-103
-112
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8148
SELECT 91, CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8148
SELECT 91, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
91
NULL

query I rowsort
SELECT DISTINCT - 59 * col1 AS col0 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT + 89 + SUM( - 19 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + 89 + SUM ( - 19 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT + 61 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * - col2 + + col2 / col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + + col0 NOT BETWEEN ( + col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 24 col2 FROM tab0 WHERE + col0 * 22 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT 60 + - - COUNT( * ) * - 85 AS col1 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8155
SELECT 60 + - - COUNT ( * ) * - 85 AS col1 FROM tab0
----
-195

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT - 55 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + 43 AS col2 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT ALL - col1 * + + col2 - col2 + - - col1 + + 45 + col0 FROM tab2 AS cor0
----
-1054
-2934
-3757

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT - + col1 * + 37 + + 82 + + 4 DIV - 55 * + + col2 FROM tab1 AS cor0
----
-103
-1657
-436

skipif mysql # not compatible
query I rowsort label-8159
SELECT - + col1 * + 37 + + 82 + + 4 / - 55 * + + col2 FROM tab1 AS cor0
----
-103
-1657
-436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + col2 * + col0 col1 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL CAST( + col0 AS SIGNED ) - - col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1104
2624
4425

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL CAST ( + col0 AS INTEGER ) - - col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL - col1 * + col2 + 7 AS col1 FROM tab0 cor0
----
-203
-3800
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col0 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - col0 * + - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT ALL + col1 DIV - - 77 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + col1 / - - 77 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE NOT - 55 + + col0 IN ( 48 )
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 col1 FROM tab1 cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab0
----
-20
-20
-20

query II rowsort
SELECT + col2, + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT - SUM( ALL 41 ) AS col1 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - SUM ( ALL 41 ) AS col1 FROM tab2
----
-123

query I rowsort
SELECT DISTINCT + col2 * - ( + + col0 ) FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * + + 87 col0 FROM tab1
----
3654
3654
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT + 60 DIV + col1 AS col0 FROM tab0
----
0
2
60

skipif mysql # not compatible
query I rowsort label-8173
SELECT + 60 / + col1 AS col0 FROM tab0
----
0
2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT MIN( + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8174
SELECT MIN ( + + col0 ) FROM tab0
----
15

query II rowsort
SELECT - col0, + col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * ( - 17 ) + - 5 <> - 90
----

query I rowsort
SELECT ALL - 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + SUM( ALL + - 77 ) FROM tab2, tab0 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + SUM ( ALL + - 77 ) FROM tab2, tab0 AS cor0
----
-693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 71 <> NULL
----

query I rowsort
SELECT 30 + + + col1 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
126
89
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - col1 + + col0 * - + col1 - + - col0 + - - CAST( + col0 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - col0 * + + 64 / col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - col1 + + col0 * - + col1 - + - col0 + - - CAST ( + col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - col0 * + + 64 / col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * + 66 AS col0, col2 FROM tab2 AS cor0
----
1518
23
2640
40
3828
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - COUNT( + col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8183
SELECT - COUNT ( + col0 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + col2 + - col0 + + - 98 FROM tab0
----
-175
-66
-96

query III rowsort
SELECT * FROM tab2 WHERE - col2 + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col0 FROM tab1
----
99
99
99

query I rowsort
SELECT col0 * - + 58 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL + MAX( DISTINCT - col2 ) - - - COUNT( * ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + MAX ( DISTINCT - col2 ) - - - COUNT ( * ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( NULL ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT COUNT( ALL col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 91 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8193
SELECT ALL * FROM tab0 WHERE NOT + CAST( ( col2 ) AS DECIMAL ) * col1 * + + col0 + + 65 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8193
SELECT ALL * FROM tab0 WHERE NOT + CAST ( ( col2 ) AS REAL ) * col1 * + + col0 + + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + col1 + - col1 AS col1 FROM tab2
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col1 + - col1 AS col1 FROM tab2
----
2295
4851
4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT + col0 AS col2 FROM tab1 cor0 WHERE ( NOT ( NOT col2 - CAST( + + col0 AS SIGNED ) * + - 66 IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-8195
SELECT + col0 AS col2 FROM tab1 cor0 WHERE ( NOT ( NOT col2 - CAST ( + + col0 AS INTEGER ) * + - 66 IS NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT ALL - + CAST( NULL AS SIGNED ) + - - SUM( + + 50 ) * - + 27 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL - + CAST ( NULL AS INTEGER ) + - - SUM ( + + 50 ) * - + 27 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + + 70 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - SUM( DISTINCT + - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8198
SELECT - SUM ( DISTINCT + - col1 ) FROM tab2
----
195

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 JOIN tab2 AS cor1 ON NOT 10 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col0 col2, + ( - - 12 ) FROM tab2 cor0
----
2346
12
4928
12
5025
12

query I rowsort
SELECT DISTINCT ( 51 ) FROM tab0 cor0
----
51

query I rowsort
SELECT DISTINCT - + col2 * - + col1 * col2 AS col1 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT ALL + - ( + + col0 ) * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT - + 18 * + 89 FROM tab0 AS cor0
----
-1602
-1602
-1602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT - COUNT( * ) DIV - ( + 99 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT - COUNT ( * ) / - ( + 99 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL CAST( NULL AS SIGNED ) / col0 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL CAST ( NULL AS INTEGER ) / col0 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 48 * 68 FROM tab1 AS cor0
----
3264
3264
3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8208
SELECT 61 DIV COUNT( 52 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8208
SELECT 61 / COUNT ( 52 ) FROM tab2 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - 83 < + col0 / + - 26 + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

query II rowsort
SELECT ALL - ( - col1 ), col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 * + col1, - col2 col0 FROM tab1
----
1927
-68
205
-59
574
-96

query I rowsort
SELECT ALL - + col0 + - 46 AS col0 FROM tab1 WHERE NOT + + 17 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * - col0 col2 FROM tab0
----
3306
3686
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL + CAST( + COUNT( - + 23 ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + CAST ( + COUNT ( - + 23 ) AS INTEGER ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 18 ) + + col1 <= ( col2 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + - COUNT( col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + - COUNT ( col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL = - col0 * + 17 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = - col0 * + 17 + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT CAST( + + col1 AS SIGNED ) * - col1 + + - col1 + 19 * + col2 AS col0 FROM tab1
----
-964
1091
1614

skipif mysql # not compatible
query I rowsort label-8219
SELECT CAST ( + + col1 AS INTEGER ) * - col1 + + - col1 + 19 * + col2 AS col0 FROM tab1
----
-964
1091
1614

query II rowsort
SELECT DISTINCT - + 49, - col2 AS col0 FROM tab2 AS cor0
----
-49
-23
-49
-40
-49
-58

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - - 60 )
----

query II rowsort
SELECT + 59, col0 FROM tab2 AS cor0
----
59
46
59
64
59
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 44 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 - 31 - + col0 + - 99 FROM tab1 AS cor0
----
-129
-135
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 15 + + 29 - - 65 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8226
SELECT ALL + col1 - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + col1 - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT 10 - CAST( + col2 AS SIGNED ) FROM tab0
----
-37
-89
0

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 10 - CAST ( + col2 AS INTEGER ) FROM tab0
----
-37
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + COUNT( * ) + 11 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-8228
SELECT + COUNT ( * ) + 11 FROM tab2
----
14

query I rowsort
SELECT - col1 + - + 94 AS col1 FROM tab2
----
-145
-161
-171

query III rowsort
SELECT * FROM tab1 WHERE + - col0 >= NULL
----

query I rowsort
SELECT ( - 34 ) + - - 86 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT COUNT( + + ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8232
SELECT COUNT ( + + ( - col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - - COUNT( + 97 ) / 44 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( + 97 ) / 44 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 8 * + col1 FROM tab0 AS cor0
----
-168
-648
-8

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
425
4277
714

query I rowsort
SELECT ALL col1 * + col1 * + - 19 AS col0 FROM tab1
----
-3724
-41971
-475

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8237
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND + + CAST( - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8237
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND + + CAST ( - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + - MIN( + - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8238
SELECT + - MIN ( + - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + + 31 AS col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT ALL ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - ( 40 ) FROM tab2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT + col0 + + - 71 + col2 + 0 * + CAST( - 35 AS SIGNED ) FROM tab1
----
73
76
88

skipif mysql # not compatible
query I rowsort label-8243
SELECT + col0 + + - 71 + col2 + 0 * + CAST ( - 35 AS INTEGER ) FROM tab1
----
73
76
88

query I rowsort
SELECT + 55 + - - col1 AS col2 FROM tab2
----
106
122
132

query II rowsort
SELECT DISTINCT + col1 * + col1 AS col1, + col2 AS col1 FROM tab0
----
1
99
441
10
6561
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * + col2 col0 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT ALL + 8 + - 10 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT - ( 93 ) AS col1 FROM tab2 AS cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 + + 89 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT DISTINCT 51 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
51

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + 26 AS col2, col0 col2 FROM tab2
----
101
75
72
46
90
64

query I rowsort
SELECT ALL ( + + 77 ) * - + 93 + - 85 AS col2 FROM tab1
----
-7246
-7246
-7246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT ALL col2 + - 49 AS col0 FROM tab1 AS cor0
----
10
19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT + - COUNT( * ) - + + ( - - ( 67 ) ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + - COUNT ( * ) - + + ( - - ( 67 ) ) AS col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + SUM( ALL - 68 ) AS col0 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-8258
SELECT + SUM ( ALL - 68 ) AS col0 FROM tab2 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT 45 + COUNT( * ) * + + ( - COUNT( * ) ) AS col1 FROM tab2 WHERE - col1 * + col1 + - 68 * + ( - + ( + 36 ) ) IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT 45 + COUNT ( * ) * + + ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE - col1 * + col1 + - 68 * + ( - + ( + 36 ) ) IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + COUNT( 83 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8260
SELECT + COUNT ( 83 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 col0 FROM tab0
----
-77
2
32

query II rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col0, + 65 * - 4 AS col2 FROM tab0
----
1
-260
21
-260
81
-260

query II rowsort
SELECT col1, + col1 + - + col2 FROM tab1
----
14
-82
47
-21
5
-54

query I rowsort
SELECT col0 * - 94 AS col2 FROM tab0
----
-1410
-8178
-9118

query I rowsort
SELECT + col1 * 9 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-1638
-486
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT + - COUNT( ALL + + ( - col2 ) ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - COUNT ( ALL + + ( - col2 ) ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8268
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) > - CAST( NULL AS SIGNED ) + - ( + col2 ) + + 44
----

skipif mysql # not compatible
query III rowsort label-8268
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) > - CAST ( NULL AS INTEGER ) + - ( + col2 ) + + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT - + MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - + MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
51

query II rowsort
SELECT - ( + col2 ), + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - SUM( DISTINCT + 20 ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8272
SELECT - SUM ( DISTINCT + 20 ) AS col2 FROM tab1 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8273
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + + ( col0 ) + - col2 - + col1 * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8273
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + ( col0 ) + - col2 - + col1 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 40 + + + col1 FROM tab2 AS cor0
----
107
117
91

query I rowsort
SELECT - ( - 75 ) FROM tab1 AS cor0
----
75
75
75

query III rowsort
SELECT - 12 * ( ( 4 ) ) AS col2, - col1, col1 FROM tab1 AS cor0
----
9 values hashing to cbe0cbde3550a19f0fb407102ef309c0

query I rowsort
SELECT DISTINCT - col0 + + + col0 + col2 FROM tab1 AS cor0 WHERE NOT + ( - - col1 ) >= + 32
----
59
96

query I rowsort
SELECT ALL + 50 * col0 - + col0 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + CAST( NULL AS SIGNED ) * - 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + CAST ( NULL AS INTEGER ) * - 6 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT + MAX( + 27 ) * + - SUM( + - col1 ) AS col1 FROM tab0
----
2781

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + MAX ( + 27 ) * + - SUM ( + - col1 ) AS col1 FROM tab0
----
2781

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT DISTINCT - 47 DIV - + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - 47 / - + col0 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT + ( + - CAST( NULL AS SIGNED ) ) col2 FROM tab0 WHERE - 30 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8282
SELECT + ( + - CAST ( NULL AS INTEGER ) ) col2 FROM tab0 WHERE - 30 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 12 * + + 6 * + 11 FROM tab1
----
-792
-792
-792

query I rowsort
SELECT + 26 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + 54 + + MIN( DISTINCT + 81 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8286
SELECT + 54 + + MIN ( DISTINCT + 81 ) FROM tab0 AS cor0
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8287
SELECT + + ( 88 ) / - 5 * + - SUM( DISTINCT - col0 ) + - CAST( NULL AS DECIMAL ) + + AVG ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT + + ( 88 ) / - 5 * + - SUM ( DISTINCT - col0 ) + - CAST ( NULL AS REAL ) + + AVG ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - 63 + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 63 + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - + 35 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-35
-35
-35

query I rowsort
SELECT ALL col2 * + 54 - col1 AS col0 FROM tab2
----
1191
2083
3065

query I rowsort
SELECT DISTINCT col0 * col2 * + 82 AS col2 FROM tab1
----
401472
411230
507416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT ALL - COUNT( * ) DIV - 69 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - COUNT ( * ) / - 69 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1, tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + - col1 + - + col2 AS col0 FROM tab0 AS cor0
----
577
839
9503

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + 7 * ( col1 ) * - 32
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 46 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT + - col0 - + col2 + - + col0 + + 7 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
159
366
387

skipif mysql # not compatible
query I rowsort label-8299
SELECT + - col0 - + col2 + - + col0 + + 7 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
159
366
387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab0 AS cor0 WHERE ( + col2 + + - col1 + - col0 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8301
SELECT ALL ( COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED ) + 87 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL ( COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER ) + 87 FROM tab1
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL - MIN( col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL - MIN ( col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT + 53 * - + COUNT( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
-15264

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 53 * - + COUNT ( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
-15264

query I rowsort
SELECT ALL - + col1 * - 32 + - col2 AS col2 FROM tab2 AS cor0
----
1609
2086
2424

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8307
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 * + CAST( + 20 AS DECIMAL ) + - col2 + col2 = 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8307
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 * + CAST ( + 20 AS REAL ) + - col2 + col2 = 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT ALL - 58 AS col1, + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-58
-9

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL - 58 AS col1, + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-58
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 + + 45 <> + col0 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT - col1 + + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-8310
SELECT - col1 + + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + col0 * - - col2 AND + col2 * + 31 - - + 88
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + col0 + + col0 AS col1 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ( + 54 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col0 ) + 79 + - 62 + col1 <= + 93 * + col0 * + - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8317
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( ( - - col0 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8317
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( ( - - col0 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + COUNT( * ) * + - 1 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + COUNT ( * ) * + - 1 AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - - col2 * - + 89 AS col2 FROM tab1 AS cor0
----
-5251
-6052
-8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT - col2 * CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
121
2290
9802

skipif mysql # not compatible
query I rowsort label-8320
SELECT - col2 * CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT col1 DIV - col0 + + col1 + - col1 col0 FROM tab2 AS cor0 WHERE NOT + col1 >= + col0 * + 59 + + - col1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8321
SELECT col1 / - col0 + + col1 + - col1 col0 FROM tab2 AS cor0 WHERE NOT + col1 >= + col0 * + 59 + + - col1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + + col2 * - col2 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-33054
-8679
-950696

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8323
SELECT CAST( NULL AS DECIMAL ), 69 AS col0 FROM tab2 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif mysql # not compatible
query II rowsort label-8323
SELECT CAST ( NULL AS REAL ), 69 AS col0 FROM tab2 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT DISTINCT + 91, COUNT( * ) AS col1 FROM tab1
----
91
3

skipif mysql # not compatible
query II rowsort label-8325
SELECT DISTINCT + 91, COUNT ( * ) AS col1 FROM tab1
----
91
3

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 WHERE NULL >= - col2 * 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 40 col0, col2 + - col0 FROM tab2
----
40
-17
40
-23
40
-24

query I rowsort
SELECT ALL col0 * - + col0 * + col0 FROM tab1
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL - - 67 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > col0 * - 91
----

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - - 67 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > col0 * - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT 13 * + ( + 10 ) + MIN( DISTINCT + col2 ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8330
SELECT 13 * + ( + 10 ) + MIN ( DISTINCT + col2 ) FROM tab2
----
153

query I rowsort
SELECT + col1 + + - col2 * + col0 - col2 FROM tab0
----
-671
-859
-9701

query I rowsort
SELECT - - 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT SUM( DISTINCT + + 73 ) AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8333
SELECT SUM ( DISTINCT + + 73 ) AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL + MIN( ALL - col0 ) + + 2 AS col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + MIN ( ALL - col0 ) + + 2 AS col2 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + + 50 + - 52 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 84 * - col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-4284
-7140
-7644

query II rowsort
SELECT 94 * 38 AS col2, 67 FROM tab0 AS cor0
----
3572
67
3572
67
3572
67

query II rowsort
SELECT col1 AS col2, - col1 * - col0 FROM tab1
----
14
714
47
4277
5
425

query III rowsort
SELECT * FROM tab0 WHERE + col0 / 42 * col0 + + 47 - 61 IS NULL
----

query I rowsort
SELECT col2 + 76 AS col1 FROM tab1
----
135
144
172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8342
SELECT + CAST( + 40 AS SIGNED ) + - col0 AS col1, col0, - 14 * col0 AS col0 FROM tab0
----
9 values hashing to fd17d320e2fe24b2e8e364629426d3c2

skipif mysql # not compatible
query III rowsort label-8342
SELECT + CAST ( + 40 AS INTEGER ) + - col0 AS col1, col0, - 14 * col0 AS col0 FROM tab0
----
9 values hashing to fd17d320e2fe24b2e8e364629426d3c2

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT 13 + + MIN( col2 ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8343
SELECT 13 + + MIN ( col2 ) AS col1 FROM tab1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 + col2 col1 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT col2 * 9 AS col1 FROM tab1 AS cor0 WHERE ( NULL IN ( + - col1 + 28 - + - col0, + 10, - + col1 * - col1 + - CAST( NULL AS SIGNED ) + + 95, - 69 / col0 * - 93 / + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8345
SELECT col2 * 9 AS col1 FROM tab1 AS cor0 WHERE ( NULL IN ( + - col1 + 28 - + - col0, + 10, - + col1 * - col1 + - CAST ( NULL AS INTEGER ) + + 95, - 69 / col0 * - 93 / + col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8346
SELECT - COUNT( - CAST( col0 AS DECIMAL ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8346
SELECT - COUNT ( - CAST ( col0 AS REAL ) ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL 49 * COUNT( * ) + AVG ( - + CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL 49 * COUNT ( * ) + AVG ( - + CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - ( + ( - 56 ) ) * COUNT( * ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8348
SELECT - ( + ( - 56 ) ) * COUNT ( * ) FROM tab2 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT + CAST( - 85 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-8349
SELECT + CAST ( - 85 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - - col2 ) * - col2 + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8351
SELECT ALL 44 DIV + col0 AS col1, - 93 FROM tab0 AS cor0
----
0
-93
0
-93
2
-93

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL 44 / + col0 AS col1, - 93 FROM tab0 AS cor0
----
0
-93
0
-93
2
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1, tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT col2 * ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT col2 * ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - col0 * - - ( 91 ) AS col2 FROM tab1
----
-445536
-456365
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT MAX( - + 29 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-8357
SELECT MAX ( - + 29 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, 34 FROM tab2 cor0
----
-46
34
-64
34
-75
34

query I rowsort
SELECT ALL - col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # DIV for integer division: 
query II rowsort label-8360
SELECT DISTINCT - 0 AS col0, + 87 DIV - + col1 FROM tab1 cor0
----
0
-1
0
-17
0
-6

skipif mysql # not compatible
query II rowsort label-8360
SELECT DISTINCT - 0 AS col0, + 87 / - + col1 FROM tab1 cor0
----
0
-1
0
-17
0
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( DISTINCT - ( - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( DISTINCT - ( - col1 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - + col1 + + - ( 15 ) AS col1 FROM tab2 AS cor0
----
-66
-82
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8364
SELECT * FROM tab2 AS cor0 WHERE + col0 / - col0 NOT BETWEEN + + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8364
SELECT * FROM tab2 AS cor0 WHERE + col0 / - col0 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8365
SELECT * FROM tab0 AS cor0 WHERE CAST( + - 80 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8365
SELECT * FROM tab0 AS cor0 WHERE CAST ( + - 80 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + + SUM( DISTINCT - col2 ) + + 17 FROM tab1 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + + SUM ( DISTINCT - col2 ) + + 17 FROM tab1 AS cor0
----
-206

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - col0 IS NULL
----

query I rowsort
SELECT ALL col1 + - 52 * col2 AS col1 FROM tab0 cor0
----
-2363
-499
-5147

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL + COUNT( * ) + 90 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + COUNT ( * ) + 90 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + 97 + - - COUNT( * ) * COUNT( * ) * + 38 * + + COUNT( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
97

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + 97 + - - COUNT ( * ) * COUNT ( * ) * + 38 * + + COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
97

query I rowsort
SELECT DISTINCT - + 71 FROM tab2 AS cor0 WHERE - 90 NOT BETWEEN + col1 AND + - 38
----
-71

query II rowsort
SELECT + col2 + - + col2, - 16 AS col2 FROM tab1 cor0
----
0
-16
0
-16
0
-16

query III rowsort
SELECT * FROM tab2 WHERE - 69 > - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8375
SELECT col0 * - CAST( + col0 AS SIGNED ) col1, + col2 AS col2 FROM tab2
----
-2116
23
-4096
40
-5625
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8375
SELECT col0 * - CAST ( + col0 AS INTEGER ) col1, + col2 AS col2 FROM tab2
----
-2116
23
-4096
40
-5625
58

query I rowsort
SELECT DISTINCT - ( + 10 ) AS col1 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8377
SELECT ALL * FROM tab1 WHERE NOT + col1 * + + CAST( ( 5 ) AS SIGNED ) * + - col2 / col1 + + + col2 * col2 = - col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8377
SELECT ALL * FROM tab1 WHERE NOT + col1 * + + CAST ( ( 5 ) AS INTEGER ) * + - col2 / col1 + + + col2 * col2 = - col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8379
SELECT ALL - 92 + - 39 AS col0, CAST( + + col2 AS SIGNED ) - + col0 col1 FROM tab2 AS cor0
----
-131
-17
-131
-23
-131
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8379
SELECT ALL - 92 + - 39 AS col0, CAST ( + + col2 AS INTEGER ) - + col0 col1 FROM tab2 AS cor0
----
-131
-17
-131
-23
-131
-24

query I rowsort
SELECT DISTINCT col0 + - 41 + - 70 FROM tab1 AS cor0
----
-20
-26
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8381
SELECT DISTINCT * FROM tab2 WHERE - + col1 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8381
SELECT DISTINCT * FROM tab2 WHERE - + col1 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( - - col0 )
----

query I rowsort
SELECT - 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query III rowsort
SELECT * FROM tab0 WHERE NOT + 60 IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 56 * col2 * + - col0 AS col1, 43 FROM tab1 AS cor0
----
-274176
43
-280840
43
-346528
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT COUNT( DISTINCT + - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + 28 * + 24 AS col2 FROM tab0 AS cor0
----
672
672
672

query I rowsort
SELECT ALL + col2 * 67 AS col0 FROM tab0 AS cor0 WHERE NOT + 90 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + + COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8391
SELECT + + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 38 * - - 19 FROM tab2 AS cor0
----
722
722
722

query II rowsort
SELECT + - 47, ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-47
-59
-47
-68
-47
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT + - 55 DIV 89 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT + - 55 / 89 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT - CAST( NULL AS SIGNED ) * - - col0 * + + col1 * + + ( 33 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT - CAST ( NULL AS INTEGER ) * - - col0 * + + col1 * + + ( 33 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 81 * - + 8 + - col2 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2833
-3976
-8568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT 62 * + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3658
-4216
-5952

skipif mysql # not compatible
query I rowsort label-8397
SELECT 62 * + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT MIN( 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8398
SELECT MIN ( 42 ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8399
SELECT DISTINCT - MIN( + col2 ) AS col2, - 35 AS col2 FROM tab2
----
-23
-35

skipif mysql # not compatible
query II rowsort label-8399
SELECT DISTINCT - MIN ( + col2 ) AS col2, - 35 AS col2 FROM tab2
----
-23
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT + MIN( 82 ) FROM tab1 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT + MIN ( 82 ) FROM tab1 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT ALL + col1 DIV 49 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + col1 / 49 AS col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT - COUNT( * ) * - 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - COUNT ( * ) * - 18 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT COUNT( + + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8404
SELECT COUNT ( + + col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE + - col0 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT col2 DIV + + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8407
SELECT col2 / + + col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - + 56 AS col0 FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - - COUNT( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT - - COUNT ( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT + col1 DIV + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT + col1 / + - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 80 < - - col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 WHERE ( - - 11 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - + col0
----

query I rowsort
SELECT DISTINCT col1 * - - col2 * + col0 - + col0 FROM tab0
----
18183
57090
9506

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 68 * - 51 + 91 + + - col0 FROM tab0
----
-3392
-3464
-3474

query I rowsort
SELECT + + 14 AS col1 FROM tab0 cor0
----
14
14
14

query II rowsort
SELECT - 94 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
-94
14
-94
47
-94
5

query I rowsort
SELECT 24 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - ( + col0 ) * 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8422
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8422
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT col2, col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + 60 AS col0 FROM tab0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL ( 17 ) * 89 + - COUNT( * ) FROM tab0
----
1510

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL ( 17 ) * 89 + - COUNT ( * ) FROM tab0
----
1510

query II rowsort
SELECT DISTINCT - col2 * - 59 * - col0 AS col2, - 48 FROM tab0
----
-41595
-48
-51330
-48
-566577
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + SUM( DISTINCT - 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8427
SELECT + SUM ( DISTINCT - 96 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + MIN( ALL - 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + MIN ( ALL - 82 ) FROM tab1
----
-82

query II rowsort
SELECT - col1 AS col1, + col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL 69 + - + col0 FROM tab2 AS cor0
----
-6
23
5

query II rowsort
SELECT + col2 + + 29 AS col0, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT - 8 DIV MIN( + col0 ) * - + 52 + + + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - 8 / MIN ( + col0 ) * - + 52 + + + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT - - 17 + + - COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - - 17 + + - COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL - col0 * + col1 * + col0 - - + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 53 * - 45 AND NULL
----

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT - + 57 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT + 37 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - + 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query II rowsort
SELECT - - ( + 68 ) + + + col2 * + col1 * - 79, 90 * - - 24 * + + col2 AS col2 FROM tab2 AS cor0
----
-243252
86400
-306926
125280
-92599
49680

query II rowsort
SELECT DISTINCT - 28 + col1 * col0 + - - col0 AS col2, 43 AS col0 FROM tab0 AS cor0
----
1202
43
166
43
1886
43

query I rowsort
SELECT DISTINCT - col2 + + col2 - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + + col0 * + col1 - - - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT 30 AS col0 FROM tab2 WHERE - + col0 IS NOT NULL
----
30
30
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT + SUM( DISTINCT + - col0 ) - - COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-8444
SELECT + SUM ( DISTINCT + - col0 ) - - COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-186

query I rowsort
SELECT col2 - + 91 AS col1 FROM tab0
----
-44
-81
8

query I rowsort
SELECT ALL + col2 * + col2 * - - 48 - - - 16 AS col0 FROM tab1
----
167072
221936
442352

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL - SUM( DISTINCT + 42 ) AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - SUM ( DISTINCT + 42 ) AS col1 FROM tab0
----
-42

query II rowsort
SELECT ALL + col0, ( - col1 ) AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT DISTINCT 36 DIV - 7 AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 36 / - 7 AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT - 20 AS col0, - col1 AS col1 FROM tab0
----
-20
-1
-20
-21
-20
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 > + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT - + COUNT( * ) * SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - + COUNT ( * ) * SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT + 17 * + MIN( ALL + 61 ) * - 54 FROM tab2 AS cor0
----
-55998

skipif mysql # not compatible
query I rowsort label-8453
SELECT + 17 * + MIN ( ALL + 61 ) * - 54 FROM tab2 AS cor0
----
-55998

query II rowsort
SELECT ALL - col0 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL + MIN( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + MIN ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-8456
SELECT ALL + + 97 AS col1, + 75 DIV - 2 AS col2 FROM tab2 AS cor0
----
97
-37
97
-37
97
-37

skipif mysql # not compatible
query II rowsort label-8456
SELECT ALL + + 97 AS col1, + 75 / - 2 AS col2 FROM tab2 AS cor0
----
97
-37
97
-37
97
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - ( - MIN( ALL - col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8457
SELECT - ( - MIN ( ALL - col0 ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT + col0 AS col1, - col0 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
51
-36414
85
-36125
91
-389207

query II rowsort
SELECT DISTINCT - 54 AS col0, col0 AS col0 FROM tab0 AS cor0
----
-54
15
-54
87
-54
97

query I rowsort
SELECT DISTINCT - ( + 6 ) * + col1 + - col0 AS col2 FROM tab2
----
-352
-477
-526

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 22 ) * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
0

query I rowsort
SELECT - col0 + + - ( - - col1 ) * + col1 FROM tab0 AS cor0
----
-528
-6576
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + 26 col0, col1 FROM tab1 AS cor0
----
31
5
40
14
73
47

query I rowsort
SELECT ALL 1 * - col2 + - col2 - + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - 88 - 53 FROM tab1 AS cor0
----
-141
-141
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT + col0 - col0 DIV + col2 + + col0 AS col2 FROM tab2 AS cor0
----
127
149
90

skipif mysql # not compatible
query I rowsort label-8470
SELECT + col0 - col0 / + col2 + + col0 AS col2 FROM tab2 AS cor0
----
127
149
90

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 84 IS NULL
----

query I rowsort
SELECT col1 - + 91 FROM tab2 AS cor0
----
-14
-24
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT + 98 - + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
98
98

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 98 - + col2 / col1 AS col2 FROM tab0 AS cor0
----
-1
98
98

query I rowsort
SELECT DISTINCT + - col2 + - - col0 + 74 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
15
50
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT DISTINCT + - ( - 42 ) - col2 DIV 66 AS col2 FROM tab0 AS cor0
----
41
42

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + - ( - 42 ) - col2 / 66 AS col2 FROM tab0 AS cor0
----
41
42

query I rowsort
SELECT + col1 - 41 FROM tab1 AS cor0
----
-27
-36
6

query I rowsort
SELECT DISTINCT ( - - 72 ) + - col2 AS col2 FROM tab0 AS cor0
----
-27
25
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL ( - - col2 ) DIV - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL ( - - col2 ) / - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8479
SELECT + col1 + + ( - col2 ), + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
28
NULL
37
NULL
9
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8479
SELECT + col1 + + ( - col2 ), + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
28
NULL
37
NULL
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 35 + - 24 / col2 + 50 / - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8480
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 35 + - 24 / col2 + 50 / - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + - - col0 + - - ( ( + 16 ) ) FROM tab1 WHERE + col2 * - - col0 * - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 23 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + + 93 AS col1 FROM tab1
----
1302
4371
465

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8487
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col2 FROM tab1
----
9

query I rowsort
SELECT col0 * + col1 * + 5 AS col2 FROM tab0
----
485
6075
9135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - 64 * - col0 * + 86, + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 10 * col2 * + col1 FROM tab2 AS cor0
----
-11730
-30800
-38860

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT + 97 * - + 88 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-8533

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + 97 * - + 88 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-8533

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL - 57 * + MIN( DISTINCT - 43 ) FROM tab2 cor0
----
2451

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - 57 * + MIN ( DISTINCT - 43 ) FROM tab2 cor0
----
2451

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT DISTINCT col0 DIV - - col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT col0 / - - col1 AS col0 FROM tab0
----
0
4
97

query I rowsort
SELECT ALL + ( col2 ) * - col2 * col2 + 61 FROM tab2 WHERE NOT col0 IS NULL
----
-12106
-195051
-63939

query I rowsort
SELECT + col0 * - ( - + 14 ) AS col1 FROM tab2
----
1050
644
896

query I rowsort
SELECT ( - 30 ) FROM tab2
----
-30
-30
-30

query I rowsort
SELECT col1 + + 17 * 58 AS col0 FROM tab0 AS cor0 WHERE NOT + 19 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * + CAST( + 95 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * + CAST ( + 95 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
282

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT - 89 + + - 84 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - col2 ) + + 72 + col1 + + col0 + 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ( + + CAST( 99 AS SIGNED ) ) + - col0 col2 FROM tab1
----
14
48
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8503
SELECT ( + + CAST ( 99 AS INTEGER ) ) + - col0 col2 FROM tab1
----
14
48
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL - CAST( - SUM( ALL + - col2 ) AS SIGNED ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - CAST ( - SUM ( ALL + - col2 ) AS INTEGER ) FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, + 66 AS col0 FROM tab1
----
59
66
68
66
96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT - - CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2 WHERE ( - col2 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT - - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2 WHERE ( - col2 ) >= ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT col1 DIV + 62 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8508
SELECT col1 / + 62 AS col1 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8509
SELECT ( 61 ) DIV + - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8509
SELECT ( 61 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL + COUNT( * ) + + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + COUNT ( * ) + + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT DISTINCT - + MIN( ALL - 9 ) col0, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8511
SELECT DISTINCT - + MIN ( ALL - 9 ) col0, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8512
SELECT + 92 * 2 DIV - + SUM( + 61 ) * CAST( - 1 AS SIGNED ) - - + COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 92 * 2 / - + SUM ( + 61 ) * CAST ( - 1 AS INTEGER ) - - + COUNT ( * ) FROM tab1 AS cor0
----
4

query II rowsort
SELECT ALL - - col0 + - col0 * + col2 * - + col2 AS col1, + 37 FROM tab0 cor0
----
33150
37
8787
37
950794
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT 54 + + - 78 DIV col1 + - col1 + + + 48 AS col2 FROM tab0
----
21
23
78

skipif mysql # not compatible
query I rowsort label-8514
SELECT 54 + + - 78 / col1 + - col1 + + + 48 AS col2 FROM tab0
----
21
23
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT + col1 DIV col1 + - 4 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8515
SELECT + col1 / col1 + - 4 AS col1 FROM tab2
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - COUNT( ALL - col1 ) + 81 + + 87 AS col1 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-8518
SELECT - COUNT ( ALL - col1 ) + 81 + + 87 AS col1 FROM tab0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + 3 * - 10 * - COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + 3 * - 10 * - COUNT ( * ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE NOT - 38 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT - + ( 12 ) DIV col0 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - + ( 12 ) / col0 AS col2 FROM tab1 cor0
----
0

query II rowsort
SELECT + col1 * + 4, col2 AS col1 FROM tab1 AS cor0
----
188
68
20
59
56
96

query I rowsort
SELECT - ( - 56 ) AS col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT 66 * COUNT( * ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8524
SELECT 66 * COUNT ( * ) AS col2 FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab2
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8526
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * - col2 * + col0 > - col0
----

skipif mysql # not compatible
query III rowsort label-8526
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * - col2 * + col0 > - col0
----

query I rowsort
SELECT ALL - 4 * 65 FROM tab0
----
-260
-260
-260

query I rowsort
SELECT ALL 1 * col2 AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 + + - col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT - 92 * + 45 - - col1 + 77 DIV col0 AS col0 FROM tab0 AS cor0
----
-4054
-4119
-4139

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 92 * + 45 - - col1 + 77 / col0 AS col0 FROM tab0 AS cor0
----
-4054
-4119
-4139

query I rowsort
SELECT col0 * col1 + + 7 * - - col0 AS col1 FROM tab0 AS cor0
----
1320
2436
776

query I rowsort
SELECT ALL + col1 - - 32 * ( ( col0 ) ) FROM tab0
----
2805
3105
561

query I rowsort
SELECT ALL + 73 FROM tab2 WHERE ( ( - col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) + 78 FROM tab0
----
159
79
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8535
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT 3 + col2 AS col0 FROM tab1
----
62
71
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) <= ( NULL )
----

query I rowsort
SELECT 53 AS col1 FROM tab1 WHERE - col0 + + col2 <> - col2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + SUM( DISTINCT 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8539
SELECT + SUM ( DISTINCT 20 ) FROM tab2
----
20

query I rowsort
SELECT ALL + 14 * - col0 AS col1 FROM tab1
----
-1190
-1274
-714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 - + 65 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 35 * + ( 61 ) ) IN ( col2 + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 57 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( - 6 ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 7 + - col2 IN ( + col1 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 47 ) FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT + MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8548
SELECT + MAX ( col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT 99 * + col2 AS col1 FROM tab2
----
2277
3960
5742

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT CAST( + ( 21 ) AS SIGNED ) * - ( ( - col2 ) ) FROM tab2
----
1218
483
840

skipif mysql # not compatible
query I rowsort label-8551
SELECT CAST ( + ( 21 ) AS INTEGER ) * - ( ( - col2 ) ) FROM tab2
----
1218
483
840

query I rowsort
SELECT ALL + col1 * 6 AS col2 FROM tab1
----
282
30
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 43 + + col0 * 14 ) NOT BETWEEN col1 AND + 47 / + col1 + - 41 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 3 col0 FROM tab1 WHERE 92 < - col0
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL > - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 NOT IN ( ( + col2 ) / + 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL - 75 + COUNT( * ) * + COUNT( ALL CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - 75 + COUNT ( * ) * + COUNT ( ALL CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT COUNT( * ) + - ( 10 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8559
SELECT COUNT ( * ) + - ( 10 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL ( col0 ) + col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN ( col0 + - col0 ) AND NULL
----

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT * FROM tab1 WHERE + 99 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT * FROM tab1 WHERE + 99 IN ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 - + col2 col0 FROM tab1
----
-5
23
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT + CAST( - 49 AS SIGNED ) * + col2 - col0 FROM tab2 AS cor0
----
-1173
-2024
-2917

skipif mysql # not compatible
query I rowsort label-8566
SELECT + CAST ( - 49 AS INTEGER ) * + col2 - col0 FROM tab2 AS cor0
----
-1173
-2024
-2917

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - ( - col0 ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL - 89 + MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0 WHERE + 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - 89 + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0 WHERE + 34 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - COUNT( * ) * 10 AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - COUNT ( * ) * 10 AS col0 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 29 + - col1 AND ( + col0 + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL + 24 AS col0 FROM tab1 AS cor0 WHERE ( - CAST( + col1 AS SIGNED ) + 26 * col0 ) IS NOT NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + 24 AS col0 FROM tab1 AS cor0 WHERE ( - CAST ( + col1 AS INTEGER ) + 26 * col0 ) IS NOT NULL
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + 90 + + col1 * + 92 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 37 ) + col1 IS NOT NULL
----

query I rowsort
SELECT 29 * 80 + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL >= ( + 54 + - col1 )
----

query I rowsort
SELECT ALL 99 * + ( 24 ) AS col0 FROM tab2
----
2376
2376
2376

query I rowsort
SELECT ALL col1 * - 55 FROM tab2
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT SUM( col0 ) * COUNT( * ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT SUM ( col0 ) * COUNT ( * ) AS col1 FROM tab1
----
681

query I rowsort
SELECT + col0 * col1 * - col1 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT + CAST( + 30 AS SIGNED ) FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8582
SELECT + CAST ( + 30 AS INTEGER ) FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT COUNT( * ) * - - MAX( DISTINCT col1 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-8583
SELECT COUNT ( * ) * - - MAX ( DISTINCT col1 ) FROM tab2
----
231

query I rowsort
SELECT ALL - ( - ( + col2 ) ) FROM tab0 WHERE + 34 IS NULL
----

query I rowsort
SELECT - - ( - - col0 ) * 90 AS col0 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT DISTINCT - ( + + col2 ) * 32 FROM tab0 AS cor0
----
-1504
-3168
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( 76 )
----
3

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( 76 )
----
3

query I rowsort
SELECT DISTINCT + ( + 63 ) * - col0 FROM tab2
----
-2898
-4032
-4725

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 93 - 90 * col1 = NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8590
SELECT ALL + COUNT( * ) DIV + 56 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + COUNT ( * ) / + 56 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT col1 + + col1 + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT col1 + + col1 + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 + - col2 col1 FROM tab0 AS cor0
----
-103
-140
-192

query I rowsort
SELECT 3 + + col1 AS col2 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT + 63 DIV + + 66 + + 49 + - col1 AS col2 FROM tab1 AS cor0
----
2
35
44

skipif mysql # not compatible
query I rowsort label-8594
SELECT + 63 / + + 66 + + 49 + - col1 AS col2 FROM tab1 AS cor0
----
2
35
44

query I rowsort
SELECT DISTINCT 10 + + 67 * - 10 + 20 FROM tab1 AS cor0
----
-640

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 33 AND ( + col0 * + 58 )
----

query I rowsort
SELECT DISTINCT + col1 * + - col0 * + 74 AS col2 FROM tab0 AS cor0
----
-135198
-7178
-89910

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8599
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) > + + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8599
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) > + + CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT - col0 * - 18, - col1 AS col0 FROM tab2
----
1152
-77
1350
-67
828
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL - COUNT( * ) * + 77 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - COUNT ( * ) * + 77 FROM tab0
----
-231

query II rowsort
SELECT ALL + 41 * 38 AS col0, 32 - - col1 FROM tab0
----
1558
113
1558
33
1558
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL ( + 17 ) + + 55 + - ( + 50 ) DIV 24 AS col1 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL ( + 17 ) + + 55 + - ( + 50 ) / 24 AS col1 FROM tab2
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 = + 22 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + + ( - col2 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT MAX( + + CAST( - + col1 AS SIGNED ) ) - + + COUNT( DISTINCT - col0 ) - + 57 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8607
SELECT MAX ( + + CAST ( - + col1 AS INTEGER ) ) - + + COUNT ( DISTINCT - col0 ) - + 57 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT col0 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + 38 + ( + 5 ) + col2 + - col2 * col1 FROM tab1 AS cor0
----
-1205
-193
-3085

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) IS NOT NULL OR NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + SUM( 18 ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-8611
SELECT + SUM ( 18 ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
171

query I rowsort
SELECT col0 + ( + - col0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8613
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 90 IN ( + col2 + 73 - - ( col0 ) + ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 34 * col0 * + + 98 * + col2 FROM tab1 AS cor0
----
-16313472
-16709980
-20618416

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - + COUNT( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT - + COUNT ( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 98
----

query I rowsort
SELECT - + 66 FROM tab1 cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - MAX( col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8619
SELECT - MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT - - col1 DIV - - ( + + col0 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8620
SELECT - - col1 / - - ( + + col0 ) FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT 6 AS col1, col2 * ( 42 ) FROM tab0
----
6
1974
6
4158
6
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT - MAX( DISTINCT - 72 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( + - col0 ) < - col1 * col0 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT - MAX ( DISTINCT - 72 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( + - col0 ) < - col1 * col0 + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT - CAST( 30 AS SIGNED ) * + - col0 AS col1 FROM tab1
----
1530
2550
2730

skipif mysql # not compatible
query I rowsort label-8623
SELECT - CAST ( 30 AS INTEGER ) * + - col0 AS col1 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT - 69 FROM tab2 WHERE NOT 87 + + 46 - + col2 IS NULL
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT 99 AS col1, COUNT( * ) FROM tab2
----
99
3

skipif mysql # not compatible
query II rowsort label-8625
SELECT 99 AS col1, COUNT ( * ) FROM tab2
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT - MAX( - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - MAX ( - col1 ) AS col2 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT + CAST( 44 AS SIGNED ) FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CAST ( 44 AS INTEGER ) FROM tab2
----
44
44
44

query I rowsort
SELECT ALL ( - - 75 ) FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8629
SELECT - + COUNT( * ) AS col2, - SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
-3
-103

skipif mysql # not compatible
query II rowsort label-8629
SELECT - + COUNT ( * ) AS col2, - SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
-3
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT - CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8630
SELECT - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + + COUNT( * ) * 18 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT + + COUNT ( * ) * 18 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
162

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + - col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8633
SELECT col0 * + - col2, + col2 DIV - col0 AS col0 FROM tab0
----
-705
-3
-870
0
-9603
-1

skipif mysql # not compatible
query II rowsort label-8633
SELECT col0 * + - col2, + col2 / - col0 AS col0 FROM tab0
----
-705
-3
-870
0
-9603
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT SUM( DISTINCT - + 80 ) * + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-5280

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT SUM ( DISTINCT - + 80 ) * + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-5280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8635
SELECT * FROM tab0 WHERE - + col1 * - + 5 * + ( + - col2 ) + - ( 94 ) + + CAST( col2 AS SIGNED ) * col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8635
SELECT * FROM tab0 WHERE - + col1 * - + 5 * + ( + - col2 ) + - ( 94 ) + + CAST ( col2 AS INTEGER ) * col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT + CAST( + - 82 AS SIGNED ) col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8637
SELECT DISTINCT + CAST ( + - 82 AS INTEGER ) col1 FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8638
SELECT - - CAST( col1 AS SIGNED ) DIV - 85 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT - - CAST ( col1 AS INTEGER ) / - 85 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8639
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) - col2 + + col0 ) >= CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8639
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) - col2 + + col0 ) >= CAST ( - + col2 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + 21 + - 94 AS col2, + col1 FROM tab0 AS cor0
----
-73
1
-73
21
-73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - ( COUNT( * ) ) + ( - + COUNT( * ) ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT ALL - ( COUNT ( * ) ) + ( - + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT DISTINCT col1 DIV + 57 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT col1 / + 57 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8644
SELECT ALL 60 DIV - 61 + 1 AS col0, col0 AS col1 FROM tab1
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL 60 / - 61 + 1 AS col0, col0 AS col1 FROM tab1
----
1
51
1
85
1
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col2 * + + 63 + - - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 + - col0 FROM tab0 WHERE ( + + 17 ) IS NOT NULL
----
-77
2
32

query I rowsort
SELECT ALL - 92 + + 22 AS col0 FROM tab0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + col1 + + 26 col0 FROM tab0
----
113
1853
7073

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 IN ( - - col2 * col0 - + 99 + + + 32 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 cor0 WHERE NOT + ( col1 ) + + - col2 = col0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( ( NOT + col1 + + col2 <= col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT SUM( DISTINCT 32 ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT SUM ( DISTINCT 32 ) AS col2 FROM tab2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + + ( + col1 ) NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + + ( + col1 ) NOT IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL CAST( + 3 AS SIGNED ) AS col2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL CAST ( + 3 AS INTEGER ) AS col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + SUM( ALL 1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8655
SELECT + SUM ( ALL 1 ) FROM tab0
----
3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE - 13 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE - 13 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 col0, + col0 AS col0 FROM tab0
----
4
15
4
87
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT - 59 + - MAX( - col1 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT - 59 + - MAX ( - col1 ) FROM tab2
----
-8

query I rowsort
SELECT ( + 32 ) * - col2 AS col0 FROM tab0
----
-1504
-3168
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT col1 DIV - 49 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT col1 / - 49 FROM tab0
----
-1
0
0

query II rowsort
SELECT col2 AS col0, - 38 AS col1 FROM tab2
----
23
-38
40
-38
58
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - MIN( 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - MIN ( 29 ) FROM tab2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT DISTINCT - 60 AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-60
3

skipif mysql # not compatible
query II rowsort label-8664
SELECT DISTINCT - 60 AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-60
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col0 + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 + + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + + ( + col0 ) FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 65 + + + 51 AS col2 FROM tab0 cor0
----
116
116
116

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 - - 99 AS col1 FROM tab1
----
3580
4723
9315

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT col2 DIV col2 * ( + + col2 ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8671
SELECT col2 / col2 * ( + + col2 ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8672
SELECT ALL + + CAST( NULL AS DECIMAL ) + - - ( - + COUNT( * ) ) * + 80 FROM tab2 WHERE NOT 7 * + col2 + - - 41 NOT BETWEEN - 81 - 77 AND - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + + CAST ( NULL AS REAL ) + - - ( - + COUNT ( * ) ) * + 80 FROM tab2 WHERE NOT 7 * + col2 + - - 41 NOT BETWEEN - 81 - 77 AND - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 18 * SUM( col1 ) - 31 col2 FROM tab2
----
3479

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT 18 * SUM ( col1 ) - 31 col2 FROM tab2
----
3479

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT SUM( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 46 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT SUM ( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 46 AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL - COUNT( - + col0 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8676
SELECT ALL - COUNT ( - + col0 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT CAST( NULL AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT + 3 * + + col1 AS col1, 58 AS col0 FROM tab2 AS cor0
----
153
58
201
58
231
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT + - CAST( - 86 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8680
SELECT + - CAST ( - 86 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT 83 * + + MIN( ALL + col1 ) AS col2, - COUNT( * ) AS col2 FROM tab0
----
83
-3

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT 83 * + + MIN ( ALL + col1 ) AS col2, - COUNT ( * ) AS col2 FROM tab0
----
83
-3

query I rowsort
SELECT ALL col1 * + + 41 * 87 AS col0 FROM tab2 AS cor0
----
181917
238989
274659

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 43 * - 1 * + + col1 AS col0 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8688
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + CAST( 74 AS SIGNED ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8688
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + CAST ( 74 AS INTEGER ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT DISTINCT - 16 DIV + SUM( DISTINCT - col0 ) * + MIN( + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - 16 / + SUM ( DISTINCT - col0 ) * + MIN ( + col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 41 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 - - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * + 84 AS col0 FROM tab1
----
1176
3948
420

query II rowsort
SELECT ALL col2 * + 78 AS col0, + 37 * + 5 AS col2 FROM tab2
----
1794
185
3120
185
4524
185

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col0 - - 71
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + + col2
----

query I rowsort
SELECT DISTINCT ( + + 30 ) FROM tab1
----
30

query I rowsort
SELECT ALL 3 + col2 - - 33 AS col0 FROM tab0
----
135
46
83

query I rowsort
SELECT ALL + 76 AS col1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT + 79 * - COUNT( * ) + + COUNT( * ) * COUNT( * ) + + - 37 * - 7 * - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 79 * - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) + + - 37 * - 7 * - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT - + MIN( 67 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE - ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT - + MIN ( 67 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE - ( col0 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2 col1, - col2 * - - col1 FROM tab1 AS cor0
----
110
-1344
115
-3196
64
-295

query I rowsort
SELECT DISTINCT col2 + - 28 AS col1 FROM tab0
----
-18
19
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT - ( - 79 ) DIV - - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8705
SELECT - ( - 79 ) / - - col1 FROM tab2
----
1
1
1

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 = ( + col1 / - col1 + - 65 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT 15 - - + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8708
SELECT 15 - - + COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL - - col0 + 92 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT + col1 - + col1 + - 47 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + 44 - col2 FROM tab2 AS cor0
----
-14
21
4

query I rowsort
SELECT DISTINCT + + col2 + + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col2 * col2 * + col2 FROM tab0
----
1000
103823
970299

onlyif mysql # DIV for integer division: 
query II rowsort label-8714
SELECT + col1 * - col2 AS col2, 35 DIV + col0 AS col1 FROM tab0
----
-210
0
-3807
2
-99
0

skipif mysql # not compatible
query II rowsort label-8714
SELECT + col1 * - col2 AS col2, 35 / + col0 AS col1 FROM tab0
----
-210
0
-3807
2
-99
0

query II rowsort
SELECT col1, - col2 AS col1 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - - col0 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - + col2 * - - 29 * ( col1 ) * - col1 + - - col0 FROM tab1 AS cor0
----
42860
4356239
545715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8718
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 84 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) / - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + col1 )
----

query I rowsort
SELECT ALL col0 * - + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT - col1 * + ( - 33 ), - col2 + - col2 + 6 AS col2 FROM tab0
----
2673
-88
33
-192
693
-14

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT ALL 26 DIV + col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL 26 / + col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 22 + - 74 IS NOT NULL
----

query I rowsort
SELECT - 5 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + 99 + - 88 * - COUNT( * ) + 43 col2 FROM tab1 AS cor0
----
406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT ALL + 99 + - 88 * - COUNT ( * ) + 43 col2 FROM tab1 AS cor0
----
406

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col1
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 - - - 58 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT 14 + + COUNT( * ) + - 89 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8731
SELECT 14 + + COUNT ( * ) + - 89 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT COUNT( * ) + - + MAX( - col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8732
SELECT COUNT ( * ) + - + MAX ( - col2 ) FROM tab0
----
13

query I rowsort
SELECT ALL 13 * - + col0 AS col1 FROM tab1
----
-1105
-1183
-663

query I rowsort
SELECT 99 * + col1 AS col0 FROM tab2
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT 74 AS col2, + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
74
0

skipif mysql # not compatible
query II rowsort label-8735
SELECT 74 AS col2, + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
74
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT ALL + 97 + - 41 + ( - - col0 ) - - + col2 DIV + + col0 * - + col1 AS col0 FROM tab2
----
102
120
131

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL + 97 + - 41 + ( - - col0 ) - - + col2 / + + col0 * - + col1 AS col0 FROM tab2
----
102
120
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 + + - 1 col2 FROM tab1
----
-65

query I rowsort
SELECT ALL + col2 * 89 * col2 FROM tab1 AS cor0
----
309809
411536
820224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8739
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL + - SUM( ALL - + col0 ) + - 71 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + - SUM ( ALL - + col0 ) + - 71 FROM tab1 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 35 + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT - + MAX( DISTINCT + + 98 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-98

skipif mysql # not compatible
query I rowsort label-8742
SELECT - + MAX ( DISTINCT + + 98 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-98

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE + 46 * + col1 IN ( - col2 * - 63 + - - col0, 74 )
----

query I rowsort
SELECT + 79 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( col2 ) + col1 < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + 26 + - - ( COUNT( * ) ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + 26 + - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - MAX( - - 51 ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8747
SELECT - MAX ( - - 51 ) AS col0 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - - + col1 col0, col1 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, + col1 col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL + - 69 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + 54 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 54 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-162

query II rowsort
SELECT + 94 AS col0, - 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ( + 20 ) FROM tab1 AS cor0
----
20
20
20

query II rowsort
SELECT - col1 AS col2, - col0 FROM tab1 cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL - SUM( + + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - SUM ( + + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - col0 * + + 1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT col1, 32 FROM tab2
----
51
32
67
32
77
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + 75 DIV col0 + - + 34 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + 75 / col0 + - + 34 FROM tab2 cor0
----
-33

query II rowsort
SELECT ALL col2, + 67 AS col2 FROM tab2 AS cor0
----
23
67
40
67
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - - SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8762
SELECT - - SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL - col0 + 5 FROM tab2 AS cor0
----
-41
-59
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + + col0 * + col0 * 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL ( + + COUNT( * ) ) col2 FROM tab1 AS cor0 WHERE ( NULL ) >= 34
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8766
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0 WHERE ( NULL ) >= 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8767
SELECT + col2 * CAST( NULL AS SIGNED ), 29 AS col2 FROM tab0
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-8767
SELECT + col2 * CAST ( NULL AS INTEGER ), 29 AS col2 FROM tab0
----
NULL
29
NULL
29
NULL
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * + col2 col0 FROM tab0
----
308367
4410
99

query I rowsort
SELECT 89 * - 92 * + 46 AS col2 FROM tab0
----
-376648
-376648
-376648

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL IN ( 51 * 1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 > - 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8772
SELECT * FROM tab2 WHERE + + 89 * - 38 * - + col1 NOT BETWEEN - + CAST( NULL AS SIGNED ) AND + 51 * - 72 * - - col2 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8772
SELECT * FROM tab2 WHERE + + 89 * - 38 * - + col1 NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND + 51 * - 72 * - - col2 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * + - col1 col1 FROM tab1
----
1692
180
504

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT + col0 + + col2 + - col0 + + - col2 DIV col1 FROM tab0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-8774
SELECT + col0 + + col2 + - col0 + + - col2 / col1 FROM tab0
----
0
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT ( + SUM( ALL - ( col0 ) ) ) + + MIN( - + col2 ) FROM tab0
----
-298

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT ( + SUM ( ALL - ( col0 ) ) ) + + MIN ( - + col2 ) FROM tab0
----
-298

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8776
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) NOT IN ( col1 * col0 )
----

skipif mysql # not compatible
query III rowsort label-8776
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col1 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT - 61 + - - col0 DIV + col2 + ( ( - col0 ) ) * col1 col2 FROM tab0
----
-1276
-158
-1880

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8777
SELECT - 61 + - - col0 / + col2 + ( ( - col0 ) ) * col1 col2 FROM tab0
----
-1276
-158
-1880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL 74 + - - CAST( - 88 AS SIGNED ) + col1 * ( + col2 ) FROM tab2 AS cor0
----
1159
3066
3872

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 74 + - - CAST ( - 88 AS INTEGER ) + col1 * ( + col2 ) FROM tab2 AS cor0
----
1159
3066
3872

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT + col0 DIV + - col2 + - 28 col0 FROM tab1 AS cor0
----
-28
-29
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT + col0 / + - col2 + - 28 col0 FROM tab1 AS cor0
----
-28
-29
-29

query I rowsort
SELECT DISTINCT ( - + col2 ) + col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - + col1 * - + 92 * - 90 AS col2 FROM tab1 AS cor0
----
-115920
-389160
-41400

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 43 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT col2 - ( - 84 ) DIV - 39 + - col1 + - col0 * - ( col1 ) * + - col2 FROM tab1 AS cor0
----
-25023
-290817
-68464

skipif mysql # not compatible
query I rowsort label-8783
SELECT col2 - ( - 84 ) / - 39 + - col1 + - col0 * - ( col1 ) * + - col2 FROM tab1 AS cor0
----
-25023
-290817
-68464

query I rowsort
SELECT DISTINCT - col2 + - - 72 FROM tab2 AS cor0
----
14
32
49

query I rowsort
SELECT ALL + 93 FROM tab0 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( DISTINCT - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( DISTINCT - col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - ( + 77 ) AS col2 FROM tab2
----
-77
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8791
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT + col1 IN ( + - col2 * + + col1, - 56 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT + col1 IN ( + - col2 * + + col1, - 56 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT + + col1 * - 87 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT + + col1 * - 87 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT 99 * - COUNT( ALL + CAST( 33 AS SIGNED ) ) AS col1 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT 99 * - COUNT ( ALL + CAST ( 33 AS INTEGER ) ) AS col1 FROM tab2
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT COUNT( * ) - + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8795
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT col1, + 21 * ( + col1 ) FROM tab2 AS cor0
----
51
1071
67
1407
77
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - + COUNT( - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT - + COUNT ( - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL - + col2 DIV col2 - col2 * 99 + + col1 FROM tab1 AS cor0
----
-5837
-6686
-9491

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - + col2 / col2 - col2 * 99 + + col1 FROM tab1 AS cor0
----
-5837
-6686
-9491

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 WHERE - col1 * - col0 * + + 59 + + + col0 BETWEEN + CAST( - col1 AS SIGNED ) * + - col2 AND - - col1 + + 16
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8800
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - col1 * - col0 * + + 59 + + + col0 BETWEEN + CAST ( - col1 AS INTEGER ) * + - col2 AND - - col1 + + 16
----
0

query III rowsort
SELECT * FROM tab1 WHERE - 12 / - - 51 / + - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT MAX( + - 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT MAX ( + - 89 ) FROM tab0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + 95 col0 FROM tab0
----
-7220
-7220
-7220

query II rowsort
SELECT DISTINCT - col0, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT ALL col1 AS col0, + col1 * - ( + col0 ) * - col2 FROM tab2
----
51
53958
67
291450
77
197120

query II rowsort
SELECT + col2 AS col1, - 78 FROM tab0
----
10
-78
47
-78
99
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT DISTINCT col2 DIV ( + col1 ) * + col2 * + col1 - - col2 + - col1 + 62 col0 FROM tab0
----
28
51
9961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8807
SELECT DISTINCT col2 / ( + col1 ) * + col2 * + col1 - - col2 + - col1 + 62 col0 FROM tab0
----
28
51
9961

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( 49, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL - 53 * - col1 + + + col0 FROM tab0 cor0
----
1200
150
4308

query I rowsort
SELECT DISTINCT + - col1 + + col2 + + col1 - + 66 + - col1 AS col0 FROM tab0 AS cor0
----
-100
-77
32

query I rowsort
SELECT col2 * - col1 * col0 + - col2 AS col1 FROM tab1
----
-25134
-290904
-68640

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT - - 30 * - - MAX( DISTINCT - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
-1533

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - - 30 * - - MAX ( DISTINCT - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-1533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + 83 FROM tab0 AS cor0
----
1245
7221
8051

query II rowsort
SELECT - col0 * 37, col0 FROM tab2 AS cor0
----
-1702
46
-2368
64
-2775
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) * + + ( - MAX( - + 56 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
168

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) * + + ( - MAX ( - + 56 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT MAX( - - ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8819
SELECT MAX ( - - ( col1 ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT SUM( ALL - - col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8820
SELECT SUM ( ALL - - col1 ) col2 FROM tab2
----
195

query I rowsort
SELECT + - 55 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * - 16, col0 * - col2 * + 10 * + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1072
-3262500
-1232
-1638400
-816
-486680

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL SUM( - col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8823
SELECT ALL SUM ( - col0 ) col0 FROM tab2
----
-185

query II rowsort
SELECT - 5, col0 FROM tab1
----
-5
51
-5
85
-5
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT ALL - 43 DIV 93 * col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - 43 / 93 * col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT + CAST( 26 AS SIGNED ) col0 FROM tab0
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8826
SELECT + CAST ( 26 AS INTEGER ) col0 FROM tab0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL MIN( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL MIN ( DISTINCT col1 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col1 FROM tab2 cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - + 17 + col0 + col2 * ( - col1 ) DIV - 2 + - - 11 AS col1 FROM tab1 AS cor0
----
1683
226
717

skipif mysql # not compatible
query I rowsort label-8829
SELECT - + 17 + col0 + col2 * ( - col1 ) / - 2 + - - 11 AS col1 FROM tab1 AS cor0
----
1683
226
717

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * + ( - - 59 ) + + col1 * + + col0 + - 75 / - col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8831
SELECT ALL CAST( + + ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL CAST ( + + ( CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL + COUNT( * ) * + MIN( 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + COUNT ( * ) * + MIN ( 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL + CAST( - col1 AS SIGNED ) + + 55 FROM tab0 AS cor0
----
-26
34
54

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + CAST ( - col1 AS INTEGER ) + + 55 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT ALL + 27 + + col1 FROM tab0 AS cor0
----
108
28
48

query I rowsort
SELECT ALL - col1 * + 62 AS col1 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ( + SUM( ALL + 72 ) ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8836
SELECT ( + SUM ( ALL + 72 ) ) FROM tab0 AS cor0
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + - 92 AS col2 FROM tab0 AS cor0
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( col1, 82, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL + MIN( - ( + - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + MIN ( - ( + - col2 ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col1 + 99 AS col2 FROM tab0
----
18
78
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8843
SELECT DISTINCT 68 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-8843
SELECT DISTINCT 68 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 19 IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 7 col2 FROM tab0
----
28
8
88

query I rowsort
SELECT 29 + 27 FROM tab2 cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 cor0 WHERE + 13 + 68 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT + 42 - ( + + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
33

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + 42 - ( + + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * - + col2 IN ( + ( - + col0 ) * + - 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 44 * - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT ALL + col0 DIV - - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + col0 / - - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + + ( 42 ) + - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) * + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) * + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT + 64 * ( - col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
-13440
-243648
-6336

query I rowsort
SELECT + + ( + 87 ) * - 24 AS col1 FROM tab1 AS cor0
----
-2088
-2088
-2088

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 69 = + 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 18 AS col2, - col2 FROM tab0 AS cor0
----
18
-10
18
-47
18
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT - MIN( DISTINCT + + 79 ) AS col0, 62 AS col0 FROM tab2
----
-79
62

skipif mysql # not compatible
query II rowsort label-8860
SELECT - MIN ( DISTINCT + + 79 ) AS col0, 62 AS col0 FROM tab2
----
-79
62

query II rowsort
SELECT DISTINCT 21 * + + col0, + col0 AS col0 FROM tab2
----
1344
64
1575
75
966
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT - 25 * + + COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - 25 * + + COUNT ( * ) AS col0 FROM tab1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT CAST( 83 AS SIGNED ) FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8863
SELECT CAST ( 83 AS INTEGER ) FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL COUNT( + - col2 ) * - 30 - 34 AS col1 FROM tab1 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL COUNT ( + - col2 ) * - 30 - 34 AS col1 FROM tab1 AS cor0
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT + 8 DIV 46 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + 8 / 46 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 68 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT - col0 * + - 65 * - 60 <= + 93 / + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT - col0 * + - 65 * - 60 <= + 93 / + col1 )
----
0

query I rowsort
SELECT - 26 + + col0 * + + col0 FROM tab1 AS cor0
----
2575
7199
8255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 - + + col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 52 * + col2 + - + 55 * 73 AS col1 FROM tab2 AS cor0 WHERE col0 + - col1 - 68 * - 35 IS NOT NULL
----
-1935
-2819
-999

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8872
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-8872
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * - CAST ( NULL AS INTEGER ), - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 - + - col1 col1 FROM tab1 cor0
----
26
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL - COUNT( * ) + COUNT( ALL + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - COUNT ( * ) + COUNT ( ALL + col0 ) FROM tab1
----
0

query II rowsort
SELECT col0 * col2, 84 AS col0 FROM tab2
----
1058
84
2560
84
4350
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT SUM( col1 ) * MAX( - col2 ) AS col2 FROM tab1
----
-3894

skipif mysql # not compatible
query I rowsort label-8876
SELECT SUM ( col1 ) * MAX ( - col2 ) AS col2 FROM tab1
----
-3894

query I rowsort
SELECT col0 * + 7 AS col2 FROM tab2
----
322
448
525

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + 76 * - col1
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL < - - col0
----

query I rowsort
SELECT col0 - + - 33 + - col2 AS col1 FROM tab0
----
1
110
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT SUM( ALL ( col1 ) ) + + AVG ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT SUM ( ALL ( col1 ) ) + + AVG ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( 88, 22 * - 39 / col2 * + 50 + - col2 + - col1 )
----

query II rowsort
SELECT col0 * 74 * col1 + - col0 - + 77 + - + col1 - + 54 + + col0 * + col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
142528
87
16358
97
89908
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT ALL 1 * ( 42 ) + + + 72 + - col2 + + 29 DIV 31 AS col0 FROM tab1 AS cor0
----
18
46
55

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL 1 * ( 42 ) + + + 72 + - col2 + + 29 / 31 AS col0 FROM tab1 AS cor0
----
18
46
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL - ( CAST( - 33 AS SIGNED ) ) - - col1 FROM tab2 cor0
----
100
110
84

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - ( CAST ( - 33 AS INTEGER ) ) - - col1 FROM tab2 cor0
----
100
110
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT DISTINCT + + col0 + - col0 DIV + + 13 AS col1 FROM tab0 AS cor0
----
14
81
90

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT + + col0 + - col0 / + + 13 AS col1 FROM tab0 AS cor0
----
14
81
90

query II rowsort
SELECT ALL + + col0 + - - col0 AS col1, col1 FROM tab2 AS cor0
----
128
77
150
67
92
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8888
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + SUM( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + SUM ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT SUM( ALL col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT SUM ( ALL col2 ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8891
SELECT + 8 DIV 22 * - 1, CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8891
SELECT + 8 / 22 * - 1, CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8892
SELECT + 73 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
73
3

skipif mysql # not compatible
query II rowsort label-8892
SELECT + 73 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
73
3

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8894
SELECT ALL - col0 * - col1 * col2 + - col2 * CAST( NULL AS DECIMAL ) - + + 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - col0 * - col1 * col2 + - col2 * CAST ( NULL AS REAL ) - + + 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8895
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 - + 8 < NULL
----

query II rowsort
SELECT col1 AS col2, 5 * + - col2 AS col1 FROM tab1
----
14
-480
47
-340
5
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT DISTINCT 85 * COUNT( ALL + 79 ) AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT 85 * COUNT ( ALL + 79 ) AS col2 FROM tab1
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT col0 DIV - + col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT col0 / - + col1 AS col1 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL 83 * - MAX( + - col0 ) AS col1 FROM tab0
----
1245

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL 83 * - MAX ( + - col0 ) AS col1 FROM tab0
----
1245

query II rowsort
SELECT col0 AS col0, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query II rowsort label-8903
SELECT col0, - col2 DIV col0 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

skipif mysql # not compatible
query II rowsort label-8903
SELECT col0, - col2 / col0 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + - col2, 46, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - COUNT( * ) + + 26 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8905
SELECT - COUNT ( * ) + + 26 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - COUNT( * ) * - 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - COUNT ( * ) * - 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
711

query I rowsort
SELECT DISTINCT - ( 4 ) AS col0 FROM tab0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - - col0 col2 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT + ( + ( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 28 + + col0 AS col0 FROM tab2 AS cor0
----
103
74
92

query I rowsort
SELECT ALL + 58 + + col0 AS col1 FROM tab1 AS cor0
----
109
143
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT 71 - + + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8912
SELECT 71 - + + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT ALL - 18 - + 67 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8914
SELECT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-8915
SELECT DISTINCT 80 + - + col0 AS col1, - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-17
99
-7
0
65
0

skipif mysql # not compatible
query II rowsort label-8915
SELECT DISTINCT 80 + - + col0 AS col1, - col2 / - col1 AS col2 FROM tab0 AS cor0
----
-17
99
-7
0
65
0

query I rowsort
SELECT 94 + col1 AS col0 FROM tab2
----
145
161
171

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - 16 + - col0 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - COUNT( ALL col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - COUNT ( ALL col1 ) FROM tab0
----
-3

query I rowsort
SELECT ALL - 73 - - - 35 FROM tab1
----
-108
-108
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT ALL COUNT( * ) DIV - + 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL COUNT ( * ) / - + 57 FROM tab2
----
0

query I rowsort
SELECT 12 + + + 27 AS col0 FROM tab2
----
39
39
39

query III rowsort
SELECT * FROM tab0 WHERE - 33 = - + 35 - + col0 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT ALL 74 DIV - ( + col2 ) FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL 74 / - ( + col2 ) FROM tab2
----
-1
-1
-3

query I rowsort
SELECT ALL - col1 + + 31 FROM tab1
----
-16
17
26

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + COUNT( DISTINCT + col2 ) * 4 AS col2 FROM tab2 WHERE ( ( NULL ) = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + COUNT ( DISTINCT + col2 ) * 4 AS col2 FROM tab2 WHERE ( ( NULL ) = NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * - col0 col0, - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1058
-51
-2560
-77
-4350
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT SUM( col2 ) * COUNT( * ) AS col0 FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-8928
SELECT SUM ( col2 ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 * 32 <= NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col0
----

query I rowsort
SELECT + ( - 85 ) + + ( - col1 ) FROM tab1 AS cor0
----
-132
-90
-99

query I rowsort
SELECT ALL col2 * + + 23 FROM tab1
----
1357
1564
2208

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8934
SELECT col1 col0, - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8934
SELECT col1 col0, - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT ALL 14 * + + ( 19 ) * - COUNT( * ) * - 95, - 98 col1 FROM tab2
----
75810
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8935
SELECT ALL 14 * + + ( 19 ) * - COUNT ( * ) * - 95, - 98 col1 FROM tab2
----
75810
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + COUNT( * ) + - 6 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + COUNT ( * ) + - 6 AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - COUNT( ALL + + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8937
SELECT - COUNT ( ALL + + col2 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - 76 FROM tab0 AS cor0
----
-157
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8940
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT - COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 87 + + col1 + + col1 AS col2 FROM tab1
----
115
181
97

query I rowsort
SELECT 10 + + col2 AS col0 FROM tab0
----
109
20
57

query I rowsort
SELECT col2 + + + col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL - + 87 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8946
SELECT - col0 + col1 + - col2 + + 86 + 40 DIV + - col2 * + col1 * - ( + + col1 ) * + CAST( + + 16 AS SIGNED ) AS col2, col0 + col1 * col1 - - col2 FROM tab1 AS cor0
----
-26
2368
-47
343
-53
169

skipif mysql # not compatible
query II rowsort label-8946
SELECT - col0 + col1 + - col2 + + 86 + 40 / + - col2 * + col1 * - ( + + col1 ) * + CAST ( + + 16 AS INTEGER ) AS col2, col0 + col1 * col1 - - col2 FROM tab1 AS cor0
----
-26
2368
-47
343
-53
169

query III rowsort
SELECT DISTINCT col2, 87 * + + col0 * - 7 AS col1, + 15 AS col1 FROM tab0 AS cor0
----
9 values hashing to ca6e4dd940ccce810e279b5818a37d30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8948
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + - 57 <= CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8948
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + - 57 <= CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + 48 + col0 FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT DISTINCT - col1 - + 58 AS col0 FROM tab1 AS cor0
----
-105
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT COUNT( * ) - + 22 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT COUNT ( * ) - + 22 FROM tab0 cor0
----
-19

query II rowsort
SELECT col0, - 51 FROM tab2 cor0
----
46
-51
64
-51
75
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT COUNT( DISTINCT - 8 ) + 52 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT COUNT ( DISTINCT - 8 ) + 52 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT + MAX( - col2 ) * - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8954
SELECT + MAX ( - col2 ) * - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
27

query II rowsort
SELECT DISTINCT - col0 - + col1 AS col2, 44 FROM tab2
----
-141
44
-142
44
-97
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) AS col1, 42 col1 FROM tab1
----
-14
42
-47
42
-5
42

query I rowsort
SELECT - col0 - + 81 FROM tab2
----
-127
-145
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8958
SELECT ALL - COUNT( * ) DIV 93 - + 73 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - COUNT ( * ) / 93 - + 73 FROM tab1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 43 > 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT col1 DIV + - col0 * + - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT col1 / + - col0 * + - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8962
SELECT DISTINCT - 7 * 36 col2, CAST( + col1 AS SIGNED ) * - + col2 * + col2 DIV col2 AS col1 FROM tab0 cor0
----
-252
-210
-252
-3807
-252
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8962
SELECT DISTINCT - 7 * 36 col2, CAST ( + col1 AS INTEGER ) * - + col2 * + col2 / col2 AS col1 FROM tab0 cor0
----
-252
-210
-252
-3807
-252
-99

query I rowsort
SELECT - 3 * col2 * + col2 FROM tab0 AS cor0
----
-29403
-300
-6627

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ( - + col0 ) DIV col1 * col0 FROM tab2
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ( - + col0 ) / col1 * col0 FROM tab2
----
-75
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT DISTINCT COUNT( * ), MIN( col1 ) col0 FROM tab1
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8966
SELECT DISTINCT COUNT ( * ), MIN ( col1 ) col0 FROM tab1
----
3
5

query I rowsort
SELECT ALL - + ( - 7 ) FROM tab2 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 90 col0 FROM tab2 cor0
----
23
90
40
90
58
90

query I rowsort
SELECT ( 45 ) FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - MIN( - 23 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8971
SELECT - MIN ( - 23 ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT + 45 * col2 FROM tab2 AS cor0
----
1035
1800
2610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col0 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT 64 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8974
SELECT 64 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 98
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT COUNT( * ) * + + 19 AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8976
SELECT COUNT ( * ) * + + 19 AS col0 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT MAX( DISTINCT CAST( + 38 AS SIGNED ) ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-8977
SELECT MAX ( DISTINCT CAST ( + 38 AS INTEGER ) ) FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT - MAX( DISTINCT + col2 ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 99 + - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - 12 DIV + 36 * 53 + col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 12 / + 36 * 53 + col1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - 87 + - + col2 FROM tab1 AS cor0
----
-146
-155
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT - + col0 + + - col1 DIV - 67 FROM tab2 AS cor0
----
-46
-63
-74

skipif mysql # not compatible
query I rowsort label-8983
SELECT - + col0 + + - col1 / - 67 FROM tab2 AS cor0
----
-46
-63
-74

query I rowsort
SELECT ALL + + 2 + - + 95 AS col1 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT col2 + - - 26 FROM tab0 AS cor0
----
125
36
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT ALL + SUM( ALL + 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-8986
SELECT ALL + SUM ( ALL + col1 ) * - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 53 + + + col2, 45 * - 33 AS col2 FROM tab0 AS cor0
----
100
-1485
152
-1485
63
-1485

query I rowsort
SELECT col0 + + 10 * - col0 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col2 - - col2 + - + 36 FROM tab0
----
-16
162
58

query II rowsort
SELECT ALL + col1 + - + col2 - - + col1 AS col2, + 15 AS col0 FROM tab2 AS cor0
----
114
15
76
15
79
15

query I rowsort
SELECT - + col2 - 29 * + ( col0 ) FROM tab0 AS cor0
----
-2533
-2912
-482

query I rowsort
SELECT + 56 - col0 FROM tab1 AS cor0
----
-29
-35
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT CAST( col0 AS SIGNED ) - + col2 AS col1 FROM tab2 cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-8994
SELECT CAST ( col0 AS INTEGER ) - + col2 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + ( - COUNT( * ) ) - + - 41 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8995
SELECT + ( - COUNT ( * ) ) - + - 41 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - COUNT( * ) + - SUM( ALL col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-8996
SELECT - COUNT ( * ) + - SUM ( ALL col2 ) FROM tab2 AS cor0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT ALL 54 * - - CAST( + 50 AS SIGNED ) + SUM( - col1 ) FROM tab1
----
2634

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL 54 * - - CAST ( + 50 AS INTEGER ) + SUM ( - col1 ) FROM tab1
----
2634

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - ( + - MIN( ALL - col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8998
SELECT - ( + - MIN ( ALL - col2 ) ) AS col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8999
SELECT - col2 - + col1 col0, + col0 FROM tab2 WHERE NOT - 98 <= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8999
SELECT - col2 - + col1 col0, + col0 FROM tab2 WHERE NOT - 98 <= - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT DISTINCT + 76 AS col2, COUNT( * ) AS col2 FROM tab1
----
76
3

skipif mysql # not compatible
query II rowsort label-9000
SELECT DISTINCT + 76 AS col2, COUNT ( * ) AS col2 FROM tab1
----
76
3

query II rowsort
SELECT - - col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT ALL + ( + - COUNT( * ) ) DIV COUNT( * ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + ( + - COUNT ( * ) ) / COUNT ( * ) FROM tab0 cor0
----
-1

query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT DISTINCT - col0 * - CAST( - 20 AS SIGNED ) + + 13 FROM tab2 AS cor0 WHERE NOT ( NOT + - 46 / + col1 IS NOT NULL )
----
-1267
-1487
-907

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - col0 * - CAST ( - 20 AS INTEGER ) + + 13 FROM tab2 AS cor0 WHERE NOT ( NOT + - 46 / + col1 IS NOT NULL )
----
-1267
-1487
-907

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 col2, - col0 FROM tab2
----
-2116
-46
-4096
-64
-5625
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + + 60 * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-540

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + + 60 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col1 FROM tab1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9009
SELECT ( - CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) - MAX( ALL + 37 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9009
SELECT ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) - MAX ( ALL + 37 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

query I rowsort
SELECT + - 47 + col1 * + ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
4298
437
763

query I rowsort
SELECT + col0 * - 12 + col1 AS col1 FROM tab1
----
-1015
-1045
-598

query II rowsort
SELECT ALL col0, col1 + + 34 FROM tab2
----
46
85
64
111
75
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9013
SELECT - CAST( NULL AS SIGNED ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9013
SELECT - CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT COUNT( DISTINCT + 43 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT COUNT ( DISTINCT + 43 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL MAX( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL MAX ( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT + col1 DIV + + 87 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT + col1 / + + 87 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - 97 FROM tab1 AS cor0
----
-102
-111
-144

query I rowsort
SELECT DISTINCT + + 86 + 12 FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL + - 79 * + 28 * + 43 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + - 79 * + 28 * + 43 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE - col2 + + col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - 42 * - ( + ( + col2 ) ) AS col1 FROM tab0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT 83 * SUM( ALL 37 ) FROM tab1
----
9213

skipif mysql # not compatible
query I rowsort label-9022
SELECT 83 * SUM ( ALL 37 ) FROM tab1
----
9213

query I rowsort
SELECT + col2 * - 64 AS col0 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT + CAST( NULL AS SIGNED ) * + ( + SUM( - 38 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + CAST ( NULL AS INTEGER ) * + ( + SUM ( - 38 ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 32 * COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 32 * COUNT ( * ) AS col1 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT ALL 60 DIV - 64 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 60 / - 64 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 77 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * 80 + + 36 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 19 - + col2 AS col2 FROM tab1
----
-40
-49
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * col2 ) BETWEEN ( NULL ) AND - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 56 - - 48 AS col1 FROM tab2
----
104
104
104

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE ( - col1 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col2 * + 18
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 27 ) NOT BETWEEN - col1 + 12 AND + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 WHERE col0 * - col1 = + ( - 6 ) * + col0
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE col0 * - col1 = + ( - 6 ) * + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 4 <= 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT COUNT( col0 ) + + 77 col1 FROM tab2
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9038
SELECT DISTINCT COUNT ( col0 ) + + 77 col1 FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 WHERE 8 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 WHERE 8 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL 26 - COUNT( * ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL 26 - COUNT ( * ) AS col1 FROM tab2
----
23

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 79 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 NOT BETWEEN 52 AND - 92 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) + + 86 * col0 AS col2 FROM tab0
----
1371
7503
8343

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT col1 + 46 DIV + col1 col2 FROM tab1
----
14
17
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9045
SELECT DISTINCT col1 + 46 / + col1 col2 FROM tab1
----
14
17
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 <= col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT - CAST( col2 AS SIGNED ) + col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-9047
SELECT - CAST ( col2 AS INTEGER ) + col1 FROM tab0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT + COUNT( * ) * SUM( + 22 * + col1 ) FROM tab1 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + COUNT ( * ) * SUM ( + 22 * + col1 ) FROM tab1 AS cor0
----
4356

query I rowsort
SELECT DISTINCT - 66 * col0 FROM tab0 AS cor0
----
-5742
-6402
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9051
SELECT ALL - 23 DIV COUNT( * ) FROM tab0 AS cor0 WHERE ( + col2 DIV CAST( - ( - 56 ) AS SIGNED ) ) IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - 23 / COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col2 / CAST ( - ( - 56 ) AS INTEGER ) ) IS NOT NULL
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL - SUM( ALL ( + 66 ) ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 90 * + col0 IS NULL
----
594

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - SUM ( ALL ( + 66 ) ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 90 * + col0 IS NULL
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT col0 DIV ( 88 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9053
SELECT col0 / ( 88 ) FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - 57 = - col1 + - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT DISTINCT COUNT( * ) * + SUM( col1 ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT COUNT ( * ) * + SUM ( col1 ) AS col0 FROM tab1
----
198

query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-9059
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + - 56 ) BETWEEN ( + CAST( NULL AS SIGNED ) + - col1 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-9061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + - 56 ) BETWEEN ( + CAST ( NULL AS INTEGER ) + - col1 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 42 col1 FROM tab0 AS cor0
----
-129
-139
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - ( + COUNT( 80 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9064
SELECT - ( + COUNT ( 80 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + - COUNT( ( + 4 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9066
SELECT + - COUNT ( ( + 4 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + 19 AS col2 FROM tab1 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab1
----
72
72
72

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab0 WHERE ( + 27 ) <= ( 54 )
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9070
SELECT ALL - 73 * ( 43 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - 73 * ( 43 ) + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT MIN( 79 ) AS col1 FROM tab1 WHERE + 10 * ( col2 ) <> col0
----
79

skipif mysql # not compatible
query I rowsort label-9071
SELECT MIN ( 79 ) AS col1 FROM tab1 WHERE + 10 * ( col2 ) <> col0
----
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT ALL col1 + - + col2 DIV 99 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL col1 + - + col2 / 99 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT COUNT( * ) + + 88 AS col2 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9074
SELECT COUNT ( * ) + + 88 AS col2 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT SUM( col1 ) AS col2 FROM tab2 WHERE NULL > ( + col1 - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT SUM ( col1 ) AS col2 FROM tab2 WHERE NULL > ( + col1 - - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT ALL - 27 + + 39 DIV + col2 FROM tab0
----
-24
-27
-27

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - 27 + + 39 / + col2 FROM tab0
----
-24
-27
-27

query I rowsort
SELECT col1 + - col2 + 16 * col2 FROM tab2
----
396
677
937

query I rowsort
SELECT ALL + col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT - 45 + - 75 - ( col2 ) AS col0 FROM tab1 AS cor0
----
-179
-188
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT COUNT( * ) + MAX( + 65 ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9080
SELECT COUNT ( * ) + MAX ( + 65 ) AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col2 / - col0 FROM tab0 AS cor0 WHERE 54 / - col1 >= 57 + + 15
----

query I rowsort
SELECT + + 27 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + + COUNT( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9083
SELECT + + COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 88 * + col2 * col0 FROM tab0 AS cor0
----
62040
76560
845064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9085
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL + 1 + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + 1 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT COUNT( * ) - + - ( + ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT COUNT ( * ) - + - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2 * 86
----

query II rowsort
SELECT ALL + col1, 3 FROM tab0 cor0
----
1
3
21
3
81
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 10 + + - col1 ) >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL + MIN( - col2 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + MIN ( - col2 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = ( 52 * + ( col2 ) )
----

query II rowsort
SELECT ALL - ( + col2 ), ( col2 ) * 42 + col1 AS col2 FROM tab0
----
-10
441
-47
2055
-99
4159

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 58 = NULL
----

query I rowsort
SELECT ALL + 68 * col1 * col0 FROM tab2
----
159528
335104
341700

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 72 ) <> + col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 2 * col2 AS col2 FROM tab2 WHERE NOT - + col1 + + + col1 >= ( NULL )
----

query I rowsort
SELECT ( - 67 ) * - + col1 FROM tab1
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL COUNT( * ) * 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL COUNT ( * ) * 70 FROM tab0
----
210

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - 94 * - col0 AS col1 FROM tab0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT SUM( DISTINCT + col1 ) * ( - COUNT( * ) ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-9102
SELECT SUM ( DISTINCT + col1 ) * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-585

query I rowsort
SELECT ( - + 82 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT MIN( DISTINCT 91 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9104
SELECT MIN ( DISTINCT 91 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT ALL - + 25 + - 97 AS col1 FROM tab1 cor0
----
-122
-122
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 89 + col1 * + + CAST( NULL AS SIGNED ) NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9106
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 89 + col1 * + + CAST ( NULL AS INTEGER ) NOT IN ( + col0 )
----
0

query I rowsort
SELECT DISTINCT 15 FROM tab0 AS cor0 WHERE NOT 44 * + 83 * ( - + col0 ) * col2 + + col0 * + col0 IS NULL
----
15

query I rowsort
SELECT ALL col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT + 92 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT + 92 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9110
SELECT ALL - col0 + + col0 AS col0, col2 DIV - + col0 * + 67 FROM tab2
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL - col0 + + col0 AS col0, col2 / - + col0 * + 67 FROM tab2
----
0
0
0
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( + 71, + 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9112
SELECT DISTINCT + ( ( ( - CAST( NULL AS DECIMAL ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + ( ( ( - CAST ( NULL AS REAL ) ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( - - col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - MIN( col0 ) * + COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - MIN ( col0 ) * + COUNT ( * ) FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 NOT IN ( + - col1 * 1 * - + col2 * - col2 + col2 * col0 )
----

query I rowsort
SELECT DISTINCT col0 * - + col1 + - col0 * + col0 + - ( col0 ) * 63 FROM tab2
----
-13056
-15375
-7360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT SUM( ALL - + 80 ) DIV - 27 AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9117
SELECT SUM ( ALL - + 80 ) / - 27 AS col0 FROM tab0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT 46 DIV - - SUM( - 7 ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9118
SELECT 46 / - - SUM ( - 7 ) AS col2 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT ALL - - 2 * 84 + - col0 * col0 + 60 FROM tab2 AS cor0
----
-1888
-3868
-5397

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ( + SUM( - 83 ) ) + - COUNT( * ) + COUNT( * ) FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-9122
SELECT ( + SUM ( - 83 ) ) + - COUNT ( * ) + COUNT ( * ) FROM tab2
----
-249

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( + CAST( - col2 AS SIGNED ) ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9124
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( + CAST ( - col2 AS INTEGER ) ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT - MAX( - 74 ) DIV - - MIN( ALL - 83 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT - MAX ( - 74 ) / - - MIN ( ALL - 83 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9126
SELECT ALL COUNT( * ) + + 13 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND ( col1 )
----
13

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL COUNT ( * ) + + 13 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND ( col1 )
----
13

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT + CAST( NULL AS SIGNED ) NOT BETWEEN ( 76 + - + col1 ) AND + ( col1 ) + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-9128
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN ( 76 + - + col1 ) AND + ( col1 ) + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT + - MIN( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9131
SELECT + - MIN ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT 53, - 48 AS col2 FROM tab1
----
53
-48
53
-48
53
-48

query II rowsort
SELECT col1, + 76 * + ( + col1 ) + - col0 + + 78 + - + 92 - - col2 + col0 * - col0 FROM tab2
----
51
1723
67
-564
77
1718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9134
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9134
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT + - col2 + - - col0 * - col2 - - - ( - 64 ) FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT COUNT( * ) AS col1, 25 AS col1 FROM tab0
----
3
25

skipif mysql # not compatible
query II rowsort label-9136
SELECT COUNT ( * ) AS col1, 25 AS col1 FROM tab0
----
3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL - COUNT( - + col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - COUNT ( - + col0 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL COUNT( DISTINCT - + 67 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL COUNT ( DISTINCT - + 67 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 4 / + 65 + - + col2 NOT IN ( - 76, col0 + - col0 * + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9141
SELECT ALL ( - CAST( col1 AS SIGNED ) ) AS col1, 96 FROM tab0
----
-1
96
-21
96
-81
96

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL ( - CAST ( col1 AS INTEGER ) ) AS col1, 96 FROM tab0
----
-1
96
-21
96
-81
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT DISTINCT + 33 * + ( - 56 ) * CAST( NULL AS SIGNED ) - - CAST( + + col2 AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + 33 * + ( - 56 ) * CAST ( NULL AS INTEGER ) - - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 50 * + col1 IN ( + col2 * - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 89, - col0 * + 83 AS col2 FROM tab1
----
89
-4233
89
-7055
89
-7553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9145
SELECT ALL + CAST( - + 88 AS SIGNED ) + 29 AS col0, + col2 FROM tab0
----
-59
10
-59
47
-59
99

skipif mysql # not compatible
query II rowsort label-9145
SELECT ALL + CAST ( - + 88 AS INTEGER ) + 29 AS col0, + col2 FROM tab0
----
-59
10
-59
47
-59
99

query II rowsort
SELECT ALL col0 AS col1, 45 FROM tab0 AS cor0
----
15
45
87
45
97
45

query I rowsort
SELECT col1 + + 76 AS col2 FROM tab2 AS cor0
----
127
143
153

query I rowsort
SELECT ALL + 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL - - 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9150
SELECT + + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - - ( COUNT( + 96 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9151
SELECT - - ( COUNT ( + 96 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 + 33 AS col2 FROM tab0
----
132
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL 92 * - SUM( DISTINCT - col0 ) FROM tab2
----
17020

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL 92 * - SUM ( DISTINCT - col0 ) FROM tab2
----
17020

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT DISTINCT + col1 DIV - - 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + col1 / - - 80 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT ALL - col0 DIV col0 + + col0 AS col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - col0 / col0 + + col0 AS col0 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT DISTINCT + + col0 + col2 + 26 DIV + 18 FROM tab0 AS cor0
----
197
63
98

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + + col0 + col2 + 26 / + 18 FROM tab0 AS cor0
----
197
63
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + 29 * COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9157
SELECT + 29 * COUNT ( * ) FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9158
SELECT + col0, col1 * col1 DIV 90 FROM tab1
----
51
2
85
0
91
24

skipif mysql # not compatible
query II rowsort label-9158
SELECT + col0, col1 * col1 / 90 FROM tab1
----
51
2
85
0
91
24

query I rowsort
SELECT ALL 3 AS col1 FROM tab1 WHERE NOT NULL IN ( + col1, - 81 / + ( col2 ) - + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT 30 / - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT 30 / - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT MAX( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + 59
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT - 10, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-10
3

skipif mysql # not compatible
query II rowsort label-9164
SELECT - 10, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT ( - ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - ( + ( - ( - + ( + COUNT( * ) ) ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9166
SELECT - ( + ( - ( - + ( + COUNT ( * ) ) ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ( 61 ) * - col0 * + + 66 FROM tab0 AS cor0
----
-350262
-390522
-60390

onlyif mysql # DIV for integer division: 
query II rowsort label-9168
SELECT - col2 DIV + + col0 AS col0, 74 AS col1 FROM tab2 AS cor0
----
0
74
0
74
0
74

skipif mysql # not compatible
query II rowsort label-9168
SELECT - col2 / + + col0 AS col0, 74 AS col1 FROM tab2 AS cor0
----
0
74
0
74
0
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL < NULL )
----

query II rowsort
SELECT 76 * 33, col2 FROM tab2
----
2508
23
2508
40
2508
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - SUM( ALL + + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9171
SELECT - SUM ( ALL + + col2 ) FROM tab2
----
-121

query I rowsort
SELECT col0 * - 18 * - - col2 FROM tab1
----
-111384
-88128
-90270

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT SUM( ALL 3 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT SUM ( ALL 3 ) AS col2 FROM tab2
----
9

query II rowsort
SELECT DISTINCT + col0 + - - 82 AS col0, col0 FROM tab1
----
133
51
167
85
173
91

query I rowsort
SELECT - - ( - + 55 ) FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + - col1 * ( - col1 ) * 82 FROM tab0 AS cor0
----
36162
538002
82

query I rowsort
SELECT DISTINCT - ( - col0 ) * + 2 + col1 AS col2 FROM tab2 cor0
----
143
205
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col0 col1 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 92 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 0 * - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE - 98 NOT IN ( col0 )
----
10
47
99

query I rowsort
SELECT - + 25 AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT - - 59 AS col0 FROM tab0 cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + - col0, - col1 * - col0 col1 FROM tab2
----
-128
4928
-150
5025
-92
2346

query I rowsort
SELECT ALL 70 * + col2 - + 90 FROM tab1
----
4040
4670
6630

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT 97 * - + SUM( col1 ) FROM tab2
----
-18915

skipif mysql # not compatible
query I rowsort label-9186
SELECT 97 * - + SUM ( col1 ) FROM tab2
----
-18915

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col2 * + col1 / - col0 ) IS NULL
----

query I rowsort
SELECT col0 * + col0 - + col0 AS col1 FROM tab1
----
2550
7140
8190

query I rowsort
SELECT col0 * - col1 - col1 + - - 92 * col2 FROM tab2
----
-1325
-281
244

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT 2 DIV col1 * col2 - 10 FROM tab0
----
-10
-10
188

skipif mysql # not compatible
query I rowsort label-9190
SELECT 2 / col1 * col2 - 10 FROM tab0
----
-10
-10
188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col2 = - col1 * + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - + MAX( ALL - + 18 ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + MAX ( ALL - + 18 ) FROM tab2 AS cor0
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 + + + col1 + - col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - ( - - ( - MAX( ALL - col1 ) ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9194
SELECT - ( - - ( - MAX ( ALL - col1 ) ) ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col2 * col0 + - + col2 + + 52 * 99 * - col2 + - col2 + + col1 * - 78 + - col2 * 52 + + ( - - 49 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 BETWEEN ( + - col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + + ( + - 61 ) FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 * - + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT + + COUNT( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + + COUNT ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT - - 29 * + COUNT( + 52 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9201
SELECT - - 29 * + COUNT ( + 52 ) FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9202
SELECT ALL col1 col0, + 21 + - CAST( NULL AS DECIMAL ) + - + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9202
SELECT ALL col1 col0, + 21 + - CAST ( NULL AS REAL ) + - + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT col2 DIV - - 90 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT col2 / - - 90 AS col1 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 45 * 6 * + - col2 > NULL
----

query I rowsort
SELECT - ( - 95 ) * - col1 AS col2 FROM tab2 cor0
----
-4845
-6365
-7315

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT + + 45 IS NULL
----
1
21
81

query I rowsort
SELECT + 39 * + col0 FROM tab1
----
1989
3315
3549

query II rowsort
SELECT ALL col0 AS col1, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL col0 + - + col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 41 ) IS NULL
----

query I rowsort
SELECT + col0 + + 12 AS col2 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT col1 + + 88 AS col0 FROM tab0 AS cor0
----
109
169
89

query I rowsort
SELECT - - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT 7 + + 38 AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT + CAST( + col0 AS SIGNED ) - - ( - col1 ) + - 3 FROM tab1 AS cor0
----
34
41
77

skipif mysql # not compatible
query I rowsort label-9215
SELECT + CAST ( + col0 AS INTEGER ) - - ( - col1 ) + - 3 FROM tab1 AS cor0
----
34
41
77

query I rowsort
SELECT + ( col0 ) - - 92 AS col2 FROM tab2 AS cor0
----
138
156
167

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT col2 * 82 * + + col0 + + - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
401469
411213
507415

skipif mysql # not compatible
query I rowsort label-9217
SELECT col2 * 82 * + + col0 + + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
401469
411213
507415

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 - + - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 88 * 97 * - + 65 - - col2 FROM tab0 AS cor0
----
-554741
-554793
-554830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9220
SELECT * FROM tab2 AS cor0 WHERE + ( CAST( - 60 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9220
SELECT * FROM tab2 AS cor0 WHERE + ( CAST ( - 60 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 30 AS col0, - col1 AS col2 FROM tab0
----
30
-1
30
-21
30
-81

query II rowsort
SELECT 76 * - col1 * + + col2, col0 FROM tab2
----
-234080
64
-295336
75
-89148
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9223
SELECT DISTINCT - 66 AS col0, + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
-66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9223
SELECT DISTINCT - 66 AS col0, + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
-66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT + 49 DIV + 39 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9224
SELECT + 49 / + 39 FROM tab1
----
1
1
1

query II rowsort
SELECT 68, 68 FROM tab2 AS cor0
----
68
68
68
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - col0 + - - col0 AND NULL
----

query I rowsort
SELECT col1 * - + col1 * - - col1 AS col2 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT ALL col0 * - + 2 * - 59 FROM tab1
----
10030
10738
6018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT CAST( 51 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-9229
SELECT CAST ( 51 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9230
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT ALL col0 * + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 3 * + - col0 FROM tab0
----
-261
-291
-45

query I rowsort
SELECT - ( - - 2 ) * - ( - col0 ) AS col2 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - col0 * - col0 + - - col0 * + ( - col0 ) col0 FROM tab1
----
-223975
-256711
-80631

query I rowsort
SELECT DISTINCT + ( - ( + ( + col0 ) ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + col0 + + 0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL - col2 + - col0 + col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - col2 + + ( - + 66 ) FROM tab1 AS cor0
----
-125
-134
-162

query I rowsort
SELECT - col2 + + 2 AS col1 FROM tab2
----
-21
-38
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT ALL - 0 - + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9240
SELECT ALL - 0 - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, + 40 FROM tab1
----
51
40
85
40
91
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - col1 * - col2 col1 FROM tab2 cor0
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL - CAST( NULL AS SIGNED ) * + 68 / - 97 / + - col0 - + col1 + - 3 * ( + + col2 ) + - 14 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - CAST ( NULL AS INTEGER ) * + 68 / - 97 / + - col0 - + col1 + - 3 * ( + + col2 ) + - 14 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9246
SELECT ALL - + 90 + + col1 AS col0, col2 DIV + col2 - - - col1 - + col0 - - col1 DIV - - col1 + - col2 * 17 FROM tab1 AS cor0
----
-43
-1292
-76
-1695
-85
-1091

skipif mysql # not compatible
query II rowsort label-9246
SELECT ALL - + 90 + + col1 AS col0, col2 / + col2 - - - col1 - + col0 - - col1 / - - col1 + - col2 * 17 FROM tab1 AS cor0
----
-43
-1292
-76
-1695
-85
-1091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT ( + CAST( - - col1 AS SIGNED ) ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9247
SELECT ( + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + SUM( ALL 44 ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + SUM ( ALL 44 ) AS col2 FROM tab2
----
132

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT MIN( DISTINCT - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9250
SELECT MIN ( DISTINCT - + col0 ) FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) < + col1 / + ( - col0 )
----

query I rowsort
SELECT ALL + col2 + 54 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 * ( - - 11 ) FROM tab0
----
1089
110
517

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL + MIN( + - ( 95 ) ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + MIN ( + - ( 95 ) ) FROM tab1
----
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 85 <= NULL
----

query I rowsort
SELECT - col0 * + - col0 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-262104
-421817
-97313

query I rowsort
SELECT ALL - 6 AS col2 FROM tab2 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - + MAX( + col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + MAX ( + col0 ) AS col2 FROM tab1 cor0
----
-91

query I rowsort
SELECT col0 / - 94 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( - + ( + col2 ) ) col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9263
SELECT - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col0 * col0 * + - 84 FROM tab0
----
18900
635796
790356

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL - 69 + + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL - 69 + + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
-60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT DISTINCT + 30 + + + CAST( col2 AS SIGNED ) * 98 * col1 FROM tab1 AS cor0
----
131742
28940
313238

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + 30 + + + CAST ( col2 AS INTEGER ) * 98 * col1 FROM tab1 AS cor0
----
131742
28940
313238

query I rowsort
SELECT + col0 * - col0 - col2 * 39 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT DISTINCT col1 DIV 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT col1 / 57 FROM tab1
----
0

query I rowsort
SELECT ( - 20 ) * 82 + - 20 AS col0 FROM tab1 AS cor0
----
-1660
-1660
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + - MAX( ALL - 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + - MAX ( ALL - 48 ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - AVG ( ALL + + col2 ) / - + MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - AVG ( ALL + + col2 ) / - + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN 23 * col0 AND ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT ALL - 7 DIV - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - 7 / - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT MAX( + col2 ) * SUM( + col0 ) FROM tab2
----
10730

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT MAX ( + col2 ) * SUM ( + col0 ) FROM tab2
----
10730

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT - + 0 BETWEEN NULL AND - col0 + - 22 / col1 * - - col0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - - col1 * + 93 * + 74 * - - 46 NOT BETWEEN NULL AND + col0 / col1 * - col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL + SUM( ALL + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + SUM ( ALL + + col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT CAST( NULL AS SIGNED ) AS col0, + 96 col1 FROM tab1
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9280
SELECT CAST ( NULL AS INTEGER ) AS col0, + 96 col1 FROM tab1
----
NULL
96
NULL
96
NULL
96

query I rowsort
SELECT + col2 * + 82 FROM tab1
----
4838
5576
7872

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + + col1 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - col0 AND + + 0
----
-3

skipif mysql # not compatible
query I rowsort label-9283
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - col0 AND + + 0
----
-3

query I rowsort
SELECT ALL col0 * - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT 45 DIV - ( col0 ) AS col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT 45 / - ( col0 ) AS col1 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + COUNT ( col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 61 + - col2 FROM tab2 cor0
----
21
3
38

query I rowsort
SELECT ALL + col0 * - col0 * 10 FROM tab0 AS cor0
----
-2250
-75690
-94090

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT DISTINCT + COUNT( - 34 ), + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9290
SELECT DISTINCT + COUNT ( - 34 ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT 9 * 21 FROM tab2
----
189
189
189

query I rowsort
SELECT col2 * - - ( - - col0 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL 64 * 97 AS col2 FROM tab0
----
6208
6208
6208

query I rowsort
SELECT col1 * + 19 AS col2 FROM tab2
----
1273
1463
969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9295
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9295
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST ( - + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9296
SELECT DISTINCT * FROM tab1 WHERE NOT + - 36 * + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9296
SELECT DISTINCT * FROM tab1 WHERE NOT + - 36 * + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col0 FROM tab1
----
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 45 NOT IN ( + col0 - - 61 + + 57, col1, ( - col0 ), + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL 63 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 63 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE ( NOT + - col1 + - col1 > NULL )
----

query I rowsort
SELECT - col0 / + + col1 * - 50 FROM tab2 AS cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT DISTINCT + - ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + 93 - col2 AS col1 FROM tab0 AS cor0
----
-6
46
83

query I rowsort
SELECT col2 + - 27 AS col1 FROM tab2 AS cor0
----
-4
13
31

query I rowsort
SELECT + 7 + + - ( col2 ) + - ( ( + col1 ) ) * - + col2 * + - 30 FROM tab2 AS cor0
----
-116631
-35206
-92433

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - + 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + MAX( ALL - ( - ( + + 60 ) ) ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + MAX ( ALL - ( - ( + + 60 ) ) ) AS col1 FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 * - col0 * col2 * - 23 col1 FROM tab1 AS cor0
----
-151345152
-34026775
-454867504

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT + COUNT( + col1 ) * + + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + COUNT ( + col1 ) * + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT - + col0 DIV + 69 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9311
SELECT - + col0 / + 69 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9312
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN - - col1 AND - 38 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9312
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN - - col1 AND - 38 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL ( - - COUNT( - 58 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL ( - - COUNT ( - 58 ) ) FROM tab2
----
3

query II rowsort
SELECT + col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col1 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT + ( - ( - + col1 ) ) * + CAST( + - col2 AS SIGNED ) * - + col1 * - 6 AS col2 FROM tab2
----
-1422960
-1562172
-358938

skipif mysql # not compatible
query I rowsort label-9316
SELECT + ( - ( - + col1 ) ) * + CAST ( + - col2 AS INTEGER ) * - + col1 * - 6 AS col2 FROM tab2
----
-1422960
-1562172
-358938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT + MAX( DISTINCT + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + MAX ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT 13 + + col1 AS col0 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT ( + 72 ) DIV - - col0 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9320
SELECT ( + 72 ) / - - col0 AS col2 FROM tab0
----
0
0
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9321
SELECT 14 DIV + 56, ( - 75 ) AS col2 FROM tab0
----
0
-75
0
-75
0
-75

skipif mysql # not compatible
query II rowsort label-9321
SELECT 14 / + 56, ( - 75 ) AS col2 FROM tab0
----
0
-75
0
-75
0
-75

query III rowsort
SELECT * FROM tab2 WHERE + 79 BETWEEN NULL AND col0
----

query II rowsort
SELECT DISTINCT + - col2, col0 + 1 + + 87 AS col2 FROM tab0 AS cor0
----
-10
175
-47
103
-99
185

query II rowsort
SELECT col0 AS col2, - 22 - + col2 FROM tab0 AS cor0
----
15
-69
87
-32
97
-121

query I rowsort
SELECT + ( + 68 ) AS col1 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE - 10 NOT IN ( + - col0 )
----
15
87
97

query II rowsort
SELECT + col1 AS col1, 7 + + - col1 FROM tab2 AS cor0
----
51
-44
67
-60
77
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + - - 29 + 65 * col1 col2 FROM tab0 AS cor0
----
11855
1835
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 51, + col1 col0 FROM tab0 cor0
----
-51
1
-51
21
-51
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + + ( col0 ) * + ( - + col1 ) IS NOT NULL )
----

query I rowsort
SELECT col1 + 46 * - ( + col2 ) FROM tab2 AS cor0
----
-1007
-1763
-2601

query I rowsort
SELECT - col0 + - - 26 FROM tab1
----
-25
-59
-65

query I rowsort
SELECT DISTINCT 6 FROM tab1 WHERE NOT - 88 NOT BETWEEN NULL AND + 27 * + col1 + - 33 + + 47
----

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1 WHERE NOT + 48 * + col0 IS NOT NULL
----

query I rowsort
SELECT - 72 FROM tab2 WHERE + col1 IS NOT NULL
----
-72
-72
-72

query I rowsort
SELECT + col2 + - 97 AS col0 FROM tab1
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT 89 * + MAX( - col0 ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
-4097

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT 89 * + MAX ( - col0 ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-4097

query II rowsort
SELECT ALL + col0 AS col0, col1 + + + col1 AS col0 FROM tab1
----
51
28
85
10
91
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - ( + - COUNT( DISTINCT - + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9340
SELECT - ( + - COUNT ( DISTINCT - + col0 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9341
SELECT - SUM( + 5 ) * + ( + MIN( ALL col2 ) ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT - SUM ( + 5 ) * + ( + MIN ( ALL col2 ) ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 92 + - - 85 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT 95 AS col0, + COUNT( * ) col2 FROM tab0 AS cor0
----
95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9343
SELECT 95 AS col0, + COUNT ( * ) col2 FROM tab0 AS cor0
----
95
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 * - ( col1 ) NOT IN ( col2 * - + ( col1 ), col2 * col0 + - - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT - COUNT( ALL ( - col0 ) ) * + - MIN( DISTINCT - col1 ) * - COUNT( * ) * - - 33 FROM tab1 AS cor0
----
13959

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - COUNT ( ALL ( - col0 ) ) * + - MIN ( DISTINCT - col1 ) * - COUNT ( * ) * - - 33 FROM tab1 AS cor0
----
13959

query II rowsort
SELECT - + col1 AS col0, col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9347
SELECT 15 col2, col0 DIV col1 AS col0 FROM tab1 AS cor0
----
15
1
15
17
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9347
SELECT 15 col2, col0 / col1 AS col0 FROM tab1 AS cor0
----
15
1
15
17
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9348
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9349
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - col0 )
----

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - col0 )
----

query I rowsort
SELECT ALL ( - col2 ) + + + 75 FROM tab0 WHERE + col1 = + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 35 + - col0 * - 17 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9353
SELECT ALL MIN( - col1 ) AS col0, - COUNT( - - col2 ) FROM tab2
----
-77
-3

skipif mysql # not compatible
query II rowsort label-9353
SELECT ALL MIN ( - col1 ) AS col0, - COUNT ( - - col2 ) FROM tab2
----
-77
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 70 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL + + 94 * + col0 AS col0, + col2 AS col1 FROM tab0 AS cor0
----
1410
47
8178
10
9118
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col1 / + 45 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - 45 AS col0 FROM tab2
----
-45
-45
-45

query I rowsort
SELECT - 85 + - col1 AS col2 FROM tab2
----
-136
-152
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT MIN( ALL col1 ) + COUNT( DISTINCT + 18 ) AS col2 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-9362
SELECT MIN ( ALL col1 ) + COUNT ( DISTINCT + 18 ) AS col2 FROM tab2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + + col2 col2 FROM tab1 WHERE NULL IS NULL
----
60
69
97

query I rowsort
SELECT ALL + 5 FROM tab1 cor0 WHERE 26 BETWEEN NULL AND col0 + + - 84
----

query I rowsort
SELECT DISTINCT - - col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - 93 + 21 FROM tab1 cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - + 25 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL - + 63 + - + MAX( - 79 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - + 63 + - + MAX ( - 79 ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) <> NULL
----

query II rowsort
SELECT - 13 AS col2, 75 AS col1 FROM tab0
----
-13
75
-13
75
-13
75

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 82 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - MAX( ALL + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9373
SELECT - MAX ( ALL + col2 ) AS col2 FROM tab2
----
-58

query II rowsort
SELECT + col1 AS col0, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9375
SELECT col1 - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT col1 - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 * - col0, 26 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT MIN( + 90 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT MIN ( + 90 ) FROM tab2 AS cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT col1 AS col1, col0 - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + COUNT( * ) * - MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
153

query I rowsort
SELECT + ( - 83 ) AS col2 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT - ( - COUNT( + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - ( - COUNT ( + col2 ) ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + 15, 75 * + 35 AS col1 FROM tab2
----
15
2625

query I rowsort
SELECT DISTINCT 8 * - - col1 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9388
SELECT CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ), 54 AS col0 FROM tab1
----
-3
54

skipif mysql # not compatible
query II rowsort label-9388
SELECT CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ), 54 AS col0 FROM tab1
----
-3
54

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9390
SELECT * FROM tab0 WHERE NOT col2 BETWEEN CAST( - - col0 AS SIGNED ) + 61 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9390
SELECT * FROM tab0 WHERE NOT col2 BETWEEN CAST ( - - col0 AS INTEGER ) + 61 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - 33 col0 FROM tab0
----
-3069
-3069
-3069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + - col1 * - + 61 col2, 30 col1 FROM tab2
----
187880
30
237046
30
71553
30

query I rowsort
SELECT - + 53 * 81 + 7 + + + col0 FROM tab1 AS cor0
----
-4195
-4201
-4235

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( - col0 ) <> 15 / + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9395
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col0, col0 * + col2 + + 72 FROM tab0
----
NULL
777
NULL
942
NULL
9675

skipif mysql # not compatible
query II rowsort label-9395
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col0, col0 * + col2 + + 72 FROM tab0
----
NULL
777
NULL
942
NULL
9675

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 61 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + 78 - + - col0 + - - col1 FROM tab1 AS cor0
----
4043
6720
7236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT DISTINCT + 81 + + col1 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + 81 + + col1 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - + col1 * + col2 - col0 - - 28 - + - 97 * + - col2 FROM tab2 AS cor0
----
-3468
-7060
-9634

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + col1 * - - 16 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9400
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + col1 * - - 16 IS NOT NULL
----
-3

query I rowsort
SELECT - col0 + - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-69
-88
-92

query I rowsort
SELECT DISTINCT col2 + + 51 FROM tab2 cor0
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT + SUM( + 73 ) AS col0 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + SUM ( + 73 ) AS col0 FROM tab1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT ( - + col1 ) * + 68 * - - CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab2 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9404
SELECT ( - + col1 ) * + 68 * - - CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - 1 + + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9406
SELECT - 1 + + COUNT ( * ) AS col0 FROM tab0
----
2

query I rowsort
SELECT DISTINCT col0 - + - ( + col2 ) FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE - 87 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9409
SELECT 7 + + col0 + + + 18 DIV col0 AS col1 FROM tab1 WHERE - - col2 NOT IN ( + col0 * - col0 * + col2 * - - ( + 41 ) - - CAST( + col1 AS SIGNED ) )
----
58
92
98

skipif mysql # not compatible
query I rowsort label-9409
SELECT 7 + + col0 + + + 18 / col0 AS col1 FROM tab1 WHERE - - col2 NOT IN ( + col0 * - col0 * + col2 * - - ( + 41 ) - - CAST ( + col1 AS INTEGER ) )
----
58
92
98

query I rowsort
SELECT + ( - - 45 ) FROM tab0 AS cor0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT ALL - col0 * col0 DIV col1 AS col0 FROM tab1
----
-1445
-176
-185

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - col0 * col0 / col1 AS col0 FROM tab1
----
-1445
-176
-185

query I rowsort
SELECT + 99 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query II rowsort
SELECT ALL + + 87 AS col0, - 26 AS col2 FROM tab2 AS cor0
----
87
-26
87
-26
87
-26

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < 7 + - + 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9416
SELECT ALL - + 97 AS col0, CAST( + 53 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-97
53
-97
53
-97
53

skipif mysql # not compatible
query II rowsort label-9416
SELECT ALL - + 97 AS col0, CAST ( + 53 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-97
53
-97
53
-97
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL 28 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( + 87 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT - - COUNT( * ) AS col0, + 7 FROM tab0 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-9419
SELECT - - COUNT ( * ) AS col0, + 7 FROM tab0 AS cor0
----
3
7

query I rowsort
SELECT ALL - col2 * + + col1 * - + col0 FROM tab1 AS cor0
----
25075
290836
68544

query II rowsort
SELECT ( + + 42 ), + col1 * + + col1 AS col1 FROM tab0
----
42
1
42
441
42
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT MAX( - 88 ) AS col0 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-9422
SELECT MAX ( - 88 ) AS col0 FROM tab0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT ALL + 46 DIV ( - - col1 ) col2 FROM tab0
----
0
2
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9423
SELECT ALL + 46 / ( - - col1 ) col2 FROM tab0
----
0
2
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9424
SELECT DISTINCT + - 71 AS col2 FROM tab0 WHERE NOT ( NULL IN ( 76, col0 + - col2, - - CAST( NULL AS DECIMAL ) + - col0, + + CAST( col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + - 71 AS col2 FROM tab0 WHERE NOT ( NULL IN ( 76, col0 + - col2, - - CAST ( NULL AS REAL ) + - col0, + + CAST ( col0 AS INTEGER ) ) )
----

query I rowsort
SELECT + 79 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 4 + - col2 FROM tab2 cor0
----
-27
-44
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 26 col2 FROM tab1
----
111
117
77

query III rowsort
SELECT * FROM tab2 WHERE col2 + - ( + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9429
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col2, - 33 + + MIN( CAST( NULL AS DECIMAL ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9429
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col2, - 33 + + MIN ( CAST ( NULL AS REAL ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
NULL

query I rowsort
SELECT + 87 + + col1 + 35 - + - col1 + 58 FROM tab2 AS cor0
----
282
314
334

query I rowsort
SELECT DISTINCT - col0 + 45 FROM tab0 AS cor0
----
-42
-52
30

query I rowsort
SELECT DISTINCT ( - + 13 ) FROM tab2 cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + COUNT( ALL col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9433
SELECT + COUNT ( ALL col1 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL COUNT( * ) - - 68 * + 10 col1 FROM tab0 AS cor0
----
683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9434
SELECT ALL COUNT ( * ) - - 68 * + 10 col1 FROM tab0 AS cor0
----
683

query I rowsort
SELECT ALL + 62 * + 84 + - col2 AS col0 FROM tab2
----
5150
5168
5185

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col1 FROM tab1 WHERE NOT NULL < 45
----

query II rowsort
SELECT ( col1 ) - - + 24 * col1 * + + col0 AS col2, - 45 - 31 + - 32 + + col2 + + 50 + + col1 * 34 * + col0 FROM tab0
----
2329
3339
29241
41299
43869
62070

query I rowsort
SELECT ALL col0 - + 33 + - 63 FROM tab1
----
-11
-45
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab0 cor0
----
23

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE 89 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + - MAX( ALL 96 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9441
SELECT DISTINCT + - MAX ( ALL 96 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - ( - ( - COUNT( * ) ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9442
SELECT - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9443
SELECT ALL 90 AS col0, - col2 DIV + col1 * - col1 FROM tab0 AS cor0
----
90
0
90
0
90
99

skipif mysql # not compatible
query II rowsort label-9443
SELECT ALL 90 AS col0, - col2 / + col1 * - col1 FROM tab0 AS cor0
----
90
0
90
0
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + 45 * + ( + + MIN( - ( + + 93 ) ) ) FROM tab0 AS cor0
----
-4185

skipif mysql # not compatible
query I rowsort label-9444
SELECT + 45 * + ( + + MIN ( - ( + + 93 ) ) ) FROM tab0 AS cor0
----
-4185

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - col0 / - col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 69 ) col2 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9447
SELECT ALL 89 col1, - CAST( + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
89
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9447
SELECT ALL 89 col1, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
89
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9448
SELECT MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9449
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ), + MAX( + 88 ) col0 FROM tab2
----
NULL
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9449
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ), + MAX ( + 88 ) col0 FROM tab2
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - COUNT( * ) * SUM( 25 ) AS col2 FROM tab0 WHERE + ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - COUNT ( * ) * SUM ( 25 ) AS col2 FROM tab0 WHERE + ( + col0 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT 71 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT 71 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 38 col2 FROM tab1 WHERE NOT + - col1 IS NULL
----
1786
190
532

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9453
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 * col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 * col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT + 86 * + COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT + 86 * + COUNT ( * ) FROM tab0
----
258

query I rowsort
SELECT DISTINCT + 80 + + ( + 14 ) + + col0 AS col1 FROM tab2
----
140
158
169

query I rowsort
SELECT + - col1 + 82 AS col0 FROM tab2 AS cor0
----
15
31
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 68 - + col0 BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT DISTINCT col2 DIV - + 43 + col0 AS col1 FROM tab0 AS cor0
----
14
87
95

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT col2 / - + 43 + col0 AS col1 FROM tab0 AS cor0
----
14
87
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT col2 * + + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( - - col0 + + col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT col2 * + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( - - col0 + + col1 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL + COUNT( * ) + 13 AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + COUNT ( * ) + 13 AS col0 FROM tab0 AS cor0
----
16

query I rowsort
SELECT + 56 - 71 AS col2 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + 24 * 3 AND NULL
----
-1215

query I rowsort
SELECT + + col2 + + ( 17 ) AS col1 FROM tab1 AS cor0
----
113
76
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT + - col0 + + + col1 DIV - 82 * - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9465
SELECT + - col0 + + + col1 / - 82 * - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 16 + - ( - + 78 ) FROM tab0 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - COUNT( ALL + + col0 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT - COUNT ( ALL + + col0 ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT CAST( NULL AS SIGNED ) * - ( + + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT CAST ( NULL AS INTEGER ) * - ( + + COUNT ( * ) ) FROM tab0
----
NULL

query I rowsort
SELECT 49 * - + 88 FROM tab1
----
-4312
-4312
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - COUNT( ALL - col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9470
SELECT - COUNT ( ALL - col2 ) col0 FROM tab0
----
-3

query II rowsort
SELECT 21 AS col0, - col0 * + + ( + col1 ) * - + col1 + - 58 AS col1 FROM tab0 AS cor0
----
21
38309
21
39
21
98357

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + SUM( - ( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9472
SELECT + SUM ( - ( col0 ) ) FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT - col2 DIV col0 + - col0 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - col2 / col0 + - col0 FROM tab1
----
-52
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9474
SELECT SUM ( DISTINCT col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL - SUM( - 18 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - SUM ( - 18 ) AS col2 FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + 56 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - 19 - - COUNT( * ) AS col1 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9477
SELECT - 19 - - COUNT ( * ) AS col1 FROM tab1
----
-16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 1 NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + COUNT( * ) - 60 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COUNT ( * ) - 60 FROM tab1
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - 7 * col0 )
----

query I rowsort
SELECT DISTINCT 4 * col0 + col0 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT 5 * - COUNT( * ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-9482
SELECT 5 * - COUNT ( * ) AS col0 FROM tab2
----
-15

query I rowsort
SELECT ALL col2 - - col1 * col2 AS col1 FROM tab1
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + 80 ) < - col1 * + col1 + col2
----

query I rowsort
SELECT ALL + AVG ( col1 ) * + 18 FROM tab1 WHERE col1 - col1 IS NULL
----
NULL

query I rowsort
SELECT col1 * 82 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT - 59 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( 80 ) * 26 + col2 NOT IN ( - col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT - COUNT( * ) * + COUNT( col1 * + 23 ) - - COUNT( * ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9490
SELECT - COUNT ( * ) * + COUNT ( col1 * + 23 ) - - COUNT ( * ) col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0
----
75
75
75

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT 11 / col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT ALL + col1 * - ( - 52 DIV - 85 ) col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT ALL + col1 * - ( - 52 / - 85 ) col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT col2 DIV 27 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9496
SELECT col2 / 27 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT 53 * + col0 FROM tab0 cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE + col1 * col2 NOT BETWEEN NULL AND col1
----
14
47
5

query I rowsort
SELECT - col2 / - 14 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + 0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + ( 41 ) * + col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 30 + col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( + 46 / - ( + col1 * col1 ) + - col0 )
----
21
55
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT MAX( DISTINCT + 49 ) AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9505
SELECT MAX ( DISTINCT + 49 ) AS col2 FROM tab2 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + + COUNT( * ) * - 90 AS col1 FROM tab0 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + + COUNT ( * ) * - 90 AS col1 FROM tab0 cor0
----
-270

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 * + ( - col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT + - SUM( 11 ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + - SUM ( 11 ) AS col1 FROM tab2 AS cor0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col2 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT ALL - 87 * - col2 FROM tab0
----
4089
8613
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) = + col2
----

skipif mysql # not compatible
query I rowsort label-9512
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) = + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col2 * + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + + 56
----

query I rowsort
SELECT ALL + col2 * - 29 AS col0 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT MIN( + col2 ) + - MIN( + col2 + 22 / - 7 ) FROM tab2 WHERE 6 + - 38 * 31 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT MIN ( + col2 ) + - MIN ( + col2 + 22 / - 7 ) FROM tab2 WHERE 6 + - 38 * 31 = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND ( 91 - 69 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 78 AND + col0 / col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9520
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT + - SUM( - - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT + - SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col2 * + 57 + 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9523
SELECT DISTINCT - 66 AS col1, col0 - + + 29 * CAST( col2 AS SIGNED ) FROM tab2
----
-66
-1096
-66
-1607
-66
-621

skipif mysql # not compatible
query II rowsort label-9523
SELECT DISTINCT - 66 AS col1, col0 - + + 29 * CAST ( col2 AS INTEGER ) FROM tab2
----
-66
-1096
-66
-1607
-66
-621

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 61 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) <> - col1 + 22 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * 48 col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( col1 + col2 + col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT + + 71 + + SUM( ALL - + col0 ) FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + + 71 + + SUM ( ALL - + col0 ) FROM tab0 AS cor0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT MAX( - col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9529
SELECT MAX ( - col1 ) AS col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT DISTINCT - - col2 + + col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9531
SELECT ALL col2, - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL col2, - col1 / col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE + col1 / + 66 * col2 BETWEEN + col0 + col2 * col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - MIN( DISTINCT + + 58 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9533
SELECT - MIN ( DISTINCT + + 58 ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9535
SELECT + col0, CAST( 94 AS SIGNED ) AS col2 FROM tab2 cor0
----
46
94
64
94
75
94

skipif mysql # not compatible
query II rowsort label-9535
SELECT + col0, CAST ( 94 AS INTEGER ) AS col2 FROM tab2 cor0
----
46
94
64
94
75
94

query I rowsort
SELECT + 70 + + - col1 AS col0 FROM tab2
----
-7
19
3

query I rowsort
SELECT ALL + ( - + 96 ) AS col2 FROM tab0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT 20 * - CAST( NULL AS SIGNED ) - 42 * col2 FROM tab1 WHERE ( - 43 * + + col2 ) NOT BETWEEN 98 AND CAST( NULL AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT 20 * - CAST ( NULL AS INTEGER ) - 42 * col2 FROM tab1 WHERE ( - 43 * + + col2 ) NOT BETWEEN 98 AND CAST ( NULL AS INTEGER )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT + 69 <> NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * + col1 + 84 * + - 4 * 73 + - col2 * col1 col1 FROM tab0 AS cor0
----
-24704
-26355
-34572

query I rowsort
SELECT DISTINCT - + col1 - + - 18 FROM tab1 AS cor0
----
-29
13
4

query I rowsort
SELECT DISTINCT - - 44 + - col1 FROM tab2 cor0
----
-23
-33
-7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT col2 - - - col2 AS col2 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( + 80 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 51 + + col0 - - - 48 >= NULL
----

query I rowsort
SELECT DISTINCT + ( 75 ) AS col1 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9551
SELECT - MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT MIN( + 0 ) FROM tab0 cor0 WHERE NOT + 14 BETWEEN - - col1 * 73 AND - 30 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT MIN ( + 0 ) FROM tab0 cor0 WHERE NOT + 14 BETWEEN - - col1 * 73 AND - 30 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT - 2 DIV 68 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 2 / 68 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT MIN( + 85 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9555
SELECT MIN ( + 85 ) FROM tab1 AS cor0
----
85

query I rowsort
SELECT - - col1 * ( - + 18 ) FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT - + ( 96 ) FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT COUNT( DISTINCT 43 ) * SUM( ALL col0 + 17 ) AS col0 FROM tab0 AS cor0 WHERE + 51 * - col2 + col2 IN ( col0 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT COUNT ( DISTINCT 43 ) * SUM ( ALL col0 + 17 ) AS col0 FROM tab0 AS cor0 WHERE + 51 * - col2 + col2 IN ( col0 * col2 )
----
NULL

query I rowsort
SELECT ALL 53 AS col1 FROM tab0 cor0
----
53
53
53

query II rowsort
SELECT ALL 6, col1 FROM tab0
----
6
1
6
21
6
81

query I rowsort
SELECT - 89 FROM tab2 WHERE NOT 80 + + ( + col1 ) > ( + 97 )
----

query I rowsort
SELECT + col0 * + - 72 AS col1 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT DISTINCT col2 * + 48 AS col2 FROM tab1
----
2832
3264
4608

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - - ( col0 ) = NULL
----

query II rowsort
SELECT col1, - col1 + - + col2 FROM tab1
----
14
-110
47
-115
5
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + COUNT( * ) * - ( + 21 ) AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9566
SELECT + COUNT ( * ) * - ( + 21 ) AS col1 FROM tab0
----
-63

query I rowsort
SELECT ALL - 31 * - - ( col2 ) FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT ( + ( - ( + col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL - COUNT( * ) / 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-9569
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9570
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + 21 NOT IN ( CAST( - 29 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9570
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + 21 NOT IN ( CAST ( - 29 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + - MAX( - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9571
SELECT + - MAX ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT DISTINCT col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9574
SELECT ( + 54 ) DIV 71 DIV col2, CAST( 60 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
60
0
60
0
60

skipif mysql # not compatible
query II rowsort label-9574
SELECT ( + 54 ) / 71 / col2, CAST ( 60 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
60
0
60
0
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT ALL - col2 * col0 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - col2 * col0 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 1, - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT col2 IS NOT NULL )
----

query I rowsort
SELECT + 92 + + col1 + + col2 FROM tab1 AS cor0
----
156
202
207

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT DISTINCT 97 DIV - col1 FROM tab2 AS cor0 WHERE - col0 * col2 NOT IN ( ( - 53 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT 97 / - col1 FROM tab2 AS cor0 WHERE - col0 * col2 NOT IN ( ( - 53 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT DISTINCT - col2 + + - col0 DIV 15 FROM tab1 AS cor0
----
-64
-74
-99

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - col2 + + - col0 / 15 FROM tab1 AS cor0
----
-64
-74
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT - - col1 * + col0 + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-9582
SELECT - - col1 * + col0 + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT DISTINCT + - 0 + - col0 AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - col2 * col2 + + 74 FROM tab1 AS cor0
----
-3407
-4550
-9142

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - + 52 FROM tab1
----
-2652
-4420
-4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT + col2 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) * + col2 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9587
SELECT + col2 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) * + col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 71 * - + 58 AS col2 FROM tab0
----
-4118

query I rowsort
SELECT DISTINCT + 57 * + 3 AS col1 FROM tab1
----
171

query I rowsort
SELECT 63 * - + col0 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT DISTINCT + 24 * - col2 AS col2 FROM tab0
----
-1128
-2376
-240

query II rowsort
SELECT ALL - col0 AS col0, 43 AS col1 FROM tab2
----
-46
43
-64
43
-75
43

query I rowsort
SELECT + 52 - col1 AS col1 FROM tab1
----
38
47
5

query I rowsort
SELECT - col0 FROM tab0 WHERE + - 42 + - col1 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT + 11 * + - col0, 60 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + + MAX( 61 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-9596
SELECT + + MAX ( 61 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL COUNT( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT ALL COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( - col0 + + 45 + + - col1 * 30 * + col1 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT col1 DIV - ( + - col2 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT col1 / - ( + - col2 ) AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT - - COUNT( * ) * + + 30 AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
90
-3

skipif mysql # not compatible
query II rowsort label-9600
SELECT - - COUNT ( * ) * + + 30 AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
90
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + MIN( + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + MIN ( + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 22 * + col0 * - col2 * + + 36 AS col0 FROM tab1
----
-3877632
-3971880
-4900896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9604
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + 8 * - col1 + + CAST( NULL AS SIGNED ) * - + 40 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9604
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + 8 * - col1 + + CAST ( NULL AS INTEGER ) * - + 40 IS NULL
----

query I rowsort
SELECT ALL + col1 + 80 AS col2 FROM tab1 AS cor0
----
127
85
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT COUNT( * ) + + 7 / + CAST( NULL AS SIGNED ) + - 35 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( * ) + + 7 / + CAST ( NULL AS INTEGER ) + - 35 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT ALL + col2 * - - col1 / ( - + col1 ) * col1 + - - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 47 * - - col1 / + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + col2 * - - col1 / ( - + col1 ) * col1 + - - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 47 * - - col1 / + CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - + COUNT( * ) + MAX( - + col2 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - + COUNT ( * ) + MAX ( - + col2 ) FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL - + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT col0 DIV 57 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9610
SELECT col0 / 57 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT - col0 DIV col1 DIV + + col1 FROM tab1
----
-3
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - col0 / col1 / + + col1 FROM tab1
----
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT 7 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT 7 / + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 82 * - 5 + col1 FROM tab0 WHERE col0 + + - ( + + col2 ) - - 96 NOT BETWEEN - - col0 + + 27 + 6 AND - col2
----
-329
-389
-409

query I rowsort
SELECT DISTINCT 53 + - - col0 FROM tab0 AS cor0
----
140
150
68

onlyif mysql # DIV for integer division: 
query II rowsort label-9615
SELECT ALL col0 col0, - col1 DIV - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9615
SELECT ALL col0 col0, - col1 / - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT DISTINCT - + col0 * - - col1 + - - 46 FROM tab0 AS cor0
----
-1169
-1781
-51

query I rowsort
SELECT + + ( col2 ) - + 21 * + col2 FROM tab0 AS cor0
----
-1980
-200
-940

query I rowsort
SELECT 79 - - 13 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT + CAST( - 63 AS SIGNED ) + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9619
SELECT + CAST ( - 63 AS INTEGER ) + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL - SUM( ALL - col0 ) * COUNT( * ) + MIN( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT ALL - SUM ( ALL - col0 ) * COUNT ( * ) + MIN ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
497

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9621
SELECT + + COUNT( * ) + + CAST( NULL AS DECIMAL ) * + 36 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT + + COUNT ( * ) + + CAST ( NULL AS REAL ) * + 36 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL - CAST( NULL AS SIGNED ) * + AVG ( ALL CAST( NULL AS SIGNED ) ) * - SUM( ALL - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - CAST ( NULL AS INTEGER ) * + AVG ( ALL CAST ( NULL AS INTEGER ) ) * - SUM ( ALL - col2 ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT col2 + ( + 66 ) AS col1, col0 FROM tab2
----
106
64
124
75
89
46

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT 56 + - + 70 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab1
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT col1 * CAST( + - col1 AS SIGNED ) + + 99 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9626
SELECT col1 * CAST ( + - col1 AS INTEGER ) + + 99 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 28, col1 col0 FROM tab1
----
1428
14
2380
5
2548
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT ALL col2 DIV + 77 * - - col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL col2 / + 77 * - - col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9629
SELECT + - col0 DIV + 67 col1, col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9629
SELECT + - col0 / + 67 col1, col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT + - 42 DIV - - col2 AS col2 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT + - 42 / - - col2 AS col2 FROM tab0 cor0
----
-4
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9631
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > ( ( - col0 ) )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 * - 75 FROM tab1
----
59
375
68
3525
96
1050

query III rowsort
SELECT ALL * FROM tab0 WHERE + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 18 * + - col1 AS col1 FROM tab0
----
1458
18
378

query II rowsort
SELECT + - ( ( - - 77 ) ) AS col1, 29 FROM tab1 AS cor0
----
-77
29
-77
29
-77
29

query I rowsort
SELECT 90 * + - 63 FROM tab1 AS cor0
----
-5670
-5670
-5670

onlyif mysql # DIV for integer division: 
query II rowsort label-9638
SELECT + - 67 DIV - 26 + col2 + - col1 AS col1, - 37 FROM tab0 AS cor0
----
-32
-37
-9
-37
100
-37

skipif mysql # not compatible
query II rowsort label-9638
SELECT + - 67 / - 26 + col2 + - col1 AS col1, - 37 FROM tab0 AS cor0
----
-32
-37
-9
-37
100
-37

query I rowsort
SELECT - + col2 * - 23 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query II rowsort label-9640
SELECT ALL - col1 AS col1, 64 DIV + col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
4

skipif mysql # not compatible
query II rowsort label-9640
SELECT ALL - col1 AS col1, 64 / + col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
4

query I rowsort
SELECT + 15 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( col1, - 89 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT + MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL ( + ( - + MIN( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL ( + ( - + MIN ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 7 + - 80 * + 76 FROM tab1
----
-6073

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT COUNT( * ) + - MIN( DISTINCT + 60 ) AS col0 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9646
SELECT COUNT ( * ) + - MIN ( DISTINCT + 60 ) AS col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( col0 + + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 87 AS col2 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT 76 + - 28 FROM tab0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT - + 28 + + 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query II rowsort
SELECT + col1 + + 52 * + + 21 * col0 * col2 AS col0, col2 AS col0 FROM tab2 AS cor0
----
1155387
23
2795597
40
4750267
58

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab1 AS cor0 WHERE 0 < - + 52 * - - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 42 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 42 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT ALL + col2 + 44 DIV + 32 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + col2 + 44 / + 32 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 15 + - 81 + col2 AS col0 FROM tab0 AS cor0
----
-19
-56
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT ALL + + col0 - - + col1 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, 17 + + col1 col0 FROM tab1 AS cor0
----
-51
31
-85
22
-91
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 / col1 - - - 22 + + + col0 BETWEEN NULL AND - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 * col1 - - col1 * col1 - 63 * col2 + 19 FROM tab1
----
-3248
-5119
2221

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + SUM( DISTINCT - - col2 ) - - + COUNT( * ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) - - + COUNT ( * ) AS col2 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT ( + - 33 ) - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT ( + - 33 ) - COUNT ( * ) FROM tab0
----
-36

query III rowsort
SELECT * FROM tab0 WHERE + 40 < - col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT 20 * COUNT( * ) col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT 20 * COUNT ( * ) col0 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( * ) * + - 6 AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( * ) * + - 6 AS col0 FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + col2, - ( col1 ) )
----
-66
-96
66

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
2070
4032
5550

query II rowsort
SELECT + ( + col2 ), col1 + - col0 FROM tab2
----
23
5
40
13
58
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9672
SELECT ALL + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT MAX( ALL + 59 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT MAX ( ALL + 59 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + + 20 AS col2 FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL 53 AS col1 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ALL 29 * + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1363
2871
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 1 col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 15 * col1 AS col0 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( + col0 + - col1 ) <= col0 * + + 61
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( + col0 + - col1 ) <= col0 * + + 61
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT COUNT( * ) * - COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9681
SELECT COUNT ( * ) * - COUNT ( * ) col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab0, tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 16 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9683
SELECT + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 16 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 + - ( + - 76 ) FROM tab2 AS cor0
----
18
36
53

query I rowsort
SELECT DISTINCT 2 - - col2 + col2 FROM tab1 AS cor0
----
120
138
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT 93 * - COUNT( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT 93 * - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - 77 + MAX( ALL - col0 ) FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-9687
SELECT - 77 + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9688
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 + + - 50 * col2, + 84 )
----

query I rowsort
SELECT ALL - - col1 + - - 92 AS col2 FROM tab0 AS cor0
----
113
173
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 col1 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IN ( + col1, ( - + col1 ), - 43, + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IN ( + col1, ( - + col1 ), - 43, + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL ( + MIN( ALL col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL ( + MIN ( ALL col1 ) ) AS col0 FROM tab1
----
5

query I rowsort
SELECT DISTINCT - 80 * - 57 AS col2 FROM tab2
----
4560

query I rowsort
SELECT + 54 * - col2 FROM tab0
----
-2538
-5346
-540

query I rowsort
SELECT DISTINCT + col0 * - + ( col1 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col0 + - col0 <= col2
----

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT ( + + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT ( + + COUNT ( * ) ) AS col0 FROM tab0
----
3

query II rowsort
SELECT - 29 AS col1, col0 AS col1 FROM tab0
----
-29
15
-29
87
-29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL - COUNT( * ) + 74 + - COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - COUNT ( * ) + 74 + - COUNT ( * ) FROM tab2
----
68

query I rowsort
SELECT ALL + 13 * + + col0 AS col2 FROM tab2 AS cor0
----
598
832
975

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT DISTINCT 98 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT 98 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT - 52 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52

query II rowsort
SELECT ALL - col2, + col1 AS col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + + 75 + - - col1 + - col1 FROM tab2 AS cor0 WHERE NOT + 68 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL 95 * COUNT( * ) AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL 95 * COUNT ( * ) AS col2 FROM tab0
----
285

query I rowsort
SELECT DISTINCT + col0 * - + col2 * - col2 AS col1 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL - 86 * + COUNT( * ) AS col1 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL - 86 * + COUNT ( * ) AS col1 FROM tab0
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT - COUNT( ALL - - 98 ) AS col1 FROM tab2 WHERE NULL <> - CAST( NULL AS SIGNED ) * col0
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT - COUNT ( ALL - - 98 ) AS col1 FROM tab2 WHERE NULL <> - CAST ( NULL AS INTEGER ) * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9712
SELECT col1 * - ( - 95 ) * col2 + - 65 AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
127615
NULL
27960
NULL
303555
NULL

skipif mysql # not compatible
query II rowsort label-9712
SELECT col1 * - ( - 95 ) * col2 + - 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
127615
NULL
27960
NULL
303555
NULL

query I rowsort
SELECT - + ( + 99 ) * - 2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT 43 * + 34 + COUNT( * ) FROM tab0 AS cor0
----
1465

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT 43 * + 34 + COUNT ( * ) FROM tab0 AS cor0
----
1465

query I rowsort
SELECT DISTINCT ( + col0 ) + - 40 * + col2 * - 29 * + 50 AS col1 FROM tab2 cor0
----
1334046
2320064
3364075

query I rowsort
SELECT DISTINCT 76 - + 83 * + 57 * + 58 - - 42 FROM tab1 AS cor0
----
-274280

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( + + col0 ) ) col0 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 BETWEEN NULL AND - - 42
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT MIN( ALL - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9720
SELECT MIN ( ALL - col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col2 * - 61 * 3 AS col1 FROM tab0
----
-18117
-1830
-8601

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ( - MAX( ALL + 18 ) ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9722
SELECT ( - MAX ( ALL + 18 ) ) AS col2 FROM tab2
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 92 + - 96 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 20 FROM tab1 AS cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL > + - 54
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL > + - 54
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 16 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL + 6 + - col1 FROM tab2 AS cor0
----
-45
-61
-71

query II rowsort
SELECT DISTINCT + ( - col1 ) + col0, col2 * 90 FROM tab2 AS cor0 WHERE NULL <= - 57
----

query I rowsort
SELECT + col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + + col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT - + ( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT - + ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 75 * + 44 + + 97 AS col2 FROM tab1 AS cor0
----
-3203

query I rowsort
SELECT - + 83 * + col2 * + - 46 FROM tab0 AS cor0
----
179446
377982
38180

query I rowsort
SELECT + 60 * + + col1 * col1 * + 43 + + col0 FROM tab0 AS cor0
----
1137867
16927395
2677

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9738
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
9

query II rowsort
SELECT ALL + col0 * - col2, + col2 * + - col1 AS col1 FROM tab1
----
-4896
-1344
-5015
-295
-6188
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9740
SELECT * FROM tab0 WHERE - col0 >= - 38 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9740
SELECT * FROM tab0 WHERE - col0 >= - 38 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9741
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 68 = + 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT DISTINCT + col1 * + col0 DIV col0 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + col1 * + col0 / col0 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT 37 DIV + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT 37 / + COUNT ( * ) AS col0 FROM tab0
----
12

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE - 44 NOT IN ( + - col0 )
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 + - col0 * - + col2 AS col2 FROM tab0 cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT + + MAX( ALL + col0 ) + - + MIN( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE - ( + + col1 ) + - - 41 * - 48 * 40 * + ( - + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + + MAX ( ALL + col0 ) + - + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE - ( + + col1 ) + - - 41 * - 48 * 40 * + ( - + col1 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT - col0 DIV col0 + col2 - + - ( col2 ) AS col1 FROM tab0 AS cor0
----
19
197
93

skipif mysql # not compatible
query I rowsort label-9748
SELECT - col0 / col0 + col2 - + - ( col2 ) AS col1 FROM tab0 AS cor0
----
19
197
93

query I rowsort
SELECT 75 * - 47 + - col0 FROM tab2 AS cor0
----
-3571
-3589
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL SUM( ALL col1 ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9750
SELECT ALL SUM ( ALL col1 ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
192

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT 14 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT col1 * - 43 FROM tab0 AS cor0
----
-3483
-43
-903

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + 8 * + - 82 = col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + ( 99 ), col2 FROM tab0 AS cor0
----
-99
10
-99
47
-99
99

query II rowsort
SELECT DISTINCT col2, col0 + + 28 AS col0 FROM tab1
----
59
113
68
119
96
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 94 * col0 FROM tab2
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + SUM ( + + col1 ) FROM tab1
----
66

query I rowsort
SELECT col0 * + + ( - 84 ) FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT + 83 * + col0 FROM tab1 AS cor0
----
4233
7055
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL + 67 * - 59 + + col2 FROM tab1 AS cor0
----
-3857
-3885
-3894

query I rowsort
SELECT - col2 + - 90 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-100
-137
-189

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT - 67 * + 49 * - CAST( NULL AS SIGNED ) + - col1 + + col1 * - 98 FROM tab1 AS cor0 WHERE CAST( + + col1 AS SIGNED ) - + 75 < NULL
----

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 67 * + 49 * - CAST ( NULL AS INTEGER ) + - col1 + + col1 * - 98 FROM tab1 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) - + 75 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 61 * + - col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - COUNT( * ) * - + MIN( ALL 4 ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - COUNT ( * ) * - + MIN ( ALL 4 ) AS col2 FROM tab2
----
12

query I rowsort
SELECT + 52 * - col2 * + - col2 AS col2 FROM tab1
----
181012
240448
479232

query II rowsort
SELECT col2 AS col0, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT - ( col2 ) DIV + 26 + + col1 FROM tab2
----
51
65
76

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT - ( col2 ) / + 26 + + col1 FROM tab2
----
51
65
76

query I rowsort
SELECT + 20 * col2 * - - col1 AS col1 FROM tab1
----
26880
5900
63920

query I rowsort
SELECT + 68 * 34 FROM tab2
----
2312
2312
2312

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + 80 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT DISTINCT - COUNT( * ), + 66 AS col1 FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-9776
SELECT DISTINCT - COUNT ( * ), + 66 AS col1 FROM tab2 AS cor0
----
-3
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + - col0 * - + col0 col2, ( + - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
2652
96
7310
59
8372
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL 65 + CAST( col1 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-145
-34
-3742

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL 65 + CAST ( col1 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-145
-34
-3742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT + - 55 * - col0 + + col0 * + + col2 + + - col0 + + - col0 * - 35 * + 6 AS col2 FROM tab1 AS cor0 WHERE 55 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT col0 + + CAST( + 51 AS SIGNED ) + + 72 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT col0 + + CAST ( + 51 AS INTEGER ) + + 72 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - 20 + + - COUNT( col0 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9782
SELECT - 20 + + - COUNT ( col0 ) FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 92
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9784
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) / col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-9784
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) / col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT + - 2 DIV - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT + - 2 / - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 54 * - col2 FROM tab1 AS cor0
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT SUM( ALL + 52 ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT SUM ( ALL + 52 ) AS col2 FROM tab1 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab0 AS cor0
----
76
76
76

query II rowsort
SELECT 77, col0 - + + col2 AS col1 FROM tab0 AS cor0
----
77
-2
77
-32
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col2 / - - CAST( + col0 AS SIGNED ) / - col1
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col2 / - - CAST ( + col0 AS INTEGER ) / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT 2 + col2 FROM tab2 WHERE NOT NULL NOT IN ( + + ( + 32 ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9791
SELECT 2 + col2 FROM tab2 WHERE NOT NULL NOT IN ( + + ( + 32 ), CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + - 40 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9793
SELECT ALL + col1 * + - col2 * - col0 - + CAST( + 59 AS DECIMAL ) * + col1 + 77 FROM tab2 WHERE NULL BETWEEN - col0 AND + + 69
----

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + col1 * + - col2 * - col0 - + CAST ( + 59 AS REAL ) * + col1 + 77 FROM tab2 WHERE NULL BETWEEN - col0 AND + + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT - col0 + + col2 DIV - - col1 - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1389
-3286
-369

skipif mysql # not compatible
query I rowsort label-9794
SELECT - col0 + + col2 / - - col1 - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1389
-3286
-369

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( + + 25 ) AS col1, - 60 FROM tab2 AS cor0
----
-25
-60
-25
-60
-25
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT - 61 + - col1 * - ( + - CAST( NULL AS SIGNED ) ) + - 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT - 61 + - col1 * - ( + - CAST ( NULL AS INTEGER ) ) + - 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + col2 * - col0 FROM tab2 cor0
----
102400
24334
252300

query I rowsort
SELECT - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
43

query I rowsort
SELECT DISTINCT + 5 + - - col1 FROM tab2
----
56
72
82

query I rowsort
SELECT ALL col1 + + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
120
181
200

query II rowsort
SELECT 77, + col1 FROM tab0 AS cor0
----
77
1
77
21
77
81

query I rowsort
SELECT DISTINCT + + col0 * + ( - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 = NULL
----

query II rowsort
SELECT + 18 AS col0, - col0 FROM tab1 AS cor0
----
18
-51
18
-85
18
-91

query I rowsort
SELECT - col1 + - + col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT 43 * + + CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT 43 * + + CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 - - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
121

query II rowsort
SELECT ALL + col2 + + col2 AS col0, ( - 5 ) + 9 * + + col1 AS col1 FROM tab2 AS cor0
----
116
598
46
454
80
688

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - 33 - + MAX( ALL - col2 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 33 - + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * + col1 * + + col0 + - col1 BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col0 IS NULL
----

query I rowsort
SELECT ALL 83 * + col1 AS col0 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + MAX( - col1 ) * COUNT( * ) - - 43 FROM tab2
----
-110

skipif mysql # not compatible
query I rowsort label-9817
SELECT + MAX ( - col1 ) * COUNT ( * ) - - 43 FROM tab2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - 3 * - - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 3 * - - COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT + - col2 * - + 29 FROM tab1 AS cor0
----
1711
1972
2784

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - 43 * + col1 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT DISTINCT col1 * + - 14 AS col1 FROM tab1 AS cor0
----
-196
-658
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9823
SELECT DISTINCT CAST( NULL AS SIGNED ) / 32 * 90 + - 33 + - + 91, + ( col0 ) FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9823
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 32 * 90 + - 33 + - + 91, + ( col0 ) FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + 74 * - + col1 AS col0 FROM tab0 AS cor0
----
-1554
-5994
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 13 ) col2 FROM tab2 cor0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT DISTINCT + col2 DIV + 3 AS col0 FROM tab2 AS cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + col2 / + 3 AS col0 FROM tab2 AS cor0
----
13
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL - COUNT( * ) * - + 71 * - COUNT( * ) * + + COUNT( * ) FROM tab1
----
-1917

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - COUNT ( * ) * - + 71 * - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - MAX( col2 ) * + 99 + 26 AS col1 FROM tab2
----
-5716

skipif mysql # not compatible
query I rowsort label-9828
SELECT - MAX ( col2 ) * + 99 + 26 AS col1 FROM tab2
----
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + - ( + COUNT( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + - ( + COUNT ( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT COUNT( * ), 18 AS col0 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-9830
SELECT COUNT ( * ), 18 AS col0 FROM tab2 AS cor0
----
3
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT + SUM( - 69 ) + + MAX( ALL - col0 ) + - + 56 * - + 17 FROM tab2 AS cor0
----
699

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT + SUM ( - 69 ) + + MAX ( ALL - col0 ) + - + 56 * - + 17 FROM tab2 AS cor0
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT 54 * + 80 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
4320

skipif mysql # not compatible
query I rowsort label-9832
SELECT 54 * + 80 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
4320

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 AND + - col2 AND 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9834
SELECT * FROM tab1 WHERE col2 * col2 * - + CAST( NULL AS SIGNED ) = + 14 / + - col0
----

skipif mysql # not compatible
query III rowsort label-9834
SELECT * FROM tab1 WHERE col2 * col2 * - + CAST ( NULL AS INTEGER ) = + 14 / + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9835
SELECT 70 + + 69 DIV MIN( - col1 ) * + COUNT( * ) + + ( - - MIN( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9835
SELECT 70 + + 69 / MIN ( - col1 ) * + COUNT ( * ) + + ( - - MIN ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 * col1 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 24 AS col0 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT 56 * + - SUM( + 47 ) * + + 57 FROM tab1
----
-450072

skipif mysql # not compatible
query I rowsort label-9838
SELECT 56 * + - SUM ( + 47 ) * + + 57 FROM tab1
----
-450072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT COUNT( * ) DIV + - COUNT( * ) - + ( - COUNT( * ) ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9839
SELECT COUNT ( * ) / + - COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT 5 - 73 FROM tab2
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT col2 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT col2 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col0, ( + col0 ) AS col1 FROM tab2
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + col0 * + 29 col2 FROM tab1
----
12320
123986
20692

query II rowsort
SELECT DISTINCT - - 92 * - - col1 * - col0 AS col0, - col2 FROM tab0 AS cor0
----
-111780
-47
-168084
-10
-8924
-99

query I rowsort
SELECT ALL ( + 10 ) AS col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT 6 * ( + COUNT( * ) ) col0 FROM tab2, tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9848
SELECT 6 * ( + COUNT ( * ) ) col0 FROM tab2, tab0 AS cor0
----
54

query II rowsort
SELECT ALL col1 * ( - + col0 ) - - - 2 AS col0, + 1 * - col1 FROM tab2 cor0
----
-2348
-51
-4930
-77
-5027
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT + 80 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-9852
SELECT + 80 / + col1 AS col0 FROM tab1 AS cor0
----
1
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - - MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - - MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - MIN( - 79 ) AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - MIN ( - 79 ) AS col2 FROM tab1
----
79

query I rowsort
SELECT ALL col0 * + + 68 FROM tab2
----
3128
4352
5100

query II rowsort
SELECT ALL - col2 * - - col0 * + col2, col0 FROM tab0
----
-33135
15
-8700
87
-950697
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT COUNT( * ) + - + 85 AS col1 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT COUNT ( * ) + - + 85 AS col1 FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT MIN( - - col2 ) * - - MIN( - - col0 ) * - - COUNT( * ) AS col0 FROM tab2
----
3174

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT MIN ( - - col2 ) * - - MIN ( - - col0 ) * - - COUNT ( * ) AS col0 FROM tab2
----
3174

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 IS NULL
----

query II rowsort
SELECT - - col1 + - ( + + col2 ) - - - 60 * col1, + col0 AS col2 FROM tab2 AS cor0
----
-3032
46
-4011
75
-4583
64

query I rowsort
SELECT ALL - 72 + col2 FROM tab0 AS cor0
----
-25
-62
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 50 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 50 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 22 AS col2 FROM tab2 cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT col1 + - 36 FROM tab2 AS cor0
----
15
31
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT + + col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + 45 + - 82 * - col2 + - 46 FROM tab1 AS cor0
----
4778
5507
7775

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT + + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT DISTINCT ( + - col0 ) * col1 + - + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT ( + - col0 ) * col1 + - + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-1262
-1837
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL 85 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL 85 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 4 + - + col1 FROM tab0 AS cor0
----
-17
-77
3

query II rowsort
SELECT ALL + col2 * col2 * + - col0 * - - col2, col2 AS col2 FROM tab1 AS cor0
----
-17457215
59
-28613312
68
-45121536
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 IS NULL AND + col0 = - + 49
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9876
SELECT col0 + + 57, CAST( 86 AS SIGNED ) AS col0, 72 DIV - + col2 AS col0 FROM tab2 cor0
----
9 values hashing to 707f860dfc4fe7764dbb5046cf75caa1

skipif mysql # not compatible
query III rowsort label-9876
SELECT col0 + + 57, CAST ( 86 AS INTEGER ) AS col0, 72 / - + col2 AS col0 FROM tab2 cor0
----
9 values hashing to 707f860dfc4fe7764dbb5046cf75caa1

query I rowsort
SELECT - + 70 + + col0 AS col1 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT + col0 * 25 + + col2 + + col0 FROM tab2
----
1219
1704
2008

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - - col0, col0, + 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9880
SELECT ALL CAST( NULL AS SIGNED ) - - col2 AS col2, 6 AS col0 FROM tab0
----
NULL
6
NULL
6
NULL
6

skipif mysql # not compatible
query II rowsort label-9880
SELECT ALL CAST ( NULL AS INTEGER ) - - col2 AS col2, 6 AS col0 FROM tab0
----
NULL
6
NULL
6
NULL
6

query I rowsort
SELECT DISTINCT - col2 - - - col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( + col2 ) ) * + col2 col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT 23 FROM tab0 WHERE NOT - col2 = col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT SUM( ALL + col1 ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
195
3

skipif mysql # not compatible
query II rowsort label-9885
SELECT SUM ( ALL + col1 ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
195
3

query I rowsort
SELECT + - 13 * - - col1 * - col2 + ( 27 ) - - + 44 FROM tab0 cor0
----
1358
2801
49562

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT - + MIN( + + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT - + MIN ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT - col1 / - col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9888
SELECT - col1 / - col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0
----

query II rowsort
SELECT col1 AS col0, - ( - + col0 ) AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + + 46 AS col0 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT 9 AS col2 FROM tab1 AS cor0 WHERE NOT 60 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT + CAST( NULL AS SIGNED ) * SUM( ALL - + 78 ) FROM tab2 cor0 WHERE NOT - 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * SUM ( ALL - + 78 ) FROM tab2 cor0 WHERE NOT - 51 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL MAX( ALL + 7 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL MAX ( ALL + 7 ) FROM tab2 AS cor0
----
7

query I rowsort
SELECT + 34 + + - 45 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9897
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9897
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9898
SELECT ALL - 53, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-53
3

skipif mysql # not compatible
query II rowsort label-9898
SELECT ALL - 53, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-53
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT - 25 + - - col1 DIV + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-9899
SELECT - 25 + - - col1 / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - 69 * - col2 ) IS NULL )
----
-77
2
32

query I rowsort
SELECT ALL + ( - col1 ) * - + col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT 9 * - col1 FROM tab1
----
-126
-423
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT - CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT - CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT - ( + COUNT( + - col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9905
SELECT - ( + COUNT ( + - col1 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 25 + col2 FROM tab1 AS cor0
----
34
43
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

query I rowsort
SELECT - + 26 + + - ( col2 ) FROM tab0 AS cor0
----
-125
-36
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT DISTINCT - col2 * - col0 DIV - col0 - - col2 * - + 80 AS col2 FROM tab1 AS cor0
----
-4779
-5508
-7776

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT - col2 * - col0 / - col0 - - col2 * - + 80 AS col2 FROM tab1 AS cor0
----
-4779
-5508
-7776

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 45 * + 29 * col0 * + col2 + + 39 = - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 82 + + - 4 FROM tab1
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 WHERE ( 6 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT MAX( ALL - col1 ) + 19 AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9914
SELECT MAX ( ALL - col1 ) + 19 AS col1 FROM tab2
----
-32

query I rowsort
SELECT 75 + col0 FROM tab2
----
121
139
150

query I rowsort
SELECT DISTINCT ( - - 30 ) FROM tab0 cor0
----
30

query I rowsort
SELECT + + 8 AS col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - - 78 + col1 AS col2 FROM tab2 cor0
----
129
145
155

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9919
SELECT ALL ( + ( 52 ) ) * col1 + + col0 DIV - col1 + col2 AS col1 FROM tab1 AS cor0 WHERE - CAST( + 60 AS DECIMAL ) IS NOT NULL
----
2511
302
821

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL ( + ( 52 ) ) * col1 + + col0 / - col1 + col2 AS col1 FROM tab1 AS cor0 WHERE - CAST ( + 60 AS REAL ) IS NOT NULL
----
2511
302
821

query I rowsort
SELECT ALL col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / - - col1 <= NULL
----

query I rowsort
SELECT ALL 26 + - col0 * + - col0 FROM tab2 AS cor0
----
2142
4122
5651

query I rowsort
SELECT - col0 - + - 60 FROM tab1
----
-25
-31
9

query I rowsort
SELECT 84 AS col0 FROM tab1 WHERE NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9925
SELECT ALL 59 AS col2, - COUNT( * ) FROM tab0
----
59
-3

skipif mysql # not compatible
query II rowsort label-9925
SELECT ALL 59 AS col2, - COUNT ( * ) FROM tab0
----
59
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 92 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 66 * + + 2 AS col0 FROM tab2
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT - MAX( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - MAX ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL + + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9930
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + 0 + - CAST( - 86 AS SIGNED ) - - + col2 * - - ( - - col2 ) * + col1 NOT BETWEEN - - col0 AND + 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9930
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + 0 + - CAST ( - 86 AS INTEGER ) - - + col2 * - - ( - - col2 ) * + col1 NOT BETWEEN - - col0 AND + 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT ( 98 ) * + + CAST( + col2 AS SIGNED ) col0 FROM tab0
----
4606
9702
980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9932
SELECT ( 98 ) * + + CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
4606
9702
980

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + col2 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 + - + col2 = NULL
----

query II rowsort
SELECT + 22 * - 79 AS col2, + col0 AS col2 FROM tab2 cor0
----
-1738
46
-1738
64
-1738
75

query I rowsort
SELECT ALL - 44 * + - col0 AS col1 FROM tab0
----
3828
4268
660

query III rowsort
SELECT * FROM tab0 WHERE + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - MAX( ALL - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9939
SELECT - MAX ( ALL - col2 ) FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

query I rowsort
SELECT ALL 75 * col2 AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT ALL - col0 DIV 1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - col0 / 1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL + COUNT( * ) + COUNT( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + COUNT ( * ) + COUNT ( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT COUNT( ALL - col1 ) AS col2 FROM tab1 WHERE NOT ( + 96 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT COUNT ( ALL - col1 ) AS col2 FROM tab1 WHERE NOT ( + 96 ) IS NOT NULL
----
0

query I rowsort
SELECT col2 + 0 AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL + COUNT( * ) FROM tab0 WHERE 32 - + col0 NOT BETWEEN - col0 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + COUNT ( * ) FROM tab0 WHERE 32 - + col0 NOT BETWEEN - col0 AND ( col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9948
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL + MIN( - 47 ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + MIN ( - 47 ) AS col1 FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT + 6 DIV ( - ( col2 ) ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT + 6 / ( - ( col2 ) ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 79 - 22 * 4 FROM tab0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 WHERE 19 < ( + 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT ( + 64 ) FROM tab2 WHERE col0 <> ( CAST( NULL AS SIGNED ) * 59 )
----

skipif mysql # not compatible
query I rowsort label-9953
SELECT ( + 64 ) FROM tab2 WHERE col0 <> ( CAST ( NULL AS INTEGER ) * 59 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * col1 col2 FROM tab0
----
3726
46
966

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 42
----

query I rowsort
SELECT col0 * - 73 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT + 87 * + COUNT( * ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + 87 * + COUNT ( * ) FROM tab0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 29 * COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9958
SELECT 29 * COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT 49 BETWEEN col1 AND NULL
----
-23
-40
-58

query I rowsort
SELECT 35 * - 97 FROM tab2
----
-3395
-3395
-3395

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL BETWEEN 61 + col0 AND col0 + col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT col2 * - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) - 15 )
----

skipif mysql # not compatible
query I rowsort label-9962
SELECT col2 * - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) - 15 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col1 * 66 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + 34 )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL >= ( - 51 * - 46 )
----

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab0 WHERE ( + col2 ) BETWEEN - 41 / 65 AND NULL
----

query I rowsort
SELECT - col1 + 90 AS col1 FROM tab2
----
13
23
39

query I rowsort
SELECT + col1 + col2 * - col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT ( ( col0 ) ) FROM tab1 AS cor0 WHERE NOT - col0 = ( col1 * col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + MAX( ( + col0 ) ) FROM tab1 WHERE NOT + ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT + MAX ( ( + col0 ) ) FROM tab1 WHERE NOT + ( col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab2 WHERE NULL BETWEEN - col0 - 6 AND ( + col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9973
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) < NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - - SUM( - 60 ) FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - - SUM ( - 60 ) FROM tab0 cor0
----
-180

query I rowsort
SELECT col1 + 54 FROM tab1 AS cor0 WHERE NOT col1 * + col1 >= col0
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = col2
----

query I rowsort
SELECT + - col0 + + 16 FROM tab1 AS cor0
----
-35
-69
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 52 + 49 )
----

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 52 + 49 )
----

query I rowsort
SELECT ALL - 21 + + col0 AS col0 FROM tab0 AS cor0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) * 70 FROM tab1 AS cor0 WHERE ( + 47 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) * 70 FROM tab1 AS cor0 WHERE ( + 47 ) IS NULL
----
0

query I rowsort
SELECT ALL col1 * - ( - 61 ) FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT DISTINCT + 45 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 * col2 AND 66 * + ( col0 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9986
SELECT + MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 NOT BETWEEN ( col0 ) AND + col0 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 NOT BETWEEN ( col0 ) AND + col0 - - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL + MAX( ALL col0 ) FROM tab2 WHERE NOT ( 66 * - col0 - CAST( NULL AS SIGNED ) / col0 ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + MAX ( ALL col0 ) FROM tab2 WHERE NOT ( 66 * - col0 - CAST ( NULL AS INTEGER ) / col0 ) IS NOT NULL
----
75

query I rowsort
SELECT DISTINCT col2 + - col2 * - col0 AS col1 FROM tab2 cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 * + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 / - col2 ) IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT COUNT( * ) / - - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT COUNT ( * ) / - - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * col2 FROM tab0 WHERE ( NULL ) IS NULL
----
100
2209
9801

query I rowsort
SELECT DISTINCT 1 - + 66 + - - ( 40 ) * + col0 AS col2 FROM tab2
----
1775
2495
2935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT - CAST( - col1 AS SIGNED ) - - col2 FROM tab1 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9996
SELECT - CAST ( - col1 AS INTEGER ) - - col2 FROM tab1 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( 12 ) IS NOT NULL
----

